/* #region Base styles and variables */

:root {
  --ink: #20242a;
  --blue: #7e94ba;
  --pale: #e7edf7;
  --cream: #f8f5ef;
  --sand: #eee7de;
  --line: #d6dce8;
  --accent: #effb60;
  --blue-lite: #d9e5f3;
  --white: #ffffff;

  --bg-secondary: #faf8f5;
  --bg-primary: #ffffff;
  --bg-accent: #f4f0ec;
  --bg-price: #6e819f;
  --text-color-accent: #7488aa;
  --text-color-nav: #7d838f;
  --text-color-brand: #8d8f95;
  --text-color-booking: #6c7f9f;
  --text-color-highlight: #566987;
  --text-color-link-primary: #5b6b84;
  --text-color-secondary: #9ba7ba;

  --font-extrabold: 800;
  --font-semibold: 600;
  --font-normal: 400;
  --font-light: 300;

  --text-sm: 0.875rem; /* 12px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem; /* 48px */
  --text-6xl: 3.75rem; /* 60px */

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* #endregion */

/* #region Common */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 60px 0 60px;
}

.button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 26px;
  background: var(--blue);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.2s,
    background 0.2s;
}

.button:hover {
  transform: translateY(-2px);
  background: #667fae;
}

.accent {
  font-style: normal;
  background: linear-gradient(transparent 61%, var(--accent) 61%);
}

h1,
h2 {
  font-family: Unbounded, Arial, sans-serif;
}

#top,
#how-it-works,
#why-me,
#reviews,
#price {
  scroll-margin-top: 60px;
}

@media (max-width: 900px) {
  .section {
    padding: 48px 0 48px;
  }

  .container {
    width: min(100% - 40px, var(--container));
  }

  #top,
  #how-it-works,
  #why-me,
  #reviews,
  #price {
    scroll-margin-top: 48px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 32px 0 32px;
  }

  .container {
    width: calc(100% - 32px);
  }

  #top,
  #how-it-works,
  #why-me,
  #reviews,
  #price {
    scroll-margin-top: 32px;
  }
}

/* #endregion */

/* #region Header and navigation */

.header {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100vw;
  background: var(--bg-secondary);
  background: rgba(252, 250, 247, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(131, 150, 182, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding-top: 0;
}

.brand {
  color: var(--text-color-brand);
  font-weight: var(--font-semibold);
}

.desktop-nav {
  display: flex;
  gap: 28px;
  color: var(--text-color-nav);
}

.ask a:hover,
.legal a:hover {
  text-decoration: underline;
}

.header-booking {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  font-weight: var(--font-extrabold);
  font-size: var(--text-lg);
  color: var(--text-color-booking);
}

.desktop-nav a:hover,
.header-booking:hover {
  color: var(--text-color-highlight);
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.mobile-menu a,
.desktop-nav a:hover,
.header-booking:hover {
  transition:
    transform 0.24s ease,
    opacity 0.24s ease,
    color 0.24s ease,
    background-color 0.24s ease;
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-booking {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}
@media (max-width: 520px) {
  .header-inner {
    height: 62px;
  }

  .menu-overlay {
    inset: 62px 0 0;
  }
}

/* #endregion */

/* #region Mobile menu */

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 4px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  transform-origin: 0 4px;
  z-index: 9999;
}

.menu-toggle span {
  display: block;
  height: 4px;
  margin: 4px auto;
  border-radius: 999px;
  background: #7789a8;
  transition:
    transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    opacity 0.55s ease;
}

.menu-toggle--expanded span {
  opacity: 1;
  transform: rotate(-45deg) translate(-7px, 8px);
  background: white;
}

.menu-toggle--expanded span:nth-child(2) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

.menu-toggle--expanded span:last-child {
  transform: rotate(45deg) translate(-3px, -4px);
}

.mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 72vw;
  min-height: 100vh;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  background: #8396b6;
  box-shadow: var(--mobile-nav-shadow);
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  padding: 70px 0;
  transform: translateX(200%);
}

.mobile-menu a {
  display: block;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.mobile-menu--expanded {
  transform: translateX(0%);
}

/* #endregion */

/* #region Hero section and content grids */

.hero {
  margin-top: 70px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 12px;
  position: relative;
}

.hero > * {
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 40px auto;
  left: 50%;
  width: min(calc(var(--container) * 0.9), 90%);
  height: auto;
  transform: translateX(-50%);

  background-image: radial-gradient(circle, #dfdede 2px, transparent 2px);
  background-size: 18px 18px;

  z-index: 0;
}

.hero h1 {
  letter-spacing: -0.055em;
  font-size: var(--text-5xl);
  line-height: 1.07;
}

.hero-detail {
  font-size: var(--text-lg);
  margin-top: 32px;
}

.hero-detail ul {
  margin-top: 24px;
  padding-left: 24px;
}

.hero-copy button {
  margin-top: 32px;
}

.hero-copy p {
  font-size: var(--text-2xl);
  margin-top: 32px;
}

.hero-copy .hero-people-choice {
  font-size: var(--text-lg);
}

.hero-copy .hero-people-choice::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 30px;
  margin-right: 8px;
  background-image: url("assets/hero-check.svg");
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
}

.hero-visual-mobile {
  display: none;
}

.hero-visual {
  position: relative;
}

.hero-visual > img {
  width: min(440px, 92%);
  height: auto;
  border-radius: 48% 48% 28px 28px;
  object-fit: cover;
  object-position: center top;
  transform: translateY(-12px);
  z-index: 1;
}

.hero-note {
  position: absolute;
  z-index: 2;
  left: 2%;
  bottom: 42px;
  width: 220px;
  padding: 10px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 35px #65749622;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-sm);
}

.hero-note span {
  color: #667085;
}

@media (max-width: 900px) {
  .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero h1 {
    font-size: var(--text-4xl);
  }

  .lead {
    font-size: 19px;
    margin-top: 20px;
  }

  .hero-detail {
    max-width: 450px;
  }

  .hero-detail p {
    font-size: var(--text-xl);
  }

  .hero-detail ul,
  .hero-detail .hero-people-choice {
    font-size: var(--text-base);
  }

  .hero-visual {
    min-height: 365px;
  }

  .hero-visual > img {
    width: 275px;
  }

  .hero-note {
    left: 0;
    bottom: 15px;
  }
}

@media (max-width: 520px) {
  .hero button {
    width: 100%;
  }

  .hero::before {
    inset: 30px 20px 40px 20px;
    width: auto;
    height: auto;
    transform: none;
  }

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

  .hero-visual {
    display: none;
    min-height: 312px;
  }

  .hero-visual-mobile {
    display: block;
    position: relative;
  }

  .hero-visual-mobile > img {
    width: 275px;
    height: auto;
    border-radius: 48% 48% 28px 28px;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
    margin-top: 12px;
  }
}

/* #endregion */

/* #region Fit section */

.fit-group {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.fit-group h2 {
  font-size: var(--text-4xl);
}

.fit-group ul {
  display: flex;
  flex-direction: column;
  gap: 10px;

  list-style: none;
  padding: 0;
  font-size: var(--text-xl);
}

.fit-group li {
  padding: 12px 20px;
  background-color: var(--blue-lite);
  border-radius: 20px;
}

.not-fit li {
  background-color: transparent;
  border: solid 2px var(--blue-lite);
}

.not-fit {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .fit-group {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .fit-group h2 {
    font-size: var(--text-3xl);
  }

  .fit-group ul {
    font-size: var(--text-lg);
  }

  .fit-group li {
    padding: 10px 16px;
  }
}

/* #endregion */

/* #region Video */

.video-frame {
  aspect-ratio: 16/9;
  border-radius: 30px;
  overflow: hidden;
  background: #232936;
}

.video-frame iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

.video-placeholder {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  color: white;
  background: radial-gradient(circle at center, #788eaf, #303a4b);
}

.video-placeholder span {
  font-family: Unbounded;
  font-size: 32px;
  letter-spacing: 0.04em;
}

/* #endregion */

/* #region Outcomes section */
.outcomes-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 16px;
  margin-top: 24px;
}

.outcomes h2 {
  font-size: var(--text-4xl);
  text-align: center;
}

.outcomes-list article {
  display: flex;
  flex: 0 1 calc((100% - 32px) / 3);
  flex-direction: column;
  max-width: calc((100% - 32px) / 3);

  border-radius: 18px;
  background: var(--blue-lite);

  text-align: center;
  padding: 20px 24px;
}

.outcomes-list h3 {
  font-size: var(--text-xl);
  margin-bottom: 8px;
}

.outcomes-list p {
  font-size: var(--text-lg);
}

@media (max-width: 900px) {
  .outcomes-list {
    margin-top: 18px;
  }

  .outcomes-list article {
    flex-basis: calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }

  .outcomes h2 {
    font-size: var(--text-3xl);
  }

  .outcomes-list h3 {
    font-size: var(--text-lg);
  }

  .outcomes-list p {
    font-size: var(--text-base);
  }
}

@media (max-width: 520px) {
  .outcomes-list article {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* #endregion */

/* #region How it works  */

.steps span {
  font-family: Rubik;
  color: #7488aa;
  font-size: var(--text-2xl);
  font-weight: 500;
  -webkit-text-stroke: 1px #7488aa;
  color: white;
}

.steps h3 {
  font-size: var(--text-2xl);
  margin: 0 0 10px;
  color: #7488aa;
}

.steps p {
  font-size: var(--text-base);
  line-height: 1.3;
  color: var(--ink);
}

.how {
  background: var(--bg-accent);
}

.how h2 {
  font-size: var(--text-4xl);
}

.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
  padding: 24px 0 0 82px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 55px;
  width: 2px;
  background: #8096ba;
}

.steps article {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 0;
}

.steps article::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -30px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8096ba;
}

@media (max-width: 900px) {
  .how h2 {
    font-size: var(--text-3xl);
  }

  .steps {
    padding-left: 62px;
  }

  .steps::before {
    left: 35px;
  }

  .steps article::before {
    left: -30px;
  }

  .steps h3 {
    font-size: var(--text-xl);
  }

  .steps span {
    font-size: var(--text-xl);
  }
}

@media (max-width: 520px) {
  .steps {
    gap: 24px;
    padding-left: 38px;
    margin-top: 18px;
  }

  .steps::before {
    left: 15px;
  }

  .steps article {
    gap: 14px;
  }

  .steps article::before {
    left: -26px;
  }

  .steps span {
    font-size: var(--text-lg);
  }

  .steps h3 {
    font-size: var(--text-lg);
  }

  .steps p {
    font-size: var(--text-sm);
  }
}

/* #endregion */

/* #region Review section */

.reviews h2 {
  font-size: var(--text-4xl);
  text-align: center;
}

.reviews-grid {
  column-count: 2;
  gap: 32px;
  margin-top: 24px;
}

.reviews-grid article {
  break-inside: avoid;
  margin-bottom: 16px;
  width: 100%;
  background: var(--bg-secondary);
  border-radius: 18px;
  padding: 40px 24px 32px;
  min-height: 220px;
}

.reviews-grid article:last-child {
  margin-bottom: 0;
}

.reviews-grid img {
  border-radius: 50%;
  width: 54px;
  height: 54px;
  object-fit: cover;
}

.reviews-grid blockquote {
  margin: 0 0 18px;
  font-size: var(--text-base);
  line-height: 1.5;
  font-style: italic;
}

.reviews-grid .avatar {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
  gap: 12px;
}

@media (max-width: 900px) {
  .reviews h2 {
    font-size: var(--text-3xl);
  }

  .reviews-grid {
    column-count: 1;
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .reviews-grid blockquote,
  .reviews-grid .avatar p {
    font-size: var(--text-sm);
  }

  .reviews-grid article {
    padding: 32px 16px 24px;
  }

  .reviews-grid {
    margin-top: 18px;
  }
}

/* #endregion */

/* #region Why me section */

.why {
  background-color: var(--bg-accent);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}

.why-grid h2 {
  font-size: var(--text-4xl);
}

.why-photo {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: 28px;
  background: #d8dfeb;
}

.why-photo > img:first-child {
  object-fit: cover;
  object-position: center;
}

.why-mobile {
  display: none;
}

.why-list {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  padding-left: 24px;
  font-size: var(--text-lg);
}

.why-list li::marker {
  color: var(--text-color-accent);
}

.why-header {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 12px;
}

.why-list p {
  font-size: var(--text-base);
}

.why-photo > img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-grid h2 {
    font-size: var(--text-3xl);
  }

  .why-list {
    margin-top: 18px;
    gap: 14px;
  }

  .why-grid {
    gap: 36px;
  }

  .why-photo {
    min-height: 430px;
  }

  .why-mobile {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    z-index: 1;
  }

  .why-photo {
    display: none;
  }
}

@media (max-width: 520px) {
  .why-mobile {
    width: 64px;
    height: 64px;
  }

  .why-list {
    font-size: var(--text-base);
  }
  .why-list p {
    font-size: var(--text-sm);
  }
}

/* #endregion */

/* #region Price section */

.price {
  text-align: center;
}
.price-card {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  text-align: left;
  background: var(--bg-price);
  border-radius: 26px;
  padding: 32px 40px;
  width: 100%;
  margin: auto;
}

.price-card div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card h3 {
  font-size: var(--text-2xl);
  color: var(--white);
  margin-bottom: 14px;
}

.price-card h4 {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 14px;
}

.price-card h3 span {
  white-space: nowrap;
}
.price-card ul {
  margin: 0;
  color: var(--white);
  padding-left: 18px;
}

.price-card strong {
  display: block;
  font-size: var(--text-4xl);
  white-space: nowrap;
  color: var(--white);
  text-align: end;
}

.price-card .button {
  grid-column: 2/2;
  align-self: end;
  border-radius: 16px;
  background-color: var(--white);
  color: var(--text-color-accent);
}

@media (max-width: 900px) {
  .price-card {
    flex-direction: column;
  }

  .price-card strong {
    margin-bottom: 14px;
  }

  .price-card .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .price-card {
    padding: 24px 32px;
  }

  .price-card strong {
    font-size: var(--text-3xl);
    margin-bottom: 10px;
  }

  .price-card h3 {
    font-size: var(--text-xl);
    margin-bottom: 10px;
  }

  .price-card h4 {
    font-size: var(--text-base);
    margin-bottom: 10px;
  }

  .price-card li {
    font-size: var(--text-sm);
  }
}

/* #endregion */

/* #region FAQ section */

.faq {
  background: var(--bg-accent);
}

.faq h2 {
  text-align: center;
  font-size: var(--text-4xl);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.faq-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
}

.faq-item button {
  border: 0;
  background: var(--white);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  cursor: pointer;
}

.faq-item button span {
  font-weight: var(--font-semibold);
  font-size: var(--text-lg);
  text-align: start;
}

.faq-item button b {
  font-size: var(--text-2xl);
  color: var(--text-color-accent);
  line-height: 0.8;
}

.faq-answer {
  padding: 0 24px 20px;
  line-height: 1.3;
}

.ask {
  text-align: center;
  margin-top: 40px;
}

.ask p {
  margin: 0 0 10px;
  font-weight: var(--font-semibold);
  color: var(--text-color-brand);
}

.ask div {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--text-color-brand);
  font-weight: var(--font-semibold);
}

.ask a {
  text-decoration: none;
  cursor: pointer;
}

.ask a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

@media (max-width: 900px) {
  .faq h2 {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 520px) {
  .faq-item button span {
    font-size: var(--text-base);
  }

  .faq-item button {
    gap: 18px;
  }

  .faq-item button span {
    font-size: var(--text-base);
  }

  .faq-item button b {
    font-size: var(--text-xl);
  }

  .faq-answer p {
    font-size: var(--text-sm);
  }

  .faq-item button {
    padding: 18px;
    font-size: 15px;
  }
  .faq-answer {
    padding: 0 18px 18px;
    font-size: 14px;
  }

  .ask {
    text-align: center;
    margin-top: 32px;
  }

  .ask p {
    font-size: var(--text-sm);
  }

  .ask div {
    gap: 14px;
    font-size: var(--text-sm);
  }
}

.legal span {
  opacity: 0.55;
}

/* #endregion */

/* #region Final cta section */

.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-size: var(--text-4xl);
  margin-bottom: 22px;
}

.final-cta p {
  max-width: 670px;
  margin: 0 auto 30px;
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .final-cta h2 {
    font-size: var(--text-3xl);
    margin-bottom: 22px;
  }

  .final-cta p {
    font-size: var(--text-lg);
  }
}

@media (max-width: 520px) {
  .final-cta p {
    font-size: var(--text-base);
  }

  .final-cta button {
    width: 100%;
  }
}

/* #endregion */

/* #region Footer section */

footer {
  background: var(--bg-accent);
  padding: 42px 0;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.footer-grid .social,
.footer-grid .legal {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.footer-grid p {
  font-size: var(--text-base);
  color: var(--text-color-secondary);
  line-height: 1.3;
}

.footer-grid .legal .policy {
  text-align: end;
}

.footer-socials img {
  opacity: 0.88;
}

@media (max-width: 900px) {
  .footer-grid .social,
  .footer-grid .legal {
    flex-direction: column;
    gap: 12px;
  }

  .footer-grid .legal .policy,
  .footer-grid .legal .personal {
    text-align: center;
  }

  .footer-grid {
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .footer-grid p {
    font-size: var(--text-sm);
  }
}

/* #endregion */

@media (max-width: 900px) {
  .desktop-nav,
  .header-booking {
    display: none;
  }
  .menu-button {
    display: block;
  }

  .menu-toggle {
    display: block;
  }
}
@media (max-width: 520px) {
  .header-inner {
    height: 62px;
  }
  .menu-overlay {
    inset: 62px 0 0;
  }
}
