:root {
  --green: #31b631;
  --green-dark: #167e2b;
  --green-soft: #eaf7e8;
  --ink: #222724;
  --muted: #676868;
  --line: #dfe5df;
  --paper: #ffffff;
  --soft: #f3f5f1;
  --deep: #173b27;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
section[id] { scroll-margin-top: 88px; }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 112px 0; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(223, 229, 223, .9);
  backdrop-filter: blur(14px);
}
.header__inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 11px; min-width: 238px; color: var(--green-dark); }
.logo__mark { width: 45px; height: 45px; flex: 0 0 auto; }
.logo__copy { display: flex; flex-direction: column; line-height: 1; }
.logo__copy strong { color: var(--ink); font-size: 26px; line-height: .95; letter-spacing: .03em; }
.logo__copy small { margin-top: 6px; color: var(--muted); font-size: 10.5px; letter-spacing: .025em; }
.logo--inverse { color: #66d66c; }
.logo--inverse .logo__copy strong { color: white; }
.logo--inverse .logo__copy small { color: rgba(255,255,255,.65); }
.header__nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.header__nav a { color: #4e5651; font-size: 14px; font-weight: 600; transition: color .2s; }
.header__nav a:hover { color: var(--green-dark); }
.header__contact { display: flex; flex-direction: column; line-height: 1.25; }
.header__phone { color: var(--ink); font-size: 16px; font-weight: 750; white-space: nowrap; }
.header__contact span { margin-top: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 25px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(to bottom, #31b631 0%, #78d878 50%, #37ca37 51%, #31b631 100%);
  box-shadow: 0 8px 24px rgba(49, 182, 49, .22), inset 0 1px rgba(255,255,255,.35);
  color: white;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.button:hover { transform: translateY(-2px); filter: saturate(1.08); box-shadow: 0 12px 30px rgba(49, 182, 49, .28); }
.button:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(49,182,49,.35); outline-offset: 3px; }
.button:disabled { filter: grayscale(.65); opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.button--small { min-height: 43px; padding: 10px 17px; border-radius: 6px; font-size: 13px; white-space: nowrap; }

.hero { position: relative; overflow: hidden; min-height: 720px; padding: 110px 0 28px; background: #f8faf7; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: -230px; border: 100px solid rgba(49,182,49,.055); border-radius: 50%; }
.hero::after { content: ""; position: absolute; width: 250px; height: 1px; right: 26%; top: 42%; background: linear-gradient(90deg, transparent, rgba(49,182,49,.35)); transform: rotate(-45deg); }
.hero__grid { position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(rgba(23,59,39,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(23,59,39,.05) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, transparent, #000 55%, #000); }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(330px, .62fr); align-items: center; gap: 86px; }
.hero__content { max-width: 730px; }
.eyebrow, .kicker { margin: 0 0 18px; color: var(--green-dark); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 38px; height: 2px; background: var(--green); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; max-width: 770px; font-size: clamp(44px, 5.25vw, 73px); font-weight: 760; line-height: .99; letter-spacing: -.052em; }
.hero__lead { max-width: 700px; margin: 28px 0 32px; color: #545b57; font-size: 19px; line-height: 1.65; }
.button--hero { min-height: 62px; padding-inline: 30px; }
.hero__micro { max-width: 520px; margin: 14px 0 0 3px; color: #747b76; font-size: 13px; }
.hero__case { position: relative; padding: 29px; background: var(--deep); color: white; box-shadow: 25px 28px 0 rgba(49,182,49,.11); }
.hero__case::before { content: ""; position: absolute; width: 74px; height: 74px; top: -13px; right: -13px; border-top: 2px solid var(--green); border-right: 2px solid var(--green); }
.case__topline { display: flex; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.17); color: rgba(255,255,255,.62); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.case__label { margin: 22px 0 28px; color: rgba(255,255,255,.78); font-family: Georgia, serif; font-size: 21px; line-height: 1.35; }
.case__result { display: grid; gap: 8px; }
.case__result strong { color: #71db75; font-size: 40px; line-height: 1; letter-spacing: -.04em; }
.case__result span { max-width: 250px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.5; }
.case__divider { height: 1px; margin: 23px 0; background: rgba(255,255,255,.15); }
.case__result--small strong { color: white; font-size: 29px; }
.case__note { margin: 25px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.46); font-size: 10px; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; }
.hero__trust { position: relative; display: flex; align-items: center; gap: 18px; margin-top: 70px; padding-top: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.hero__trust i { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }

.section-heading h2, .contacts h2 { margin: 0; max-width: 720px; font-size: clamp(35px, 4vw, 56px); line-height: 1.05; letter-spacing: -.045em; }
.section-heading--split { display: grid; grid-template-columns: 1.12fr .88fr; gap: 100px; align-items: end; }
.section-heading__copy { color: var(--muted); font-size: 16px; }
.section-heading__copy p { margin: 0 0 14px; }
.section-heading__copy p:last-child { margin-bottom: 0; }
.section-heading__copy--single { margin: 0; padding-left: 30px; border-left: 2px solid var(--green); }
.section-heading--center { max-width: 790px; margin: 0 auto 55px; text-align: center; }
.section-heading--center h2 { margin-inline: auto; }

.problem { background: white; }
.problem__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 62px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-card { min-height: 275px; padding: 30px 28px; border-right: 1px solid var(--line); transition: background .25s, transform .25s; }
.problem-card:first-child { border-left: 1px solid var(--line); }
.problem-card:hover { position: relative; z-index: 1; background: var(--green-soft); transform: translateY(-7px); }
.problem-card__number { color: var(--green-dark); font-family: Georgia, serif; font-size: 15px; }
.problem-card h3 { margin: 55px 0 15px; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.problem-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.services { background: var(--soft); }
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card { padding: 42px; background: white; border: 1px solid var(--line); box-shadow: 0 18px 55px rgba(21,47,29,.05); }
.service-card--accent { border-top: 4px solid var(--green); }
.service-card__head { display: flex; gap: 20px; align-items: center; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.icon { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; background: var(--green-soft); color: var(--green-dark); }
.icon svg { width: 28px; height: 28px; }
.service-card__head span { color: var(--green-dark); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.service-card h3 { margin: 5px 0 0; font-size: 27px; line-height: 1.1; letter-spacing: -.025em; }
.service-card ul { display: grid; gap: 15px; margin: 28px 0 0; padding: 0; list-style: none; }
.service-card li { position: relative; padding-left: 27px; color: #4f5752; }
.service-card li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--green-dark); font-weight: 900; }
.services__extra { display: flex; align-items: center; justify-content: space-between; gap: 45px; margin-top: 28px; padding: 26px 0; border-top: 1px solid #d5ddd4; }
.services__extra p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 15px; color: var(--green-dark); font-weight: 750; border-bottom: 1px solid rgba(22,126,43,.3); white-space: nowrap; }
.text-link span { font-size: 22px; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }

.process__list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 60px 0 36px; padding: 0; list-style: none; counter-reset: process; }
.process__list li { position: relative; min-height: 210px; padding: 0 30px 25px 0; border-top: 2px solid #d9e0d8; }
.process__list li::after { content: ""; position: absolute; width: 12px; height: 12px; left: 0; top: -7px; border: 3px solid white; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.process__list li:last-child { border-color: var(--green); }
.process__list li > span { display: block; margin-top: 23px; color: var(--green-dark); font-family: Georgia, serif; font-size: 14px; }
.process__list h3 { margin: 26px 0 10px; font-size: 21px; }
.process__list p { margin: 0; color: var(--muted); font-size: 14px; }

.trust { position: relative; overflow: hidden; background: var(--deep); color: white; }
.trust::after { content: "ЭСКО"; position: absolute; right: -25px; bottom: -95px; color: rgba(255,255,255,.035); font-size: 230px; font-weight: 850; letter-spacing: -.08em; }
.trust__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 95px; }
.kicker--light { color: #76dd78; }
.trust h2 { margin: 0 0 28px; font-size: clamp(35px, 4vw, 56px); line-height: 1.05; letter-spacing: -.045em; }
.trust__content > p:not(.kicker) { color: rgba(255,255,255,.68); }
.trust__facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.15); border-left: 1px solid rgba(255,255,255,.15); }
.fact { display: flex; flex-direction: column; min-height: 190px; justify-content: space-between; padding: 28px; border-right: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.fact strong { color: #71db75; font-size: 44px; line-height: 1; letter-spacing: -.04em; }
.fact span { max-width: 175px; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.5; }

.reviews { overflow: hidden; background: #f8faf7; }
.section-heading--reviews { align-items: center; }
.review-controls { display: flex; justify-content: flex-end; gap: 10px; }
.review-controls button { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid #cfd7cf; background: white; color: var(--ink); cursor: pointer; transition: color .2s, border .2s, background .2s; }
.review-controls button:hover { border-color: var(--green); background: var(--green); color: white; }
.reviews__intro { max-width: 600px; margin: 24px 0 38px; color: var(--muted); }
.reviews__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 355px); gap: 20px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; scrollbar-color: #aab8aa transparent; scrollbar-width: thin; }
.review-card { display: flex; flex-direction: column; min-height: 590px; background: white; border: 1px solid var(--line); scroll-snap-align: start; }
.review-card__image { position: relative; display: block; height: 390px; overflow: hidden; padding: 0; border: 0; background: #ecefeb; cursor: zoom-in; }
.review-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.88); transition: transform .4s, filter .4s; }
.review-card__image span { position: absolute; right: 13px; bottom: 13px; padding: 7px 10px; background: rgba(23,59,39,.9); color: white; font-size: 11px; opacity: 0; transform: translateY(5px); transition: .25s; }
.review-card__image:hover img { transform: scale(1.025); filter: saturate(1); }
.review-card__image:hover span { opacity: 1; transform: none; }
.review-card__body { padding: 24px; }
.review-card__body h3 { min-height: 50px; margin: 0 0 12px; font-size: 17px; line-height: 1.35; }
.review-card__body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.media { background: white; }
.media__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.media__content h2 { margin: 0 0 24px; font-size: clamp(35px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -.045em; }
.media__content > p:not(.kicker) { margin: 0 0 30px; color: var(--muted); }
.button--secondary { background: white; color: var(--green-dark); border: 1px solid var(--green); box-shadow: none; }
.button--secondary:hover { background: var(--green-soft); box-shadow: none; }
.media__frame { position: relative; aspect-ratio: 16/9; background: #0f2418; box-shadow: 22px 22px 0 var(--green-soft); }
.media__frame iframe { width: 100%; height: 100%; border: 0; }

.faq { background: var(--soft); }
.faq__grid { display: grid; grid-template-columns: .68fr 1.32fr; gap: 90px; align-items: start; }
.faq .section-heading > p:not(.kicker) { margin: 24px 0 20px; color: var(--muted); }
.faq__list { border-top: 1px solid #ccd5cb; }
.faq details { border-bottom: 1px solid #ccd5cb; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 4px; list-style: none; font-size: 18px; font-weight: 720; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #c4cec3; border-radius: 50%; color: var(--green-dark); font-style: normal; transition: transform .25s, background .25s; }
/* Иконки рисуем контуром, а не знаком шрифта: у «+», «←», «→» и «×»
   отрисованная часть смещена внутри строки, и в кружке или квадрате они
   стояли не по центру. У контура центр совпадает с центром кнопки. */
.faq summary i svg, .review-controls button svg, .lightbox__nav svg, .lightbox__close svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.faq summary i svg { width: 16px; height: 16px; }
.review-controls button svg, .lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__close svg { width: 26px; height: 26px; stroke-width: 1.6; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--green); color: white; border-color: var(--green); }
.faq details p { margin: -8px 0 25px; padding-right: 55px; color: var(--muted); }

.analysis { background: var(--green-dark); color: white; }
.analysis__grid { display: grid; grid-template-columns: 1fr .88fr; gap: 90px; align-items: center; }
.analysis__content h2 { margin: 0 0 25px; max-width: 570px; font-size: clamp(40px, 4.5vw, 64px); line-height: 1; letter-spacing: -.05em; }
.analysis__content > p:not(.kicker) { max-width: 580px; color: rgba(255,255,255,.72); font-size: 17px; }
.analysis__phone { display: flex; flex-direction: column; margin-top: 38px; }
.analysis__phone span { color: rgba(255,255,255,.55); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.analysis__phone a { margin-top: 4px; color: white; font-size: 30px; font-weight: 750; }
.analysis__form { min-height: 520px; padding: 38px; background: white; color: var(--ink); box-shadow: 24px 24px 0 rgba(0,0,0,.1); }
.analysis__form > label:not(.consent) { display: grid; gap: 7px; margin-bottom: 18px; }
.analysis__form > label > span { color: #4f5652; font-size: 13px; font-weight: 720; }
.analysis__form em { margin-left: 7px; color: #8e948f; font-size: 10px; font-style: normal; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.analysis__form input[type="text"], .analysis__form input[type="tel"] { width: 100%; height: 54px; padding: 0 15px; border: 1px solid #cbd3cb; border-radius: 4px; background: #fafbf9; color: var(--ink); outline: none; transition: border .2s, box-shadow .2s; }
.analysis__form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(49,182,49,.11); }
.consent { display: flex; align-items: flex-start; gap: 11px; margin: 5px 0 20px; color: #767d78; font-size: 10.5px; line-height: 1.5; cursor: pointer; }
.consent input { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--green-dark); }
.consent a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.button--form { width: 100%; }
.form-success { display: flex; min-height: 430px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.form-success > span { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-size: 32px; }
.form-success h3 { margin: 20px 0 5px; font-size: 27px; }
.form-success p { color: var(--muted); }

.contacts { padding: 0; background: white; }
.contacts__grid { display: grid; grid-template-columns: .72fr 1.28fr; width: 100%; max-width: none; }
.contacts__content { padding: 90px max(40px, calc((100vw - 1180px)/2)); padding-right: 65px; }
.contacts__content h2 { font-size: clamp(35px, 3.7vw, 53px); }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; margin-top: 42px; }
.contact-list div { border-top: 1px solid var(--line); padding-top: 13px; }
.contact-list span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.contact-list p, .contact-list a { margin: 0; font-size: 15px; font-weight: 650; }
.youtube-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; color: #bd1f1f; font-weight: 720; }
.youtube-link span { display: grid; width: 31px; height: 24px; place-items: center; border-radius: 6px; background: #e92c2c; color: white; font-size: 10px; }
.contacts__map { position: relative; min-height: 600px; overflow: hidden; background: #e8eee7; }
.contacts__map iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 600px; border: 0; filter: saturate(.65) contrast(.96); }
.map-address { position: absolute; z-index: 2; left: 18px; top: 18px; display: grid; max-width: 250px; padding: 13px 16px; border-radius: 5px; background: var(--deep); box-shadow: 0 9px 25px rgba(16,39,25,.24); color: white; line-height: 1.25; pointer-events: none; }
.map-canvas { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 600px; }
.map-canvas canvas { filter: saturate(.65) contrast(.96); }
/* Метка на живой карте: карта держит её на координате, кончик указывает в точку. */
.map-address[data-ymap-marker] { position: relative; left: auto; top: auto; width: min(250px, 78vw); max-width: none; transform: translate(-50%, calc(-100% - 10px)); }
.map-address[data-ymap-marker]::after { content: ""; position: absolute; top: 100%; left: 50%; width: 16px; height: 16px; background: var(--deep); border-radius: 0 0 3px 0; transform: translate(-50%, -50%) rotate(45deg); }
/* Панель масштаба и кнопка маршрута поверх карты. */
.map-zoom { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; overflow: hidden; border-radius: 5px; background: white; box-shadow: 0 6px 18px rgba(16,39,25,.18); }
.map-zoom button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-bottom: 1px solid var(--line); background: white; color: var(--deep); font-size: 20px; line-height: 1; cursor: pointer; }
.map-zoom button:last-child { border-bottom: 0; }
.map-zoom button:hover { background: #f2f5f1; }
.map-route { position: absolute; z-index: 3; top: 18px; left: 18px; padding: 11px 15px; border-radius: 5px; background: var(--deep); color: white; font-size: 12px; font-weight: 600; box-shadow: 0 6px 18px rgba(16,39,25,.2); }
.map-route:hover { background: #16351f; color: white; }
.map-address strong { font-size: 13px; letter-spacing: .04em; }
.map-address span { margin-top: 5px; color: rgba(255,255,255,.72); font-size: 10.5px; line-height: 1.35; }

.footer { padding: 52px 0 42px; background: #102719; color: white; }
.footer__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer__top > a { color: rgba(255,255,255,.7); font-size: 13px; }
.footer__legal { display: grid; grid-template-columns: 1.2fr 1.1fr .8fr; gap: 35px; padding-top: 28px; color: rgba(255,255,255,.48); font-size: 11px; line-height: 1.6; }
.footer__legal p { margin: 0; }
.footer__legal a { color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: 3px; }

.cookie { position: fixed; z-index: 80; right: 24px; bottom: 24px; display: flex; width: min(570px, calc(100% - 48px)); align-items: center; gap: 22px; padding: 18px 20px; background: white; border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(13,31,19,.2); }
.cookie p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.cookie .button { flex: 0 0 auto; }

.lightbox { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 28px 90px; background: rgba(7,18,11,.93); }
.lightbox figure { display: flex; max-width: min(1050px, 90vw); max-height: 92vh; margin: 0; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(92vh - 82px); object-fit: contain; background: white; box-shadow: 0 20px 70px rgba(0,0,0,.35); }
.lightbox figcaption { display: flex; width: 100%; max-width: 850px; gap: 20px; align-items: center; justify-content: space-between; padding: 12px 0 0; color: white; font-size: 12px; }
.lightbox figcaption span { max-width: 600px; color: rgba(255,255,255,.62); text-align: right; }
.lightbox__close, .lightbox__nav { position: fixed; border: 0; background: transparent; color: white; cursor: pointer; }
.lightbox__close { top: 17px; right: 24px; display: grid; place-items: center; padding: 0; }
.lightbox__nav { top: 50%; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255,255,255,.25); transform: translateY(-50%); }
.lightbox__nav:hover { background: white; color: var(--ink); }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }

@media (max-width: 1080px) {
  .header__nav { display: none; }
  .header__contact { margin-left: auto; }
  .hero__inner { gap: 45px; }
  .problem-card { padding-inline: 20px; }
  .contacts__content { padding-left: 38px; }
}

@media (max-width: 850px) {
  .section { padding: 82px 0; }
  .container { width: min(100% - 32px, 700px); }
  .header__inner { min-height: 72px; gap: 14px; }
  .logo { min-width: auto; }
  .logo__copy small { display: none; }
  .header__contact span { display: none; }
  .header__inner > .button { display: none; }
  .hero { min-height: auto; padding-top: 75px; }
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__case { max-width: 500px; }
  .hero__trust { margin-top: 60px; }
  .section-heading--split { grid-template-columns: 1fr; gap: 28px; }
  .section-heading__copy--single { margin: 0; }
  .problem__grid { grid-template-columns: 1fr 1fr; }
  .problem-card:nth-child(3) { border-left: 1px solid var(--line); }
  .services__grid, .trust__grid, .analysis__grid { grid-template-columns: 1fr; }
  .services__extra { align-items: flex-start; flex-direction: column; }
  .process__list { grid-template-columns: 1fr 1fr; }
  .trust__grid { gap: 55px; }
  .media__grid { grid-template-columns: 1fr; gap: 45px; }
  .faq__grid { grid-template-columns: 1fr; gap: 45px; }
  .analysis__grid { gap: 50px; }
  .contacts__grid { grid-template-columns: 1fr; }
  .contacts__content { width: min(100% - 32px, 700px); margin: auto; padding: 80px 0; }
  .contacts__map, .contacts__map iframe { min-height: 450px; }
  .footer__legal { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 26px); }
  .section { padding: 66px 0; }
  .site-header .logo__mark { width: 38px; height: 38px; }
  .logo__copy strong { font-size: 22px; }
  .header__phone { font-size: 14px; }
  h1 { font-size: 42px; }
  .hero { padding-top: 58px; }
  .hero__lead { font-size: 16px; }
  .button--hero { width: 100%; padding-inline: 18px; }
  .hero__case { padding: 25px 22px; }
  .case__result strong { font-size: 34px; }
  .hero__trust { flex-wrap: wrap; gap: 10px; }
  .section-heading h2, .contacts h2 { font-size: 37px; }
  .problem__grid { grid-template-columns: 1fr; }
  .problem-card, .problem-card:nth-child(3) { min-height: auto; padding: 24px 20px 28px; border-left: 1px solid var(--line); }
  .problem-card h3 { margin-top: 25px; }
  .service-card { padding: 28px 22px; }
  .service-card__head { align-items: flex-start; }
  .service-card h3 { font-size: 23px; }
  .text-link { white-space: normal; }
  .process__list { grid-template-columns: 1fr; margin-top: 42px; }
  .process__list li { min-height: auto; padding-bottom: 35px; }
  .trust__facts { grid-template-columns: 1fr; }
  .fact { min-height: 150px; }
  .review-controls { justify-content: flex-start; }
  .reviews__track { grid-auto-columns: 86%; }
  .review-card { min-height: 555px; }
  .review-card__image { height: 360px; }
  .analysis__content h2 { font-size: 43px; }
  .analysis__phone a { font-size: 25px; }
  .analysis__form { min-height: 500px; padding: 25px 20px; box-shadow: 10px 10px 0 rgba(0,0,0,.1); }
  .contact-list { grid-template-columns: 1fr; }
  .contacts__map, .contacts__map iframe { min-height: 380px; }
  .footer__top { align-items: flex-start; gap: 20px; }
  .footer__top .logo__copy small { display: block; }
  .cookie { right: 13px; bottom: 13px; width: calc(100% - 26px); align-items: stretch; flex-direction: column; gap: 13px; }
  .cookie .button { width: 100%; }
  .lightbox { padding: 60px 12px 85px; }
  .lightbox figure { max-width: 100%; }
  .lightbox img { max-height: calc(90vh - 110px); }
  .lightbox figcaption { align-items: flex-start; flex-direction: column; gap: 3px; }
  .lightbox figcaption span { text-align: left; }
  .lightbox__nav { top: auto; bottom: 14px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 62px); }
  .lightbox__nav--next { right: calc(50% - 62px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.cookie[hidden] { display: none; }

/* --- Знак разработчика в подвале ------------------------------------------
   Стоит слева в уже существующей нижней строке — отдельной строки не заводит.
   Знак перекрашен под палитру сайта (зелёный и светлый). */
.dev-credit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
}
.dev-credit img { flex: 0 0 auto; display: block; width: auto; height: 32px; }
.dev-credit span { font-size: 14px; font-weight: 600; line-height: 1.15; white-space: nowrap;
  /* Выключка своя: подпись стоит в чужой строке подвала и иначе
     наследует её выравнивание — у «Полесья» так уезжала вправо. */
  text-align: left; }
.dev-credit:hover { color: var(--green); text-decoration: none; }

/* Нижняя строка подвала: знак разработчика встаёт первой колонкой сетки.
   Ниже 1080px строка и так распадается на отдельные — там знак просто
   становится первым в столбце, тесниться в две колонки ему негде. */
@media (min-width: 1081px) {
  .footer__legal { grid-template-columns: auto 1.2fr 1.1fr .8fr; gap: 28px; align-items: center; }
}
.footer__legal .dev-credit { text-decoration: none; }
