:root {
  color-scheme: dark;
  --about-bg: #060f1e;
  --about-panel: rgba(8, 20, 36, 0.82);
  --about-panel-strong: rgba(7, 18, 34, 0.94);
  --about-line: rgba(248, 234, 208, 0.16);
  --about-line-strong: rgba(248, 234, 208, 0.28);
  --about-text: #f8ead0;
  --about-soft: rgba(248, 234, 208, 0.78);
  --about-muted: #aebbd0;
  --about-accent: #f3d79a;
  --about-blue: #9fd6ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(6, 15, 30, 0.76), rgba(6, 15, 30, 0.96)),
    url("../textures/sky_background_1.jpg") center top / cover fixed,
    var(--about-bg);
  color: var(--about-text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.about-hero {
  display: grid;
  min-height: clamp(260px, 36vh, 430px);
  align-items: end;
  padding: clamp(34px, 5vw, 64px) 0 38px;
}

.about-eyebrow {
  margin: 0 0 10px;
  color: var(--about-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4.2vw, 3.8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.about-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(248, 234, 208, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.56;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 16px;
}

.about-panel {
  border: 1px solid var(--about-line);
  border-radius: 8px;
  background: var(--about-panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.about-panel--story,
.about-panel--points,
.about-examples,
.about-use,
.about-partners {
  padding: clamp(20px, 3vw, 30px);
}

.about-panel h2 {
  margin: 0 0 16px;
  color: var(--about-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0;
}

.about-richtext p {
  margin: 0 0 15px;
  color: var(--about-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.about-richtext p:last-child {
  margin-bottom: 0;
}

.about-points {
  display: grid;
  gap: 12px;
}

.about-point {
  padding: 12px 0;
  border-top: 1px solid var(--about-line);
}

.about-point:first-child {
  border-top: 0;
  padding-top: 0;
}

.about-point h3 {
  margin: 0 0 5px;
  color: var(--about-text);
  font-size: 1rem;
}

.about-point p {
  margin: 0;
  color: var(--about-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.about-examples,
.about-use,
.about-partners {
  margin-top: 16px;
}

.about-examples {
  scroll-margin-top: 76px;
}

.about-section-head {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.about-section-head h2 {
  margin-bottom: 0;
}

.about-section-head > p {
  margin: 0;
  color: var(--about-muted);
  font-size: 1rem;
  line-height: 1.58;
}

.about-examples .about-section-head {
  display: block;
}

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

.about-example {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--about-line);
  border-radius: 8px;
  background: rgba(3, 11, 22, 0.74);
  color: inherit;
  text-align: left;
}

.about-example:focus-visible {
  border-color: rgba(255, 232, 176, 0.55);
  outline: none;
}

.about-example__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #02070f;
}

.about-example__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-example__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.about-example:hover .about-example__media img,
.about-example:focus-visible .about-example__media img {
  transform: scale(1.035);
}

.about-example__body {
  padding: 12px 13px 14px;
}

.about-example h3 {
  margin: 0 0 5px;
  color: var(--about-text);
  font-size: 1rem;
}

.about-example p {
  margin: 0;
  color: var(--about-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.about-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: about-step;
}

.about-step {
  position: relative;
  min-height: 142px;
  padding: 18px 16px 16px;
  border: 1px solid var(--about-line);
  border-radius: 8px;
  background: rgba(3, 11, 22, 0.58);
  counter-increment: about-step;
}

.about-step::before {
  content: counter(about-step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: rgba(159, 214, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.about-step h3 {
  margin: 0 0 7px;
  color: var(--about-text);
  font-size: 1.03rem;
}

.about-step p {
  margin: 0;
  color: var(--about-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.about-desktop-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--about-line);
  color: var(--about-text);
  font-size: 1.08rem;
  line-height: 1.58;
}

.about-partners__paths {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--about-line);
  border-bottom: 1px solid var(--about-line);
}

.about-partner-path {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 24px 22px 0;
}

.about-partner-path + .about-partner-path {
  border-top: 1px solid var(--about-line);
}

.about-partner-path__number {
  color: var(--about-blue);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.about-partner-path h3,
.about-partners__credit h3 {
  margin: 0 0 7px;
  color: var(--about-text);
  font-size: 1.05rem;
}

.about-partner-path p,
.about-partners__credit-copy > p {
  margin: 0;
  color: var(--about-muted);
  font-size: 0.95rem;
  line-height: 1.58;
}

.about-partners__credit {
  padding-top: 24px;
}

.about-partners__offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.about-credit-offer {
  min-width: 0;
  padding: 18px 0;
  border-top: 1px solid var(--about-line-strong);
  border-bottom: 1px solid var(--about-line);
}

.about-credit-offer__discount {
  margin: 0 0 14px;
  color: var(--about-accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.about-credit-offer dl {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(220px, 1.2fr);
  gap: 24px;
  margin: 0;
}

.about-credit-offer__value {
  position: relative;
  min-width: 0;
}

.about-credit-offer__payment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: end;
  min-width: 0;
}

.about-credit-offer__payment dt {
  grid-column: 1 / -1;
}

.about-credit-offer__arrow {
  position: absolute;
  right: -20px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  color: var(--about-accent);
  font-size: 1.15rem;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

.about-partners__cta.about-credit-offer__buy {
  grid-column: 2;
  align-self: end;
  margin-top: 0;
  white-space: nowrap;
}

.about-credit-offer dt {
  color: var(--about-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.about-credit-offer dd {
  margin: 5px 0 0;
  color: var(--about-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.15;
}

.about-partners__note,
.about-partners__custom p {
  color: var(--about-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.about-partners__note {
  margin: 18px 0 0;
}

.about-partners__custom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--about-line);
}

.about-partners__custom p {
  margin: 0;
}

.about-partners__cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 18px;
  border: 1px solid rgba(243, 215, 154, 0.42);
  border-radius: 6px;
  background: rgba(243, 215, 154, 0.1);
  color: var(--about-text);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.about-partners__cta:hover,
.about-partners__cta:focus-visible {
  border-color: rgba(243, 215, 154, 0.72);
  background: rgba(243, 215, 154, 0.16);
  outline: none;
}

.about-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(0, 0, 0, 0.82);
}

.about-lightbox[hidden] {
  display: none;
}

.about-lightbox figure {
  width: min(1120px, 100%);
  margin: 0;
}

.about-lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(159, 214, 255, 0.38);
  border-radius: 8px;
  background: #02070f;
}

.about-lightbox figcaption {
  margin-top: 12px;
  color: var(--about-text);
  font-size: 1rem;
  text-align: center;
}

.about-lightbox__close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.site-legal-link {
  position: static;
  display: block;
  width: min(1180px, calc(100% - 32px));
  margin: -48px auto 24px;
  text-align: right;
  line-height: 1.35;
}

@media (max-width: 700px) {
  body.has-site-topbar {
    --site-topbar-height: 82px;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 32px 30px;
    align-content: center;
    column-gap: 6px;
    row-gap: 2px;
    height: var(--site-topbar-height);
  }

  .topbar__brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-brand-logo {
    width: min(170px, 42vw);
    max-height: 28px;
  }

  .topbar__actions {
    display: contents;
  }

  .topbar__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }

  .topbar-lang {
    grid-column: 2;
    grid-row: 1;
  }

  .topbar-account {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 880px) {
  .about-grid,
  .about-section-head,
  .about-steps,
  .about-partners__offers {
    grid-template-columns: 1fr;
  }

  .about-examples__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    background-attachment: scroll;
  }

  .about-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 28px;
  }

  .site-legal-link {
    width: min(100% - 18px, 1180px);
  }

  .about-hero {
    min-height: 260px;
    padding-bottom: 26px;
  }

  .about-examples__grid {
    grid-template-columns: 1fr;
  }

  .about-panel--story,
  .about-panel--points,
  .about-examples,
  .about-use,
  .about-partners {
    padding: 18px;
  }

  .about-partners__paths {
    grid-template-columns: 1fr;
  }

  .about-partner-path,
  .about-partner-path + .about-partner-path {
    padding: 18px 0;
    border-left: 0;
  }

  .about-partner-path + .about-partner-path {
    border-top: 1px solid var(--about-line);
  }

  .about-credit-offer dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .about-credit-offer__arrow {
    right: auto;
    left: 48px;
    bottom: -26px;
    transform: rotate(90deg);
  }
}
