/* ============ WERTA — вентиляция и кондиционирование ============ */
/* Палитра: светлый фон + один инженерный синий акцент (стиль Kampmann/Systemair) */
:root {
  /* фирменные цвета из логотипа WERTA: тёмно-синий круг + яркий голубой */
  --accent: #1493d6;
  --accent-dark: #0e6da3;
  --navy: #152744;
  --ink: #14243d;
  --ink-soft: #4c5a68;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --line: #e3e8ed;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 34, 46, 0.08);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

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

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

h1, h2, h3 { line-height: 1.2; font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section-sub { color: var(--ink-soft); max-width: 640px; margin-bottom: 40px; font-size: 18px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; font-size: 26px; font-weight: 800; letter-spacing: .06em; color: var(--ink); text-decoration: none; }
.logo b { color: var(--accent); }
.logo__mark { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; }
.logo__text { line-height: 1.1; }
.logo small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--ink-soft); text-transform: uppercase; }
.nav { display: flex; gap: 10px; margin-left: auto; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 9px 16px; border-radius: 11px; background: #eef3f8;
  box-shadow: 0 3px 0 #c9d6e2, 0 4px 9px rgba(20,36,61,.10);
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease;
}
.nav a:hover {
  color: var(--accent); background: #e6f1fb;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #b7cde3, 0 9px 16px rgba(20,36,61,.16);
}
.nav a:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 #b7cde3, 0 1px 3px rgba(20,36,61,.16);
}
.header__contact { display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--accent); }
.btn--header { padding: 11px 20px; font-size: 14px; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(100deg, rgba(11,20,37,.92) 18%, rgba(16,35,62,.62) 52%, rgba(11,20,37,.42) 100%),
    url('../img/hero.jpg') center/cover no-repeat;
  color: #fff;
  padding: 110px 0 90px;
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); max-width: 720px; margin-bottom: 20px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero p { font-size: clamp(17px, 2vw, 21px); max-width: 560px; margin-bottom: 36px; color: rgba(255,255,255,.92); text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.hero .btn--ghost:hover { background: #fff; color: var(--accent); }
.hero__badges { display: flex; gap: 34px; margin-top: 56px; flex-wrap: wrap; }
.hero__badge b { display: block; font-size: 30px; }
.hero__badge span { font-size: 14px; color: rgba(255,255,255,.75); }

/* ---------- Карточки услуг ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__icon { width: 52px; height: 52px; margin-bottom: 18px; color: var(--accent); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.card__more { margin-top: 18px; color: var(--accent); font-weight: 700; font-size: 15px; }

/* ---------- Типы объектов ---------- */
.objects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.object {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/10; display: flex; align-items: flex-end;
  color: #fff; text-decoration: none;
}
.object::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,25,40,.82));
}
.object > svg, .object > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.object b { position: relative; z-index: 1; padding: 18px 20px; font-size: 19px; }

/* ---------- Портфолио ---------- */
.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.work { border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 1px solid var(--line); transition: box-shadow .2s ease, transform .2s ease; }
.work:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.work__banner { position: relative; aspect-ratio: 16/10; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.work__glyph { width: 62px; height: 62px; color: #fff; }
.work__cat { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.93); color: var(--accent-dark); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.work__img { aspect-ratio: 16/10; background: var(--bg-soft); }
.work__img svg, .work__img img, .work__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work__body { padding: 16px 20px 20px; }
.work__body b { font-size: 17px; display: block; }
.work__addr { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 14px; margin-top: 7px; }
.work__addr svg { width: 15px; height: 15px; flex-shrink: 0; }
.work__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 20px; }
.tag--vent { background: #E6F1FB; color: #0C447C; }
.tag--ac { background: #E1F5EE; color: #0F6E56; }
.work__map { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.work__map svg { width: 16px; height: 16px; }
.work__map:hover { text-decoration: underline; }

/* ---------- Признаки ---------- */
.signs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 34px; margin-top: 34px; }
.sign { display: flex; gap: 13px; align-items: flex-start; font-size: 16.5px; }
.sign svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--accent); margin-top: 1px; }
.signs__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding: 22px 28px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.signs__cta span { font-size: 17px; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin-top: 34px; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px;
  font-weight: 700; font-size: 17px; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--accent); line-height: 1;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item[open] summary { color: var(--accent); }
.faq__a { padding: 0 24px 22px; color: var(--ink-soft); font-size: 16px; }
.faq__a p { max-width: 720px; margin: 0; }

/* ---------- Этапы ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 26px; font-weight: 800; color: var(--accent); margin-bottom: 10px;
}
.step b { font-size: 15.5px; display: block; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Почему мы ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature__icon { width: 46px; height: 46px; color: var(--accent); margin-bottom: 14px; }
.feature b { display: block; font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Форма ---------- */
.cta-band { background: linear-gradient(115deg, var(--accent-dark), var(--accent)); color: #fff; }
.cta-band .section-sub { color: rgba(255,255,255,.85); }
.form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; max-width: 780px; }
.form input {
  padding: 15px 18px; border-radius: 10px; border: none; font-size: 16px;
  font-family: inherit; width: 100%;
}
.form input:focus { outline: 3px solid rgba(255,255,255,.5); }
.form .btn { background: var(--ink); color: #fff; }
.form .btn:hover { background: #000; }
.form-note { font-size: 13.5px; color: rgba(255,255,255,.7); margin-top: 14px; }
.messengers { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.messengers a {
  display: inline-flex; align-items: center; gap: 9px;
  color: #fff; text-decoration: none; font-weight: 700;
  padding: 11px 20px; border-radius: 10px; background: rgba(255,255,255,.14);
}
.messengers a:hover { background: rgba(255,255,255,.26); }
.messengers svg { width: 20px; height: 20px; }

/* ---------- Подвал ---------- */
.footer { background: #101c30; color: #b8c4cf; padding: 46px 0 30px; font-size: 15px; }
.footer__grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer .logo { color: #fff; }
.footer a { color: #b8c4cf; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__col b { color: #fff; display: block; margin-bottom: 12px; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 8px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: 13.5px; color: #7c8b99; }

/* ---------- Страницы услуг ---------- */
.page-hero { background: linear-gradient(115deg, #152744, #127bb4); color: #fff; padding: 80px 0 64px; }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 44px); max-width: 760px; margin-bottom: 16px; }
.page-hero p { max-width: 620px; color: rgba(255,255,255,.88); font-size: 18px; margin-bottom: 30px; }
.checklist { list-style: none; display: grid; gap: 14px; max-width: 720px; }
.checklist li { padding-left: 36px; position: relative; font-size: 17px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* Средние экраны: ужимаем объёмные кнопки меню, чтобы всё влезло в шапку */
@media (min-width: 961px) and (max-width: 1100px) {
  .header__inner { gap: 14px; }
  .nav { gap: 7px; }
  .nav a { padding: 8px 11px; font-size: 14px; }
  .header__contact { gap: 10px; }
  .btn--header { padding: 10px 14px; }
}

/* ---------- Мобильная версия ---------- */
@media (max-width: 960px) {
  .grid--3, .grid--4, .works, .objects, .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .burger { display: block; margin-left: auto; }
  .header__contact { margin-left: 0; }
  .btn--header { display: none; }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid--3, .grid--4, .works, .objects, .features, .signs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }
  .hero { padding: 80px 0 64px; }
  .header__inner { gap: 10px; }
  .header__contact { gap: 8px; margin-left: auto; }
  .header__phone { font-size: 14px; }
  .logo { font-size: 22px; gap: 8px; }
  .logo__mark { width: 34px; height: 34px; }
  .logo small { display: none; }
  .burger { padding: 6px; }
}
