:root {
  color: #17213a;
  background: #eef6f8;
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.payHero {
  background:
    linear-gradient(90deg, rgba(8, 15, 30, 0.86), rgba(11, 22, 35, 0.58)),
    url("https://static.tildacdn.com/tild3663-3038-4632-b634-646133396535/2__2_1.svg") center / cover no-repeat;
  color: #ffffff;
  min-height: 390px;
  padding: 30px clamp(20px, 5vw, 72px) 72px;
}

.topNav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
}

.brand {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.brandMark {
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: inline-flex;
  font-size: 12px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.langNav {
  align-items: center;
  display: flex;
  gap: 12px;
}

.langNav button {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 800;
  padding: 7px 0;
}

.langNav button.active {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #15bcc8;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.heroInner {
  margin: 82px auto 0;
  max-width: 1200px;
}

.eyebrow {
  color: #15bcc8;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.heroInner h1 {
  color: #ffffff;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 820px;
  text-transform: uppercase;
}

.shell {
  margin: -44px auto 0;
  max-width: 1240px;
  padding: 0 20px 54px;
}

.status {
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.status.success {
  background: #edf8ee;
  border: 1px solid #b8dfbd;
  color: #22572a;
}

.status.error {
  background: #fff3ed;
  border: 1px solid #edc2ad;
  color: #7a2d11;
}

.paymentLayout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.catalog {
  display: grid;
  gap: 26px;
}

.catalogSection {
  display: grid;
  gap: 14px;
}

.catalogSection h2 {
  color: #17213a;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

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

.catalogSection-services .itemGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item {
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid rgba(108, 191, 197, 0.28);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(20, 36, 52, 0.08);
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: 30px 58px minmax(0, 1fr);
  min-height: 100%;
  padding: 18px;
  position: relative;
  text-align: left;
}

.item.active {
  border-color: #15bcc8;
  box-shadow: 0 22px 44px rgba(21, 188, 200, 0.22);
}

.radio {
  border: 2px solid #d7dde4;
  border-radius: 50%;
  display: grid;
  height: 30px;
  place-items: center;
  width: 30px;
}

.item.active .radio::after {
  background: #15bcc8;
  border-radius: 50%;
  content: "";
  display: block;
  height: 16px;
  width: 16px;
}

.icon {
  align-items: center;
  background: #17213a;
  border-radius: 8px;
  color: #15bcc8;
  display: inline-flex;
  font-size: 17px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  letter-spacing: 0;
  width: 58px;
}

.details {
  display: grid;
  gap: 9px;
  grid-column: 1 / -1;
}

.subtitle {
  color: #15a9b4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.1px;
  line-height: 1.25;
  text-transform: uppercase;
}

.details h3 {
  color: #17213a;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0;
}

.description {
  color: #66707f;
  font-size: 14px;
  line-height: 1.48;
  margin: 0;
}

.grantList {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.grantChip {
  background: #e4f7f9;
  border: 1px solid rgba(21, 188, 200, 0.28);
  border-radius: 999px;
  color: #176f77;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.price {
  align-items: flex-end;
  display: grid;
  gap: 3px;
  grid-column: 1 / -1;
  justify-items: start;
  margin-top: auto;
}

.compare {
  color: #ff4032;
  font-size: 17px;
  font-weight: 700;
  text-decoration: line-through;
}

.current {
  color: #101826;
  display: block;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.rubPrice,
.interval {
  color: #66707f;
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.checkoutPanel {
  position: sticky;
  top: 20px;
}

.checkoutForm {
  background: #ffffff;
  border: 2px solid rgba(108, 191, 197, 0.3);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(20, 36, 52, 0.14);
  padding: 22px;
}

.selectedSummary {
  background: #17213a;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 18px;
}

.summaryLabel {
  color: #15bcc8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.selectedSummary strong {
  font-size: 17px;
  line-height: 1.25;
}

.selectedSummary span:last-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.fieldGrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fieldGrid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.fieldGrid .wide {
  grid-column: 1 / -1;
}

.fieldGrid span {
  color: #17213a;
  font-size: 13px;
  font-weight: 800;
}

.fieldGrid input {
  border: 1px solid #ccd7de;
  border-radius: 7px;
  color: #17213a;
  font-size: 16px;
  height: 46px;
  min-width: 0;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

.fieldGrid input:focus {
  border-color: #15bcc8;
  box-shadow: 0 0 0 3px rgba(21, 188, 200, 0.15);
}

.legalText {
  color: #66707f;
  font-size: 12px;
  line-height: 1.45;
  margin: 14px 0;
}

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

.primaryButton,
.secondaryButton {
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  min-height: 50px;
  padding: 0 22px;
  text-transform: uppercase;
}

.primaryButton {
  background: #15bcc8;
  color: #ffffff;
}

.secondaryButton {
  background: #17213a;
  color: #ffffff;
}

.primaryButton:disabled,
.secondaryButton:disabled {
  cursor: wait;
  opacity: 0.62;
}

.footer {
  margin-top: 34px;
}

.footer a {
  color: #17213a;
  font-weight: 800;
}

@media (max-width: 1060px) {
  .paymentLayout {
    grid-template-columns: 1fr;
  }

  .checkoutPanel {
    position: static;
  }

  .itemGrid,
  .catalogSection-services .itemGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .payHero {
    min-height: 330px;
    padding: 22px 16px 56px;
  }

  .topNav {
    align-items: flex-start;
    gap: 18px;
  }

  .heroInner {
    margin-top: 58px;
  }

  .shell {
    margin-top: -28px;
    padding: 0 14px 42px;
  }

  .itemGrid,
  .catalogSection-services .itemGrid {
    grid-template-columns: 1fr;
  }

  .fieldGrid {
    grid-template-columns: 1fr;
  }
}
