@font-face {
  font-family: Montserrat;
  src: url("../assets/fonts/Montserrat-Variable.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("../assets/fonts/Montserrat-Variable.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("../assets/fonts/Montserrat-Variable.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("../assets/fonts/Montserrat-Variable.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: #0f2339;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.section-title {
  font-weight: 800;
  font-size: 40px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 700;
}

a {
  color: inherit;
}

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

button, input {
  font: inherit;
}

button, a, input {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid #d31120;
  outline-offset: 5px;
}

.container {
  width: min(1200px, 100% - 80px);
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

.text--accent {
  color: #d31120;
}
.text--highlight {
  text-decoration: underline;
  text-decoration-color: #efb9ba;
  text-decoration-thickness: 9px;
  text-underline-offset: -2px;
  text-decoration-skip-ink: none;
}
.text--handwritten {
  font-family: Caveat, "Segoe Print", "Bradley Hand", cursive;
  font-weight: 700;
}
.text--eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 20px;
  text-transform: uppercase;
  color: #d31120;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 28px;
  background: #d31120;
  color: white;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.button:hover {
  background: #b90e1c;
}
.button__icon {
  flex-shrink: 0;
}

.button:not(.button--light) .button__icon {
  filter: brightness(0) invert(1);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 101;
  background: white;
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
  }
}
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  border-bottom: 1px solid #e6e3dc;
  background: white;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header__logo {
  width: 96px;
  height: 52px;
  object-fit: contain;
}

.button--outline {
  background: transparent;
  color: #0f2339;
  min-height: 44px;
  border: 2px solid #0f2339;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: 500ms;
}
.button--outline:hover {
  background: #0f2339;
  color: #fbfaf6;
}

.hero {
  padding: 64px 0 80px;
  background: #fbfaf6;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 672fr) minmax(0, 480fr);
  gap: 48px;
  align-items: start;
}
.hero__ribbon {
  display: table;
  background: #d31120;
  color: white;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 #0f2339;
  margin: 15px 0 30px;
  line-height: 24px;
}
.hero__title {
  font-weight: 800;
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: -0.6px;
}
.hero__subtitle {
  font-size: 32px;
  color: #d31120;
  line-height: 1.15;
  margin-top: 22px;
}
.hero__description {
  font-size: 18px;
  line-height: 1.6;
  color: #2b3a4c;
  margin-top: 22px;
}
.hero__details {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-top: 22px;
}
.hero__book {
  width: 262px;
  height: auto;
  flex-shrink: 0;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
}
.checks__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.checks__icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.checks__title {
  font-size: 16px;
  font-weight: 700;
}
.checks__description {
  color: #4a5866;
  margin-top: 2px;
}

.signup {
  scroll-margin-top: 20px;
}
.signup__note {
  font-size: 28px;
  color: #d31120;
  text-align: right;
  line-height: 43px;
  transform: rotate(-6deg);
  transform-origin: right;
  margin-bottom: 6px;
}
.signup__card {
  border: 2px solid #0f2339;
  border-radius: 14px;
  box-shadow: 6px 6px 0 #0f2339;
  background: white;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.signup__title {
  font-size: 28px;
  line-height: 1.2;
}
.signup__intro {
  font-size: 15px;
  line-height: 1.6;
  color: #2b3a4c;
}
.signup__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.signup__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
}
.signup__input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1.5px solid #b9c1ca;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  color: #0f2339;
  background: white;
}
.signup__input::placeholder {
  color: #4a5866;
  opacity: 1;
}
.signup__consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #4a5866;
}
.signup__checkbox {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #d31120;
}
.signup__link {
  color: #d31120;
  overflow-wrap: anywhere;
}
.signup__submit {
  width: 100%;
  padding-inline: 10px;
}
.signup__privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #4a5866;
}
.signup__privacy-icon {
  flex-shrink: 0;
}
.signup__status {
  font-size: 14px;
  color: #d31120;
  line-height: 1.5;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}
.about__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.about__description {
  color: #2b3a4c;
  line-height: 1.6;
}

.chapters__list {
  list-style: none;
  counter-reset: chapter;
  margin: 4px 0 0;
  padding: 0;
}
.chapters__item {
  counter-increment: chapter;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 81px;
  padding: 14px 0;
  border-bottom: 1px solid #e6e3dc;
  color: #2b3a4c;
  font-size: 17px;
  line-height: 1.5;
}
.chapters__item::before {
  content: counter(chapter);
  font-family: Caveat, "Segoe Print", "Bradley Hand", cursive;
  font-size: 44px;
  font-weight: 700;
  color: #d31120;
  width: 30px;
  flex-shrink: 0;
  line-height: 1.2;
}

.chapters__item + .chapters__item {
  margin-top: 4px;
}

.newsletter {
  background: #fbfaf6;
}
.newsletter__intro {
  max-width: 760px;
  display: grid;
  gap: 16px;
}
.newsletter__description {
  color: #2b3a4c;
}
.newsletter__subtitle {
  margin: 40px 0;
}
.newsletter__benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.benefit {
  background: white;
  padding: 28px 24px;
  border: 2px solid #0f2339;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.benefit__icon {
  background: #fbe3e4;
  border-radius: 10px;
  width: 48px;
  display: flex;
  justify-content: center;
}
.benefit__title {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
}
.benefit__description {
  color: #4a5866;
  font-size: 15px;
  line-height: 1.5;
}

.cta {
  padding: 72px 0;
  background: #d31120;
  color: white;
}
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 701fr) minmax(0, 467fr);
  gap: 32px;
  align-items: center;
}
.cta__note {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.cta__title {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.cta__description {
  font-size: 16px;
  line-height: 1.5;
}

.button--light {
  background: white;
  color: #d31120;
  box-shadow: 6px 6px 0 #0f2339;
  padding-inline: 20px;
}
.button--light:hover {
  background: #fbe3e4;
}

.footer {
  padding: 36px 0;
  background: #0f2339;
  color: #b3bfca;
  font-size: 14px;
  line-height: 22px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer__copyright {
  max-width: 540px;
}
.footer__link {
  text-decoration: none;
}
.footer__nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
}
.footer__nav-link {
  text-decoration: none;
}
.footer__nav-link:hover {
  text-decoration: underline;
}

@media (max-width: 1199px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .hero__title {
    font-size: 44px;
  }
  .hero__details {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .hero__book {
    align-self: center;
  }
  .hero__ribbon {
    font-size: 11px;
    padding-inline: 12px;
  }
  .signup__card {
    padding-inline: 24px;
  }
  .signup__submit {
    font-size: 14px;
  }
  .newsletter__benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cta__grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .cta__button {
    font-size: 14px;
  }
}
@media (max-width: 900px) {
  .container {
    width: calc(100% - 40px);
  }
  .hero {
    padding: 40px 0 56px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__details {
    flex-direction: row;
    align-items: center;
  }
  .signup {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
  }
  .section {
    padding: 56px 0;
  }
  .about__grid {
    gap: 32px;
  }
  .cta {
    padding: 56px 0;
  }
  .cta__grid {
    grid-template-columns: 1fr;
  }
  .cta__button {
    justify-self: start;
  }
  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .header__logo {
    width: 84px;
    height: 46px;
  }
  .hero__title {
    font-size: 34px;
    line-height: 38px;
    letter-spacing: -0.3px;
  }
  .hero__ribbon {
    font-size: 13px;
    line-height: 20px;
    padding: 10px 20px;
    margin: 8px 0 29px;
  }
  .hero__ribbon-extra {
    display: none;
  }
  .hero__subtitle {
    font-size: 28px;
    line-height: 32px;
  }
  .hero__description {
    font-size: 18px;
    line-height: 29px;
  }
  .hero__details {
    flex-direction: column;
    gap: 36px;
  }
  .hero__book {
    max-width: 100%;
  }
  .section-title {
    font-size: 28px;
    line-height: 32px;
  }
  .checks {
    width: 100%;
  }
  .signup {
    max-width: none;
  }
  .signup__card {
    padding: 34px 22px;
  }
  .signup__submit {
    font-size: 16px;
  }
  .signup__title {
    line-height: 1.2;
  }
  .button__desktop-label {
    display: none;
  }
  .newsletter__intro {
    max-width: none;
  }
  .newsletter__benefits {
    grid-template-columns: 1fr;
  }
  .newsletter__eyebrow {
    font-size: 13px;
  }
  .benefit {
    min-height: 181px;
  }
  .cta__grid {
    gap: 32px;
  }
  .cta__note {
    font-size: 32px;
    line-height: 37px;
  }
  .cta__title {
    font-size: 28px;
    line-height: 31px;
  }
  .cta__button {
    width: 100%;
    font-size: 14px;
    padding-inline: 14px;
  }
  .footer__copyright {
    max-width: 100%;
  }
  .chapters__item {
    gap: 24px;
  }
}
@media (max-width: 359px) {
  .container {
    width: calc(100% - 32px);
  }
  .button--outline {
    font-size: 11px;
    padding-inline: 12px;
    letter-spacing: 1px;
  }
  .hero__title {
    font-size: 30px;
    line-height: 35px;
  }
  .signup__card {
    padding-inline: 18px;
  }
  .signup__submit {
    font-size: 13px;
  }
  .text--eyebrow, .newsletter__eyebrow {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
  .cta__button {
    font-size: 12px;
  }
  .footer__nav {
    gap: 14px;
    font-size: 12px;
  }
}
