:root {
  --bg: #f5f2eb;
  --bg-soft: #fcfaf7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #181612;
  --muted: #6e655c;
  --line: rgba(24, 22, 18, 0.1);
  --accent: #2f6b4f;
  --accent-dark: #24523d;
  --accent-2: #d5b27c;
  --danger: #a54c42;
  --shadow: 0 18px 60px rgba(31, 27, 21, 0.08);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(213, 178, 124, 0.14), transparent 35%),
    linear-gradient(180deg, #f8f5ef 0%, #f1ece4 100%);
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.page-shell {
  overflow: hidden;
}

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

.section {
  padding: 96px 0;
}

.eyebrow {
display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(47, 107, 79, 0.1);
  color: var(--accent-dark);
  font-size: 23px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

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

.section-head h2,
.hero__title,
.lead__content h2,
.calculator h2,
.trust__content h2 {
  margin: 18px 0 14px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-head h2,
.lead__content h2,
.calculator h2,
.trust__content h2 {
  font-size: clamp(32px, 4vw, 54px);
}

.section-head p,
.hero__text,
.lead__content p,
.calculator p,
.trust__content p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.section-head--center {
  text-align: center;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.section-head--between {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px);
  background: rgba(248, 245, 239, 0.82);
  border-bottom: 1px solid rgba(24, 22, 18, 0.06);
}

.header__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
}

.logo__text {
  display: grid;
  gap: 2px;
}

.logo__text strong {
  font-size: 18px;
}

.logo__text small {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  color: #3b342e;
  font-weight: 600;
  transition: color .2s ease;
}

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__phone {
  font-weight: 800;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(47, 107, 79, 0.22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(47, 107, 79, 0.28);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  border: 1px solid rgba(24, 22, 18, 0.08);
  box-shadow: none;
}

.button--sm {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 22, 18, 0.08);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 4px;
}

.hero {
  padding: 56px 0 44px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 32px;
  align-items: center;
}

.hero__title {
  font-size: clamp(44px, 6vw, 74px);
  max-width: 780px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.form-error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  font-size: 13px;
  color: #ff6b6b;
}

.form-status {
  min-height: 22px;
  margin-top: 12px;
  font-size: 14px;
}

.form-status.is-success {
  color: #27ae60;
}

.form-status.is-error {
  color: #ff6b6b;
}

input.is-invalid,
textarea.is-invalid {
  border-color: #ff6b6b !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

input.is-valid,
textarea.is-valid {
  border-color: #27ae60 !important;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.10);
}

button.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.metric-card,
.feature-card,
.info-card,
.step-card,
.review-card,
.case-card,
.project-card,
.calc-card,
.trust__panel,
.lead-form,
.faq-item,
.hero-card--floating {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.metric-card {
  padding: 22px;
  border-radius: var(--radius-md);
}

.metric-card strong {
  display: block;
  font-size: 28px;
  margin-bottom: 6px;
}

.metric-card span {
  color: var(--muted);
  line-height: 1.5;
}

.hero__visual {
  position: relative;
  min-height: 640px;
}

.hero-card--main {
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(20, 18, 14, 0.16);
}

.hero-card--main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card--floating {
  position: absolute;
  right: -10px;
  bottom: 28px;
  width: min(92%, 320px);
  border-radius: 24px;
  padding: 22px;
}

.hero-card__badge {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(47, 107, 79, 0.12);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-card__list {
  display: grid;
  gap: 10px;
}

.hero-card__list span {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.trust-strip {
  padding-bottom: 30px;
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust-item {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 22, 18, 0.06);
  text-align: center;
  font-weight: 700;
}

.problems__grid,
.advantages__grid,
.steps__grid,
.projects__grid,
.reviews__grid,
.trust__stats {
  display: grid;
  gap: 20px;
}

.problems__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.feature-card,
.step-card,
.review-card,
.project-card,
.case-card {
  border-radius: var(--radius-lg);
}

.info-card,
.feature-card,
.step-card,
.review-card {
  padding: 28px;
}

.info-card h3,
.feature-card h3,
.step-card h3,
.review-card strong,
.project-card h3,
.case-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.info-card p,
.feature-card p,
.step-card p,
.review-card p,
.case-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.info-card--danger {
  background: rgba(255, 245, 244, 0.8);
}

.info-card--success {
  background: rgba(240, 250, 244, 0.82);
}

.advantages__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  min-height: 220px;
}

.projects__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

.project-card__body {
  padding: 24px;
}

.project-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-card li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(24, 22, 18, 0.05);
  color: #4c433c;
  font-size: 14px;
  font-weight: 700;
}

.project-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.project-card__footer strong,
.case-card strong,
.calc-card__result strong {
  font-size: 26px;
  letter-spacing: -0.03em;
}

.text-button {
  color: var(--accent);
  font-weight: 800;
}

.steps__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(47, 107, 79, 0.1);
  color: var(--accent-dark);
  font-weight: 800;
}

.cases__slider {
  position: relative;
}

.cases__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 10px;
}

.case-card {
  overflow: hidden;
  box-shadow: none;
}

.case-card img {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  object-fit: cover;
}

.case-card__body {
  padding: 24px;
}

.slider-controls {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 20px;
}

.slider-btn {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 22, 18, 0.08);
  font-size: 22px;
}

.calculator__grid,
.trust__grid,
.lead__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.calc-card,
.trust__panel,
.lead-form {
  border-radius: 32px;
  padding: 30px;
}

.calc-card {
  display: grid;
  gap: 20px;
}

.calc-card label,
.form label {
  display: grid;
  gap: 10px;
}

.calc-card label span,
.form label span {
  font-size: 14px;
  font-weight: 800;
  color: #4e443b;
}

input[type="text"],
input[type="tel"],
textarea,
select {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(24, 22, 18, 0.1);
  border-radius: 18px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

textarea {
  padding-top: 16px;
  min-height: 132px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(47, 107, 79, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 107, 79, 0.08);
}

input[type="range"] {
  width: 100%;
}

.calc-card__result {
  padding: 22px;
  border-radius: 24px;
  background: rgba(47, 107, 79, 0.08);
  display: grid;
  gap: 6px;
}

.trust__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.trust__stats article {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(24, 22, 18, 0.06);
}

.trust__stats strong {
  display: block;
  font-size: 34px;
  margin-bottom: 6px;
}

.trust__stats span,
.trust__panel li,
.review-card span,
.footer__text,
.footer__list,
.form__note {
  color: var(--muted);
}

.trust__panel ul,
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust__panel li {
  position: relative;
  padding-left: 24px;
  line-height: 1.8;
}

.trust__panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.reviews__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  min-height: 280px;
}

.review-card strong {
  display: block;
  margin-top: 24px;
  margin-bottom: 4px;
}

.form {
  display: grid;
  gap: 18px;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.checkbox {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.form__note a {
  color: var(--accent);
  font-weight: 800;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
}

.faq-item__button {
  width: 100%;
  padding: 26px 28px;
  text-align: left;
  font-size: 20px;
  font-weight: 800;
  position: relative;
}

.faq-item__button::after {
  content: '+';
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--accent);
}

.faq-item.active .faq-item__button::after {
  content: '−';
}

.faq-item__content {
  display: none;
  padding: 0 28px 26px;
}

.faq-item.active .faq-item__content {
  display: block;
}

.faq-item__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer {
  padding: 30px 0 110px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
  padding: 30px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(24, 22, 18, 0.08);
}

.footer__text {
  max-width: 420px;
  line-height: 1.7;
}

.footer__list {
  display: grid;
  gap: 8px;
  line-height: 1.7;
}

.sticky-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(47, 107, 79, 0.24);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal.active {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 9, 0.58);
  backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  width: min(100% - 24px, 560px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  margin: 20px auto;
  border-radius: 32px;
  background: #f9f6f0;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
  padding: 28px;
}

.modal__dialog--wide {
  width: min(100% - 24px, 940px);
}

.modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(24, 22, 18, 0.06);
  font-size: 28px;
}

.modal__head h2,
.quiz h2,
.project-modal h2 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.modal__head p,
.project-modal p,
.quiz__head p {
  color: var(--muted);
  line-height: 1.7;
}

.quiz {
  display: grid;
  gap: 26px;
}

.quiz__head {
  display: grid;
  gap: 18px;
}

.quiz__progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(24, 22, 18, 0.08);
  overflow: hidden;
}

.quiz__progress span {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #5aa17c);
  transition: width .25s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-step h3 {
  margin: 0 0 18px;
  font-size: 28px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quiz-options button {
  min-height: 96px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(24, 22, 18, 0.08);
  font-size: 18px;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.quiz-options button:hover,
.quiz-options button.is-selected {
  transform: translateY(-2px);
  border-color: rgba(47, 107, 79, 0.4);
  box-shadow: 0 16px 34px rgba(47, 107, 79, 0.12);
}

.project-modal {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
}

.project-modal__gallery img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 1.05 / 1;
  object-fit: cover;
}

.project-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.project-modal__meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(24, 22, 18, 0.06);
  font-size: 14px;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  padding: 16px 22px;
  border-radius: 16px;
  background: #13110e;
  color: #fff;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1199px) {
  .hero__grid,
  .calculator__grid,
  .trust__grid,
  .lead__wrap,
  .project-modal {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 520px;
  }

  .problems__grid,
  .projects__grid,
  .reviews__grid,
  .advantages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cases__track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}

@media (max-width: 991px) {
  .nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 94px;
    display: none;
    flex-direction: column;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(24, 22, 18, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .burger {
    display: inline-flex;
  }

  .header__phone,
  .header .button--sm {
    display: none;
  }

  .hero__metrics,
  .steps__grid,
  .trust-strip__grid,
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }
}

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

  .hero {
    padding-top: 28px;
  }

  .hero__title {
    font-size: clamp(36px, 12vw, 54px);
  }

  .hero__visual {
    min-height: 420px;
  }

  .hero-card--floating {
    position: static;
    margin-top: 14px;
    width: 100%;
  }

  .hero__metrics,
  .problems__grid,
  .advantages__grid,
  .projects__grid,
  .steps__grid,
  .reviews__grid,
  .form__grid,
  .trust-strip__grid,
  .trust__stats,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .section-head--between {
    flex-direction: column;
    align-items: start;
  }

  .cases__track {
    grid-auto-columns: 100%;
  }

  .modal__dialog,
  .modal__dialog--wide {
    width: calc(100% - 16px);
    margin: 8px auto;
    max-height: calc(100dvh - 16px);
    padding: 22px 16px;
    border-radius: 24px;
  }

  .faq-item__button {
    padding: 22px 20px;
    padding-right: 58px;
    font-size: 18px;
  }

  .faq-item__button::after {
    right: 18px;
  }

  .faq-item__content {
    padding: 0 20px 22px;
  }

  .sticky-contact {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
