:root {
  --ink: #203c48;
  --muted: #576d75;
  --blue: #2267d8;
  --paper: #f7faf9;
  --sky: #e1f0ef;
  --gold: #f5c66f;
  --line: #c6d7d9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #b06013;
  outline-offset: 4px;
}
.wrap {
  max-width: 1160px;
  margin: auto;
  padding: 0 40px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 105px;
}
.logo {
  text-decoration: none;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1.8px;
  white-space: nowrap;
}
.logo span {
  color: var(--blue);
}
.logo small {
  font-size: 11px;
  letter-spacing: 0;
  margin-left: 9px;
}
.back {
  font-size: 13px;
  text-decoration: none;
  padding: 12px 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
}
.checkout {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 68px;
  align-items: center;
  padding: 30px 0 50px;
}
.introline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  margin: 0 0 20px;
}
.introline span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  background: #dcebe8;
  border-radius: 50%;
  color: #347665;
}
h1 {
  font-size: clamp(40px, 4.7vw, 57px);
  line-height: 1.12;
  letter-spacing: -2.5px;
  margin: 0 0 19px;
  font-weight: 800;
}
.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.stage {
  height: 310px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
  isolation: isolate;
  margin-top: 24px;
  max-width: 390px;
}
.stage:before {
  content: "";
  position: absolute;
  inset: 45px 0 0;
  background: var(--sky);
  border-radius: 48% 48% 20px 20px;
  z-index: -2;
}
.stage img {
  width: 290px;
  height: 290px;
  object-fit: contain;
}
.sun {
  position: absolute;
  right: 15px;
  top: 56px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--gold);
  z-index: -1;
}
.speech {
  position: absolute;
  left: 3px;
  top: 2px;
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px 17px 2px 17px;
  font-size: 14px;
  font-weight: 700;
  transform: rotate(-4deg);
}
.payment {
  background: white;
  border: 1px solid #d6e2e3;
  border-radius: 24px;
  padding: 34px 35px;
  box-shadow: 0 16px 45px #203c4807;
}
h2 {
  font-size: 27px;
  letter-spacing: -0.9px;
  line-height: 1.2;
  margin: 0 0 9px;
  font-weight: 800;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 23px;
  border-bottom: 1px solid #dce5e6;
  margin-bottom: 25px;
}
.price {
  font-size: 51px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -2px;
}
.price span {
  font-size: 30px;
  font-weight: 600;
}
.period {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.period strong {
  color: var(--ink);
  font-weight: 600;
}
.field {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 9px;
}
.input {
  width: 100%;
  min-width: 0;
  border: 1px solid #b5cbd0;
  border-radius: 11px;
  background: var(--paper);
  height: 54px;
  padding: 0 15px;
  color: var(--ink);
  font-size: 18px;
}
.input::placeholder {
  color: #76888e;
}
/* The field always contains the real "+7 " prefix, so the native placeholder
 * is never painted. This overlay repeats the hint after the prefix, aligned by
 * a hidden copy of the same prefix in the same font, and is hidden as soon as
 * the first national digit is typed. Never interactive, never submitted. */
.phone-field {
  position: relative;
}
.phone-ghost {
  position: absolute;
  left: 16px;
  top: 0;
  line-height: 54px;
  font-size: 18px;
  color: #76888e;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}
.phone-ghost[hidden] {
  display: none;
}
.phone-ghost-prefix {
  visibility: hidden;
}
.hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 9px 0 17px;
}
.consent {
  display: flex;
  gap: 9px;
  font-size: 12px;
  line-height: 1.6;
  align-items: flex-start;
  margin: 21px 0;
}
.consent input {
  margin: 3px 0 0;
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  flex: none;
}
.consent a {
  color: var(--blue);
  text-underline-offset: 3px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid var(--blue);
  border-radius: 12px;
  min-height: 53px;
  padding: 13px 14px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin: 12px 0 0;
}
.btn:hover {
  background: #1957bd;
}
.btn.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.btn.secondary:hover {
  background: var(--paper);
}
.center {
  text-align: center;
}
.terms {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid #e0e8e9;
  padding-top: 14px;
  margin-top: 19px;
}
.terms summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}
.terms p {
  margin-bottom: 0;
}
.error {
  padding: 12px 14px;
  border-left: 3px solid #a84432;
  background: #fff3f0;
  color: #8d3324;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 5px;
}
.code {
  letter-spacing: 3px;
}
.text-link {
  display: inline-block;
  font-size: 13px;
  color: var(--blue);
  margin-top: 12px;
}
.wait-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 23px;
  background: var(--sky);
  border-radius: 50%;
  font-size: 32px;
  color: #347665;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 23px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
footer a {
  text-underline-offset: 3px;
}
@media (max-width: 900px) {
  .checkout {
    gap: 30px;
    grid-template-columns: 1fr 420px;
  }
  .wrap {
    padding: 0 25px;
  }
  h1 {
    font-size: 43px;
  }
  .stage {
    height: 280px;
  }
  .stage img {
    height: 260px;
    width: 260px;
  }
}
@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
    max-width: 500px;
  }
  .nav {
    min-height: 88px;
  }
  .logo {
    font-size: 29px;
  }
  .back {
    font-size: 11px;
    padding: 10px 12px;
  }
  .checkout {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 12px 0 32px;
    align-items: stretch;
  }
  .introline {
    font-size: 12px;
    margin-bottom: 13px;
  }
  h1 {
    font-size: 38px;
    letter-spacing: -1.6px;
    margin-bottom: 12px;
  }
  .lead {
    font-size: 14px;
    line-height: 1.65;
  }
  .desktop-break {
    display: none;
  }
  .stage {
    display: none;
  }
  .payment {
    padding: 26px 23px;
    border-radius: 20px;
  }
  h2 {
    font-size: 25px;
  }
  .plan {
    padding-top: 13px;
    margin-bottom: 22px;
  }
  .price {
    font-size: 46px;
  }
  .input {
    font-size: 17px;
  }
  .phone-ghost {
    font-size: 17px;
  }
  .btn {
    font-size: 13px;
  }
  footer {
    font-size: 11px;
    align-items: flex-start;
    gap: 5px;
  }
}
@media (max-width: 360px) {
  h1 {
    font-size: 33px;
  }
  .payment {
    padding: 24px 18px;
  }
  .price {
    font-size: 40px;
  }
  .plan {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
