/* Трейд Лайн — pure black industrial. ZERO animations. */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

:root {
  --bg: #000;
  --text: #E8E8E8;
  --white: #fff;
  --accent: #C4FF00;
  --border: #333;
  --muted: #888;
  --font-sans: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--white);
}

button,
input {
  font: inherit;
  border-radius: 0;
}

/* —— Hero split —— */

.hero {
  display: flex;
  min-height: 100vh;
  border-bottom: 1px solid var(--border);
}

.hero__photo {
  width: 50vw;
  flex-shrink: 0;
  min-height: 100vh;
  border-right: 1px solid var(--border);
  overflow: hidden;
  background: #111;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
}

.hero__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px 32px;
  text-align: right;
  min-width: 0;
}

.hero__brand {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 40px;
}

.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__desc {
  font-size: 15px;
  color: var(--text);
  max-width: 420px;
  margin-left: auto;
  margin-bottom: 36px;
  line-height: 1.55;
}

.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.features__item {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-align: right;
}

.features__item:last-child {
  border-bottom: none;
}

.features__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.features__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #000;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: var(--white);
  border-color: var(--white);
  color: #000;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
}

.btn--ghost:hover {
  background: var(--accent);
  color: #000;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hero__cta-wrap {
  margin-bottom: 48px;
}

.hero__footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  text-align: right;
}

.hero__footer a {
  color: var(--muted);
}

.hero__footer a:hover {
  color: var(--accent);
}

.hero__phone {
  display: block;
  font-size: 13px;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.hero__phone:hover {
  color: var(--accent);
}

/* —— Quiz fullscreen —— */

.quiz {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: none;
  flex-direction: column;
  overflow: auto;
}

.quiz.is-open {
  display: flex;
}

body.quiz-open {
  overflow: hidden;
}

.quiz__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.quiz__close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.quiz__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.quiz__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.quiz__inner {
  width: 100%;
  max-width: 520px;
}

.quiz__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}

.quiz__question {
  font-family: var(--font-sans);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.25;
}

.quiz__hint {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.quiz__step {
  display: none;
}

.quiz__step.is-active {
  display: block;
}

.quiz__options {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.quiz__option {
  display: block;
  cursor: pointer;
}

.quiz__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz__option span {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #000;
}

.quiz__option:hover span {
  border-color: #555;
  color: var(--white);
}

.quiz__option input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
  background: #0a1000;
}

.quiz__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.quiz__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}

.quiz__input {
  width: 100%;
  padding: 14px 16px;
  background: #000;
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  outline: none;
}

.quiz__input:focus {
  border-color: var(--accent);
}

.quiz__input.error {
  border-color: #ff4444;
}

.quiz__consent {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.quiz__consent a {
  color: var(--text);
  text-decoration: underline;
}

.quiz__consent a:hover {
  color: var(--accent);
}

.quiz__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quiz__error {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ff4444;
  margin-bottom: 12px;
  display: none;
}

.quiz__error.is-visible {
  display: block;
}

.iti {
  width: 100%;
  display: block;
}

.iti__country-list {
  border-radius: 0;
  background: #111;
  border: 1px solid var(--border);
  color: var(--text);
}

.iti__country:hover,
.iti__country.iti__highlight {
  background: #222;
}

/* —— Legal / thank pages —— */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page__top {
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page__brand {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.page__back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.page__back:hover {
  color: var(--accent);
}

.page__main {
  flex: 1;
  padding: 48px 32px 64px;
  max-width: 780px;
}

.page__title {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

.legal {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}

.legal h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  margin: 28px 0 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal p,
.legal li {
  margin-bottom: 10px;
}

.legal ul {
  padding-left: 18px;
  margin-bottom: 12px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 11px;
}

.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: #111;
  color: var(--white);
}

.legal a {
  color: var(--accent);
}

.legal-meta {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.page__foot {
  border-top: 1px solid var(--border);
  padding: 20px 32px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.thank {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.thank__box {
  border: 1px solid var(--border);
  padding: 48px 40px;
  max-width: 480px;
}

.thank__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}

.thank__title {
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.thank__text {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 14px;
}

/* —— Mobile —— */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
  }

  .hero__photo {
    width: 100%;
    min-height: 42vh;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero__photo img {
    min-height: 42vh;
    height: 42vh;
  }

  .hero__panel {
    padding: 28px 20px 24px;
    text-align: left;
  }

  .hero__desc {
    margin-left: 0;
  }

  .features {
    align-items: stretch;
  }

  .features__item {
    flex-direction: row;
    text-align: left;
  }

  .hero__footer {
    text-align: left;
  }

  .page__main {
    padding: 32px 20px 48px;
  }

  .legal {
    padding-left: 16px;
  }
}
