/* SWEEO — прототип главной. Стиль: светлый, «лабораторный», почти монохром с бирюзой. */

:root {
  --teal: #0F766E;
  --teal-dark: #0B5A54;
  --mint: #5FD3A5;
  --mint-soft: #E9F7F1;
  --ink: #14202B;
  --gray-700: #44515C;
  --gray-500: #7A8791;
  --gray-300: #D8DEE3;
  --gray-200: #E9EDF0;
  --gray-100: #F5F7F8;
  --white: #FFFFFF;
  --line: var(--gray-200);
  --radius: 10px;
  --font: "Manrope", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 26px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-dark); }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--mint-soft); }

.btn-wide { width: 100%; }

/* ---------- Шапка ---------- */

.site-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: 32px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .12em;
  color: var(--teal);
}

.main-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.main-nav a:hover { color: var(--teal); border-color: var(--teal); }

.btn-header { min-height: 38px; padding: 6px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span {
  height: 1.5px;
  background: var(--ink);
}

/* ---------- Первый экран ---------- */

.hero {
  padding: 72px 0 88px;
  background:
    linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.overline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.lead {
  font-size: 17px;
  color: var(--gray-700);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

/* Ползунок «до / после» */

.hero-media { min-width: 0; }

.compare {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  user-select: none;
  touch-action: none;
  box-shadow: 0 18px 40px -24px rgba(20, 32, 43, .25);
}

.compare-after,
.compare-before {
  position: absolute;
  inset: 0;
}

/* «После»: светлая штукатурка */
.compare-after {
  background:
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(20, 32, 43, .04) 46px 47px),
    linear-gradient(115deg, #F4F2EC 0%, #EDEBE3 55%, #E6E9EA 100%);
}

/* «До»: зеленовато-серый налёт */
.compare-before {
  background:
    radial-gradient(140px 90px at 22% 30%, rgba(77, 110, 83, .55), transparent 70%),
    radial-gradient(120px 100px at 65% 60%, rgba(60, 92, 68, .5), transparent 70%),
    radial-gradient(90px 70px at 45% 82%, rgba(96, 116, 88, .45), transparent 70%),
    radial-gradient(70px 60px at 80% 20%, rgba(52, 80, 60, .4), transparent 70%),
    repeating-linear-gradient(35deg, transparent 0 14px, rgba(40, 66, 48, .12) 14px 16px),
    linear-gradient(115deg, #9AA392 0%, #7E8B7C 60%, #6F7F72 100%);
}

.compare-label {
  position: absolute;
  bottom: 14px;
  z-index: 3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(20, 32, 43, .55);
  padding: 5px 12px;
  border-radius: 3px;
  pointer-events: none;
}
.compare-label-left { left: 14px; }
.compare-label-right { right: 14px; }

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 4;
  width: 2px;
  margin-left: -1px;
  background: var(--white);
  cursor: ew-resize;
}
.compare-handle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.compare-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal);
  border: 1px solid var(--gray-300);
  box-shadow: 0 6px 18px rgba(20, 32, 43, .22);
}

.hero-media-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-500);
}

/* ---------- Секции ---------- */

.section { padding: 88px 0; }

.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 44px; max-width: 720px; }

.section-index {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.section-index span { color: var(--mint); }

.section h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.section-sub {
  margin-top: 14px;
  color: var(--gray-700);
}

.section-footnote {
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-500);
}

/* Карточки проблемы */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--white);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.card:hover {
  border-color: var(--mint);
  box-shadow: 0 14px 30px -20px rgba(15, 118, 110, .25);
}

.card-icon {
  width: 34px;
  height: 34px;
  color: var(--teal);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card p { font-size: 15px; color: var(--gray-700); }

/* Технология */

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px 0;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--gray-100);
}

.step-num {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--mint);
  min-width: 60px;
}

.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--gray-700); }

.step-arrow { align-self: center; color: var(--teal); transform: rotate(90deg); }

.steps-note { font-size: 14px; color: var(--gray-500); }

/* Заглушки-изображения */

.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--gray-100);
  overflow: hidden;
  min-height: 220px;
}
.ph span {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 3px;
}

.ph-surface {
  background:
    radial-gradient(circle at 30% 30%, rgba(95, 211, 165, .18) 0 60px, transparent 61px),
    radial-gradient(circle at 70% 65%, rgba(15, 118, 110, .12) 0 80px, transparent 81px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(20, 32, 43, .05) 34px 35px),
    linear-gradient(160deg, #F2F5F4, #E4EBE8);
}

.ph-lab {
  background:
    linear-gradient(90deg, rgba(15, 118, 110, .08) 0 33%, transparent 33% 66%, rgba(95, 211, 165, .12) 66%),
    repeating-linear-gradient(0deg, transparent 0 54px, rgba(20, 32, 43, .05) 54px 55px),
    linear-gradient(180deg, #F4F7F6, #E7ECEA);
}

.ph-house {
  margin-top: 28px;
  min-height: 200px;
  background:
    linear-gradient(180deg, transparent 62%, rgba(20, 32, 43, .06) 62%),
    linear-gradient(105deg, transparent 0 34%, rgba(15, 118, 110, .10) 34% 36%, transparent 36% 64%, rgba(15, 118, 110, .10) 64% 66%, transparent 66%),
    repeating-linear-gradient(0deg, transparent 0 40px, rgba(20, 32, 43, .05) 40px 41px),
    linear-gradient(180deg, #F3F6F5, #E6ECEA);
}

.ph-product {
  min-height: 240px;
  background:
    linear-gradient(180deg, transparent 70%, rgba(20, 32, 43, .05) 70%),
    linear-gradient(150deg, #F4F7F6, #E8EDEB);
}
.ph-product svg {
  width: 84px;
  height: 84px;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.ph-product { flex-direction: column; gap: 6px; }

/* Продукты */

.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: border-color .18s ease;
}
.product-card:hover { border-color: var(--mint); }

.product-body { padding: 26px 28px; }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.product-body h3 { font-size: 19px; margin-bottom: 8px; }
.product-body p { font-size: 15px; color: var(--gray-700); }

/* Исследования */

.research-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.check-list { display: flex; flex-direction: column; gap: 28px; }

.check-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.list-icon {
  width: 32px;
  height: 32px;
  flex: none;
  color: var(--teal);
}

.check-list h3 { font-size: 17px; margin-bottom: 6px; }
.check-list p { font-size: 15px; color: var(--gray-700); }

/* Для профессионалов */

.doc-list { border-top: 1px solid var(--line); }

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}

.doc-title {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  font-size: 16px;
}

.doc-status {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
  padding: 4px 14px;
  border-radius: 99px;
}

/* Контакты и форма */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacts-text h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  margin-bottom: 14px;
}

.request-form {
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--gray-100);
}

.field { display: grid; gap: 7px; }

.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gray-700);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  padding: 11px 14px;
  width: 100%;
  transition: border-color .18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.field textarea { resize: vertical; min-height: 96px; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-700);
  cursor: pointer;
}
.checkbox input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--teal);
  flex: none;
}

/* Подвал */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--gray-100);
  padding: 56px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 14px;
  color: var(--gray-700);
  max-width: 40ch;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
}
.footer-nav a:hover { color: var(--teal); }

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
}
.footer-contacts a { color: var(--teal); font-weight: 600; }

/* ---------- Адаптив ---------- */

@media (max-width: 960px) {
  .hero { padding: 52px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-3 { grid-template-columns: 1fr; }
  .tech-grid,
  .research-grid,
  .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-card { grid-template-columns: 160px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; margin-left: auto; }
  .btn-header { display: none; }

  .section { padding: 60px 0; }
  .section-head { margin-bottom: 30px; }

  .step { flex-direction: column; gap: 10px; }
  .step-num { min-width: 0; }

  .cards-2 { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .ph-product { min-height: 180px; }

  .doc-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .doc-status { align-self: flex-start; }

  .request-form { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.form-note { margin-top: 12px; font-size: 14px; color: var(--teal); }

/* Иллюстрации (сгенерированные изображения, img/*.webp) */
.compare-after  { background: url(img/hero-after.webp) center / cover no-repeat; }
.compare-before { background: url(img/hero-before.webp) center / cover no-repeat; }
.ph-surface { background: url(img/surface.webp) center / cover no-repeat; min-height: 320px; }
.ph-lab     { background: url(img/lab.webp) center / cover no-repeat; min-height: 280px; }
.ph-house   { background: url(img/facade.webp) center 40% / cover no-repeat; min-height: 240px; }
.logo-mark { height: 26px; width: auto; }

/* Многостраничная структура (26.10): главная компании + страницы линий */
.ph-home     { background: url(img/home-hero.webp) center / cover no-repeat; aspect-ratio: 4 / 3; min-height: 0; }
.ph-interior { background: url(img/interior.webp) center / cover no-repeat; min-height: 220px; }
.ph-tall     { aspect-ratio: 4 / 3; min-height: 0; }
.product-link { color: inherit; text-decoration: none; transition: border-color .2s; }
.product-link .ph { border: 0; border-radius: 0; }
.more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--teal); }
.lines-note { margin-top: 22px; }
.product-link .ph-house { margin-top: 0; min-height: 220px; }
