/* ===== Font (как в Tilda) ===== */
@font-face {
  font-family: "PF Din Text Comp Pro";
  src: url("../fonts/pfdintextcomppro-bol.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PF Din Text Comp Pro", Arial, sans-serif;
  color: #fff;
  background: #000;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Variables ===== */
:root {
  --font: "PF Din Text Comp Pro", Arial, sans-serif;
  --accent: #f66a15;
  --muted: #999;
  --grid: 1200px;
  --hero-h: 838px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: var(--hero-h);
  background: #000;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1828px;
  max-width: none;
  height: auto;
}

.hero__overlay {
  position: absolute;
  inset-block: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__overlay--left {
  left: -160px;
  width: 1144px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.64) 24%,
    rgba(0, 0, 0, 0.83) 50%,
    rgba(0, 0, 0, 0.73) 75%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero__overlay--right {
  right: 0;
  width: 330px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.56) 49%,
    rgba(0, 0, 0, 1) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--grid);
  height: 100%;
  margin: 0 auto;
}

/* ===== Content (левая колонка) ===== */
.hero__content {
  position: absolute;
  top: 103px;
  left: 20px;
  width: 698px;
  display: flex;
  flex-direction: column;
  gap: 53px;
}

.logo img {
  width: 252px;
}

.hero__text-block {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero__heading {
  display: flex;
  flex-direction: column;
}

.hero__title {
  margin: 0;
  font-family: var(--font);
  font-size: 81px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.hero__subtitle {
  margin: 0;
  font-family: var(--font);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.features {
  margin: 0;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  text-transform: uppercase;
}

/* ===== Buttons ===== */
.actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px 9px;
  border-radius: 30px;
  font-family: var(--font);
  font-size: 35px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -45px;
  width: 45px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4));
  transform: skewX(-45deg);
  animation: btn-shine 3s linear infinite;
}

@keyframes btn-shine {
  20% { left: 120%; }
  100% { left: 120%; }
}

.btn--outline {
  border: 1px solid #fff;
  color: #fff;
}

/* ===== Stores ===== */
.stores {
  position: absolute;
  top: 625px;
  left: 20px;
  display: flex;
  gap: 16px;
  z-index: 2;
}

.stores img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* ===== Character & help text ===== */
.hero__character {
  position: absolute;
  top: 167px;
  left: 620px;
  width: 590px;
  max-width: none;
  z-index: 2;
}

.hero__help-text {
  position: absolute;
  top: 482px;
  left: 445px;
  margin: 0;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  z-index: 3;
}

/* ===== Modal ===== */
.modal {
  border: none;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  border-radius: 30px;
  background: #fbfbf9;
  color: #222;
}

.modal--wide {
  max-width: 640px;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.modal__inner {
  position: relative;
  padding: 40px 45px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #222;
  color: #fff;
  z-index: 1;
}

.modal__title {
  margin: 0 0 24px;
  font-family: var(--font);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.17;
  text-transform: uppercase;
  text-align: center;
}

.modal__body h3,
.modal__body h4 {
  margin: 24px 0 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
}

.modal__body h3:first-child {
  margin-top: 0;
}

.modal__body p,
.modal__body ol {
  margin: 0 0 10px;
  padding-left: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
}

.modal__body ol {
  padding-left: 22px;
}

.modal__faq-title {
  margin-top: 32px !important;
  text-transform: uppercase;
}

.btn--dark {
  display: block;
  margin: 16px auto 0;
  padding: 12px 44px;
  border: 2px solid #222;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: #222;
  text-transform: uppercase;
}

/* ===== Tablet (≤1199px) ===== */
@media (max-width: 1199px) {
  :root {
    --hero-h: 724px;
  }

  .hero__content {
    top: 92px;
  }

  .hero__title {
    font-size: 72px;
  }

  .hero__subtitle {
    font-size: 40px;
  }

  .features,
  .hero__help-text {
    font-size: 18px;
  }

  .hero__character {
    top: 0;
    left: 437px;
    width: 594px;
  }

  .hero__help-text {
    top: 441px;
    left: 456px;
  }
}

/* ===== Mobile (≤959px) ===== */
@media (max-width: 959px) {
  :root {
    --hero-h: auto;
  }

  .hero {
    min-height: 100svh;
    height: auto;
  }

  .hero__bg-image {
    left: 50%;
    top: 0;
    width: 1976px;
    transform: translateX(-50%);
  }

  .hero__overlay--left {
    left: 0;
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.45) 45%,
      rgba(0, 0, 0, 0.75) 100%
    );
  }

  .hero__overlay--right {
    display: none;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    width: 100%;
    min-height: 100svh;
    height: auto;
    padding: 50px 20px 0;
  }

  .hero__content {
    position: static;
    width: 100%;
    max-width: 320px;
    align-items: center;
    text-align: center;
    gap: 37px;
  }

  .hero__text-block {
    align-items: center;
    width: 100%;
  }

  .hero__heading {
    align-items: center;
  }

  .hero__title {
    font-size: 51px;
  }

  .hero__subtitle {
    font-size: 33px;
  }

  .features {
    max-width: 280px;
    text-align: center;
  }

  .actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    font-size: 26px;
    white-space: normal;
  }

  .btn--outline {
    font-size: 25px;
  }

  .logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .logo img {
    width: 220px;
  }

  .hero__help-text {
    position: static;
    transform: none;
    text-align: center;
    margin: 28px 0 0;
    padding: 0 10px;
  }

  .stores {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .hero__character {
    position: static;
    transform: none;
    width: min(314px, 88vw);
    margin: 16px auto 0;
  }

  .modal__inner {
    padding: 30px;
  }
}

@media (max-width: 640px) {
  .modal__inner {
    padding: 20px;
  }

  .modal__title {
    font-size: 26px;
  }

  .modal__body p,
  .modal__body ol {
    font-size: 12px;
    line-height: 1.45;
  }
}
