:root {
  --bg: #f4f0e8;
  --bg-strong: #d7c3a4;
  --surface: rgba(255, 250, 241, 0.76);
  --surface-strong: #fff9ef;
  --surface-dark: #1f2a25;
  --text: #1f1d1a;
  --text-soft: #5a564e;
  --line: rgba(54, 44, 29, 0.12);
  --accent: #a86a2d;
  --accent-2: #d9a35f;
  --accent-3: #f7ddb1;
  --shadow: 0 30px 80px rgba(59, 42, 20, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

*,
*::before,
*::after {
  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(255, 247, 228, 0.95), transparent 32%),
    radial-gradient(circle at right center, rgba(214, 178, 123, 0.24), transparent 28%),
    linear-gradient(180deg, #f7f2e8 0%, #ede4d6 100%);
}

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

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(247, 242, 232, 0.78);
  border-bottom: 1px solid rgba(54, 44, 29, 0.08);
}

.header__inner,
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

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

.logo__mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #6f4c2a 0%, #c88849 100%);
  box-shadow: 0 18px 36px rgba(120, 76, 36, 0.28);
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  color: var(--text-soft);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  color: var(--text-soft);
}

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

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

.hero {
  padding: 72px 0 36px;
}

.hero__grid,
.offer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hero__text,
.modal__text,
.card p,
.step p,
.contacts__card p,
.offer p,
.form-note,
.footer,
.contact-list,
address {
  color: var(--text-soft);
}

.hero__text {
  max-width: 58ch;
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--large {
  min-height: 62px;
  padding: 0 32px;
  font-weight: 800;
}

.btn--small {
  min-height: 48px;
  padding: 0 22px;
  font-weight: 700;
}

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

.btn--shine {
  color: #fffdf8;
  background: linear-gradient(135deg, #845126 0%, #d08d45 55%, #95591c 100%);
  box-shadow: 0 18px 40px rgba(138, 88, 40, 0.32);
}

.btn--shine::before {
  content: "";
  position: absolute;
  inset: -120% auto -120% -35%;
  width: 34%;
  transform: rotate(18deg);
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.2) 80%, transparent 100%);
  animation: shimmer 3s linear infinite;
}

.btn--ghost {
  border: 1px solid rgba(54, 44, 29, 0.14);
  color: var(--text);
  background: rgba(255, 250, 241, 0.56);
}

@keyframes shimmer {
  0% {
    left: -35%;
  }
  100% {
    left: 120%;
  }
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__facts li {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.7);
}

.hero__panel {
  display: grid;
  gap: 16px;
}

.hero-card,
.card,
.step,
.contacts__card,
.modal__dialog,
.offer {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  min-height: 160px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.hero-card--primary {
  background: linear-gradient(135deg, rgba(255, 244, 221, 0.9), rgba(239, 212, 166, 0.78));
}

.hero-card--accent {
  color: #fff9f1;
  background: linear-gradient(145deg, #24322b 0%, #45584d 100%);
}

.hero-card__label,
.step__num,
.field span,
.contact-list span {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-card strong,
.contacts__card h3 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.section {
  padding: 42px 0;
}

.section--tint {
  background: linear-gradient(180deg, rgba(255, 246, 230, 0.74), rgba(239, 230, 216, 0.5));
}

.section--quiz {
  padding-top: 12px;
}

.section--whyus {
  padding-top: 8px;
}

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

.whyus-item {
  position: relative;
  padding: 20px 20px 20px 48px;
  border: 1px solid rgba(54, 44, 29, 0.14);
  border-radius: var(--radius-md);
  font-size: 18px;
  line-height: 1.45;
  background: rgba(255, 250, 241, 0.68);
  box-shadow: 0 12px 26px rgba(59, 42, 20, 0.08);
}

.whyus-item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #845126 0%, #d08d45 100%);
  box-shadow: 0 0 0 6px rgba(208, 141, 69, 0.2);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
}

.advantages,
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card,
.step {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.step__num {
  color: var(--accent);
}

.offer {
  padding: 34px;
  border-radius: var(--radius-xl);
}

.section--contacts {
  padding-bottom: 72px;
}

.contacts {
  position: relative;
  display: block;
}

.contacts__backdrop {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  padding: 40px;
  border: 1px solid rgba(92, 62, 27, 0.14);
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 229, 180, 0.34), transparent 28%),
    radial-gradient(circle at bottom right, rgba(247, 217, 165, 0.24), transparent 24%),
    linear-gradient(135deg, rgba(51, 39, 27, 0.96) 0%, rgba(85, 63, 38, 0.94) 42%, rgba(194, 138, 77, 0.86) 100%);
  box-shadow: 0 34px 90px rgba(70, 44, 20, 0.22);
}

.contacts__backdrop::before,
.contacts__backdrop::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.contacts__backdrop::before {
  top: -90px;
  left: -50px;
  width: 260px;
  height: 260px;
  background: rgba(255, 240, 214, 0.12);
}

.contacts__backdrop::after {
  right: -80px;
  bottom: -100px;
  width: 320px;
  height: 320px;
  background: rgba(255, 228, 183, 0.1);
}

.contacts__info,
.contacts__card {
  position: relative;
  z-index: 1;
}

.contacts__card {
  padding: 32px;
  border-radius: var(--radius-xl);
  color: #fff7eb;
  background: rgba(255, 247, 233, 0.1);
  border: 1px solid rgba(255, 236, 203, 0.18);
  box-shadow: none;
}

.contacts__info {
  padding: 10px 4px 10px 0;
}

.contacts__info h2,
.contacts__info .eyebrow,
.contacts__card h3,
.contacts__card .eyebrow {
  color: #fff8ef;
}

.contacts__lead {
  max-width: 54ch;
  margin: 18px 0 0;
  color: rgba(255, 245, 228, 0.78);
  font-size: 17px;
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.contact-list li {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 249, 239, 0.1);
  border: 1px solid rgba(255, 239, 212, 0.12);
}

.contact-list a {
  font-size: 20px;
  font-weight: 700;
  color: #fffdf9;
}

.contact-list span {
  margin-bottom: 8px;
  color: rgba(255, 236, 201, 0.66);
}

address {
  font-style: normal;
  font-size: 18px;
  color: #fff7ec;
}

.contacts__card p {
  color: rgba(255, 241, 221, 0.76);
}

.quiz {
  position: relative;
  padding: 0 44px 34px;
  border: 1px solid rgba(44, 31, 17, 0.1);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 243, 0.92);
  box-shadow: var(--shadow);
}

.quiz__progress {
    position: relative;
    height: 8px;
    margin: 4px 0px;
    background: rgba(93, 78, 57, 0.2);
    border-radius: 30px;
    overflow: hidden;
}

.quiz__progress-bar {
  display: block;
  width: 16.66%;
  height: 100%;
  background: linear-gradient(90deg, #c9ef30 0%, #99d322 100%);
  transition: width 0.25s ease;
}

.quiz-step {
  display: none;
  min-height: 510px;
  padding-top: 34px;
}

.quiz-step.is-active {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quiz-step h3 {
  margin-bottom: 20px;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.quiz-options {
  display: grid;
  gap: 14px;
}

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

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

.quiz-options--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

.quiz-option {
  position: relative;
  display: grid;
  grid-template-rows: 180px auto;
  gap: 8px;
  padding: 0;
  border: 1px solid rgba(44, 31, 17, 0.12);
  border-radius: 10px;
  background: #f4f4f4;
  cursor: pointer;
  text-align: left;
}

.quiz-option::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: transparent;
  font-size: 22px;
  font-weight: 700;
  background: #ff1515;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.quiz-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.quiz-option span {
  padding: 0 10px 12px;
  font-size: 20px;
}

.quiz-option.is-selected {
  border-color: rgba(255, 21, 21, 0.5);
}

.quiz-option.is-selected::after {
  opacity: 1;
  color: #fff;
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
}

.quiz-nav__stub {
  width: 120px;
}

.quiz-nav__back {
  border: 0;
  background: transparent;
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.quiz-btn {
  min-width: 190px;
  min-height: 64px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  background: #ff1515;
}

.quiz-counter {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 14px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.quiz-counter button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 12px;
  color: #ff1515;
  font-size: 48px;
  line-height: 1;
  background: transparent;
  cursor: pointer;
}

.quiz-counter strong {
  min-width: 48px;
  text-align: center;
  font-size: 36px;
}

.quiz-range-wrap {
  max-width: 1000px;
}

.quiz-range-wrap output {
  display: inline-block;
  margin-bottom: 10px;
  margin-left: calc((55 - 10) * 1%);
  min-width: 64px;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 30px;
  background: rgba(245, 245, 245, 0.9);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#quiz-area-range {
  width: 100%;
  accent-color: #ff1515;
}

.quiz-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 32px;
}

.quiz-note {
  font-size: 26px;
}

.quiz-phone {
  display: block;
  max-width: 700px;
}

.quiz-phone input {
  width: 100%;
  min-height: 78px;
  padding: 0 20px;
  border: 1px solid rgba(44, 31, 17, 0.12);
  border-radius: 12px;
  font-size: 40px;
  background: #fff;
}

.quiz-phone input:focus {
  border-color: rgba(255, 21, 21, 0.6);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 21, 21, 0.16);
}

.quiz-success {
  padding: 40px 0 18px;
}

.footer {
  border-top: 1px solid rgba(54, 44, 29, 0.08);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--text-soft);
}

.footer__links a:hover {
  color: var(--text);
}

.legal-page {
  min-height: 100vh;
}

.legal {
  padding: 56px 0 70px;
}

.legal__box {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 242, 0.9);
  box-shadow: var(--shadow);
}

.legal__box h1 {
  max-width: none;
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 48px);
}

.legal__box h2 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: clamp(24px, 3.2vw, 34px);
}

.legal__box p,
.legal__box li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
}

.legal__box ul {
  margin: 0;
  padding-left: 22px;
}

.legal__back {
  display: inline-flex;
  margin-top: 24px;
  color: var(--accent);
  font-weight: 700;
}

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

.modal.is-open {
  display: block;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  width: min(460px, calc(100% - 24px));
  padding: 16px 16px 14px;
  border: 1px solid rgba(54, 44, 29, 0.14);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 24px 46px rgba(35, 27, 17, 0.24);
  backdrop-filter: blur(8px);
}

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

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__btn {
  margin-top: 10px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #845126 0%, #d08d45 55%, #95591c 100%);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 20, 16, 0.56);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin: 6vh auto 0;
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 248, 237, 0.96);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(44, 34, 20, 0.08);
  cursor: pointer;
}

.lead-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

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

.field input {
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(54, 44, 29, 0.12);
  border-radius: var(--radius-sm);
  background: #fffcf7;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: rgba(168, 106, 45, 0.6);
  box-shadow: 0 0 0 4px rgba(216, 163, 95, 0.16);
}

.form-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
}

.consent input {
  margin-top: 3px;
}

.consent a {
  color: var(--accent);
  text-decoration: underline;
}

.consent--quiz {
  max-width: 700px;
  margin-top: 12px;
  font-size: 20px;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-success {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  color: #eff9f2;
  background: linear-gradient(135deg, #294133 0%, #3f6b54 100%);
}

body.modal-open {
  overflow: hidden;
}

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

  .hero__grid,
  .offer,
  .advantages,
  .steps,
  .quiz-options--4,
  .whyus-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  .header__inner,
  .footer__inner,
  .hero__grid,
  .contacts__backdrop,
  .offer,
  .advantages,
  .steps,
  .quiz-options--4,
  .quiz-options--3,
  .quiz-options--2,
  .whyus-grid {
    grid-template-columns: 1fr;
  }

  .header__inner,
  .footer__inner{
    flex-direction: column;
    align-items: stretch;
  }
  .header__actions{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
  }
  /* .header__phone,
  .btn {
    width: 100%;
  } */

  .footer__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .quiz {
    padding: 0 16px 18px;
  }

  .quiz__progress {
    margin: 0 -16px;
  }

  .quiz-step {
    min-height: auto;
    padding-top: 20px;
  }

  .quiz-step h3 {
    font-size: 30px;
  }

  .quiz-option {
    grid-template-rows: 170px auto;
  }

  .quiz-option span {
    font-size: 18px;
  }

  .quiz-nav__back {
    font-size: 22px;
  }

  .quiz-btn {
    min-width: 150px;
    min-height: 50px;
    font-size: 18px;
  }

  .quiz-counter strong {
    font-size: 30px;
  }

  .quiz-range-wrap output,
  .quiz-range-labels,
  .quiz-note,
  .quiz-phone input,
  .consent--quiz {
    font-size: 22px;
  }

  .hero {
    padding-top: 40px;
  }

  h1 {
    max-width: 100%;
    font-size: 42px;
  }

  .hero-card,
  .card,
  .step,
  .contacts__card,
  .contacts__backdrop,
  .modal__dialog,
  .offer {
    padding: 22px;
  }

  .modal__dialog {
    margin-top: 4vh;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}
