/* MontElectro — site styles */
:root {
  --ink: #0a1424;
  --ink-2: #111e33;
  --ink-line: rgba(255, 255, 255, .14);
  --paper: #ffffff;
  --mist: #f2f4f7;
  --line: #dce1e8;
  --text: #0a1424;
  --muted: #586374;
  --muted-dark: #a7b2c3;
  --volt: #003af9;
  --volt-light: #5b85ff;
  --spark: #fe5200;
  --spark-dark: #d94600;

  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--volt); text-underline-offset: 3px; }
a:hover { color: var(--spark); }
:focus-visible { outline: 3px solid var(--volt-light); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 2px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--call { background: var(--spark); color: #fff; }
.btn--call:hover { background: var(--spark-dark); color: #fff; }
.btn--line { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--line:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn--dark { border-color: var(--text); color: var(--text); background: transparent; }
.btn--dark:hover { background: var(--text); color: #fff; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.header__logo { flex: none; display: block; }
.header__logo img { width: 139px; height: 43px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover { color: var(--volt); }
.lang { display: flex; font-weight: 600; font-size: .88rem; border: 1px solid var(--line); border-radius: 2px; }
.lang a, .lang span { padding: 6px 10px; text-decoration: none; color: var(--muted); }
.lang span { color: #fff; background: var(--ink); }
.lang a:hover { color: var(--volt); }
.header__call { display: flex; align-items: center; gap: 14px; }
.header__phone { font: 600 1.05rem/1 var(--font-display); color: var(--text); text-decoration: none; white-space: nowrap; letter-spacing: -0.01em; }
.header__phone:hover { color: var(--spark); }
.header__call .btn { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 11px; }
.burger span { display: block; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 20, 36, .96) 0%, rgba(10, 20, 36, .88) 38%, rgba(10, 20, 36, .45) 70%, rgba(10, 20, 36, .25) 100%),
    linear-gradient(0deg, rgba(10, 20, 36, .9) 0%, transparent 35%);
}
.hero__content { padding: clamp(80px, 11vw, 150px) 0 clamp(56px, 7vw, 96px); max-width: 760px; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); font-weight: 600; margin-bottom: 26px; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #c9d2df; max-width: 36em; margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink-line); }
.facts li { padding: 28px 28px 34px 0; }
.facts li + li { padding-left: 28px; border-left: 1px solid var(--ink-line); }
.facts b { display: block; font: 600 clamp(1.6rem, 2.6vw, 2.3rem)/1.1 var(--font-display); letter-spacing: -0.02em; margin-bottom: 6px; }
.facts span { color: var(--muted-dark); font-size: .97rem; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.head h2, .split h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.head p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 34em; }
.section--ink .head p, .section--ink .split__text > p { color: var(--muted-dark); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--text); }
.service { padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line); }
.service:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.service svg { width: 44px; height: 44px; color: var(--volt); margin-bottom: 26px; }
.service h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service p { color: var(--muted); margin: 0; }

/* Trust split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.split__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split h2 { margin-bottom: 22px; }
.split__text > p { font-size: 1.1rem; max-width: 34em; }
.points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.points li { border-top: 2px solid var(--spark); padding-top: 18px; }
.points b { display: block; font: 600 1.15rem/1.3 var(--font-display); margin-bottom: 6px; }
.points span { color: var(--muted-dark); font-size: .98rem; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 12px; }
.projects a { position: relative; display: block; overflow: hidden; background: var(--line); }
.projects a.is-big { grid-column: span 2; grid-row: span 2; }
.projects a.is-wide { grid-column: span 2; }
.projects a.is-hidden { display: none; }
.projects img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.projects a:hover img { transform: scale(1.04); }
.projects__more { display: flex; justify-content: center; margin-top: 36px; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(6, 11, 20, .94); }
.lightbox__inner { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 56px 16px; }
.lightbox img { max-width: min(1280px, 100%); max-height: calc(100vh - 112px); width: auto; height: auto; }
.lightbox button { position: absolute; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; width: 48px; height: 48px; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, .12); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; border-top: 1px solid var(--text); }
.step { counter-increment: step; padding: 28px 24px 0 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step::before { content: counter(step, decimal-leading-zero); display: block; font: 600 .95rem/1 var(--font-display); color: var(--volt); margin-bottom: 30px; }
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Coverage */
.coverage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 100px); }
.coverage h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 22px; }
.coverage__text p { color: var(--muted-dark); font-size: 1.1rem; max-width: 30em; }
.coverage__text .btn { margin-top: 18px; }
.cities { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 32px; }
.cities li { break-inside: avoid; padding: 13px 0; border-bottom: 1px solid var(--ink-line); font: 500 1.1rem/1.3 var(--font-display); }
.cities li:first-child { color: var(--spark); }
.cities li.more { color: var(--muted-dark); font-family: var(--font-body); font-size: 1rem; border-bottom: 0; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--text); }
.reviews > li { border-bottom: 1px solid var(--line); }
.reviews > li:nth-child(odd) { border-right: 1px solid var(--line); }
.review { margin: 0; padding: 36px 40px 36px 0; height: 100%; }
.reviews > li:nth-child(even) .review { padding: 36px 0 36px 40px; }
.review p { font-size: 1.12rem; margin: 0 0 18px; }
.review cite { font-style: normal; font-weight: 600; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 56px 24px 0; position: relative; font: 600 1.18rem/1.35 var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.8rem/1 var(--font-display); color: var(--volt); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 26px; max-width: 46em; }

/* Contacts */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); }
.contacts h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 32px; }
.contacts__phones { display: grid; gap: 4px; margin-bottom: 36px; }
.contacts__phones a { font: 600 clamp(1.9rem, 3.6vw, 2.8rem)/1.2 var(--font-display); color: var(--text); text-decoration: none; letter-spacing: -0.03em; }
.contacts__phones a:hover { color: var(--spark); }
.contacts dl { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0 0 36px; border-top: 1px solid var(--line); }
.contacts dt, .contacts dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contacts dt { color: var(--muted); padding-right: 32px; }
.contacts dd { font-weight: 500; }
.contacts address { font-style: normal; }
.social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); color: var(--text); }
.social a:hover { border-color: var(--text); background: var(--text); color: #fff; }
.social svg { width: 19px; height: 19px; }
.map { position: relative; min-height: 440px; overflow: hidden; background: var(--mist); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05); }

/* Footer */
.footer { background: var(--ink); color: var(--muted-dark); padding: 64px 0 40px; font-size: .97rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer__logo { display: inline-block; background: #fff; padding: 10px 14px; margin-bottom: 20px; }
.footer__logo img { width: 139px; height: 43px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--spark); }
.footer h2 { font: 600 1rem/1.3 var(--font-display); color: #fff; margin-bottom: 16px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer p { max-width: 30em; }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

.callbar { display: none; }

/* Responsive */
@media (max-width: 1140px) {
  .nav, .header__call { display: none; }
  .lang { margin-left: auto; }
  .burger { display: block; }
  .nav.is-open {
    display: block; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--paper); padding: 16px var(--gutter) 100px; overflow-y: auto;
  }
  .nav.is-open ul { flex-direction: column; gap: 0; }
  .nav.is-open a { display: block; padding: 18px 0; font: 600 1.5rem/1.2 var(--font-display); border-bottom: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .service:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step + .step { display: grid; grid-template-columns: 56px 1fr; padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top-color: var(--text); }
  .step::before { grid-row: span 2; margin: 4px 0 0; }
  .split, .coverage, .contacts { grid-template-columns: minmax(0, 1fr); }
  .split__photo img { aspect-ratio: 16 / 10; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { padding-bottom: 74px; }
  .header__logo img { width: 116px; height: auto; }
  .hero__bg img { object-position: 60% 50%; }
  .hero__bg::after { background: linear-gradient(0deg, rgba(10, 20, 36, .97) 0%, rgba(10, 20, 36, .88) 55%, rgba(10, 20, 36, .6) 100%); }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); hyphens: auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service, .service:nth-child(even) { padding: 30px 0; border-left: 0; }
  .points { grid-template-columns: 1fr; gap: 24px; }
  .cities { columns: 2; }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .reviews > li:nth-child(odd) { border-right: 0; }
  .review, .reviews > li:nth-child(even) .review { padding: 28px 0; }
  .projects { grid-auto-rows: 150px; gap: 8px; }
  .footer__grid { grid-template-columns: 1fr; }
  .callbar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
  }
  .callbar .btn { flex: 1; min-height: 52px; padding: 0 10px; }
}
@media (max-width: 340px) {
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li, .facts li:nth-child(3) { padding: 18px 0; border-left: 0; border-top: 1px solid var(--ink-line); }
  .facts li:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .projects img, .burger span, .faq summary::after { transition: none; }
}
