:root {
  --paper: #f7f6f2;
  --paper2: #efede6;
  --ink: #0d0e14;
  --ink2: #2a2c36;
  --mut: #686b78;
  --line: #dcd9cf;
  --acc: #4f46e5;
  --acc-soft: #e8e7fb;
  --go: #0f9f6e;
  --go-dark: #0b7a55;
  --card: #ffffff;
  --r: 14px;
  --disp: "Unbounded", Georgia, serif;
  --body: "Onest", -apple-system, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 16px/1.6 var(--body);
  color: var(--ink);
  background: var(--paper);
}
a {
  color: var(--acc);
}
.w {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* шапка */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .w {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
}
.logo {
  font: 700 17px/1 var(--disp);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.logo i {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ink);
  position: relative;
}
.logo i:after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 2px;
  background: var(--go);
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  color: var(--ink2);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a:hover,
.nav a.on {
  background: var(--paper2);
}
.pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--go);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow:
    0 1px 0 var(--go-dark),
    0 6px 18px -8px rgba(15, 159, 110, 0.6);
}
.pay-btn:hover {
  background: var(--go-dark);
}
.burger {
  display: none;
}
@media (max-width: 820px) {
  .nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open {
    display: flex;
  }
  .burger {
    display: block;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 40px;
    height: 38px;
    font-size: 18px;
    color: var(--ink);
  }
  .top .pay-btn {
    padding: 9px 12px;
    font-size: 14px;
  }
}

/* типографика */
h1,
h2,
h3 {
  font-family: var(--disp);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0;
}
h1 {
  font-size: clamp(30px, 5.4vw, 54px);
}
h2 {
  font-size: clamp(23px, 3.2vw, 32px);
  margin: 0 0 18px;
}
h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.kicker {
  display: block;
  font: 500 14px/1.3 var(--body);
  color: var(--mut);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--go);
}
.lead {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--ink2);
  max-width: 640px;
  margin: 18px 0 0;
}
.mut {
  color: var(--mut);
}
section {
  padding: 56px 0;
}
.page-head {
  padding: 44px 0 8px;
}

/* первый экран */
.hero {
  padding: 52px 0 40px;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.paycard {
  background: var(--ink);
  color: #f3f2ee;
  border-radius: 20px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.paycard h3 {
  color: #fff;
  font-size: 20px;
  position: relative;
}
.paycard p {
  color: #b9b9c6;
  font-size: 15px;
  position: relative;
  margin: 6px 0 18px;
}
.paycard .steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  position: relative;
  counter-reset: s;
}
.paycard .steps li {
  counter-increment: s;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  border-top: 1px solid #2a2b36;
  font-size: 15px;
}
.paycard .steps li:before {
  content: counter(s);
  font: 600 12px/24px var(--disp);
  width: 24px;
  height: 24px;
  flex: none;
  text-align: center;
  border-radius: 7px;
  background: #23242f;
  color: #9fe8cb;
}
.paycard .pay-btn {
  position: relative;
  width: 100%;
  justify-content: center;
  padding: 13px;
}
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }
}

/* плашки доверия */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.trust div {
  background: var(--card);
  padding: 18px;
}
.trust b {
  display: block;
  font: 600 22px/1.1 var(--disp);
  margin-bottom: 6px;
}
.trust span {
  color: var(--mut);
  font-size: 14px;
}
@media (max-width: 820px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* карточки услуг */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  display: flex;
  flex-direction: column;
  
}
.card .ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--acc-soft);
  color: var(--acc);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.card p {
  margin: 0 0 14px;
  color: var(--ink2);
  font-size: 15px;
}
.card ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--ink2);
  font-size: 15px;
}
.card .price {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.card .price b {
  font: 600 19px var(--disp);
}
.card .price span {
  color: var(--mut);
  font-size: 13px;
}

/* шаги */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: f;
}
.flow div {
  counter-increment: f;
  padding: 20px;
  border-radius: var(--r);
  background: var(--paper2);
}
.flow div:before {
  content: "0" counter(f);
  font: 600 13px var(--disp);
  color: var(--acc);
  display: block;
  margin-bottom: 12px;
}
.flow p {
  margin: 0;
  font-size: 15px;
  color: var(--ink2);
}
@media (max-width: 820px) {
  .flow {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .flow {
    grid-template-columns: 1fr;
  }
}

/* документы и текстовые страницы */
.doc {
  max-width: 780px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 4vw, 40px);
  margin: 24px 0 0;
}
.doc h2 {
  font-size: 20px;
  margin: 28px 0 10px;
}
.doc h2:first-child {
  margin-top: 0;
}
.doc p,
.doc li {
  color: var(--ink2);
}
.doc ol,
.doc ul {
  padding-left: 22px;
}
.note {
  background: var(--acc-soft);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink2);
  font-size: 15px;
}

/* форма оплаты */
.payform {
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 32px);
  margin-top: 24px;
  box-shadow: 0 24px 50px -30px rgba(13, 14, 20, 0.35);
}
.payform label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 16px 0 6px;
}
.payform input {
  width: 100%;
  font: 500 17px var(--body);
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
}
.payform input:focus {
  outline: 2px solid var(--acc);
  outline-offset: 1px;
  background: #fff;
}
.sum-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sum-row input {
  font: 600 26px var(--disp);
}
.sum-row span {
  font: 600 26px var(--disp);
  color: var(--mut);
}
.payform .pay-btn {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 17px;
  margin-top: 22px;
  border: 0;
  cursor: pointer;
  font-family: var(--body);
}
.payform .legal {
  font-size: 13px;
  color: var(--mut);
  margin: 14px 0 0;
}
.methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.methods span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 8px;
  background: var(--paper);
}
.paymsg {
  display: none;
  margin-top: 14px;
}
.paymsg.show {
  display: block;
}

/* реквизиты */
.req {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card);
}
.req div {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.req div:nth-child(odd) {
  color: var(--mut);
  background: #fbfaf7;
}
.req div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
@media (max-width: 600px) {
  .req {
    grid-template-columns: 1fr;
  }
  .req div:nth-child(odd) {
    border-bottom: 0;
    padding-bottom: 2px;
  }
}

/* подвал */
footer {
  margin-top: 64px;
  background: var(--ink);
  color: #a9aab5;
  font-size: 14px;
}
footer .w {
  padding: 40px 16px 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
}
footer b {
  color: #fff;
  display: block;
  margin-bottom: 8px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 14px;
}
footer a {
  color: #d4d4dc;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
  text-decoration: underline;
}
footer .links a {
  display: block;
  padding: 3px 0;
}
footer .bottom {
  border-top: 1px solid #23242f;
  display: block;
  padding: 16px;
  font-size: 13px;
}
@media (max-width: 820px) {
  footer .w {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  footer .w {
    grid-template-columns: 1fr;
  }
}

.page-head h1 {
  font-size: clamp(25px, 5vw, 44px);
  overflow-wrap: break-word;
  hyphens: auto;
}
.price-list h3 {
  margin: 26px 0 8px;
  font-size: 16px;
}
.price-list table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-size: 15px;
}
.price-list td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-list tr:last-child td {
  border-bottom: 0;
}
.price-list .p {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}
.price-list .s {
  color: var(--mut);
  white-space: nowrap;
  font-size: 14px;
}
@media (max-width: 600px) {
  .price-list .s {
    display: none;
  }
}
