/* ============================================================
   КОННЕКСО — сервисный центр, Иркутск
   Фирменная палитра: красный #D71920, чёрный #111111, белый #FFFFFF
   Плоская геометрия, без градиентов.
   ============================================================ */

:root {
  --red: #D71920;
  --red-dark: #B01319;
  --black: #111111;
  --gray-900: #1C1C1C;
  --gray-700: #3A3A3A;
  --gray-500: #6B6B6B;
  --gray-300: #D9D9D9;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --radius: 22px;          /* радиус скруглений, как в знаке логотипа */
  --radius-lg: 30px;
  --container: 1160px;
  --font: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 14px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--lg { padding: 15px 32px; font-size: 17px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 88px;
}
.header__logo img { height: 56px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__link {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--red);
  transition: right .2s ease;
}
.nav__link:hover::after { right: 0; }
.nav__phone {
  color: var(--black);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.nav__phone:hover { color: var(--red); }
.nav__cta { padding: 10px 20px; font-size: 15px; }

/* Компактная шапка на средних экранах (до включения бургер-меню) */
@media (max-width: 1180px) {
  .header__inner { height: 76px; gap: 12px; }
  .header__logo img { height: 46px; }
  .nav { gap: 15px; }
  .nav__link { font-size: 14px; }
  .nav__phone { font-size: 14px; }
  .nav__cta { padding: 9px 16px; font-size: 14px; }
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  width: 26px; height: 3px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Главный экран ---------- */
.hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -140px; top: -140px;
  width: 420px; height: 420px;
  border-radius: var(--radius-lg);
  background: var(--red);
  opacity: .16;
  transform: rotate(18deg);
}
.hero::after {
  content: "";
  position: absolute;
  right: 120px; bottom: -160px;
  width: 260px; height: 260px;
  border-radius: var(--radius);
  background: var(--red);
  opacity: .10;
  transform: rotate(-12deg);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 64px 20px 72px;
}
.hero__kicker {
  display: inline-block;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero__subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--gray-300);
  max-width: 520px;
  margin-bottom: 26px;
}
.hero__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 30px;
}
.hero__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.hero__phone:hover { color: var(--red); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; }
.hero__photo {
  border-radius: var(--radius-lg);
  border: 4px solid rgba(255,255,255,.12);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: opacity .55s ease;
}
.hero__badge {
  position: absolute;
  left: -18px; top: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--red);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--white);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  max-width: 280px;
}
.hero__badge strong { display: block; font-size: 15px; line-height: 1.25; }
.hero__badge span { font-size: 13px; opacity: .85; }

/* ---------- Секции ---------- */
.section { padding: 76px 0; }
.section__head { max-width: 760px; margin-bottom: 42px; }
.section__title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section__title--light { color: var(--white); }
.section__lead { font-size: 17px; color: var(--gray-500); }
.section__lead--light { color: var(--gray-300); }

/* ---------- Услуги ---------- */
.services { background: var(--gray-100); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.service-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(17,17,17,.08);
}
.service-card__icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background .18s ease;
}
.service-card:hover .service-card__icon { background: var(--red); }
.service-card__title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.service-card__hint { font-size: 13.5px; color: var(--gray-500); }

/* ---------- Почему мы ---------- */
.why { background: var(--black); color: var(--white); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.why__card {
  background: var(--gray-900);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 2px solid transparent;
  transition: border-color .18s ease;
}
.why__card:hover { border-color: var(--red); }
.why__icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why__card h3 { font-size: 18px; margin-bottom: 8px; }
.why__card p { color: var(--gray-300); font-size: 15px; }

/* ---------- Галерея ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery__item {
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery__item:hover img { transform: scale(1.06); }

/* ---------- Отзывы 2ГИС ---------- */
.reviews { background: var(--gray-100); }
.reviews__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.reviews__text .section__lead { margin-bottom: 24px; }
.reviews__widget {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(17,17,17,.10);
  background: var(--white);
  line-height: 0;
}
.reviews__widget iframe {
  width: 100%;
  max-width: 528px;
  height: 620px;
  border: 0;
  display: block;
}

/* ---------- Заявка ---------- */
.request { background: var(--red); color: var(--white); }
.request__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.request__points { list-style: none; margin-top: 18px; }
.request__points li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 16.5px;
}
.request__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  background: var(--white);
  border-radius: 5px;
  clip-path: polygon(14% 44%, 0 62%, 41% 100%, 100% 16%, 84% 2%, 40% 69%);
}

.form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  color: var(--black);
}
.form__row { margin-bottom: 16px; }
.form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form__input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  background: var(--white);
  transition: border-color .15s ease;
}
.form__input:focus { outline: none; border-color: var(--black); }
.form__input.is-error { border-color: var(--red); }
.form__input--area { resize: vertical; min-height: 90px; }
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}
.form__submit { width: 100%; margin-top: 4px; }
.form__note { font-size: 12.5px; color: var(--gray-500); margin-top: 12px; }
.form__status { margin-top: 10px; font-weight: 600; font-size: 15px; }
.form__status.is-ok { color: #177245; }
.form__status.is-fail { color: var(--red); }

/* ---------- Узнать цену ---------- */
.cta { background: var(--red); color: var(--white); text-align: center; }
.cta__inner { max-width: 760px; margin: 0 auto; }
.cta__title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  margin-bottom: 14px;
}
.cta__text {
  font-size: 17.5px;
  color: rgba(255,255,255,.92);
  margin-bottom: 30px;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: var(--gray-100); }

/* ---------- Контакты ---------- */
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}
.contacts__block { margin-top: 24px; }
.contacts__block h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.contacts__block p { font-size: 18px; font-weight: 600; }
.contacts__line { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.contacts__line svg { flex: none; }
.contacts__block a { color: var(--black); text-decoration: none; }
.contacts__block a:hover { color: var(--red); }

/* ===== Статус заказа ===== */
.track__form { display: flex; gap: 12px; max-width: 560px; margin: 0 auto; }
.track__input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 600;
  border: 2px solid #e3e3e3;
  border-radius: 12px;
  outline: none;
}
.track__input:focus { border-color: var(--red); }
.track__result { max-width: 720px; margin: 28px auto 0; }
.track__card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.track__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.track__num { font-size: 22px; font-weight: 800; }
.track__device { color: #666; margin-bottom: 16px; }
.track__chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.track__chip--done { background: #2e9e5b; }
.track__table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
.track__table td { padding: 9px 0; border-bottom: 1px dashed #e3e3e3; font-size: 16px; }
.track__table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.track__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 800;
}
.track__total span:last-child { font-size: 24px; }
.track__meta { margin-top: 12px; color: #888; font-size: 14px; }
.track__error {
  background: #fdecec;
  border: 1px solid #f5c1c1;
  color: #b3261e;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  text-align: center;
}
.contacts__maplink {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--red) !important;
}
.contacts__map iframe {
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  min-height: 440px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
}

/* ---------- Подвал ---------- */
.footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 36px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer__requisites { font-size: 13.5px; }
.footer__copy { font-size: 13px; color: var(--gray-500); }

/* ---------- Модалки ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,.72);
}
.modal__dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
}
.modal__dialog--photo {
  background: var(--black);
  padding: 16px;
  max-width: 900px;
}
.modal__dialog--photo img {
  width: 100%;
  border-radius: var(--radius);
}
.modal__close {
  position: absolute;
  top: 12px; right: 14px;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--black);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.modal__close:hover { background: var(--gray-300); }
.modal__dialog--photo .modal__close { background: rgba(255,255,255,.15); color: var(--white); }
.modal__title { font-size: 24px; margin-bottom: 12px; padding-right: 40px; }
.modal__body { color: var(--gray-700); margin-bottom: 22px; }
.modal__body p { margin-bottom: 10px; }
.modal__body ul { padding-left: 22px; margin-bottom: 10px; }
.modal__body li { margin-bottom: 4px; }

/* ---------- Появление при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 640px; }
}

@media (max-width: 760px) {
  .header__inner { height: 72px; }
  .header__logo img { height: 44px; }
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 20px 40px rgba(17,17,17,.12);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
  .nav__phone { padding: 14px 0; font-size: 18px; }
  .nav__cta { margin-top: 14px; }

  .section { padding: 56px 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why__grid { grid-template-columns: 1fr; }
  .request__inner { grid-template-columns: 1fr; gap: 32px; }
  .reviews__inner { grid-template-columns: 1fr; gap: 28px; }
  .reviews__widget iframe { height: 560px; max-width: 100%; }
  .contacts__inner { grid-template-columns: 1fr; }
  .contacts__map iframe { min-height: 300px; }
  .hero__inner { padding: 44px 20px 56px; }
  .hero__badge { left: 8px; top: -16px; padding: 10px 14px; max-width: 240px; }
  .hero__phones { flex-direction: column; gap: 10px; }
  .hero__phone { font-size: 18px; }
  .gallery__grid { gap: 10px; }
}

@media (max-width: 420px) {
  .services__grid { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; }
  .hero__actions { flex-direction: column; }
}
