* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

h1,
h2,
p {
  margin: 0;
}

button,
input {
  font: inherit;
}

main {
  width: 100%;
  min-height: 100dvh;
}

.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #000;
}

.hero__image {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(9, 35, 67, 0.62), rgba(0, 0, 0, 0.68)),
    rgba(0, 0, 0, 0.28);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 32px));
  margin-top: 7.5vh;
  text-align: center;
}

.hero.has-curse .hero__content {
  display: none;
}

.curse-card {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 32px));
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(22, 22, 28, 0.92), rgba(0, 0, 0, 0.9)),
    rgba(0, 0, 0, 0.82);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.78);
  text-align: center;
}

.curse-card[hidden] {
  display: none;
}

.hero .curse-card h1 {
  margin-bottom: 26px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.02;
}

.hero .curse-card__text {
  max-width: 640px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.32;
}

.info-link {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  padding: 8px 0;
  border: 0;
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
  transform: translateX(-50%);
  transition: color 0.18s ease, transform 0.18s ease;
}

.info-link:hover {
  color: #fff;
  transform: translateX(-50%) translateY(-1px);
}

.hero h1 {
  margin-bottom: 38px;
  font-size: clamp(44px, 3.2vw, 60px);
  line-height: 1.06;
  font-weight: 700;
}

.hero p {
  margin-bottom: 78px;
  font-size: clamp(20px, 1.25vw, 24px);
  line-height: 1.35;
  font-weight: 400;
}

.button {
  display: inline-flex;
  min-width: 215px;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 18px 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #ff1714;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.button:hover {
  background: #ff2a27;
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.seo-section {
  position: relative;
  z-index: 3;
  padding: clamp(48px, 8vw, 92px) 16px;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.seo-section__inner {
  width: min(880px, 100%);
  margin: 0 auto;
}

.seo-section h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.seo-section p {
  max-width: 760px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.55;
}

.seo-section p:last-child {
  margin-bottom: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.info-modal__panel {
  width: min(650px, 100%);
  padding: clamp(28px, 4vw, 48px);
}

.info-modal__content {
  display: grid;
  gap: clamp(28px, 5vw, 78px);
}

.info-modal__text {
  color: #fff;
  font-size: clamp(22px, 2.6vw, 26px);
  line-height: 1.32;
  text-align: left;
}

.info-modal__image {
  display: block;
  width: 100%;
  max-height: min(520px, 54vh);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 23, 20, 0.16), transparent 28%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow-y: auto;
  padding: clamp(32px, 4vw, 52px) clamp(22px, 5vw, 62px) clamp(34px, 4vw, 56px);
  background:
    linear-gradient(145deg, rgba(22, 22, 28, 0.96), rgba(0, 0, 0, 0.94)),
    #050505;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(255, 23, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
}

.modal__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent) top / 100% 1px no-repeat,
    radial-gradient(circle at 18% 0%, rgba(255, 23, 20, 0.24), transparent 34%);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.modal__close:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 10px;
  width: 20px;
  height: 2px;
  background: #fff;
}

.modal__close::before {
  transform: rotate(45deg);
}

.modal__close::after {
  transform: rotate(-45deg);
}

.modal__heading,
.modal__progress-view,
.modal__success-view {
  text-align: center;
}

.modal__heading {
  margin-bottom: 34px;
}

.modal h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 700;
}

.modal p {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.28;
}

.modal .info-modal__text {
  color: #fff;
  font-size: clamp(22px, 2.6vw, 26px);
  line-height: 1.32;
}

.modal__tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.curse-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.curse-form label {
  display: grid;
  gap: 8px;
  text-align: left;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.curse-form input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 16px;
  font-weight: 400;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.curse-form input::placeholder {
  color: #8b99a5;
  opacity: 1;
}

.curse-form input:focus {
  border-color: #ff1714;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(255, 23, 20, 0.14);
}

.form-button {
  width: min(100%, 320px);
  justify-self: center;
  margin-top: 14px;
  box-shadow: 0 18px 42px rgba(255, 23, 20, 0.24);
}

.modal__progress-view,
.modal__success-view {
  min-height: 360px;
  display: grid;
  align-content: center;
  justify-items: center;
}

.modal__progress-view[hidden],
.modal__success-view[hidden] {
  display: none;
}

.modal__progress-view p {
  margin-bottom: 30px;
}

.progress {
  width: min(560px, 100%);
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.36);
}

.progress__bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff1714, #ff6a3d);
  box-shadow: 0 0 24px rgba(255, 23, 20, 0.52);
  transition: width 0.16s linear;
}

.modal__progress-view strong {
  margin-top: 18px;
  font-size: 24px;
}

.modal__success-view p {
  max-width: 620px;
  margin-bottom: 28px;
}

.share-box {
  width: min(640px, 100%);
  margin-bottom: 30px;
  text-align: left;
}

.share-box label {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 700;
}

.share-box__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.share-preview {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 70px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.26);
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.share-preview:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(0, 0, 0, 0.3);
}

.share-preview strong {
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-preview span {
  overflow: hidden;
  min-height: 0;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-box__native-input {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.copy-button {
  min-height: 70px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.copy-button:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.share-actions .copy-button {
  min-height: 48px;
  padding: 0 14px;
}

.share-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.share-box > span {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

@media (max-width: 760px) {
  .hero__content {
    margin-top: 0;
  }

  .hero h1 {
    margin-bottom: 26px;
    font-size: 42px;
  }

  .hero p {
    margin-bottom: 46px;
    font-size: 20px;
  }

  .curse-card {
    border-radius: 22px;
  }

  .info-link {
    bottom: 18px;
    font-size: 14px;
  }

  .modal {
    padding: 14px;
  }

  .modal__panel {
    max-height: calc(100vh - 28px);
    padding: 60px 18px 30px;
    border-radius: 22px;
  }

  .modal h2 {
    margin-bottom: 18px;
    font-size: 34px;
  }

  .modal p {
    font-size: 19px;
  }

  .info-modal__text {
    font-size: 20px;
  }

  .curse-form label {
    font-size: 18px;
  }

  .share-box__row {
    grid-template-columns: 1fr;
  }

  .share-actions {
    grid-template-columns: 1fr;
  }
}
