/* =========================================================
   iFixLab — сервис ремонта телефонов
   ========================================================= */

:root {
  --bg: #F4F6FA;
  --white: #FFFFFF;
  --surface-2: #EEF1F6;
  --text: #0B1220;
  --muted: #5B6476;
  --border: #E3E7EF;
  --border-strong: #CDD4E0;

  --dark: #080C17;
  --dark-2: #0F1527;
  --on-dark: #F3F5F9;
  --on-dark-muted: #9AA3B5;
  --line-dark: rgba(255, 255, 255, .09);

  --accent: #A9F04B;
  --accent-hover: #BDF76E;
  --accent-ink: #0B1220;
  --violet: #7C6CFF;
  --violet-ink: #5B4BE6;
  --violet-soft: #EFEDFF;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #E5484D;
  --star: #FFB547;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 16px 40px -16px rgba(15, 23, 42, .18);
  --shadow-lg: 0 40px 80px -24px rgba(5, 8, 16, .45);

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked,
body.menu-open { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--star { width: 16px; height: 16px; color: var(--star); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.link {
  color: var(--violet-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.link:hover { color: var(--text); }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { cursor: default; opacity: .75; }
.btn .icon { width: 18px; height: 18px; }

.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgba(169, 240, 75, .7), inset 0 -2px 0 rgba(0, 0, 0, .08);
}
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn--dark { background: var(--text); color: #fff; }
.btn--dark:hover { background: #1C2539; transform: translateY(-1px); }

.btn--ghost-light {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); }

.round-btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.round-btn:hover:not(:disabled) { background: var(--text); border-color: var(--text); color: #fff; }
.round-btn:disabled { opacity: .4; cursor: default; }

.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  animation: spin .7s linear infinite;
}

/* ---------- Статус «открыто» ---------- */
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark-muted);
}
.open-status i {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #8A93A6;
  flex: none;
}
.open-status.is-open i { background: #4ADE80; }
.open-status.is-open i::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2s var(--ease) infinite;
}
.open-status.is-closed i { background: var(--warning); }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 38px; height: 38px; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -.02em;
  color: #fff;
}
.logo__text span { color: var(--accent); }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.header.is-scrolled,
body.menu-open .header {
  background: rgba(8, 12, 23, .82);
  border-color: var(--line-dark);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 100%; }

.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-size: 15px;
  font-weight: 600;
  transition: color .2s, background-color .2s;
}
.nav a:hover, .nav a.is-active { color: #fff; background: rgba(255, 255, 255, .07); }

.header__contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.header__phone { color: #fff; font-weight: 800; font-size: 16.5px; white-space: nowrap; }
.header__phone:hover { color: var(--accent); }
.header__contact .open-status { font-size: 12.5px; }

.burger {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  margin-left: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
}
.burger span {
  position: absolute;
  left: 13px;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 20px) 20px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-menu__nav { display: grid; }
.mobile-menu__nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.mobile-menu__bottom { display: grid; gap: 14px; }
.mobile-menu__phone { color: #fff; font-size: 24px; font-weight: 800; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 56px);
  background: var(--dark);
  color: var(--on-dark);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(640px 460px at 82% 18%, rgba(124, 108, 255, .32), transparent 65%),
    radial-gradient(520px 380px at 8% 100%, rgba(169, 240, 75, .12), transparent 65%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 35%, #000 10%, transparent 75%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 40px;
  align-items: center;
}

.hero__badge {
  padding: 8px 16px 8px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #DDE2EC;
  font-size: 13.5px;
}

.hero__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: #fff;
  text-wrap: balance;
}
.hero__title .hl {
  color: var(--accent);
  white-space: nowrap;
}

.hero__lead {
  max-width: 560px;
  margin-top: 22px;
  color: #B4BCCB;
  font-size: 18px;
  line-height: 1.6;
}

.quick-form { max-width: 560px; margin-top: 32px; }
.quick-form__title { margin-bottom: 12px; color: #E6EAF2; font-size: 15px; font-weight: 600; }
.quick-form__row { display: flex; align-items: flex-start; gap: 10px; }
.quick-form .field { flex: 1; margin: 0; }
.quick-form .consent { margin: 14px 0 0; }

.hero__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  color: #C9CFDB;
  font-size: 14.5px;
  font-weight: 600;
}
.hero__perks li { display: flex; align-items: center; gap: 8px; }
.hero__perks .icon { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.6; }

/* Телефон-мокап */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
}
.hero__glow {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 108, 255, .55), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}

.device {
  position: relative;
  width: 300px;
  height: 612px;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(155deg, #444F70 0%, #151B2D 28%, #0B0F1C 70%, #2B3350 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    inset 0 0 0 3px #05070D,
    0 70px 120px -40px rgba(0, 0, 0, .9),
    0 30px 90px -30px rgba(124, 108, 255, .55);
}
.device::before,
.device::after {
  content: '';
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: #2B3350;
}
.device::before { right: -3px; top: 168px; height: 84px; }
.device::after { left: -3px; top: 128px; height: 52px; box-shadow: 0 72px 0 #2B3350; }

.device__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 44px;
  background: radial-gradient(120% 60% at 50% 0%, #1D2656 0%, #0C1124 55%, #070A16 100%);
}
.device__island {
  position: absolute;
  top: 11px; left: 50%;
  z-index: 3;
  width: 96px; height: 28px;
  margin-left: -48px;
  border-radius: 20px;
  background: #000;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 18px 20px;
  color: #fff;
  font-size: 13px;
}
.app__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}
.app__indicators { display: flex; align-items: flex-end; gap: 2px; }
.app__indicators i { width: 3px; border-radius: 1px; background: #fff; }
.app__indicators i:nth-child(1) { height: 5px; }
.app__indicators i:nth-child(2) { height: 7px; }
.app__indicators i:nth-child(3) { height: 9px; }
.app__indicators b {
  position: relative;
  width: 22px; height: 11px;
  margin-left: 6px;
  border: 1.5px solid rgba(255, 255, 255, .6);
  border-radius: 3.5px;
}
.app__indicators b::before { content: ''; position: absolute; inset: 1.5px 7px 1.5px 1.5px; border-radius: 1.5px; background: var(--accent); }

.app__head { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.app__brand { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.app__brand span { color: var(--accent); }
.app__order {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: var(--on-dark-muted);
  font-size: 11.5px;
  font-weight: 600;
}

.app__device {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  line-height: 1.35;
}
.app__device b { display: block; font-size: 14.5px; }
.app__device span span { color: var(--on-dark-muted); font-size: 12px; }
.app__thumb {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--violet), #4CC9F0);
}

.app__ring { position: relative; width: 148px; height: 148px; margin: 22px auto 20px; }
.app__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.app__ring circle { fill: none; stroke-width: 10; }
.app__ring-bg { stroke: rgba(255, 255, 255, .08); }
.app__ring-fg {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 163.36;
  transition: stroke-dashoffset 1.2s var(--ease);
  filter: drop-shadow(0 0 6px rgba(169, 240, 75, .55));
}
.app__pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.1;
}
.app__pct b { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.app__pct span { margin-top: 4px; color: var(--on-dark-muted); font-size: 12px; }

.app__steps { display: grid; gap: 11px; }
.app__steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark-muted);
  transition: color .3s;
}
.app__steps i {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  flex: none;
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  transition: background-color .3s, border-color .3s;
}
.app__steps li.is-done,
.app__steps li.is-current { color: #fff; }
.app__steps li.is-done i { background: var(--accent); border-color: var(--accent); }
.app__steps li.is-done i::after {
  content: '';
  width: 8px; height: 4px;
  margin-top: -2px;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg);
}
.app__steps li.is-current i { border-color: var(--accent); }
.app__steps li.is-current i::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.2s ease-in-out infinite;
}

.app__eta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  font-weight: 700;
  transition: background-color .4s, color .4s;
}
.device.is-complete .app__eta { background: var(--accent); color: var(--accent-ink); }

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(19, 26, 46, .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
  animation: float 7s ease-in-out infinite;
}
.float-card b { display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
.float-card span span { color: var(--on-dark-muted); }
.float-card__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(169, 240, 75, .14);
  color: var(--accent);
}
.float-card__icon--violet { background: rgba(124, 108, 255, .2); color: #B4AAFF; }
.float-card--rating { top: 34%; left: -6%; }
.float-card--warranty { top: 60%; right: -5%; animation-delay: -2.3s; }
.float-card--done { top: -1%; right: -3%; animation-delay: -4.6s; }

.avatars { display: flex; }
.avatars i {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  margin-left: -8px;
  border: 2px solid #141B2E;
  border-radius: 50%;
  background: hsl(var(--h) 70% 60%);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.avatars i:first-child { margin-left: 0; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 30px 28px 40px; border-left: 1px solid var(--line-dark); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 6px; color: var(--on-dark-muted); font-size: 14.5px; }

/* ---------- Бренды ---------- */
.brands {
  overflow: hidden;
  padding: 26px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.brands__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.brands:hover .brands__track { animation-play-state: paused; }
.brands__list { display: flex; flex: none; }
.brands__list li {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  color: #9AA3B5;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brands__list li::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* ---------- Секции ---------- */
.section { padding: 104px 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--dark); color: var(--on-dark); }

.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--violet-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: var(--accent); }

.section__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.section__sub {
  max-width: 640px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}
.section--dark .section__sub { color: var(--on-dark-muted); }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  text-align: left;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow); }
.service__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: var(--violet-soft);
  color: var(--violet-ink);
  transition: background-color .3s, color .3s;
}
.service__icon .icon { width: 24px; height: 24px; }
.service:hover .service__icon { background: var(--accent); color: var(--accent-ink); }
.service__title { font-size: 19px; font-weight: 800; line-height: 1.3; }
.service__text { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.service__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.service__meta b { font-size: 17px; font-weight: 800; white-space: nowrap; }
.service__meta span { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.service__arrow {
  position: absolute;
  top: 24px; right: 24px;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.service__arrow .icon { width: 18px; height: 18px; }
.service:hover .service__arrow { background: var(--text); color: #fff; transform: rotate(-45deg); }

.diag {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(110deg, #F1EFFF 0%, #F6FBEE 100%);
}
.diag__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  flex: none;
  border-radius: 18px;
  background: var(--white);
  color: var(--violet-ink);
  box-shadow: var(--shadow-sm);
}
.diag__icon .icon { width: 26px; height: 26px; }
.diag__text { flex: 1; }
.diag__text b { display: block; font-size: 18px; }
.diag__text span { color: var(--muted); }

/* ---------- Калькулятор ---------- */
.calc__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}
.calc__panel {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.calc__step + .calc__step { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.calc__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 16px; }
.calc__row .calc__title { margin: 0; }
.calc__title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 18px; font-weight: 800; }
.calc__num {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 13px;
}
.calc__empty { padding: 8px 0; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--border-strong); background: var(--bg); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.chip--ghost { border-style: dashed; color: var(--muted); }

.models {
  position: relative;
  max-height: 200px;
  overflow-y: auto;
  margin: -4px;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.models::-webkit-scrollbar { width: 6px; }
.models::-webkit-scrollbar-thumb { border-radius: 6px; background: var(--border-strong); }

.search { position: relative; display: block; width: min(260px, 100%); }
.search .icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.search input:focus { outline: none; background: var(--white); border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 108, 255, .15); }

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
}
.segmented label { position: relative; flex: 1; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.segmented input:checked + span { background: var(--white); color: var(--text); box-shadow: var(--shadow-sm), 0 2px 8px rgba(15, 23, 42, .08); }
.segmented input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 1px; }
.segmented--full { display: flex; width: 100%; }

.repairs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.repair {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.repair:hover { border-color: var(--border-strong); }
.repair input { position: absolute; opacity: 0; pointer-events: none; }
.repair__check {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  flex: none;
  border: 1.5px solid var(--border-strong);
  border-radius: 7px;
  background: var(--white);
  transition: background-color .2s, border-color .2s;
}
.repair__check .icon { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .2s var(--ease); }
.repair.is-checked { border-color: var(--text); background: #FAFBFD; box-shadow: inset 0 0 0 1px var(--text); }
.repair.is-checked .repair__check { background: var(--accent); border-color: var(--text); }
.repair.is-checked .repair__check .icon { opacity: 1; transform: none; }
.repair input:focus-visible + .repair__check { outline: 2px solid var(--violet); outline-offset: 2px; }
.repair__body { flex: 1; min-width: 0; line-height: 1.3; }
.repair__name { display: block; font-size: 14.5px; font-weight: 700; }
.repair__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--violet-soft);
  color: var(--violet-ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  vertical-align: 1px;
}
.repair__meta { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.repair__price { font-size: 15px; font-weight: 800; white-space: nowrap; }
.repair.is-flash { animation: flash 1.4s var(--ease); }

.summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  isolation: isolate;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: var(--on-dark);
}
.summary::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  z-index: -1;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 108, 255, .45), transparent 70%);
}
.summary__device {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
  line-height: 1.35;
}
.summary__thumb {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--violet), #4CC9F0);
}
.summary__label { display: block; color: var(--on-dark-muted); font-size: 13px; }
.summary__device b { font-size: 17px; }

.summary__list { display: grid; gap: 10px; margin: 18px 0; font-size: 14.5px; }
.summary__list li { display: flex; justify-content: space-between; gap: 16px; color: #C2C9D6; }
.summary__list b { color: #fff; font-weight: 700; white-space: nowrap; }
.summary__list .is-free { color: var(--accent); }
.summary__list .summary__discount { color: var(--accent); }
.summary__list .summary__discount b { color: var(--accent); }
.summary__list .summary__hint { color: var(--on-dark-muted); }

.summary__total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, .16);
}
.summary__total-label { display: grid; color: var(--on-dark-muted); font-size: 14px; line-height: 1.3; }
.summary__total-label s { color: #7E879A; font-size: 14px; }
.summary__price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}
.summary__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.summary__meta div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  line-height: 1.3;
}
.summary__meta .icon { grid-row: span 2; width: 18px; height: 18px; color: var(--accent); }
.summary__meta span { color: var(--on-dark-muted); font-size: 12px; }
.summary__meta b { font-size: 14.5px; white-space: nowrap; }
.summary .btn + .btn { margin-top: 10px; }
.summary__note { margin-top: 16px; color: var(--on-dark-muted); font-size: 13px; line-height: 1.5; text-align: center; }

/* ---------- Преимущества (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "big big a b"
    "big big c d"
    "e e f f";
  gap: 16px;
}
.bento__card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}
.bento__card h3 { font-size: 19px; font-weight: 800; line-height: 1.3; }
.bento__card p { margin-top: 8px; color: var(--on-dark-muted); font-size: 15px; line-height: 1.55; }
.bento__card--a { grid-area: a; }
.bento__card--b { grid-area: b; }
.bento__card--c { grid-area: c; }
.bento__card--d { grid-area: d; }
.bento__card--e { grid-area: e; }
.bento__card--f { grid-area: f; }
.bento__card--row { display: flex; align-items: center; gap: 20px; }
.bento__card--row .bento__icon { margin: 0; }

.bento__icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  flex: none;
  margin-bottom: 18px;
  border-radius: 15px;
  background: rgba(169, 240, 75, .12);
  color: var(--accent);
}
.bento__icon .icon { width: 24px; height: 24px; }

.bento__card--big {
  grid-area: big;
  display: flex;
  flex-direction: column;
  padding: 36px;
  background:
    radial-gradient(420px 300px at 100% 100%, rgba(124, 108, 255, .35), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
}
.bento__card--big h3 { margin-top: auto; padding-top: 48px; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.02em; }
.bento__card--big p { max-width: 440px; font-size: 16.5px; }
.bento__deco {
  position: absolute;
  right: -30px; top: -30px;
  width: 220px; height: 220px;
  stroke-width: .6;
  color: rgba(255, 255, 255, .07);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, .14);
  color: #FCA5A5;
  font-size: 13px;
  font-weight: 700;
}
.live i { width: 8px; height: 8px; border-radius: 50%; background: #EF4444; animation: blink 1.4s ease-in-out infinite; }

.checklist { display: grid; gap: 10px; margin-top: 22px; }
.checklist li { display: flex; align-items: center; gap: 10px; color: #DDE2EC; font-weight: 600; }
.checklist .icon {
  width: 22px; height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  stroke-width: 3.2;
}

.bento__card--accent { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.bento__card--accent p { color: rgba(11, 18, 32, .72); }
.bento__num { display: block; font-family: var(--font-display); font-size: 64px; font-weight: 600; line-height: .9; letter-spacing: -.04em; }
.bento__card--accent h3 { margin-top: 10px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px; right: -13px;
  z-index: 1;
  width: 10px; height: 10px;
  border-top: 2px solid var(--border-strong);
  border-right: 2px solid var(--border-strong);
  transform: rotate(45deg);
}
.step__num {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--text);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}
.step h3 { margin: 20px 0 8px; font-size: 19px; font-weight: 800; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Курьер ---------- */
.courier { padding: 0 0 104px; background: var(--white); }
.courier__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--accent-ink);
}
.courier__card::before,
.courier__card::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  border: 2px solid rgba(11, 18, 32, .08);
}
.courier__card::before { width: 380px; height: 380px; right: -60px; top: -170px; }
.courier__card::after { width: 240px; height: 240px; right: 60px; top: -100px; }
.courier__icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  flex: none;
  border-radius: 22px;
  background: var(--text);
  color: var(--accent);
}
.courier__icon .icon { width: 34px; height: 34px; }
.courier__text { flex: 1; }
.courier__text h2 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.courier__text p { max-width: 560px; margin-top: 8px; color: rgba(11, 18, 32, .75); font-size: 16.5px; }

/* ---------- Статус ремонта ---------- */
.status__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.status__form { display: flex; gap: 10px; margin-top: 28px; }
.status__form .field__input { flex: 1; height: 56px; font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.status__form.is-invalid .field__input { border-color: var(--danger); animation: shake .4s; }
.status__hint { margin-top: 14px; color: var(--muted); font-size: 14px; }

.status__result {
  display: grid;
  min-height: 340px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
}
.status__empty { display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); text-align: center; }
.status__empty-icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 20px;
  background: var(--white);
  color: var(--violet-ink);
  box-shadow: var(--shadow-sm);
}
.status__empty-icon .icon { width: 28px; height: 28px; }
.status__empty--error .status__empty-icon { color: var(--danger); }
.status__empty b { color: var(--text); }
.status__loading { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-weight: 600; }

.order { animation: fade-up .5s var(--ease); }
.order__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.order__num { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.order__device { display: block; margin-top: 2px; font-size: 20px; font-weight: 800; line-height: 1.3; }
.order__repair { color: var(--muted); font-size: 14.5px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.badge--progress { background: var(--violet-soft); color: var(--violet-ink); }
.badge--ready { background: #DCFCE7; color: #15803D; }

.timeline { display: grid; margin: 24px 0; }
.timeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  color: var(--muted);
  font-weight: 600;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 13px; top: 28px; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline li.is-done:not(:last-child)::before { background: var(--success); }
.timeline__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  flex: none;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--white);
}
.timeline__dot .icon { width: 14px; height: 14px; stroke-width: 3; }
.timeline li.is-done { color: var(--text); }
.timeline li.is-done .timeline__dot { border-color: var(--success); background: var(--success); color: #fff; }
.timeline li.is-current { color: var(--text); font-weight: 800; }
.timeline li.is-current .timeline__dot { border-color: var(--violet); box-shadow: 0 0 0 6px rgba(124, 108, 255, .15); }
.timeline li.is-current .timeline__dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); animation: blink 1.2s ease-in-out infinite; }

.order__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.order__meta div { padding: 12px 14px; border-radius: 14px; background: var(--white); line-height: 1.35; }
.order__meta dt { color: var(--muted); font-size: 12.5px; }
.order__meta dd { font-size: 14.5px; font-weight: 800; }

/* ---------- Отзывы ---------- */
.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.reviews__head .section__head { margin: 0; }
.reviews__nav { display: flex; gap: 10px; }

.ratings { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.rating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  line-height: 1.3;
}
.rating b { display: flex; align-items: center; gap: 4px; font-size: 17px; }
.rating span span { color: var(--muted); font-size: 13px; }
.rating__logo {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.rating__logo--ya { background: #FC3F1D; }
.rating__logo--gis { background: #19AA1E; }
.rating__logo--avito { background: linear-gradient(135deg, #0AF 0%, #04E061 50%, #FF4053 100%); }

.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px;
  margin: -4px;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  scroll-snap-align: start;
}
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stars { display: flex; gap: 2px; color: var(--star); }
.stars .icon { width: 18px; height: 18px; }
.review__source { padding: 4px 10px; border-radius: 999px; background: var(--white); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.review__text { font-size: 15.5px; line-height: 1.65; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; line-height: 1.35; }
.review__author b { display: block; }
.review__author span span { color: var(--muted); font-size: 13.5px; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--h) 75% 62%), hsl(calc(var(--h) + 40) 75% 52%));
  color: #fff;
  font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 64px; align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__aside .btn { margin-top: 28px; }
.faq__list { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item h3 { font-size: inherit; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  transition: color .2s;
}
.faq__q:hover { color: var(--violet-ink); }
.faq__icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform .3s var(--ease), background-color .3s, border-color .3s;
}
.faq__icon .icon { width: 18px; height: 18px; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.faq__a > div { overflow: hidden; }
.faq__a p { max-width: 680px; padding: 0 56px 24px 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.js .faq__a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .35s var(--ease), visibility 0s .35s;
}
.js .faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .35s var(--ease);
}

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; }
.contacts__card {
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.contacts__list { display: grid; gap: 20px; margin-top: 32px; }
.contacts__list li { display: flex; gap: 16px; line-height: 1.4; }
.contacts__list b { display: block; font-size: 17px; }
.contacts__list a:hover b { color: var(--violet-ink); }
.contacts__list span span,
.contacts__list .open-status { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.contacts__list .open-status { margin-top: 2px; }
.contacts__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--white);
  color: var(--violet-ink);
  box-shadow: var(--shadow-sm);
}
.messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.messenger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform .2s var(--ease), filter .2s;
}
.messenger:hover { transform: translateY(-2px); filter: brightness(1.08); }
.messenger--tg { background: #229ED9; }
.messenger--vk { background: #0077FF; }
.messenger--max { background: linear-gradient(135deg, #2D5BFF, #9B3DFF); }
.messenger__vk { font-weight: 800; font-size: 13px; letter-spacing: -.02em; }

.contacts__map {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Подвал ---------- */
.footer { padding: 72px 0 32px; background: var(--dark); color: var(--on-dark-muted); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand p { max-width: 320px; margin-top: 18px; }
.footer__title { margin-bottom: 16px; color: #fff; font-size: 15px; font-weight: 800; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13.5px;
}
.footer__bottom a:hover { color: #fff; }

.footer.footer--slim { padding: 28px 0; }
.footer--slim .footer__bottom { margin: 0; padding: 0; border: 0; }

/* ---------- Страница политики ---------- */
.legal-header { background: var(--dark); }
.legal-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.legal { padding: 64px 0 96px; background: var(--white); }
.legal__container { max-width: 800px; }
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.legal__date { margin-top: 12px; color: var(--muted); }
.legal h2 { margin: 40px 0 12px; font-size: 21px; font-weight: 800; }
.legal p, .legal li { color: #333B4D; font-size: 16.5px; line-height: 1.75; }
.legal p + p { margin-top: 10px; }
.legal ul { display: grid; gap: 6px; padding-left: 22px; list-style: disc; }
.legal a { color: var(--violet-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Нижняя панель на телефоне ---------- */
.mobile-bar { display: none; }

/* ---------- Формы ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field__label { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.field__label i { color: var(--danger); font-style: normal; }
.field__input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field__input::placeholder { color: #9AA3B5; }
.field__input:hover { border-color: var(--border-strong); }
.field__input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 108, 255, .15); }
textarea.field__input { height: auto; min-height: 84px; padding: 12px 16px; resize: vertical; }
select.field__input {
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235B6476' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
}
.field__input--dark {
  height: 56px;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
}
.field__input--dark::placeholder { color: rgba(255, 255, 255, .38); }
.field__input--dark:hover { border-color: rgba(255, 255, 255, .25); }
.field__input--dark:focus { border-color: var(--accent); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(169, 240, 75, .18); }

.field.is-invalid .field__input { border-color: var(--danger); }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 4px rgba(229, 72, 77, .15); }
.field__error { color: var(--danger); font-size: 13px; font-weight: 600; }
.field__error:empty { display: none; }
.quick-form .field__error { color: #FF8A8E; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  cursor: pointer;
}
.consent input {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  flex: none;
  margin: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.consent input::after {
  content: '';
  width: 9px; height: 5px;
  margin-top: -2px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .15s var(--ease);
}
.consent input:checked { background: var(--text); border-color: var(--text); }
.consent input:checked::after { transform: rotate(-45deg) scale(1); }
.consent a { color: var(--violet-ink); text-decoration: underline; text-underline-offset: 2px; }
.consent.is-invalid input { border-color: var(--danger); animation: shake .4s; }
.consent.is-invalid span { color: var(--danger); }

.consent--dark { color: var(--on-dark-muted); }
.consent--dark input { border-color: rgba(255, 255, 255, .3); background: transparent; }
.consent--dark input::after { border-color: var(--accent-ink); }
.consent--dark input:checked { background: var(--accent); border-color: var(--accent); }
.consent--dark a { color: #D7DCE6; }
.consent--dark.is-invalid span { color: #FF8A8E; }

.form__error {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FDECEC;
  color: #B42318;
  font-size: 14px;
  font-weight: 600;
}

.success { display: grid; justify-items: center; gap: 10px; padding: 8px 0; text-align: center; }
.success__icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  animation: pop .5s var(--ease);
}
.success__icon .icon { width: 34px; height: 34px; stroke-width: 3; }
.success__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.success__text { max-width: 360px; color: var(--muted); }
.success__num { padding: 6px 14px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }

.form-success {
  max-width: 560px;
  margin-top: 32px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  animation: fade-up .5s var(--ease);
}
.form-success .success__title { color: #fff; }
.form-success .success__text { color: var(--on-dark-muted); }
.form-success .success__num { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- Модальные окна ---------- */
.modal {
  width: min(560px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.modal::backdrop { background: rgba(5, 8, 16, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .4s var(--ease); }
.modal[open]::backdrop { animation: fade-in .3s ease; }
.modal.is-closing { animation: modal-out .22s ease forwards; }
.modal.is-closing::backdrop { animation: fade-out .22s ease forwards; }

.modal__box {
  position: relative;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 40px 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.modal__close {
  position: absolute;
  top: 16px; right: 20px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  transition: background-color .2s, transform .2s var(--ease);
}
.modal__close:hover { background: var(--border); transform: rotate(90deg); }
.modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
}
.modal__badge .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.modal__title { margin-top: 16px; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.modal__sub { margin: 10px 0 24px; color: var(--muted); }
.modal__success { padding-top: 12px; }
.modal__success .btn { margin-top: 24px; }

.estimate {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -6px 0 22px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  line-height: 1.35;
}
.estimate__thumb {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--violet), #4CC9F0);
}
.estimate__info { flex: 1; min-width: 0; }
.estimate__info b { display: block; }
.estimate__info span { display: block; overflow: hidden; color: var(--on-dark-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.estimate__price { text-align: right; white-space: nowrap; }
.estimate__price s { display: block; color: #7E879A; font-size: 12.5px; }
.estimate__price b { color: var(--accent); font-size: 18px; }

/* ---------- Анимации появления ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes flash { 0%, 100% { background-color: #FAFBFD; } 30% { background-color: #F1FBE3; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .header__contact { display: none; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .calc__box { grid-template-columns: minmax(0, 1fr) 340px; }
  .repairs { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 320px minmax(0, 1fr); gap: 48px; }
  .float-card--warranty { right: -2%; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav { display: none; }
  .burger { display: block; }
  .header__cta { margin-left: auto; }

  .section { padding: 80px 0; }
  .courier { padding-bottom: 80px; }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__content { text-align: center; }
  .hero__lead, .quick-form { margin-inline: auto; }
  .quick-form { text-align: left; }
  .hero__perks { justify-content: center; }
  .hero__visual { width: min(100%, 540px); min-height: 0; margin-inline: auto; padding: 24px 0 8px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 20px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }

  .services { grid-template-columns: repeat(2, 1fr); }
  .calc__box { grid-template-columns: 1fr; }
  .repairs { grid-template-columns: 1fr 1fr; }
  .summary { position: relative; top: 0; }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "big big" "a b" "c d" "e e" "f f";
  }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }

  .status__card { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .reviews__track { grid-auto-columns: calc((100% - 16px) / 2); }
  .faq__grid { grid-template-columns: 1fr; gap: 32px; }
  .faq__aside { position: static; }
  .contacts { grid-template-columns: 1fr; }
  .contacts__map { min-height: 380px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .courier { padding-bottom: 64px; }
  .section__head { margin-bottom: 32px; }
  .section__sub { font-size: 16.5px; }

  .header__cta { display: none; }
  .burger { margin-left: auto; }

  .hero__lead { font-size: 16.5px; }
  .quick-form__row { flex-direction: column; align-items: stretch; }
  .quick-form .btn { width: 100%; }
  .hero__perks { gap: 8px 16px; font-size: 14px; }
  .float-card { display: none; }
  .hero__visual { padding-top: 8px; }
  .device { width: 260px; height: 530px; border-radius: 48px; }
  .device__screen { border-radius: 38px; }
  .app__ring { width: 120px; height: 120px; margin: 16px auto 14px; }
  .app__pct b { font-size: 24px; }
  .app__steps { gap: 8px; }
  .stat b { font-size: 26px; }
  .stat span { font-size: 13.5px; }

  .brands { padding: 20px 0; }
  .brands__list li { gap: 40px; padding-right: 40px; font-size: 18px; }

  .services { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service { min-height: 0; gap: 4px; padding: 16px; border-radius: 18px; }
  .service__icon { width: 44px; height: 44px; margin-bottom: 8px; border-radius: 14px; }
  .service__icon .icon { width: 22px; height: 22px; }
  .service__title { font-size: 16px; }
  .service__text, .service__arrow { display: none; }
  .service__meta { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 10px; }
  .service__meta b { font-size: 15.5px; }
  .service__meta span { font-size: 12.5px; }
  .diag { flex-direction: column; align-items: flex-start; padding: 24px; }
  .diag .btn { width: 100%; }

  .calc__panel { padding: 22px 18px; border-radius: var(--radius); }
  .calc__row { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .segmented { display: flex; }
  .repairs { grid-template-columns: 1fr; }
  .summary { padding: 24px 20px; border-radius: var(--radius); }

  .bento { grid-template-columns: 1fr; grid-template-areas: "big" "a" "b" "c" "d" "e" "f"; gap: 12px; }
  .bento__card { padding: 22px; }
  .bento__card--big { padding: 28px; }
  .bento__card--big h3 { padding-top: 32px; }
  .bento__card:has(> .bento__icon) {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    column-gap: 16px;
  }
  .bento__card:has(> .bento__icon) .bento__icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; border-radius: 13px; }
  .bento__card:has(> .bento__icon) h3 { font-size: 17px; }
  .bento__card:has(> .bento__icon) p { margin-top: 4px; font-size: 14.5px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .step {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
    column-gap: 14px;
    padding: 20px;
  }
  .step__num { grid-row: span 2; padding-inline: 0; text-align: center; }
  .step h3 { margin: 2px 0 4px; font-size: 17px; }
  .step p { font-size: 14.5px; }

  .courier__card { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .courier__card .btn { width: 100%; }

  .status__card { padding: 24px 18px; border-radius: var(--radius); }
  .status__form { flex-direction: column; }
  .status__form .field__input { flex: none; }
  .status__result { padding: 20px; min-height: 280px; }
  .order__meta { grid-template-columns: 1fr; }

  .reviews__head { align-items: flex-start; flex-direction: column; }
  .reviews__nav { display: none; }
  .reviews__track { grid-auto-columns: 86%; }

  .faq__q { padding: 20px 0; font-size: 16.5px; }
  .faq__a p { padding-right: 0; font-size: 15.5px; }

  .contacts__card { padding: 28px 22px; border-radius: var(--radius); }
  .contacts__map { min-height: 320px; border-radius: var(--radius); }

  .footer { padding-bottom: 110px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  .form__grid { grid-template-columns: 1fr; }
  .modal {
    width: 100%;
    max-height: calc(100dvh - 12px);
    margin: auto 0 0;
  }
  .modal__box {
    max-height: calc(100dvh - 12px);
    padding: 32px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
  .modal[open] { animation-name: sheet-in; }
  .modal.is-closing { animation-name: sheet-out; }
  .modal__title { font-size: 24px; }

  .mobile-bar {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: rgba(8, 12, 23, .88);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    transform: translateY(calc(100% + 24px));
    transition: transform .4s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  body.menu-open .mobile-bar { transform: translateY(calc(100% + 24px)); }
  .mobile-bar .btn { height: 48px; overflow: hidden; text-overflow: ellipsis; }
  .mobile-bar__call {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
  }
}

@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }

@media (max-width: 400px) {
  .hero__title { font-size: 30px; }
  .stat { padding: 20px 12px; }
  .stat b { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
