@import url(https://fonts.googleapis.com/css?family=Unbounded:300,regular,500,600,700);
@import url(https://fonts.googleapis.com/css?family=Montserrat:regular,500,600,700);

:root {
  --ink: #20242a;
  --muted: #69707a;
  --line: #d8dde3;
  --paper: #ffffff;
  --soft: #f5f1ea;
  --field: #f7f8f9;
  --accent: #bd2f26;
  --accent-dark: #94251f;
  --green: #2f6f54;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #0d0d0d;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 900px;
  background: #0d0d0d;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero__shade {
  position: relative;
  z-index: 1;
  min-height: inherit;
  background:
    linear-gradient(180deg, rgba(13, 13, 13, .62) 0%, rgba(13, 13, 13, .24) 56%, rgba(13, 13, 13, .94) 100%),
    linear-gradient(90deg, rgba(13, 13, 13, .34) 0%, rgba(13, 13, 13, .16) 48%, rgba(13, 13, 13, .22) 100%);
}

.hero__shade .page-shell {
  position: relative;
  display: flex;
  min-height: inherit;
  flex-direction: column;
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
}

.brand__logo {
  width: 154px;
}

.topbar__city {
  max-width: 420px;
  margin: 0;
  color: #f0f3f1;
  font-size: 14px;
}

.topbar__phone {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  border-radius: 100px;
  padding: 24px 62px;
  color: #e4e4e4;
  background:
    linear-gradient(200deg, #ccffc6 -14.71%, rgba(255, 235, 198, 0) 65.61%),
    linear-gradient(201deg, #ccffc6 -.25%, rgba(255, 235, 198, 0) 20.09%),
    #2c4e2a;
  box-shadow: 0 0 18px -6px rgba(255, 255, 255, .17) inset, 0 12px 24px rgba(44, 78, 42, .22);
  text-transform: uppercase;
}

.button--primary:hover {
  background:
    linear-gradient(200deg, #ddffd9 -14.71%, rgba(255, 235, 198, 0) 65.61%),
    linear-gradient(201deg, #ddffd9 -.25%, rgba(255, 235, 198, 0) 20.09%),
    #356031;
}

.button--ghost {
  border-radius: 100px;
  color: #f2f7f1;
  background:
    linear-gradient(200deg, #ccffc6 -14.71%, rgba(255, 235, 198, 0) 65.61%),
    linear-gradient(201deg, #ccffc6 -.25%, rgba(255, 235, 198, 0) 20.09%),
    #2c4e2a;
  text-transform: uppercase;
}

.hero__content {
  max-width: 720px;
  padding: 92px 0 120px;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-family: 'Unbounded', Montserrat, Arial, Helvetica, sans-serif;
  font-size: clamp(38px, 3.6vw, 56px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero__bullets,
.gifts__list,
.modal ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero__bullets li,
.gifts__list li,
.modal li {
  position: relative;
  margin-top: 12px;
  padding-left: 28px;
}

.hero__bullets li::before,
.gifts__list li::before,
.modal li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 700;
}

.hero__actions {
  display: flex;
  max-width: 380px;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  margin-top: 34px;
}

.hero__note {
  margin: 0;
  color: #e4e4e4;
  font-size: 15px;
  text-align: center;
}

.hero__gifts,
.hero__highlights {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 15px;
  background: linear-gradient(89deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 30.09%, rgba(255, 255, 255, 0) 66.43%, rgba(255, 255, 255, .10) 100%), rgba(7, 7, 7, .30);
  backdrop-filter: blur(11.5px);
}

.hero__gifts {
  position: absolute;
  right: 0;
  bottom: 240px;
  display: flex;
  max-width: 410px;
  gap: 28px;
  padding: 24px 26px 16px 20px;
  color: #c2c2c2;
}

.hero__gift-image {
  width: 54px;
  height: 54px;
  display: flex;
  flex: 0 0 54px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--green);
}

.hero__gift-image img {
  width: 47px;
  height: 48px;
  object-fit: contain;
}

.hero__gift-title {
  margin: 0 0 14px;
  color: #ededed;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.hero__gift-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__gift-list li {
  position: relative;
  margin-top: 5px;
  padding-left: 15px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.hero__gift-list li::before {
  position: absolute;
  top: .72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.hero__highlights {
  display: grid;
  max-width: 1062px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  align-self: center;
  margin-top: auto;
  margin-bottom: 52px;
  padding: 22px 44px;
  color: #dafce3;
}

.hero__highlight {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero__highlight img {
  width: 96px;
  flex: 0 0 96px;
  object-fit: contain;
}

.hero__highlight p {
  margin: 0;
  color: #e4e4e4;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.section {
  padding: 72px 0;
}

.section--gifts {
  background: var(--soft);
}

.section--quiz {
  background: #eef3f0;
}

.section__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.section__header {
  max-width: 820px;
  margin-bottom: 32px;
}

.section__header h2 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.15;
}

.section__header p {
  margin: 0;
  color: var(--muted);
}

.gifts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: 40px;
  align-items: center;
}

.gifts__list {
  max-width: 720px;
  font-size: 20px;
}

.gifts__image {
  justify-self: end;
}

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

.advantage {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.advantage img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.advantage p {
  margin: 0;
  padding: 18px;
  font-weight: 700;
}

.quiz-shell {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--paper);
}

#quiz-app:empty::before {
  display: block;
  color: var(--muted);
  content: "Квиз загружается";
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, .55fr);
  gap: 24px;
}

.quiz-main {
  min-width: 0;
}

.quiz-main h3,
.quiz-side h4,
.quiz-success h3 {
  margin: 0;
  line-height: 1.2;
}

.quiz-main h3 {
  font-size: 34px;
}

.quiz-progress {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.quiz-options--compact {
  grid-template-columns: 1fr;
}

.quiz-option {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.quiz-option:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(44, 100, 74, .16);
}

.quiz-option img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.quiz-option__body {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  font-weight: 700;
}

.quiz-option__body input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--green);
}

.quiz-option--text .quiz-option__body {
  min-height: 48px;
}

.quiz-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.quiz-actions .button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.quiz-side {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  padding: 20px;
  color: #fff;
  background-color: #43503f;
  background-position: center bottom;
  background-size: cover;
}

.quiz-side ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.quiz-side li {
  margin-bottom: 10px;
}

.quiz-phone {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
}

.quiz-phone input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--field);
}

.privacy {
  color: var(--muted);
  font-size: 13px;
}

.form-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
}

.form-status--error {
  color: #a43225;
}

.quiz-success {
  min-height: 260px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.footer {
  color: #fff;
  background: #26312c;
}

.footer__inner {
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__logo {
  width: 154px;
}

.footer a {
  text-decoration-color: rgba(255,255,255,.45);
}

.modal {
  width: min(720px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
}

.modal::backdrop {
  background: rgba(12, 18, 24, .62);
}

.modal__panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 32px;
}

.modal__panel h2,
.policy h1 {
  margin: 0;
  line-height: 1.15;
}

.modal__panel p {
  margin: 0;
  color: var(--muted);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.modal input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--field);
  color: var(--ink);
}

.modal__success {
  min-height: 220px;
  display: grid;
  align-content: center;
  text-align: center;
}

.policy-page {
  background: var(--soft);
}

.policy {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.policy__back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--green);
  font-weight: 700;
}

.policy p {
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
  }

  .hero__shade .page-shell {
    min-height: auto;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(13, 13, 13, .78) 0%, rgba(13, 13, 13, .48) 52%, rgba(13, 13, 13, .94) 100%),
      linear-gradient(90deg, rgba(13, 13, 13, .36) 0%, rgba(13, 13, 13, .18) 100%);
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .topbar__city {
    max-width: none;
  }

  .hero__content {
    padding: 42px 0 32px;
  }

  .hero h1 {
    font-size: clamp(31px, 9vw, 40px);
    line-height: 1.24;
  }

  .hero__actions,
  .gifts,
  .advantages,
  .hero__highlights {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    max-width: none;
    gap: 14px;
    margin-top: 28px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .button--primary {
    min-height: 56px;
    padding: 18px 28px;
  }

  .button--ghost {
    min-height: 46px;
    padding: 12px 20px;
  }

  .hero__note {
    font-size: 14px;
  }

  .hero__gifts {
    position: static;
    max-width: none;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px;
  }

  .hero__gift-title {
    font-size: 15px;
  }

  .hero__gift-list li {
    font-size: 13px;
  }

  .hero__highlights {
    align-self: stretch;
    gap: 16px;
    margin: 0 0 36px;
    padding: 16px;
  }

  .hero__highlight img {
    width: 72px;
    flex-basis: 72px;
  }

  .gifts__image {
    justify-self: center;
    max-width: 220px;
  }

  .section {
    padding: 48px 0;
  }

  .section__header h2 {
    font-size: 28px;
  }

  .quiz-shell {
    padding: 18px;
  }

  .quiz-layout,
  .quiz-options {
    grid-template-columns: 1fr;
  }

  .quiz-main h3 {
    font-size: 26px;
  }

  .quiz-side {
    min-height: 260px;
  }

  .quiz-actions {
    flex-wrap: wrap;
  }

  .quiz-actions .button {
    flex: 1 1 140px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 0;
  }

  .modal__panel {
    padding: 26px 18px;
  }
}
