:root {
  --color-navy: #2a2a62;
  --color-navy-deep: #1d1f4b;
  --color-green: #6ea07c;
  --color-light: #ffffff;
  --color-white: #ffffff;
  --color-red: #e51f26;
  --color-text: #2d2d37;
  --container-max: 1200px;
  --shadow-soft: 0 20px 45px rgba(18, 19, 40, 0.18);
  --shadow-book: 0 24px 36px rgba(17, 18, 38, 0.22);
  --radius-pill: 999px;
  --hero-cut-size: clamp(34px, 5vw, 116px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Arial, system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background: var(--color-light);
  line-height: 1.35;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: min(calc(100% - 4rem), var(--container-max));
  margin: 0 auto;
}

.hero {
  position: relative;
  background: var(--color-navy);
  color: var(--color-white);
  min-height: clamp(320px, 56vw, 1200px);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  background: url("../assets/header.png") center center / cover no-repeat;
}

.hero::before {
  content: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: var(--hero-cut-size);
  background: var(--color-white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(22px, 3vw, 46px) clamp(24px, 10vw, 200px) 0;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.brand {
  width: clamp(180px, 17vw, 250px);
}

.brand img {
  width: 100%;
}

.brand-site {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.reserved-pill {
  display: block;
  border: 0;
  padding: 0;
  line-height: 0;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.reserved-pill img {
  width: clamp(132px, 11.8vw, 200px);
  height: auto;
}

.reserved-pill:hover,
.reserved-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(4, 6, 26, 0.28);
  background: transparent;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.auth-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 26, 0.62);
}

.auth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  background: #ffffff;
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1rem;
  box-shadow: 0 26px 56px rgba(8, 11, 34, 0.36);
}

.auth-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef0f8;
  color: var(--color-navy);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-title {
  margin: 0.15rem 2rem 1rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
}

.auth-modal-actions {
  display: grid;
  gap: 0.65rem;
}

.auth-modal-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  text-align: center;
  transition: transform 170ms ease, box-shadow 170ms ease, opacity 170ms ease;
}

.auth-modal-action:hover,
.auth-modal-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14, 18, 49, 0.2);
}

.auth-modal-action-signup {
  background: var(--color-navy);
  color: #ffffff;
}

.auth-modal-action-login {
  border: 1px solid #c8cde0;
  color: var(--color-navy);
  background: #ffffff;
}

body.modal-open {
  overflow: hidden;
}

.hero-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: 5.5rem;
}

.hero-copy {
  max-width: 540px;
}

.hero-copy h1 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
}

.hero-copy .light {
  display: block;
  font-weight: 300;
  font-size: clamp(2.35rem, 3.3vw, 4.35rem);
}

.hero-copy .bold {
  display: block;
  font-weight: 800;
  font-size: clamp(2.8rem, 4.1vw, 5.2rem);
}

.hero-subtitle {
  margin: 1.5rem 0 0.55rem;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 2.2vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-dots img {
  width: 11px;
  height: 11px;
}

.hero-caption {
  margin: 0;
  max-width: 350px;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(0.96rem, 1.15vw, 1.55rem);
  line-height: 1.2;
}

.hero-caption strong {
  font-weight: 800;
}

.manual {
  position: relative;
  margin-top: 0;
  padding: 0 0 64px;
  background: #ffffff;
}

.manual-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
}

.manual-book {
  margin: 0;
  width: 100%;
  position: relative;
  z-index: 4;
  margin-top: clamp(-296px, -18vw, -191px);
}

.manual-book img {
  width: 100%;
  filter: drop-shadow(var(--shadow-book));
  margin-top: 0;
  display: block;
  margin-top: -80px;
}

.manual-copy {
  justify-self: center;
  text-transform: uppercase;
  color: var(--color-navy);
}

.manual-copy h2 {
  margin: 0;
  line-height: 0.88;
  letter-spacing: 0.01em;
}

.manual-copy h2 span {
  display: block;
  font-weight: 300;
  font-size: clamp(2.3rem, 3.2vw, 4.25rem);
}

.manual-copy h2 strong {
  display: block;
  font-weight: 800;
  font-size: clamp(2.9rem, 4.25vw, 5rem);
}

.btn-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 1.45rem;
  border: 1.5px solid #9393ad;
  color: var(--color-navy);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.52rem 1.05rem;
  line-height: 1;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.btn-outline strong {
  margin-left: 0.22rem;
  font-weight: 800;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(27, 28, 73, 0.2);
  background: rgba(42, 42, 98, 0.07);
}

.portal {
  position: relative;
  background: #ffffff;
  padding: 0;
  overflow: hidden;
  margin-top: -100px;
}

.portal::before {
  content: none;
}

.portal-inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.portal-image-wrap {
  margin: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
}

.portal-image {
  width: 100%;
  height: auto;
  display: block;
}

.portal-title h3 {
  margin: 0;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.01em;
  font-weight: 300;
  font-size: clamp(2rem, 2.95vw, 4.1rem);
}

.portal-title h3 span {
  display: block;
  font-weight: 800;
  font-size: clamp(2.6rem, 3.85vw, 5rem);
}

.portal-text p {
  margin: 0;
  font-size: clamp(1.06rem, 1.2vw, 1.75rem);
  line-height: 1.45;
  max-width: 600px;
}

.portal-text strong {
  font-weight: 800;
}

.portal-text em {
  font-style: italic;
}

.scroll-trigger {
  margin-top: 1.7rem;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--color-white);
  text-transform: uppercase;
  font-size: clamp(1.15rem, 1.7vw, 2.55rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: opacity 180ms ease, transform 220ms ease;
}

.scroll-trigger strong {
  font-weight: 800;
}

.scroll-trigger:hover,
.scroll-trigger:focus-visible {
  opacity: 0.92;
  transform: translateY(-2px);
}

.chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.steps {
  background: var(--color-light);
  padding: 0;
  overflow: hidden;
}

.steps-image-wrap {
  margin: 0;
  width: 100%;
  line-height: 0;
  height: clamp(190px, 22vw, 360px);
}

.steps-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.site-footer {
  background: transparent;
  color: var(--color-navy);
  padding-top: 0;
  overflow: hidden;
}

.footer-image-wrap {
  margin: 0;
  width: 100%;
  line-height: 0;
}

.footer-image {
  display: block;
  width: 100%;
  height: auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1.2fr;
  align-items: end;
  gap: 1.8rem;
}

.footer-brand img {
  width: min(100%, 250px);
}

.footer-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-item h4,
.contact-item p,
.contact-item a,
.footer-legal p {
  margin: 0;
  text-transform: uppercase;
}

.contact-item h4 {
  font-size: 0.89rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-item p {
  margin-top: 0.38rem;
  font-size: 0.58rem;
  font-weight: 700;
}

.contact-item a {
  display: inline-block;
  margin-top: 0.22rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.footer-legal {
  text-align: right;
}

.footer-legal p {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.footer-legal p + p {
  margin-top: 0.55rem;
}

.footer-line {
  margin-top: 0.85rem;
  padding-bottom: 0.35rem;
}

.footer-line-inner {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.chega-mini {
  position: relative;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--color-navy);
  text-transform: uppercase;
  line-height: 1;
}

.chega-mini::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 2px;
  background: var(--color-red);
}

.red-line {
  flex: 1;
  height: 3px;
  background: var(--color-red);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.62, 0.2, 1);
  will-change: transform, opacity;
}

.reveal-left {
  transform: translateX(-62px);
}

.reveal-right {
  transform: translateX(62px);
}

.reveal-up {
  transform: translateY(46px);
}

.reveal-fade {
  transform: translateY(22px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 1199px) {
  .container {
    width: min(calc(100% - 3.2rem), 1020px);
  }

  .hero {
    min-height: clamp(300px, 54vw, 660px);
  }

  .hero-photo {
    width: 100%;
  }

  .hero-inner {
    padding: clamp(20px, 2.8vw, 40px) clamp(20px, 8vw, 150px) 0;
  }

  .hero-main {
    margin-top: 4.1rem;
  }

  .hero-caption {
    max-width: 300px;
  }

  .manual {
    margin-top: 0;
    padding: 0 0 48px;
  }

  .manual-inner {
    gap: 0;
  }

  .manual-book {
    margin-top: clamp(-226px, -16vw, -140px);
  }

  .portal-image-wrap {
    clip-path: polygon(0 11%, 100% 0, 100% 89%, 0 100%);
  }

  .steps-image-wrap {
    height: clamp(180px, 26vw, 320px);
  }

  .footer-main {
    grid-template-columns: 1fr 1.6fr;
  }

  .footer-legal {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(calc(100% - 2rem), 640px);
  }

  .hero {
    min-height: clamp(220px, 58vw, 420px);
  }

  .hero-photo {
    width: 100%;
    background-position: 60% center;
  }

  .hero::before {
    content: none;
  }

  .hero::after {
    height: clamp(24px, 7vw, 48px);
  }

  .hero-inner {
    padding: 18px 16px 0;
  }

  .brand {
    width: 150px;
  }

  .brand-site {
    font-size: 0.53rem;
  }

  .reserved-pill {
    box-shadow: none;
  }

  .reserved-pill img {
    width: clamp(96px, 29vw, 132px);
  }

  .auth-modal-panel {
    width: min(94vw, 360px);
    border-radius: 12px;
    padding: 1rem 1rem 0.9rem;
  }

  .auth-modal-title {
    font-size: 1.03rem;
  }

  .hero-main {
    display: block;
    margin-top: 3rem;
  }

  .hero-copy {
    max-width: 355px;
  }

  .hero-subtitle {
    margin-top: 1.05rem;
  }

  .hero-caption {
    margin-top: 1.6rem;
    text-align: left;
    max-width: 100%;
    font-size: 0.95rem;
  }

  .manual {
    margin-top: 0;
    padding: 0 0 28px;
  }

  .manual-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .manual-book {
    justify-self: stretch;
    margin-top: -18px;
  }

  .manual-book img {
    width: 100%;
  }

  .manual-copy {
    justify-self: start;
  }

  .portal-image-wrap {
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  }

  .portal-text p {
    font-size: 1.02rem;
  }

  .scroll-trigger {
    margin-top: 1.35rem;
    font-size: 1.56rem;
  }

  .steps-image-wrap {
    height: clamp(150px, 42vw, 25px);
  }

  .steps-image {
    object-position: center 56%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
  }

  .footer-brand img {
    width: min(100%, 205px);
  }

  .footer-contacts {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .footer-legal p {
    font-size: 0.62rem;
  }

  .footer-line {
    margin-top: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reserved-pill,
  .btn-outline,
  .step-icon,
  .scroll-trigger {
    transition: none !important;
    transform: none !important;
  }
}
