/* Стиль по референсу ecopuur.be: светлая основа, тёмные блоки с дугами, засечные заголовки,
   кнопки-«таблетки». Фирменные цвета LION'S CONCEPT — почти чёрный и золото из логотипа. */
:root {
  /* «Тепло, сохранённое в зелёном доме»: хвойный зелёный + золото-жар из логотипа */
  --pine: #123628;         /* хвоя — тёмные блоки */
  --pine-deep: #0b241a;    /* подвал */
  --moss: #2f5d46;         /* мох — наведение, второстепенное */
  --lichen: #eef2ec;       /* лишайник — светлый фон вместо кремового */
  --ink: #10201a;          /* текст: тёмный с зелёным оттенком, не нейтрально-чёрный */
  --paper: #ffffff;
  --field: #e6ede6;        /* поля формы */
  --muted: #4d5e55;
  --line: rgba(16, 32, 26, 0.16);
  --gold: #c3aa6c;         /* жар — золото из логотипа */
  --gold-text: #7d6533;    /* золото для текста на белом */
  --on-dark: #eef2ec;
  --on-dark-muted: rgba(238, 242, 236, 0.72);
  --on-dark-line: rgba(238, 242, 236, 0.18);
  --display: 'Commissioner', system-ui, sans-serif;  /* заголовки: ось FLAR = 100 */
  --sans: 'Commissioner', system-ui, sans-serif;     /* текст: FLAR = 0 */
  --pad: clamp(16px, 5.5vw, 80px);
  --curve: clamp(44px, 7vw, 110px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* Телефон не должен листаться вбок: дуги секций шире экрана (left/right: -15%).
   iPhone (Safari) игнорирует overflow-x у body, поэтому обрезаем и у html, и у самих секций с дугами.
   clip, в отличие от hidden, не ломает прилипающую шапку. */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
.curve-top, .curve-bottom { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ——— Общие элементы ——— */
h1, h2, h3, .price, .stats strong, .review p {
  font-family: var(--display);
  font-variation-settings: "FLAR" 100;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.title { font-size: clamp(34px, 4.4vw, 64px); max-width: 920px; }
.lead { color: var(--muted); max-width: 640px; margin-top: 22px; }
.num { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 500 15px var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-dark { background: var(--pine); color: var(--paper); }
.btn-dark:hover { background: var(--moss); }
.btn-gold { background: var(--gold); color: var(--pine); }
.btn-gold:hover { background: #d6c08a; }
.btn-outline { border-color: var(--pine); color: var(--pine); }
.btn-outline:hover { background: var(--pine); color: var(--paper); }
.btn-outline-light { border-color: rgba(238, 242, 236, 0.7); color: var(--on-dark); }
.btn-outline-light:hover { background: var(--on-dark); color: var(--pine); }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
/* Видимый фокус для навигации с клавиатуры */
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--gold);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.section { position: relative; padding: clamp(72px, 9vw, 130px) var(--pad); background: var(--sec-bg, var(--paper)); }
.dark { --sec-bg: var(--pine); background: var(--sec-bg); color: var(--on-dark); position: relative; }

/* Дуги между секциями: блок «выгибается» вверх в предыдущую секцию */
.curve-top::before {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  top: calc(1px - var(--curve));
  height: var(--curve);
  background: var(--sec-bg, var(--paper));
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}
.curve-bottom::after {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -1px;
  height: var(--curve);
  background: var(--paper);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}

/* ——— Шапка ——— */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--pad);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo-mark { width: 46px; height: 46px; object-fit: contain; }
.logo-name { font-family: var(--display); font-variation-settings: "FLAR" 100; font-weight: 600; font-size: 18px; letter-spacing: 0.08em; color: var(--pine); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; white-space: nowrap; transition: color .2s; }
.nav a:hover { color: var(--gold-text); }
.nav .nav-contact { display: none; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px 0 6px 6px; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--pine); margin: 5px 0; }

/* Переключатель языков */
.lang { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang button {
  background: none;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font: 600 11px var(--sans);
  letter-spacing: 0.08em;
  padding: 8px 9px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.lang button:first-child { border-left: 0; }
.lang button:hover { color: var(--ink); }
.lang button.active { color: var(--paper); background: var(--pine); }

/* ——— Главный экран: фото на весь экран, затемнение, крупный заголовок ——— */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px var(--pad) calc(var(--curve) + 90px);
  background: var(--pine);
  color: var(--on-dark);
}
.hero-content { max-width: 780px; }
.hero h1 { font-size: clamp(44px, 6vw, 96px); font-weight: 400; margin-bottom: 28px; }
.hero-text { max-width: 560px; color: rgba(238, 242, 236, 0.88); font-size: 17px; margin-bottom: 34px; }
/* Направления под кнопками: тонкий золотой контур, как иконки шагов */
.hero-icons { display: flex; gap: 14px; margin-top: 40px; list-style: none; padding: 0; }
.hero-icons li {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(11, 36, 26, .35);
}
.hero-icons svg { width: 36px; height: 36px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Слайд-шоу фона: новое фото плавно проявляется и медленно приближается (is-zoom),
   старое растворяется без рывка — масштаб возвращается тем же медленным переходом */
.hero-slides { position: absolute; inset: 0; z-index: -1; }
.hero-slide {
  position: absolute;
  inset: 0;
  background: 68% center / cover no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.5s ease, transform 6s cubic-bezier(.25, .6, .3, 1);
}
.hero-slide.is-active { opacity: 1; }
/* Слайд 3: кадр чуть левее центра — видны кондиционер, вентиляция и часть котла */
.hero-slide--left { background-position: 38% center; }
.hero-slide.is-zoom { transform: scale(1.1); }
/* Фото целиком: резкий кадр по ширине экрана, под ним — та же картинка размытой подложкой; приближение слабее */
.hero-slide--whole::before,
.hero-slide--whole::after { content: ""; position: absolute; inset: 0; background: var(--img) center / cover no-repeat; }
.hero-slide--whole::before { inset: -60px; filter: blur(30px) brightness(.75); }
.hero-slide--whole::after {
  background-size: contain;
  /* верх и низ кадра плавно растворяются в подложке — без резкой границы */
  /* маска ровно по высоте кадра (фото 2048×768 → высота = 37.5% ширины) */
  -webkit-mask: linear-gradient(transparent, #000 16%, #000 84%, transparent) center / 100% 37.5vw no-repeat;
          mask: linear-gradient(transparent, #000 16%, #000 84%, transparent) center / 100% 37.5vw no-repeat;
}
.hero-slide--whole.is-zoom { transform: scale(1.03); }
/* Затемнение: слева сильнее — под текстом, справа видно фото */
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 36, 26, .9) 0%, rgba(11, 36, 26, .62) 45%, rgba(11, 36, 26, .2) 100%),
    linear-gradient(0deg, rgba(11, 36, 26, .55) 0%, transparent 35%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-zoom { transform: none; }
}

/* ——— Услуги и цены: строки как «Alle technieken» у референса ——— */
.services .title { margin-bottom: clamp(36px, 5vw, 64px); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 320px; /* фиксированная колонка цены — описания выровнены */
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--pine);
}
.service h3 { font-size: clamp(24px, 2.4vw, 34px); }
.service p { color: var(--muted); max-width: 520px; }
.service-side { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.price { font-size: 24px; white-space: nowrap; }
/* Цена и под ней мелкая приписка «+ выезд» — шрифтом описания */
.price-wrap { display: flex; flex-direction: column; align-items: flex-end; }
.price-note { color: var(--muted); font-size: 15px; line-height: 1.4; margin-top: 4px; }
.note { margin-top: 26px; font-size: 14px; color: var(--muted); }

/* ——— Обо мне: тёмный блок с чек-листом ——— */
.about { padding: clamp(80px, 9vw, 130px) var(--pad); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); }
.about-photo {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(238, 242, 236, 0.06);
  border: 1px solid var(--on-dark-line);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text .title { margin-bottom: 28px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--on-dark-line); }
.stats strong { display: block; font-weight: 400; font-size: clamp(34px, 3.6vw, 48px); color: var(--gold); line-height: 1.1; }
.stats span { font-size: 13px; color: var(--on-dark-muted); }
.about-text p { color: var(--on-dark-muted); margin-bottom: 18px; }
.checks { list-style: none; margin: 30px 0 36px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* ——— Как я работаю: этапы на линии ——— */
.steps .title { margin-bottom: clamp(48px, 6vw, 80px); }
.steps-wrap { position: relative; }
.step-list { list-style: none; }
.step-track { position: absolute; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--lichen); }
.step-track i {
  display: block;
  width: 100%;
  height: calc(var(--p, 0) * 100%);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--moss), var(--gold));
  box-shadow: 0 0 14px rgba(195, 170, 108, .45);
}
.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 4vw, 64px);
  padding-bottom: clamp(56px, 8vw, 100px);
}
.step:last-child { padding-bottom: 0; }
.step-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: background .4s, border-color .4s, color .4s, box-shadow .4s;
}
.step-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.step.on .step-icon { background: var(--pine); border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 6px rgba(195, 170, 108, .18); }
.step-head h3 { font-size: clamp(26px, 2.8vw, 40px); margin-top: 8px; opacity: .4; transition: opacity .4s; }
.step.on .step-head h3 { opacity: 1; }
.step-body { padding-top: 26px; }
.step-body p { color: var(--muted); max-width: 440px; margin-bottom: 20px; }

/* ——— Работы: по центру вертикальное видео 9:16, слева 2 фото, справа 2 фото ——— */
.works-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
/* Высоту задаёт видео (ширина колонки × 16/9), фото делят её на две строки */
.works-grid { display: grid; grid-template-columns: 1fr minmax(0, .62fr) 1fr; gap: 16px; }
.works-photos { display: contents; }
.works-photos > :nth-child(1) { grid-column: 1; grid-row: 1; }
.works-photos > :nth-child(2) { grid-column: 1; grid-row: 2; }
.works-photos > :nth-child(3) { grid-column: 3; grid-row: 1; }
.works-photos > :nth-child(4) { grid-column: 3; grid-row: 2; }
.works-video { grid-column: 2; grid-row: 1 / 3; position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; }
.works-video video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.work-tile {
  position: relative;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    url('images/logo-emblem.png') center / auto 48% no-repeat,
    var(--pine);
  cursor: default;
}
/* Пока фото нет — бледный лев на тёмно-зелёном */
.work-tile:not(.has-photo)::after { content: ""; position: absolute; inset: 0; background: rgba(18, 54, 40, .72); }
.work-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s, transform .6s ease; }
.work-tile.has-photo { cursor: zoom-in; }
.work-tile.has-photo img { opacity: 1; }
.work-tile.has-photo:hover img { transform: scale(1.04); }
.work-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* Клетка с роликом: обложка + круглая золотая кнопка play по центру */
.work-tile--video.has-photo { cursor: pointer; }
.work-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 36, 26, .55);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  backdrop-filter: blur(4px);
  transition: transform .3s, background .3s;
}
.work-play svg { width: 26px; height: 26px; margin-left: 3px; }
.work-tile--video:hover .work-play { transform: scale(1.08); background: rgba(11, 36, 26, .75); }

/* Фото крупно: почти весь экран (до 92% ширины и 88% высоты), затемнённый фон.
   Лупа «+» — увеличить фото, «−» — вернуть; клик по фону закрывает */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(6, 18, 13, .92);
}
.lightbox[hidden] { display: none; }
.lightbox figure { display: grid; gap: 12px; justify-items: center; }
.lb-frame { overflow: hidden; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); line-height: 0; }
.lightbox img, .lightbox video { display: block; max-width: 92vw; max-height: 88vh; }
.lightbox img { cursor: zoom-in; transition: transform .3s ease; }
.lightbox img.zoomed { cursor: zoom-out; transition: transform .3s ease, transform-origin .08s linear; }
.lightbox video { background: #000; }
.lightbox [hidden] { display: none; }
.lightbox figcaption { color: var(--on-dark); font-size: 16px; text-align: center; }
.lightbox figcaption:empty { display: none; }
.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--on-dark-line);
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
}
.lb-close svg { width: 20px; height: 20px; display: block; margin: auto; }
.lb-close:hover { background: var(--moss); }
body.lb-open { overflow: hidden; }

/* ——— Отзывы: только плашка-ссылка на профиль Google по центру ——— */
.reviews { --sec-bg: var(--lichen); padding-top: clamp(48px, 6vw, 80px); padding-bottom: calc(var(--curve) + clamp(40px, 5vw, 64px)); }
.google-card {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  margin: 0 auto;
  padding: 18px 26px 18px 18px;
  border-radius: 18px;
  background: var(--paper);
  transition: box-shadow .3s;
}
.google-card:hover { box-shadow: 0 10px 30px rgba(16, 32, 26, .1); }
.google-logo { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--lichen); }
.google-logo svg { width: 26px; height: 26px; }
.google-text { display: flex; flex-direction: column; gap: 2px; }
.google-text strong { font-weight: 600; font-size: 17px; }
.google-text span { color: var(--muted); font-size: 14px; }
.google-card .link { margin-left: 12px; white-space: nowrap; }

/* ——— Призыв ——— */
.cta { padding: clamp(80px, 9vw, 120px) var(--pad) 40px; text-align: center; }
.cta .title { margin: 0 auto 34px; }
.cta .buttons { justify-content: center; }

/* ——— Заявка (lead-форма по образцу «Let's talk») ——— */
.contact { padding: clamp(60px, 7vw, 100px) var(--pad) calc(var(--curve) + 80px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info .title { margin-bottom: 22px; }
.contact-info > p { color: var(--on-dark-muted); max-width: 440px; }
.contact-info h3 { font-size: 24px; margin: 36px 0 14px; }
.expect { list-style: none; display: grid; gap: 10px; color: var(--on-dark-muted); }
.expect li { position: relative; padding-left: 22px; }
.expect li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.contact-list { list-style: none; margin-top: 40px; }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--on-dark-line); font-size: 15px; }
.contact-list li > span:first-child { color: var(--on-dark-muted); font-size: 13px; padding-top: 1px; }
.contact-list a:hover { color: var(--gold); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.form label:not(.check):not(.pill) > span::after, .choice legend span::after { content: " *"; color: var(--gold); }
.form [hidden] { display: none; }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font: 400 15px var(--sans);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2310201a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(195, 170, 108, .35); }
.form.checked :invalid:not(label) { border-color: #e28c74; }
.form .check { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; color: var(--on-dark-muted); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--gold); }
.form.checked .check input:invalid { outline: 2px solid #e28c74; outline-offset: 2px; }
.form-error { color: #f0a58f; font-size: 14px; }
.form .btn { justify-self: start; margin-top: 10px; padding: 18px 40px; font-size: 17px; font-weight: 600; border-radius: 14px; }

/* Тип клиента: два варианта-переключателя вместо списка */
.choice { border: 0; min-width: 0; }
.choice legend { margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .pill {
  flex-direction: row; justify-content: center; align-items: center;
  padding: 15px 18px; border: 1px solid transparent; border-radius: 12px;
  background: var(--field); color: var(--ink); font-size: 15px; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.form .pill:has(input:checked) { background: var(--gold); border-color: var(--gold); color: var(--pine); font-weight: 600; }
.form .pill:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.form.checked .choice:has(input:invalid) .pill { border-color: #e28c74; }

/* ——— Подвал ——— */
.footer { --sec-bg: var(--pine-deep); position: relative; background: var(--sec-bg); color: var(--on-dark-muted); padding: 40px var(--pad) 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 70px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 380px; font-size: 14px; }
.footer h4 { display: inline-block; margin-bottom: 18px; padding-bottom: 4px; border-bottom: 1px solid var(--gold); color: var(--on-dark); font-weight: 600; font-size: 15px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--on-dark-line); font-size: 13px; }
.footer-bottom nav { display: flex; gap: 24px; }

/* Кнопка связи: зелёный WhatsApp-круг, над ним раскрываются телефон, почта и WhatsApp */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; }
.fab-main {
  position: relative; display: grid; place-items: center;
  width: 60px; height: 60px; border: 0; border-radius: 50%;
  background: #25d366; color: #fff; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: background .25s, transform .25s;
}
.fab-main svg { position: absolute; width: 28px; height: 28px; transition: opacity .2s, transform .25s; }
.fab-x { opacity: 0; transform: rotate(-90deg); }
.fab.open .fab-main { background: var(--pine); }
.fab.open .fab-wa { opacity: 0; transform: rotate(90deg); }
.fab.open .fab-x { opacity: 1; transform: none; color: var(--gold); }
.line { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* padding-bottom — «мостик» для мыши между кнопкой и меню, чтобы меню не закрывалось */
.fab-menu {
  position: absolute; right: 4px; bottom: 100%;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  padding-bottom: 14px;
  visibility: hidden; opacity: 0; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.fab.open .fab-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
.fab-item { display: flex; align-items: center; gap: 12px; }
.fab-label {
  padding: 8px 14px; border-radius: 10px;
  background: var(--paper); color: var(--pine);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.fab-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--pine); color: var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.fab-icon svg { width: 24px; height: 24px; }
.fab-icon--wa { background: #25d366; color: #fff; }
.fab-item:hover .fab-icon, .fab-item:focus-visible .fab-icon { transform: scale(1.08); }
.fab-item:focus-visible { outline: none; }
.fab-item:focus-visible .fab-label { outline: 2px solid var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .fab-menu, .fab-main svg { transition: none; }
}

/* ——— Адаптив ——— */
/* ——— Страница «Виды отопления» ——— */
.nav a[aria-current="page"] { color: var(--gold-text); }
.page-hero { padding: 170px var(--pad) calc(var(--curve) + 70px); }
.page-hero h1 { font-size: clamp(40px, 5vw, 76px); font-weight: 400; max-width: 900px; margin-bottom: 24px; }
.page-hero .hero-text { margin-bottom: 0; }
/* Шапка с фото (как главный экран): фото на весь блок, затемнение, текст по центру высоты */
.page-hero--photo {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100vh, 900px);
  display: flex; flex-direction: column; justify-content: center;
}
/* На телефоне в кадре камин с огнём, а не лампа (у второго фото — своя точка, как на главной) */
@media (max-width: 640px) { .page-hero--photo .hero-slide:not(.hero-slide--left) { background-position: 34% center; } }

.systems { padding-top: clamp(40px, 5vw, 70px); }
.system-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.system {
  display: flex; flex-direction: column; gap: 22px;
  padding: 30px 28px;
  background: var(--lichen);
  border-radius: 22px;
}
.system-head { display: flex; align-items: center; gap: 16px; }
.system-icon {
  display: grid; place-items: center; flex: none;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--pine); color: var(--gold);
}
.system-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.system h2 { font-size: 28px; }
.system-desc { color: var(--muted); }

/* Три показателя: экономия крупно, комфорт звёздами, цена знаками € */
.system-facts { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.system-facts div { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.system-facts dt { font-size: 15px; color: var(--muted); }
.system-facts .save { font-family: var(--display); font-variation-settings: "FLAR" 100; font-size: 26px; font-weight: 500; color: var(--moss); line-height: 1; }
.system-facts .save span { font-size: 15px; color: var(--muted); font-family: var(--sans); font-variation-settings: normal; }
.stars { display: flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; fill: var(--gold); }
.stars svg.off { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round; }
.euros { font-weight: 600; letter-spacing: 0.08em; color: var(--pine); }
.euros .off { color: rgba(16, 32, 26, .22); }

.system-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; flex: 1; }
.system-lists h3 { font-size: 17px; margin-bottom: 10px; }
.system-lists ul { list-style: none; display: grid; gap: 8px; font-size: 15px; line-height: 1.4; }
.system-lists li { position: relative; padding-left: 22px; }
.system-lists li::before { position: absolute; left: 0; top: -1px; font-weight: 600; }
.pros li::before { content: "+"; color: var(--moss); }
.cons li::before { content: "–"; color: var(--gold-text); }
.system .btn { align-self: flex-start; }
.systems-note { margin-top: 32px; max-width: 720px; font-size: 14px; color: var(--muted); }
.cta--end { padding-bottom: calc(var(--curve) + 50px); } /* перед подвалом: его дуга не перекрывает кнопки */
.cta-text { max-width: 560px; margin: -14px auto 30px; color: var(--on-dark-muted); }

/* Схема тёплого пола в карточке: вид сверху */
.ufh { display: grid; gap: 12px; padding: 14px; background: var(--paper); border-radius: 16px; }
.ufh-svg { display: block; width: 100%; height: auto; }
.ufh-3d { display: none; position: relative; aspect-ratio: 4 / 3; touch-action: pan-y; cursor: grab; }
.ufh-3d:active { cursor: grabbing; }
.ufh.is-3d .ufh-3d { display: block; }
.ufh.is-3d .ufh-svg { display: none; }
.ufh--3d-only:not(.is-3d) { display: none; }
.ufh-3d canvas { display: block; width: 100%; height: 100%; }
.ufh-3d-labels { position: absolute; inset: 0; pointer-events: none; }
.ufh-3d-labels > div { width: 0; height: 0; }
.ufh-3d-label::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 6px; background: var(--pine); }
.ufh-3d-label {
  position: absolute; left: 0; bottom: 6px; transform: translateX(-50%);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--pine); color: var(--on-dark); font-size: 12px; font-weight: 500; line-height: 1.4;
}
.ufh-3d-hint {
  position: absolute; right: 6px; bottom: 6px; z-index: 1; pointer-events: none;
  padding: 3px 10px; border-radius: 999px; background: rgba(238, 242, 236, .92);
  font-size: 12px; color: var(--muted); transition: opacity .4s;
}
.ufh-3d.used .ufh-3d-hint { opacity: 0; }
.ufh-3d-label--down { bottom: auto; top: 6px; }
.ufh-3d-label--down::after { top: auto; bottom: 100%; }
.ufh-label { font-family: var(--sans); font-size: 11px; font-weight: 500; fill: var(--ink); }
.ufh-label--c { text-anchor: middle; font-size: 10px; }
.ufh-label--s { font-size: 10px; }
.ufh-lead { fill: none; stroke: var(--muted); stroke-width: 1; }
.ufh-dot { fill: var(--ink); }
.ufh-pipe { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.ufh-flow { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1.5 13; opacity: .85; animation: ufh-flow 1.6s linear infinite; }
@keyframes ufh-flow { to { stroke-dashoffset: -14.5; } }
.ufh-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.ufh-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.ufh-legend i { width: 18px; height: 5px; border-radius: 3px; }
.ufh-legend .hot { background: #c98a3a; }
.ufh-legend .cool { background: #6f9a86; }
.ufh-legend .air { background: #9fbccb; }
.ufh-legend .warm { background: #d9a24e; }
.ufh-legend .fresh { background: #8fc0a4; }
.ufh-cap { font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 520px) {
  .ufh { padding: 12px 10px; margin: 0 -8px; }
  .ufh-label { font-size: 12.5px; }
  .ufh-label--c, .ufh-label--s { font-size: 11.5px; }
}
/* Карточки систем друг под другом во всю ширину, каждая горизонтальная: 3D-схема слева, текст справа */
@media (min-width: 800px) {
  .system-grid { grid-template-columns: minmax(0, 1fr); }
  .system--wide {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 40px);
    grid-template-rows: auto auto auto 1fr auto; align-content: start;
  }
  .system--wide .system-head { grid-column: 1 / -1; }
  .system--wide .ufh { grid-column: 1; grid-row: 2 / 6; align-self: start; }
  .system--wide > :not(.system-head):not(.ufh) { grid-column: 2; }
  .system--wide .btn { justify-self: start; }
  .system--wide .ufh-3d { aspect-ratio: 2 / 1; } /* низкая широкая схема — карточка короче по высоте */
}
@media (prefers-reduced-motion: reduce) {
  .ufh-flow { animation: none; }
}

@media (max-width: 420px) {
  .system { padding: 24px 20px; }
  .system-lists { grid-template-columns: 1fr; }
}
/* ——— Вакансии: кружочек с числом в меню и страница careers.html ——— */
.nav-badge {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 3px;
  border-radius: 9px; background: var(--gold); color: var(--pine);
  font-size: 11px; font-weight: 700; line-height: 1;
  transform: translateY(-8px);  /* чуть выше и правее текста — «по диагонали» */
}
.nav-badge[hidden] { display: none; }
.nav-badge--lg { min-width: 30px; height: 30px; border-radius: 15px; font-size: 16px; transform: translateY(-14px); font-family: var(--sans); font-variation-settings: normal; }

.jobs { padding-top: clamp(40px, 5vw, 70px); }
.jobs-heading { font-size: clamp(28px, 3vw, 40px); margin-bottom: 32px; }
.job-list { display: grid; gap: 24px; }
.job { display: grid; grid-template-columns: minmax(260px, 1fr) 1.7fr; gap: clamp(24px, 3.5vw, 44px); padding: clamp(20px, 3vw, 32px); background: var(--lichen); border-radius: 22px; }
.job-body { display: grid; gap: 28px; align-content: start; padding: clamp(4px, 1vw, 12px) 0; }
/* Место под фото: 4:3 (как у фотоаппарата) по центру карточки по высоте — фото видно почти целиком; без файла видна рамка со значком камеры */
.job-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; align-self: center; border-radius: 16px; overflow: hidden; background: var(--field); border: 1.5px dashed rgba(47, 93, 70, .35); color: var(--moss); }
.job-photo svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; opacity: .6; }
.job-photo:has(img) { border-color: transparent; }
.job-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.job h2 { font-size: clamp(28px, 3vw, 40px); }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; list-style: none; }
.job-meta li { padding: 5px 12px; border-radius: 8px; background: var(--paper); color: var(--pine); font-size: 14px; font-weight: 500; }
.job-summary { color: var(--muted); max-width: 680px; }
.job-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.job-cols h3 { font-size: 18px; margin-bottom: 12px; }
.job-cols ul { list-style: none; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.job-cols li { position: relative; padding-left: 18px; }
.job-cols li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.job-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--muted); font-size: 15px; }
.job-actions span a { color: var(--pine); font-weight: 600; border-bottom: 1px solid var(--gold); }
.job-none { color: var(--muted); }
@media (max-width: 900px) {
  .job { grid-template-columns: 1fr; }
  .job-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .job-cols { grid-template-columns: 1fr; gap: 20px; }
}

/* ——— Формы для админ-панели: отклик на вакансию, «заявка отправлена» ——— */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* ловушка для спам-ботов */
.form-sent { padding: 32px; border-radius: 18px; background: rgba(238, 242, 236, .08); border: 1px solid var(--on-dark-line); }
.form-sent h3 { font-size: 28px; margin-bottom: 12px; color: var(--gold); }
.form-sent p { color: var(--on-dark-muted); }
.form-sent[hidden] { display: none; }

.job-dialog-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.job-dialog-close:hover { background: var(--field); }
.job-dialog-close svg { width: 18px; height: 18px; }

.job-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: clamp(24px, 4vw, 36px); border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); }
.job-dialog::backdrop { background: rgba(11, 36, 26, .6); }
.job-form h2 { font-size: 30px; }
.job-form-vacancy { margin-top: 6px; color: var(--gold-text); font-weight: 600; }
.form.job-form label.optional:not(.pill) > span::after { content: none; }
.job-form .form-error { color: #b4543c; }
.job-sent p { font-size: 18px; font-weight: 500; padding: 12px 36px 4px 0; }
.job-sent[hidden], .job-form[hidden] { display: none; }

/* Окно «Спасибо, заявка отправлена» посередине экрана */
.sent-dialog { width: min(440px, calc(100vw - 32px)); margin: auto; padding: 36px 32px 30px; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.sent-dialog::backdrop { background: rgba(11, 36, 26, .6); }
.sent-dialog[open] { animation: sent-in .35s cubic-bezier(.2, .8, .3, 1.2); }
@keyframes sent-in { from { opacity: 0; transform: scale(.92); } }
.sent-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--pine); color: var(--gold); box-shadow: 0 0 0 8px rgba(195, 170, 108, .2); }
.sent-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sent-dialog h2 { font-size: 28px; margin-bottom: 12px; }
.sent-dialog p { color: var(--muted); margin-bottom: 24px; }
.sent-dialog .btn { padding: 14px 44px; font-size: 16px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .sent-dialog[open] { animation: none; } }
.form .btn:disabled { opacity: .6; cursor: progress; }

/* Семь пунктов меню: на средних экранах плотнее, остаётся только эмблема */
@media (max-width: 1540px) and (min-width: 1221px) {
  .header { gap: 20px; }
  .nav { gap: 18px; font-size: 14px; }
  .logo-name { display: none; }
}

@media (max-width: 1220px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 80px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px var(--pad); border-top: 1px solid var(--line); }
  .nav a + a::before { display: none; }
  .nav .nav-contact { display: flex; }
}
@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; gap: 10px; }
  .service-side { justify-content: space-between; margin-top: 8px; }
  .price-wrap { align-items: flex-start; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .works-head { flex-direction: column; align-items: flex-start; }
  .google-card { display: grid; grid-template-columns: 52px 1fr; gap: 10px 16px; width: auto; margin-left: 0; }
  .google-card .link { grid-column: 2; justify-self: start; margin-left: 0; }
  /* Телефон/планшет: 2 фото — видео во всю ширину (не выше экрана) — 2 фото */
  .works-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .works-photos > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .works-photos > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .works-photos > :nth-child(3) { grid-column: 1; grid-row: 3; }
  .works-photos > :nth-child(4) { grid-column: 2; grid-row: 3; }
  .works-photos > * { aspect-ratio: 1; }
  .works-video { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: min(100%, calc(80svh * 9 / 16)); }
  .lightbox img, .lightbox video { max-width: 96vw; max-height: 82vh; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 20px; }
  .step-icon { width: 44px; height: 44px; }
  .step-icon svg { width: 20px; height: 20px; }
  .step-head h3 { margin-top: 4px; }
  .step-body { grid-column: 2; padding-top: 6px; }
}
@media (max-width: 640px) {
  .hero-slide { background-position: 72% center; }
  .hero-slide--left { background-position: 26% center; }
  /* На телефоне фото во весь экран, кадр левее — видны улица, дом и тепловой насос */
  .hero-slide--whole::after { background-size: cover; background-position: 40% center; -webkit-mask: none; mask: none; }
  /* На телефоне текст идёт на всю ширину — затемнение равномерное, чтобы светлые фото не спорили с текстом */
  .hero-slides::after { background: linear-gradient(0deg, rgba(11, 36, 26, .8) 0%, rgba(11, 36, 26, .6) 100%); }
  .header-cta { display: none; }
  .form { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .stats { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .fab { right: 16px; bottom: 16px; }
}
@media (max-width: 480px) {
  .header { gap: 10px; }
  .logo { gap: 8px; }
  .logo-name { font-size: 15px; letter-spacing: 0.04em; }
  .logo-mark { width: 40px; height: 40px; }
  .lang button { padding: 7px 6px; letter-spacing: 0.04em; }
}
/* 5 языков + меню не помещаются рядом с названием — остаётся эмблема */
@media (max-width: 440px) {
  .logo-name { display: none; }
}
