/* МодульХаус42 — 1:1 mockup tokens (#89B443, #1A1C1E) */
:root {
  --green: #89b443;
  --green-dark: #78a33a;
  --green-hover: #7a9b3c;
  --green-light: #eef4e4;
  --green-muted: #a8c96a;
  --dark: #1a1c1e;
  --dark-footer: #1a1c1e;
  --gray-bg: #f5f5f3;
  --gray-border: #e8e8e6;
  --text: #1a1c1e;
  --text-muted: #6d6d6d;
  --white: #ffffff;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  --container: 1240px;
  --font: "Montserrat", system-ui, sans-serif;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn--sm {
  padding: 11px 22px;
  font-size: 13px;
}

.btn--md {
  padding: 14px 28px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 15px;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-hover);
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}

.btn--outline:hover {
  background: var(--green-light);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Header — dark bar as on mockup */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 28, 30, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.header.is-scrolled {
  background: rgba(26, 28, 30, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--white);
}

.logo__icon {
  color: var(--green);
  display: flex;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__text strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.logo__text small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

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

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--green-muted);
}

.header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.header__phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.header__phone:hover {
  color: var(--green-muted);
}

.header__phone--alt {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.header__phone--alt:hover {
  color: var(--green-muted);
}

.header.is-scrolled .header__phone--alt {
  color: var(--text-muted);
}

.header.is-scrolled .header__phone--alt:hover {
  color: var(--green);
}

.header__hours {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.header__cta {
  flex-shrink: 0;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--dark);
}

.mobile-nav a {
  font-weight: 500;
  color: var(--white);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav.is-open {
  display: flex !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    95deg,
    rgba(26, 28, 30, 0.78) 0%,
    rgba(26, 28, 30, 0.5) 42%,
    rgba(26, 28, 30, 0.2) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 72px 0 88px;
  max-width: 620px;
}

.hero__eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-muted);
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.4;
}

.hero__features strong {
  color: var(--white);
  font-weight: 600;
}

.hero__feature-icon {
  flex-shrink: 0;
  color: var(--green);
  margin-top: 1px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--gray-bg);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-title--center {
  text-align: center;
}

.section-subtitle {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

.section-head {
  margin-bottom: 32px;
}

/* Production */
.production {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.production__intro {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 480px;
}

.production__list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.production__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.production__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
}

.production__list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text);
}

.production__list p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.production__note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 22px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
}

.production__note-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

.production__note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.production__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  transition: gap 0.2s, color 0.2s;
}

.production__link:hover {
  color: var(--green-dark);
  gap: 12px;
}

.production__main-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}

.production__main-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.production__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.production__thumbs img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter {
  padding: 9px 20px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter:hover {
  border-color: var(--green);
  color: var(--green);
}

.filter--active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: var(--shadow);
}

.project-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-bg);
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__body {
  padding: 14px 16px 16px;
}

.project-card__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.project-card__subtitle {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.project-card__specs {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.project-card__specs span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-card__specs svg {
  color: var(--text-muted);
  opacity: 0.7;
}

.project-card .btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
}

.projects-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: var(--green-light);
  border-radius: var(--radius);
}

.projects-banner__icon {
  flex-shrink: 0;
  color: var(--green);
}

.projects-banner p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.projects-banner .btn {
  flex-shrink: 0;
}

.project-card__price {
  font-weight: 700;
  color: var(--green-dark);
}

.project-card__per-sqm {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Promo gift CTA */
.promo-gift {
  padding: 0 0 48px;
  margin-top: -8px;
}

.promo-gift__card {
  display: grid;
  grid-template-columns: 1fr min(320px, 100%);
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--green-light) 0%, #f8faf4 100%);
  border: 1px solid rgba(137, 180, 67, 0.25);
  border-radius: var(--radius);
}

.promo-gift__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--green);
  border-radius: var(--radius-pill);
}

.promo-gift__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.2;
}

.promo-gift__text {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.promo-gift__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.promo-gift__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.promo-gift__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.promo-gift__note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .promo-gift__card {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 44px;
  position: relative;
}

.process__line {
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--gray-border);
  z-index: 0;
}

.process__step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 6px;
}

.process__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
}

.process__step h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.process__step h3 .process__num-label {
  color: var(--green);
  font-weight: 700;
}

.process__step p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Calculator + Reviews */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px 32px 32px;
}

.card__title {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 700;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  appearance: none;
  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 fill='%236d6d6d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  font-size: 14px;
}

.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(137, 180, 67, 0.15);
}

.field__optional {
  font-weight: 400;
  color: var(--text-muted);
}

.field--inline {
  flex: 1;
  min-width: 140px;
}

/* Configurator */
.configurator {
  display: flex;
  flex-direction: column;
}

.config-group {
  border: none;
  margin: 0 0 20px;
  padding: 0;
}

.config-group__label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.config-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.config-chip {
  cursor: pointer;
}

.config-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.config-chip span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--gray-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.config-chip input:checked + span,
.config-chip input:focus-visible + span {
  border-color: var(--green);
  background: rgba(137, 180, 67, 0.12);
  color: var(--text);
}

.config-chip:hover span {
  border-color: var(--green);
}

.config-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.config-package {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.config-package input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.config-package--active,
.config-package:has(input:checked) {
  border-color: var(--green);
  background: rgba(137, 180, 67, 0.08);
}

.config-package__name {
  font-size: 13px;
  font-weight: 700;
}

.config-package__hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.config-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.config-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.config-extra input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.config-summary {
  margin: 4px 0 20px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(137, 180, 67, 0.1);
  border: 1px solid rgba(137, 180, 67, 0.25);
}

.config-summary__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.config-summary__list {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.config-summary__list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

.config-summary__list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.config-summary__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.config-form__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.config-form .field {
  margin-bottom: 14px;
}

.config-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.config-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}

.config-consent input {
  margin-top: 2px;
  accent-color: var(--green);
  flex-shrink: 0;
}

.config-form__error {
  margin: 0 0 12px;
  font-size: 13px;
  color: #c0392b;
}

.configurator__body[hidden] {
  display: none !important;
}

.configurator__success[hidden] {
  display: none !important;
}

.configurator__success:not([hidden]) {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.config-success {
  text-align: center;
  max-width: 340px;
}

.config-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
}

.config-success__title {
  margin: 0 0 10px;
  font-size: 22px;
}

.config-success__text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.config-success__phone {
  margin: 0 0 20px;
  font-size: 14px;
}

.config-success__phone a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.config-success__phone a:hover {
  text-decoration: underline;
}

.lead__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 768px) {
  .config-packages {
    grid-template-columns: 1fr;
  }

  .config-extras {
    grid-template-columns: 1fr;
  }

  .config-form__row {
    flex-direction: column;
  }

  .field--inline {
    min-width: 100%;
  }
}

  background-position: right 14px center;
  cursor: pointer;
}

.reviews__slider {
  position: relative;
  min-height: 260px;
}

.review {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: start;
}

.review[hidden] {
  display: none;
}

.review__photo {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.review__body h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.review__meta {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
}

.review blockquote {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  font-style: normal;
}

.reviews__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.reviews__arrow {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-border);
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.reviews__arrow:hover {
  border-color: var(--green);
  color: var(--green);
}

.reviews__dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--gray-border);
  cursor: pointer;
}

.dot--active {
  background: var(--green);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  margin-top: 32px;
}

.gallery__large {
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  grid-row: span 2;
}

.gallery__large img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gallery__grid a {
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}

.gallery__grid img {
  width: 100%;
  height: 100%;
  min-height: 188px;
  object-fit: cover;
}

.gallery__cta {
  text-align: center;
  margin-top: 28px;
}

/* Lead */
.lead {
  position: relative;
  padding: 48px 0;
  background: var(--dark);
}

.lead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.lead__text h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--white);
  max-width: 400px;
  line-height: 1.25;
}

.lead__text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.lead__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  min-width: 300px;
}

.lead__form input {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  padding: 13px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.lead__form input::placeholder {
  color: #999;
}

/* Footer */
.footer {
  background: var(--dark-footer);
  color: rgba(255, 255, 255, 0.7);
  padding: 52px 0 0;
}

.footer .logo__text strong {
  color: var(--white);
}

.footer__brand p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 250px;
  color: rgba(255, 255, 255, 0.55);
}

.socials {
  display: flex;
  gap: 8px;
}

.socials__link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.2s, color 0.2s;
}

.socials__link:hover {
  background: var(--green);
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1fr 1.15fr;
  gap: 36px;
  padding-bottom: 36px;
}

.footer__col h4 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col li {
  margin-bottom: 9px;
}

.footer__col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--green-muted);
}

.footer__contacts li {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.map-widget {
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 130px;
  background: #2e3032;
}

.map-widget iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(20%);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* Responsive */
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .production {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav,
  .header__contact {
    display: none;
  }

  .burger {
    display: flex;
    margin-left: auto;
  }

  .header__cta {
    display: none;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process__line {
    display: none;
  }

  .split,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__large {
    grid-row: auto;
    min-height: 280px;
  }

  .lead__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .lead__form {
    justify-content: stretch;
  }

  .lead__form input {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 56px 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-banner {
    flex-direction: column;
    text-align: center;
  }

  .review {
    grid-template-columns: 1fr;
  }

  .review__photo {
    width: 100%;
    height: 200px;
  }

  .hero__features {
    flex-direction: column;
    gap: 16px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Quiz / exit popup */
body.popup-open {
  overflow: hidden;
}

.popup[hidden] {
  display: none !important;
}

.popup:not([hidden]) {
  display: block;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 28, 30, 0.72);
  backdrop-filter: blur(4px);
}

.popup__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  overflow-y: auto;
  background: var(--white);
  border-radius: 14px;
  padding: 28px 28px 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  animation: popup-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popup-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--gray-bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.popup__close:hover {
  background: var(--gray-border);
  color: var(--text);
}

.popup__step[hidden] {
  display: none !important;
}

.popup__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
}

.popup__title {
  margin: 0 0 12px;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  padding-right: 28px;
}

.popup__lead {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.popup__subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.popup__benefits {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.popup__benefits li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 14px;
}

.popup__benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.popup__magnet {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  border: 1px solid rgba(137, 180, 67, 0.3);
}

.popup__magnet-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.popup__magnet strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.popup__magnet p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.popup__step-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

.popup__options {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.popup__option {
  cursor: pointer;
}

.popup__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.popup__option span {
  display: block;
  padding: 13px 16px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.popup__option input:checked + span {
  border-color: var(--green);
  background: rgba(137, 180, 67, 0.1);
}

.popup__option:hover span {
  border-color: var(--green-muted);
}

.popup__summary {
  margin: 0 0 16px;
  padding: 12px 14px;
  list-style: none;
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  font-size: 13px;
}

.popup__summary li {
  margin-bottom: 4px;
}

.popup__summary li:last-child {
  margin-bottom: 0;
}

.popup__form .field {
  margin-bottom: 12px;
}

.popup__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.popup__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}

.popup__consent input {
  margin-top: 2px;
  accent-color: var(--green);
}

.popup__error {
  margin: 0 0 12px;
  font-size: 13px;
  color: #c0392b;
}

.popup__error[hidden] {
  display: none !important;
}

.popup__step--success {
  text-align: center;
  padding-top: 8px;
}

.popup__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
}

.popup__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gray-border);
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}

.popup__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width 0.3s ease;
}

@media (max-width: 480px) {
  .popup__dialog {
    padding: 22px 20px 32px;
    margin: 12px auto;
  }

  .popup__form-row {
    flex-direction: column;
  }

  .popup__form-row .btn {
    width: 100%;
  }
}

/* CTA offer block (variant 4) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cta-offer {
  padding-top: 0;
}

.cta-offer__card {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 32px;
  align-items: center;
  padding: 36px 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--dark) 0%, #2a2d30 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta-offer__title {
  margin: 0 0 18px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.25;
}

.cta-offer__checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.cta-offer__checks li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  font-weight: 500;
}

.cta-offer__checks li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.cta-offer__note {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-muted);
}

.cta-offer__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-offer__field input {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
}

.cta-offer__field input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(137, 180, 67, 0.35);
}

.cta-offer__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.cta-offer__form-error {
  margin: 0;
  font-size: 13px;
  color: #ffb4b4;
}

.cta-offer__form-error[hidden] {
  display: none !important;
}

.cta-offer__card--success {
  grid-template-columns: 1fr;
  text-align: center;
}

.cta-offer__success {
  margin: 0;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--green-muted);
}

.popup__subtitle--accent {
  color: var(--green);
  font-weight: 600;
  margin-bottom: 20px;
}

.popup__form--inline {
  margin-top: 4px;
}

.popup__form-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}

.popup__phone-field {
  flex: 1;
  margin-bottom: 0 !important;
}

.popup__phone-field input {
  height: 100%;
  min-height: 46px;
}

.popup__consent--compact {
  margin-bottom: 0;
}

.popup__dialog--fast {
  padding-bottom: 28px;
}

@media (max-width: 768px) {
  .cta-offer__card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .cta-offer__checks {
    grid-template-columns: 1fr;
  }
}

/* SEO inner pages */
.page-hero {
  padding: calc(var(--header-h) + 48px) 0 40px;
  background: var(--gray-bg);
}

.page-hero--compact {
  padding: calc(var(--header-h) + 36px) 0 28px;
}

.page-hero--compact .page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.page-hero__title {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
}

.page-hero__subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

.breadcrumbs {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--green-dark);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.seo-text h2 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.seo-text h3 {
  margin: 24px 0 10px;
  font-size: 18px;
}

.seo-text p,
.seo-text li {
  line-height: 1.65;
  color: var(--text-muted);
}

.seo-text ul,
.seo-text ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.seo-block__cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.projects-grid--static {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.project-page {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.project-page__main img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.project-page__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.project-page__gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.project-page__specs {
  padding: 0;
  list-style: none;
  margin: 16px 0;
}

.project-page__specs li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-border);
}

.section-cta {
  text-align: center;
  margin-top: 32px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.contact-list li {
  margin-bottom: 12px;
  font-size: 15px;
}

.map-widget--page iframe {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: var(--radius);
}

.project-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 28px auto 0;
}

.faq__item {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 0 18px;
  background: var(--white);
}

.faq__item summary {
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__answer {
  padding: 0 0 16px;
}

.faq__answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .project-page {
    grid-template-columns: 1fr;
  }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.blog-grid--related {
  margin-top: 16px;
}

.blog-grid--home {
  margin-top: 8px;
}

.home-blog__cta {
  text-align: center;
  margin-top: 32px;
}

.section-subtitle {
  margin: -8px 0 28px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.section-subtitle--center {
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.blog-card {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.blog-card__img {
  display: block;
  aspect-ratio: 5 / 3;
  overflow: hidden;
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card__img:hover img {
  transform: scale(1.03);
}

.blog-card__body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card__title {
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--primary);
}

.blog-card__excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}

.blog-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.article {
  padding: calc(var(--header-h) + 32px) 0 64px;
}

.article__inner {
  max-width: 820px;
}

.article__header {
  margin-bottom: 24px;
}

.article__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  margin: 0 0 12px;
}

.article__meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.article__cover {
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
}

.article__cover img {
  width: 100%;
  height: auto;
  display: block;
}

.article__content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.article__content h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.article__content p {
  margin-bottom: 14px;
  line-height: 1.7;
}

.article__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

.article-faq {
  margin-top: 40px;
  max-width: none;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--gray-border);
  padding: 10px 12px;
  text-align: left;
}

.compare-table th {
  background: var(--gray-bg, #f5f5f5);
  font-weight: 600;
}

.article-cta {
  margin: 48px 0 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #1a3a2a 0%, #2d5a3d 100%);
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
}

.article-cta h2 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.article-cta p {
  margin: 0 0 18px;
  opacity: 0.9;
  font-size: 15px;
}

.share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--gray-border);
  font-size: 14px;
}

.share a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.article__related h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.article__content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  background: var(--gray-bg, #f8f8f8);
  font-style: italic;
}

