/* ==========================================================================
   Лендинг лид-магнита: «Бесплатная концепция игры за 24 часа»
   Базовые токены, кнопки, шапка, подвал и cookie — из style.css
   ========================================================================== */

/* ---------- Шапка ---------- */
.lp-header__right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.lp-header__link { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .75); text-decoration: none; transition: color .2s; }
.lp-header__link:hover { color: var(--white); }
.lp-header .header__logo { flex: none; }
.lp-header__home-short { display: none; }

/* ---------- Первый экран ---------- */
.lp-hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lp-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
  padding: 7px 14px; border-radius: 999px; background: rgba(141, 180, 255, .12);
  font-size: 14px; font-weight: 600; color: var(--accent-light);
}
.lp-hero__title { font-size: clamp(32px, 4vw, 56px); }
.lp-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.lp-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.lp-hero__meta li { display: flex; align-items: center; gap: 8px; }
.lp-hero__meta li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: rgba(141, 180, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10 3 3 5-6' fill='none' stroke='%238db4ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Превью концепции */
.lp-preview { position: relative; opacity: 0; animation: heroVisual 1.4s var(--ease-out) .3s forwards; }
.lp-doc {
  position: relative; overflow: hidden; border-radius: 24px;
  background: var(--white); color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
  transform: rotate(2deg); transition: transform .8s var(--ease-out);
}
.lp-preview:hover .lp-doc { transform: rotate(0deg) translateY(-4px); }
.lp-doc__cover { position: relative; aspect-ratio: 16 / 7; overflow: hidden; }
.lp-doc__cover img { width: 100%; height: 100%; object-fit: cover; }
.lp-doc__label {
  position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(10, 14, 26, .75); color: var(--white); font-size: 13px; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lp-doc__body { padding: 22px 24px 24px; }
.lp-doc__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.lp-doc__row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.lp-doc__row i { display: block; height: 8px; border-radius: 8px; background: var(--paper); position: relative; overflow: hidden; }
.lp-doc__row i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform-origin: left; animation: barGrow 1.4s var(--ease-out) .9s both;
}
@keyframes barGrow { from { transform: scaleX(0); } }
.lp-doc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.lp-doc__grid div { padding: 12px; border-radius: 14px; background: var(--accent-soft); }
.lp-doc__grid small { display: block; font-size: 12px; color: var(--muted); }
.lp-doc__grid b { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.lp-preview__chip {
  position: absolute; right: -20px; top: -22px; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 16px;
  background: rgba(20, 24, 40, .85); border: 1px solid var(--line-light); color: rgba(255, 255, 255, .75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
  animation: float 6s ease-in-out infinite;
}
.lp-preview__chip svg { width: 24px; height: 24px; color: var(--accent-light); flex: none; }
.lp-preview__chip b { color: var(--white); }

/* Доверие */
.lp-trust {
  position: relative; margin-top: clamp(56px, 7vw, 88px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px;
  padding: 22px 28px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line-light);
}
.lp-trust__label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.lp-trust__list { display: flex; flex-wrap: wrap; gap: 12px 40px; flex: 1; justify-content: space-between; }
.lp-trust__list li { display: flex; flex-direction: column; gap: 2px; }
.lp-trust__list b { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--white); }
.lp-trust__list span { font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ---------- Что вы получаете ---------- */
.lp-get__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-get__grid .lp-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.lp-card {
  display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.lp-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(15, 20, 36, .25); }
.lp-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 24px; }
.lp-card__icon svg { width: 26px; height: 26px; }
.lp-card__title { font-family: var(--font-display); font-size: clamp(20px, 1.9vw, 24px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.lp-card__text { margin-top: 12px; color: var(--muted); }

/* ---------- Анкета ---------- */
.lp-form-section { padding-top: 0; }
.lp-form-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.lp-form-intro { position: sticky; top: calc(var(--header-h) + 32px); }

.lp-progress { margin-top: 32px; max-width: 360px; }
.lp-progress__top { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.lp-progress__top b { color: var(--text); }
.lp-progress__bar { height: 8px; border-radius: 8px; background: #e3e7f2; overflow: hidden; }
.lp-progress__bar span { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); transition: width .5s var(--ease-out); }

.lp-assure { margin-top: 28px; display: grid; gap: 12px; color: var(--muted); font-size: 15px; }
.lp-assure li { position: relative; padding-left: 28px; }
.lp-assure li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10 3 3 5-6' fill='none' stroke='%233b6bff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.lp-form-card {
  position: relative; padding: clamp(24px, 3.5vw, 44px); border-radius: 32px;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(15, 20, 36, .35);
}
.lp-form { display: grid; gap: 22px; }
.lp-form[hidden] { display: none; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 0; font-weight: 600; font-size: 16px; }
.field__num {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--paper); color: var(--muted); font-family: var(--font-display); font-size: 13px;
  transition: background-color .3s, color .3s;
}
.field.is-done .field__num { background: var(--accent); color: var(--white); }
.field__input {
  width: 100%; height: 54px; padding: 0 18px; border-radius: 14px;
  border: 1.5px solid #dfe3ee; background: var(--paper);
  font: inherit; font-size: 16px; color: var(--text);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field__input::placeholder { color: #9aa3b8; }
.field__input:hover { border-color: #c8cfe0; }
.field__input:focus { outline: none; border-color: var(--accent); background-color: var(--white); box-shadow: 0 0 0 4px rgba(59, 107, 255, .14); }
.field__input--area { height: auto; min-height: 104px; padding: 14px 18px; resize: vertical; line-height: 1.5; }
.field__error { display: none; margin-top: 8px; font-size: 14px; color: #d4332f; }
.field.is-invalid .field__input { border-color: #e2554f; background-color: #fff7f6; }
.field.is-invalid .field__error, .consent.is-invalid + .field__error { display: block; }
.field__error--consent { margin-top: -12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid #dfe3ee; background: var(--paper); font-size: 15px; font-weight: 500;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s;
}
.chip:hover span { border-color: #c8cfe0; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--white); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(59, 107, 255, .2); }
.field.is-invalid .chip span { border-color: #e2554f; }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.45; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--text); }
.consent.is-invalid { color: #d4332f; }

.lp-form__submit { width: 100%; margin-top: 4px; }
.lp-form__submit.is-loading { pointer-events: none; opacity: .8; }
.lp-form__submit.is-loading .btn__arrow { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lp-form__note { text-align: center; font-size: 14px; color: var(--muted); margin-top: -8px; }

/* Экран после отправки */
.lp-success { text-align: center; padding: 32px 8px; display: flex; flex-direction: column; align-items: center; outline: none; }
.lp-success[hidden] { display: none; }
.lp-success__icon {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent); color: var(--white); margin-bottom: 24px;
  box-shadow: 0 0 0 10px var(--accent-soft);
  animation: pop .6s var(--ease-out);
}
.lp-success__icon svg { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.lp-success__title { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.lp-success__text { margin-top: 12px; max-width: 420px; color: var(--muted); }
.lp-success__redirect { margin: 18px 0 24px; font-size: 14px; color: var(--muted-light); }

.lp-cross { margin-top: 40px; text-align: center; color: var(--muted); }
.lp-cross .link-arrow { color: var(--accent); margin-left: 6px; }

.lp-footer { padding-top: 16px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .lp-get__grid { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 960px) {
  .lp-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .lp-preview { max-width: 520px; width: 100%; margin: 24px auto 0; }
  .lp-form-wrap { grid-template-columns: minmax(0, 1fr); }
  .lp-form-intro { position: static; }
  .lp-header__link { display: none; }
}

@media (max-width: 600px) {
  .lp-header .btn { --h: 40px; padding: 0 14px; font-size: 14px; }
  .lp-header .header__logo img { width: 108px; }
  .lp-header__home-full { display: none; }
  .lp-header__home-short { display: inline; }
  .lp-header__right { gap: 6px; }
  .lp-header .lang summary { padding: 0 10px; }
  .lp-header .lp-header__home { width: 40px; padding: 0; font-size: 0; gap: 0; }
  .lp-header .lp-header__home::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 10.5 12 4l8 6.5V19a1 1 0 0 1-1 1h-4.5v-5.5h-5V20H5a1 1 0 0 1-1-1v-8.5Z' fill='none' stroke='white' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
  .lp-hero__actions .btn { width: 100%; }
  .lp-hero__meta { width: 100%; justify-content: center; }
  .lp-preview__chip { right: 8px; top: -18px; padding: 10px 14px; font-size: 13px; }
  .lp-doc { transform: none; }
  .lp-hero__meta { gap: 8px 14px; font-size: 13px; }
  .lp-tag { font-size: 13px; }
  .lp-doc__body { padding: 18px; }
  .lp-doc__grid b { font-size: 14px; }
  .lp-trust { padding: 20px; }
  .lp-trust__list { flex-direction: column; gap: 14px; }
  .lp-card { padding: 24px; }
  .lp-form-card { border-radius: 24px; padding: 22px 18px; }
  .chip span { height: 42px; padding: 0 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-preview { opacity: 1; }
}


/* ---------- Бриф: загрузка файла, дата, превью оценки ---------- */
.upload {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed #c8cfe0; background: var(--paper);
  transition: border-color .2s, background-color .2s;
}
.upload:hover, .upload.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.upload.has-file { border-style: solid; border-color: var(--accent); background: var(--white); }
.upload__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload__input:focus-visible + .upload__icon { box-shadow: 0 0 0 4px rgba(59, 107, 255, .25); }
.upload__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.upload__icon svg { width: 22px; height: 22px; }
.upload__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.upload__text b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__text span { font-size: 13px; color: var(--muted); }
.upload__clear { position: relative; z-index: 1; margin-left: auto; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--paper); color: var(--muted); }
.upload__clear:hover { background: #e3e7f2; color: var(--text); }
.upload__clear svg { width: 16px; height: 16px; }
.upload__clear[hidden] { display: none; }
.field__or { margin: 12px 0 10px; font-size: 13px; color: var(--muted); text-align: center; position: relative; }
.field__or::before, .field__or::after { content: ""; position: absolute; top: 50%; width: calc(50% - 80px); height: 1px; background: var(--line); }
.field__or::before { left: 0; }
.field__or::after { right: 0; }
.field.is-invalid .upload { border-color: #e2554f; }
.field__input--select {
  max-width: 320px; appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 48px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23566079' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
}
.field__input--select:invalid { color: #9aa3b8; }
.field__input--select option { color: var(--text); }

.lp-doc--estimate .lp-doc__body { padding: 44px 26px 24px; }
.lp-est__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.lp-est__label { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; }
.lp-est__brand { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--muted); }
.lp-est__plan { display: grid; gap: 14px; }
.lp-est__row { display: grid; grid-template-columns: 110px 1fr 84px; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.lp-est__row b { font-weight: 600; color: var(--text); text-align: right; white-space: nowrap; }
.lp-est__row i { position: relative; height: 10px; border-radius: 10px; background: var(--paper); }
.lp-est__row i::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--from); right: calc(100% - var(--to)); border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform-origin: left; animation: barGrow 1.2s var(--ease-out) .9s both;
}
.lp-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; max-width: 420px;
  padding: 16px 18px; border-radius: var(--radius-sm); background: var(--accent-soft);
  font-size: 14px; line-height: 1.5; color: #2a3146;
}
.lp-note svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.lp-footnote { margin-top: 20px; font-size: 14px; color: var(--muted); }
.lp-success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

@media (max-width: 600px) {
  .lp-est__row { grid-template-columns: 84px 1fr 70px; gap: 8px; font-size: 12px; }
  .lp-doc--estimate .lp-doc__body { padding: 38px 18px 20px; }
  .lp-est__brand { display: none; }
  .field__input--select { max-width: none; }
  .lp-success__actions .btn { width: 100%; }
}

/* ==========================================================================
   Страница документа (политика конфиденциальности)
   ========================================================================== */
.doc-page { background: var(--paper); }
.doc { padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(72px, 9vw, 120px); }
.doc__inner { max-width: calc(860px + var(--gutter) * 2); }
.doc__head { margin-bottom: 40px; }
.doc__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.doc__company { margin-top: 18px; font-size: 18px; font-weight: 600; }
.doc__meta { margin-top: 6px; font-size: 15px; color: var(--muted); }
.doc__pdf { margin-top: 24px; }
.doc__toc { padding: 24px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); margin-bottom: 48px; }
.doc__toc-title { font-weight: 700; margin-bottom: 12px; }
.doc__toc ol { list-style: decimal; padding-left: 22px; display: grid; gap: 6px; }
.doc__toc a { color: var(--accent); text-decoration: none; }
.doc__toc a:hover { text-decoration: underline; }
.doc__body section { padding-top: 8px; margin-bottom: 40px; scroll-margin-top: calc(var(--header-h) + 24px); }
.doc__body h2 { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.25; margin-bottom: 18px; text-wrap: balance; }
.doc__body h3 { font-size: 18px; font-weight: 700; margin: 24px 0 12px; }
.doc__body p { margin-bottom: 12px; color: #2a3146; line-height: 1.7; }
.doc__body ul { list-style: none; margin: 0 0 16px; display: grid; gap: 6px; }
.doc__body li { position: relative; padding-left: 20px; color: #2a3146; line-height: 1.6; }
.doc__body li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.doc__sign { margin-top: 24px; font-weight: 600; color: var(--text) !important; }
.doc__contact { padding: 20px 24px; border-radius: var(--radius); background: var(--accent-soft); }
.doc__contact p { margin: 0; }
.doc__contact a { color: var(--accent); font-weight: 600; }


/* «Я не робот» (Cloudflare Turnstile) */
.lp-captcha { display: grid; gap: 8px; min-height: 65px; }
.lp-captcha__error { font-size: 14px; color: #d4332f; }
