:root {
  --ink: #111215;
  --muted: #686c75;
  --paper: #fbfbf7;
  --line: #e4e1d6;
  --mint: #19e6a2;
  --cyan: #15c7e8;
  --coral: #ff624a;
  --amber: #f4b740;
  --dark: #17181d;
  --shadow: 0 24px 70px rgba(22, 24, 29, .14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(17, 18, 21, .08);
  border-radius: var(--radius);
  background: rgba(251, 251, 247, .82);
  box-shadow: 0 10px 30px rgba(17, 18, 21, .08);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.header-actions,
.hero-actions,
.calc-actions,
.contacts-actions,
.trust-row {
  display: flex;
  align-items: center;
}

.brand {
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav {
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(17, 18, 21, .04);
}

.nav a {
  padding: 10px 12px;
  border-radius: 7px;
  color: #3d4048;
  font-weight: 700;
  font-size: 14px;
  transition: color .2s ease, background .2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: #fff;
  color: var(--ink);
}

.header-actions {
  gap: 8px;
}

.icon-button,
.menu-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
}

.icon-button {
  display: grid;
  place-items: center;
  color: var(--mint);
  font-weight: 900;
}

.menu-button {
  display: none;
  place-items: center;
  gap: 5px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.section,
.section-band,
.strip {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: 84px 0;
}

.section-band {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 36px;
  min-height: calc(100vh - 128px);
  margin-top: 22px;
  padding: 58px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -34% 34%;
  height: 360px;
  background: linear-gradient(90deg, rgba(25, 230, 162, .24), rgba(255, 98, 74, .20), rgba(244, 183, 64, .26));
  transform: rotate(-7deg);
  filter: blur(12px);
}

.hero-copy,
.hero-visual,
.calc-copy,
.calculator,
.contacts-copy,
.contacts-actions {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #1b8f69;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: .94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.16;
}

.lead {
  max-width: 630px;
  margin-bottom: 30px;
  color: #454852;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.calc-actions,
.contacts-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 14px 28px rgba(17, 18, 21, .20);
}

.button.primary:hover {
  box-shadow: 0 18px 36px rgba(17, 18, 21, .24);
}

.button.secondary {
  background: #ecfff8;
  color: #0c6f51;
  border: 1px solid rgba(25, 230, 162, .38);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.trust-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.trust-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  color: #464a52;
  font-weight: 800;
  font-size: 13px;
}

.hero-visual {
  align-self: center;
  min-height: 500px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fff9, #dffcf2);
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(17, 18, 21, .14);
}

.hero-visual img {
  width: min(100%, 580px);
  height: auto;
  max-height: 460px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 28px 34px rgba(17, 18, 21, .24));
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 8px;
  background: rgba(17, 18, 21, .82);
  color: #fff;
  box-shadow: 0 20px 44px rgba(17, 18, 21, .18);
  backdrop-filter: blur(10px);
  animation: float 5s ease-in-out infinite;
}

.floating-card span {
  color: #d7d9dc;
  font-size: 12px;
  font-weight: 700;
}

.floating-card strong {
  font-size: 14px;
}

.card-rate {
  top: 34px;
  left: -18px;
}

.card-check {
  right: -10px;
  bottom: 44px;
  animation-delay: -2.2s;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.strip div {
  display: grid;
  gap: 4px;
  padding: 24px;
  background: #fff;
}

.strip strong {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.strip span {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

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

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 18, 21, .06);
}

.product-showcase h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

.product-showcase p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.product-showcase img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 20px 26px rgba(17, 18, 21, .16));
}

.feature-card,
.step,
.calculator,
.promo-panel,
.notice-list,
.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 18, 21, .06);
}

.feature-card {
  min-height: 250px;
  padding: 22px;
  transition: transform .22s ease, border-color .22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 230, 162, .7);
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--dark);
  color: var(--mint);
  font-weight: 900;
}

.feature-card p,
.step p,
.promo-panel p,
.notice-list span,
.faq-list p,
.contacts-copy p,
.calc-copy p {
  color: var(--muted);
}

.calculator-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
  padding: 44px;
  background: #16171b;
  color: #fff;
}

.calculator-section .eyebrow {
  color: var(--mint);
}

.calc-copy {
  align-self: center;
}

.calc-copy p {
  max-width: 480px;
  color: #c7cbd1;
}

.calc-copy img {
  width: min(440px, 100%);
  margin-top: 26px;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  object-fit: contain;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .18);
}

.calculator {
  display: grid;
  gap: 14px;
  padding: 22px;
  color: var(--ink);
}

.calculator label {
  display: grid;
  gap: 8px;
}

.calculator label span {
  color: #444852;
  font-weight: 800;
  font-size: 13px;
}

.calculator input,
.calculator select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d9d6cc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.calculator input:focus,
.calculator select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(21, 199, 232, .18);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.total-box {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 8px;
  background: #ecfff8;
  border: 1px solid rgba(25, 230, 162, .42);
}

.total-box span,
.total-box small {
  color: #3a725f;
  font-weight: 800;
}

.total-box strong {
  font-size: 42px;
  line-height: 1;
}

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

.steps-preview {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 18, 21, .06);
}

.steps-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(17, 18, 21, .14));
}

.steps-preview p {
  margin: 0;
  color: #454852;
  font-size: 20px;
  font-weight: 800;
}

.step {
  position: relative;
  min-height: 250px;
  padding: 24px;
  overflow: hidden;
}

.step span {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--coral);
  font-weight: 900;
  font-size: 46px;
  line-height: 1;
}

.step::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 230, 162, .32), transparent 68%);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 0;
}

.promo-panel,
.notice-list {
  padding: 30px;
}

.promo-panel {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.promo-image {
  width: min(380px, 100%);
  margin: 22px 0;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .30));
}

.notice-list {
  display: grid;
  gap: 12px;
}

.notice-list div {
  display: grid;
  gap: 5px;
  padding: 18px;
  border-radius: 8px;
  background: #f6f6ef;
}

.notice-list strong {
  font-size: 18px;
}

.faq-section {
  padding-top: 0;
}

.faq-list {
  overflow: hidden;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list summary {
  cursor: pointer;
  padding: 22px;
  font-weight: 900;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--coral);
  font-size: 22px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 820px;
  padding: 0 22px 22px;
}

.contacts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 16px;
  padding: 38px;
  background: linear-gradient(120deg, #17181d, #25262b);
  color: #fff;
}

.contacts .eyebrow {
  color: var(--mint);
}

.contacts-copy p {
  max-width: 600px;
  color: #d3d5d9;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 26px;
  color: var(--muted);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  box-shadow: 0 18px 42px rgba(17, 18, 21, .22);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 980px) {
  .site-header {
    width: calc(100% - 24px);
  }

  .menu-button {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: 74px 12px auto;
    display: none;
    grid-template-columns: 1fr;
    padding: 10px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  body.menu-open .nav {
    display: grid;
  }

  .nav a {
    padding: 14px;
  }

  .hero,
  .calculator-section,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 34px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .product-showcase {
    grid-template-columns: minmax(0, 1fr) 180px;
  }

  .benefits-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .section,
  .section-band,
  .strip,
  .footer {
    width: calc(100% - 20px);
  }

  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .brand {
    font-size: 17px;
  }

  .hero {
    min-height: auto;
    padding: 26px 18px 18px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .calc-actions,
  .contacts-actions {
    width: 100%;
  }

  .trust-row span {
    width: 100%;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-visual {
    padding: 16px;
  }

  .floating-card {
    position: static;
    margin-top: 10px;
    animation: none;
  }

  .strip,
  .benefits-grid,
  .steps,
  .product-showcase,
  .steps-preview,
  .form-row {
    grid-template-columns: 1fr;
  }

  .product-showcase img,
  .steps-preview img {
    max-height: 170px;
  }

  .section {
    padding: 58px 0;
  }

  .calculator-section,
  .contacts {
    padding: 22px;
  }

  .feature-card,
  .step {
    min-height: auto;
  }

  .feature-icon,
  .step span {
    margin-bottom: 24px;
  }

  .total-box strong {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
