/* first screen */

.hero {
  padding-block: 40px 72px;
  display: grid;
  grid-template-columns: 1fr 424px;
  gap: 48px;
  align-items: end;
}
.hero__text h1 {
  margin: 0 0 20px;
  font-weight: 600;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero__lead {
  max-width: 34em;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}
.hero__plate { position: relative; right: auto; bottom: auto; width: auto; }
.hero__upto { font-weight: 600; }

/* calculator */

.b2b {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4.4vw, 64px);
}

.b2b__inputs { display: grid; gap: 22px; align-content: start; }

.b2b__field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.b2b__box {
  height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  background: var(--border-btn);
  box-shadow: inset 0 0 0 1px var(--edge);
  transition: box-shadow 0.2s linear;
}
.b2b__box:focus-within { box-shadow: inset 0 0 0 2px var(--crimson-hi); }
.b2b__box input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: 600 24px/1 'Exo 2', sans-serif;
  letter-spacing: -0.02em;
  -moz-appearance: textfield;
  appearance: textfield;
}
.b2b__box input::-webkit-outer-spin-button,
.b2b__box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.b2b__box input:focus { outline: none; }
.b2b__box span { flex: none; font-size: 16px; color: var(--ink-2); }
.b2b__hint { margin: 8px 0 0; font-size: 14px; line-height: 1.35; color: var(--ink-2); }

.b2b__result { position: sticky; top: 96px; align-self: start; display: grid; gap: 16px; }
.b2b__label { margin: 0; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }

.b2b__plate {
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 10px;
  border-radius: var(--radius);
  background: var(--crimson-field);
}
.b2b__plate > span:last-child { font-size: 16px; color: rgba(255, 255, 255, 0.86); }
.b2b__total {
  font-weight: 600;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.b2b__lines { margin: 0; display: grid; }
.b2b__lines > div {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--hair);
}
.b2b__lines dt { font-size: 16px; color: var(--ink-2); }
.b2b__lines dd { margin: 0; font-weight: 600; font-size: 17px; white-space: nowrap; }
.b2b__roi dt { color: var(--ink); font-weight: 600; }
.b2b__roi dd { font-size: 22px; letter-spacing: -0.02em; }

.b2b__funnel {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.b2b__funnel li {
  padding: 14px 14px 16px;
  display: grid;
  gap: 6px;
  align-content: start;
  border-radius: 12px;
  background: var(--band);
}
.b2b__funnel strong { font-weight: 600; font-size: 22px; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.b2b__funnel span { font-size: 13px; line-height: 1.3; color: var(--ink-2); }

.b2b__sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* tiers */

.tiers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tier {
  padding: 28px 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
  border-radius: var(--radius);
  background: var(--band);
}
.tier:last-child { background: var(--crimson-field); }
.tier p { margin: 0; }
.tier__name { font-weight: 600; font-size: 24px; line-height: 1; letter-spacing: -0.02em; }
.tier__name span { display: block; margin-top: 8px; font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--ink-2); }
.tier__rate { align-self: end; display: grid; gap: 8px; }
.tier__rate strong { font-weight: 600; font-size: clamp(40px, 3.8vw, 56px); line-height: 0.9; letter-spacing: -0.03em; white-space: nowrap; }
.tier span { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.tier:last-child span { color: rgba(255, 255, 255, 0.86); }

/* responsive */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 380px; gap: 32px; }
  .b2b { grid-template-columns: minmax(0, 1fr); }
  .b2b__result { position: static; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: 24px 48px; }
  .hero__text h1 { font-size: clamp(30px, 6.4vw, 44px); margin-bottom: 14px; }
  .hero__lead { font-size: 16px; margin-bottom: 18px; }
  .tiers { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 767px) {
  .hero__plate { padding: 22px 20px 24px; }
  .b2b__funnel { grid-template-columns: 1fr 1fr; }
  .b2b__lines dt { font-size: 15px; }
  .tier { padding: 22px 20px; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .b2b__box { transition: none; }
}
