@media (max-width: 900px) {
  .header { position: relative; }
  .header nav.open {
    display: flex;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 70px;
    z-index: 20;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: #091731;
    border: 1px solid #2b3d60;
    border-radius: 12px;
    box-shadow: 0 18px 35px #0009;
  }
  .header nav.open a { padding: 12px; }
}

.logo-image {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
  border-radius: 50%;
}

:root { --orange: #ff7b00; }

body { background: #020b1f; }

.header {
  background: #020b1f;
  border-bottom-color: transparent;
}

.hero-image-section {
  max-width: 1672px;
  margin: 0 auto;
  padding: 0 24px;
  border-bottom: 0;
  background: #020b1f;
  overflow: hidden;
}

.hero-image-section img {
  display: block;
  width: 98.25%;
  max-width: none;
  height: auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%) translateX(-1.4%);
  -webkit-mask-image: none;
  mask-image: none;
}

.content-image-section {
  max-width: 1672px;
  margin: 0 auto;
  padding: 0 24px;
  border-bottom: 0;
  background: #020b1f;
  overflow: hidden;
}

.content-image-section img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* У изображений разные внутренние поля; эти масштабы сводят карточки к общей сетке. */
#features img { width: 103.68%; }
#how img { width: 99.50%; }
#outcomes img {
  width: 102.55%;
  transform: translateX(-50%) translateX(.25%);
}
#how,
#outcomes,
#about { background: #020b1f; }

.button {
  background: #ff7b00;
  border-color: #ff7b00;
  box-shadow: 0 0 28px #ff7b0038;
}

.button:hover,
.button:focus-visible {
  background: #ff8a1a;
  border-color: #ff8a1a;
}

.cta {
  width: calc(100% - 48px);
  max-width: 1624px;
  grid-template-columns: 120px minmax(0, 1fr) minmax(330px, 420px);
}

.hero-image-section,
.content-image-section {
  width: calc(100% - 48px);
  max-width: 1624px;
  margin-left: auto;
  margin-right: auto;
}

.header,
.cta {
  width: calc(89.32% - 43px);
  max-width: 1451px;
  margin-left: auto;
  margin-right: auto;
}

.header,
.hero-image-section,
.content-image-section {
  padding-left: 0;
  padding-right: 0;
}

.cta-logo {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
}

.legal-footer {
  display: flex;
  max-width: none;
  width: 100%;
  min-height: 190px;
  margin: 0;
  padding: 42px 24px 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #8f95a5;
  background: #020b1f;
  border-top: 0;
  text-align: center;
}

body.modal-open {
  overflow: hidden;
}

.legal-dialog {
  width: min(920px, calc(100% - 40px));
  max-width: 920px;
  height: min(760px, calc(100dvh - 56px));
  max-height: calc(100dvh - 56px);
  margin: auto;
  padding: 0;
  color: #f6f8ff;
  background: #07142d;
  border: 1px solid #2b3d60;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0,0,0,.72);
  overflow: hidden;
}

.legal-dialog::backdrop {
  background: rgba(0,7,22,.82);
  backdrop-filter: blur(5px);
}

.legal-dialog-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.legal-dialog-header {
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #0a1833;
  border-bottom: 1px solid #273957;
}

.legal-dialog-header h2 {
  margin: 0;
  color: #f6f8ff;
  font-size: 21px;
  line-height: 1.3;
}

.legal-dialog-close {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  color: #f6f8ff;
  background: #101f3b;
  border: 1px solid #3b4d6c;
  border-radius: 50%;
  font: 400 29px/1 Manrope, Arial, sans-serif;
  cursor: pointer;
}

.legal-dialog-close:hover,
.legal-dialog-close:focus-visible {
  color: #fff;
  background: #182947;
  border-color: #ff7b00;
  outline: none;
}

.legal-document {
  min-height: 0;
  padding: 30px 34px 40px;
  color: #b9c3d5;
  font: 400 15px/1.68 Manrope, Arial, sans-serif;
  overflow: auto;
  overscroll-behavior: contain;
}

.legal-document-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  background: #07142d;
  border: 0;
}

.legal-document h2,
.legal-document h3,
.legal-document h4 {
  color: #f6f8ff;
  line-height: 1.35;
}

.legal-document h2 {
  margin: 0 0 24px;
  font-size: 26px;
}

.legal-document h3 {
  margin: 30px 0 14px;
  font-size: 20px;
}

.legal-document h4 {
  margin: 24px 0 12px;
  font-size: 17px;
}

.legal-document p {
  margin: 0 0 13px;
}

.legal-document ul {
  margin: 4px 0 18px;
  padding-left: 24px;
}

.legal-document li {
  margin: 7px 0;
}

.legal-document strong {
  color: #edf1fa;
}

.legal-document a {
  color: #ff9a3d;
}

.legal-document hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid #273957;
}

.legal-loading,
.legal-error {
  color: #c5cede;
  text-align: center;
}

.legal-error {
  color: #ffb06a;
}

.legal-footer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 16px;
}

.footer.legal-footer .legal-links a {
  color: #989eae;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s ease;
}

.footer.legal-footer .legal-links a:hover,
.footer.legal-footer .legal-links a:focus-visible {
  color: #fff;
}

.logo small {
  display: block;
  max-width: 150px;
  margin-top: 4px;
  font-size: 8px;
  line-height: 1.2;
  white-space: nowrap;
  color: #d4d9e5;
}

/* Половина экрана: сохраняем двухколоночную композицию, но не обрезаем героя. */
@media (min-width: 901px) and (max-width: 1180px) {
  html,
  body {
    overflow-x: clip;
  }

  .hero-responsive {
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
    gap: 12px;
  }

  .hero-responsive h1 {
    font-size: clamp(46px, 5vw, 56px);
  }

  .hero-responsive-lead {
    font-size: 17px;
  }

  .hero-responsive-art img {
    top: 50%;
    right: clamp(-165px, -17vw, -145px);
    bottom: auto;
    width: clamp(900px, 100vw, 1050px);
    height: auto;
    transform: translateY(-50%);
  }

  .features-clarity-section .features-grid,
  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-card {
    min-height: 0;
  }

  .how-grid {
    gap: 22px;
  }

  .how-card {
    min-height: 410px;
  }

  .how-card:not(:last-child)::after {
    display: none;
  }

  .knowledge-panel {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .daily-panel {
    grid-template-columns: 1fr;
  }

  .daily-intro {
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--orange);
  }

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

  .cta {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .cta > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero-responsive {
    width: calc(89.32% - 43px);
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-responsive-copy {
    padding-top: 28px;
  }

  .hero-responsive-art {
    min-height: 510px;
  }

  .hero-responsive-art img {
    top: 0;
    right: -1%;
    bottom: auto;
    width: auto;
    height: 100%;
    transform: none;
  }

  .how-clarity-section {
    width: calc(89.32% - 43px);
  }

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

  .how-card:not(:last-child)::after {
    display: none;
  }

  .journal-clarity-section {
    width: calc(89.32% - 43px);
  }

  .knowledge-panel {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .daily-panel {
    grid-template-columns: 1fr;
  }

  .daily-intro {
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--orange);
  }

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

  .cta {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .cta > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .hero-responsive {
    width: calc(89.32% - 21px);
    gap: 8px;
  }

  .hero-responsive-copy {
    padding: 20px 0 0;
  }

  .hero-eyebrow {
    margin-bottom: 20px;
    padding: 8px 12px;
    font-size: 9px;
  }

  .hero-responsive h1 {
    font-size: clamp(36px, 10vw, 44px);
    line-height: 1.08;
  }

  .hero-responsive h1 > span {
    margin-bottom: 8px;
  }

  .hero-responsive h1 br,
  .hero-responsive-lead br,
  .hero-role-card p br {
    display: none;
  }

  .hero-responsive-lead {
    margin: 18px 0 22px;
    font-size: 16px;
  }

  .hero-role-list {
    gap: 10px;
  }

  .hero-role-card {
    min-height: 0;
    padding: 14px;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 13px;
    border-radius: 14px;
  }

  .hero-role-icon {
    width: 50px;
    height: 50px;
    font-size: 29px;
  }

  .hero-role-card h2 {
    font-size: 17px;
  }

  .hero-role-card p {
    font-size: 13px;
  }

  .hero-responsive-actions {
    margin-top: 16px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-responsive-actions .button {
    min-height: 58px;
    padding: 13px 18px;
    font-size: 15px;
  }

  .hero-play {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 21px;
  }

  .hero-responsive-art {
    min-height: 360px;
    margin-top: 4px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 100%);
  }

  .hero-responsive-art img {
    right: 0;
    height: 100%;
  }

  .how-clarity-section {
    width: calc(89.32% - 21px);
    margin-top: 20px;
  }

  .how-clarity-section > h2 {
    margin-bottom: 24px;
    font-size: 28px;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .how-card {
    min-height: 0;
    padding: 48px 24px 28px;
    border-radius: 16px;
  }

  .how-number {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .how-icon {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
    font-size: 60px;
  }

  .how-card h3 {
    min-height: 0;
    margin: 18px 0 16px;
    font-size: 17px;
  }

  .how-card p {
    font-size: 14px;
  }

  .journal-clarity-section {
    width: calc(89.32% - 21px);
    margin-top: 20px;
  }

  .knowledge-panel,
  .daily-panel {
    padding: 26px 20px;
    border-radius: 14px;
  }

  .knowledge-heading {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }

  .knowledge-mark {
    width: 54px;
    height: 54px;
    font-size: 34px;
  }

  .knowledge-heading h2 {
    margin-top: 0;
    font-size: 27px;
  }

  .knowledge-heading p {
    grid-column: 1 / -1;
    font-size: 16px;
    line-height: 1.55;
  }

  .knowledge-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .knowledge-flow::before {
    display: none;
  }

  .flow-item > span {
    width: 74px;
    height: 74px;
    font-size: 34px;
  }

  .flow-item b {
    font-size: 13px;
  }

  .daily-panel {
    margin-top: 14px;
  }

  .daily-intro h3 {
    font-size: 20px;
  }

  .daily-intro p {
    font-size: 15px;
  }

  .prompt-grid {
    grid-template-columns: 1fr;
  }

  .prompt-grid article {
    min-height: 128px;
  }

  .prompt-next {
    min-height: 70px;
  }

  .writing-note {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .note-icon {
    width: 50px;
    height: 50px;
    font-size: 31px;
  }

  .writing-note p {
    font-size: 12px;
  }

  .header,
  .cta {
    width: calc(89.32% - 21px);
  }

  .hero-image-section,
  .content-image-section {
    width: calc(100% - 24px);
  }

  .hero-image-section,
  .content-image-section { padding: 0; }

  .logo-image {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .logo small {
    max-width: 125px;
    font-size: 7px;
  }

  .cta {
    grid-template-columns: 1fr;
  }

  .cta-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto;
  }

  .legal-footer {
    min-height: 0;
    padding: 32px 18px;
    gap: 18px;
  }

  .legal-footer p,
  .footer.legal-footer .legal-links a {
    font-size: 12px;
  }

  .legal-links {
    flex-direction: column;
  }

  .legal-links span {
    display: none;
  }

  .legal-dialog {
    width: calc(100% - 20px);
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  .legal-dialog-header {
    padding: 16px;
  }

  .legal-dialog-header h2 {
    font-size: 16px;
  }

  .legal-dialog-close {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 25px;
  }

  .legal-document {
    padding: 22px 18px 32px;
    font-size: 13px;
  }

  .legal-document h2 {
    font-size: 21px;
  }

  .legal-document h3 {
    font-size: 17px;
  }
}

@media (max-width: 560px) and (prefers-reduced-motion: no-preference) {
  html.reveal-ready .reveal-section,
  html.reveal-ready .reveal-item {
    transform: translate3d(0, 18px, 0);
    transition-duration: .62s, .72s;
  }

  html.reveal-ready .reveal-section.is-visible,
  html.reveal-ready .reveal-item.is-visible {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 560px) {
  :root {
    --section-rhythm: 20px;
  }
}
