input,
textarea,
select {
  font-size: 16px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

    html, body {
  overflow-x: hidden;
}


/* Gilroy Regular (400 normal) */
@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy-Regular.woff2') format('woff2'),
       url('/fonts/Gilroy-Regular.woff')        format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Gilroy Medium (500 normal) */
@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy-Medium.woff2') format('woff2'),
       url('/fonts/Gilroy-Medium.woff')        format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Gilroy Bold (700 normal) */
@font-face {
  font-family: 'Gilroy';
  src: url('/fonts/Gilroy-Bold.woff2') format('woff2'),
       url('/fonts/Gilroy-Bold.woff')        format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


body {
  font-family: 'Gilroy', sans-serif;
}

:root {
  --color-primary: #434f42;
  --color-secondary: #d6d5e0;
  --color-accent: #95ae94;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

.page-loader {
    position: fixed;
    inset: 0;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.page-loader .loader-text {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--color-primary);
}


header {
    display: flex;
    justify-content: space-between;
    background-color: var(--color-accent);
    color: white;
    padding: 20px;
    text-align: center;
    align-items: center;
}

.nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.nav ul li a {
    font-style: normal;
    font-weight: 500;
    display: inline;
    color: white;
}

.nav ul li a:hover  {
    color: var(--color-primary);
}

.socials {
    display: flex;
    gap: 10px;
    align-items: center;
}

main, .mainRight{
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 50px;
    align-items: center;
    justify-content: center;
}

.mainLeft, .leftText {
    display: flex;
    gap: 30px;
    padding: 20px;
}

.leftText {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    padding-top: 20px;
    max-width: 650px;
}

.mainImg {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 2px;
}

.mainTitle {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
}

.MainBtn {
    background-color: var(--color-primary);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 400;
    text-transform: uppercase;
}

.MainBtn:hover {
    background-color: var(--color-accent);
}


.whom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    gap: 20px;
    padding: 50px;
    background: var(--color-secondary);
    color: var(--color-primary);
}


.whomP {
    font-size: 18px;
    color: white;
    line-height: 1.6;
    font-weight: 700;
    text-align: center;
    color: var(--color-primary);
}

.sectionTitle {
    margin-top: 30px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.CustomerPains {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.CustomerPains div {
    display: flex;
    flex-direction: column;

    gap: 20px;
    padding: 20px;
}

.CustomerPains div h2{
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.CustomerPains div p {
    font-size: 16px;
    line-height: 1.6;
}


.whomImg {
    width: 100%;
    height: auto;
    border-radius: 2px;
}



.what-is-inside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: center;
    width: 100%;
    gap: 20px;
    padding: 50px;
    background: var(--color-primary);
}

/*  */


.whatLeft {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.whatP {
    font-size: 18px;
    color: white;
    line-height: 1.6;
    font-weight: 700;
    text-align: end;
}


.CustomerPlan {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 20px;
    padding: 20px;
}

.CustomerPlan .sectionTitle {
    color: white;
}

.CustomerPlan div {
    text-align: right;
}

.CustomerPlan div h2{
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.CustomerPlan div p {
    font-size: 16px;
    color: var(--color-secondary);
    line-height: 1.6;
}


.whatImg {
    width: 100%;
    height: auto;
    border-radius: 2px;
}


.cases {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 50px;
}

.casesBox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.case {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--color-secondary);
    color: var(--color-primary);
    border-radius: 5px;
}

.caseText {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.caseName {
    font-size: 20px;
    font-weight: 700;
}

.textB {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 700;
}

.cases .sectionTitle {
    color: var(--color-primary);
}

.CustomerPlan .sectionTitle {
    text-align: end;
}


.formSection {
    display: flex;
    gap: 50px;
    margin: 50px;
    padding: 50px;
    justify-content: center;
    background: var(--color-secondary);

}

.formSectionRight {
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.formSectionLeft, form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
}

.price-note {
    font-size: 24px;
    font-weight: 700;
}

.old-price {
    text-decoration: line-through;
    margin-right: 10px;
    color: var(--color-primary);
    opacity: 0.7;
}

.new-price {
    color: var(--color-accent);
}

.photoAttr {
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.photoAttr img {
    width: 350px;
    height: 550px;
    border-radius: 2px;
}

input {
    padding: 10px;
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    font-size: 16px;
    width: 100%;
    height: 50px;
}

.formBtn {
    background-color: var(--color-primary);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 400;
    text-transform: uppercase;
}

.rem1 {
    text-align: left;
    font-size: 15px;
}

.rem2 {
    text-align: center;
    font-size: 15px;
}

.confidence {
    text-align: center;
    font-size: 10px;
}

.limitText {
    display: inline-block !important;
    padding: 5px;
    background: var(--color-accent);
    font-size: 15px;
    font-weight: 700;
    line-height: 24px;
}


.author {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    gap: 10px;
    padding: 50px;
}

.author .sectionTitle {
    color: var(--color-primary);
}


.authorImg {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0.1);
    margin: 0 auto;
    transition: transform 0.3s ease;

}

.authorText {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 550px;
}

.authorText p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-primary);
}

.authorTitle {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
}



/* Превью щоденника */

.book-preview {
      --book-width: 900px; /* Базова ширина книги, можна перевизначити */
      --book-aspect: 2530 / 1790;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      padding: 30px;
      background: #f9f9f9;
    }
    /* Книга з пропорційним співвідношенням */
    .book {
      position: relative;
      width: var(--book-width);
      aspect-ratio: var(--book-aspect); /* Пропорція (ширина/висота) */
      perspective: 1500px;
      overflow: hidden;
    }
    /* Сторінки */
    .page {
      position: absolute;
      top: 0;
      width: 50%;
      height: 100%;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      border: 1px solid #e0e0e0;
      transition: background-image 0.4s ease;
    }
    .page.left {
      left: 0;
      transform-origin: left center;
    }
    .page.right {
      right: 0;
      transform-origin: right center;
    }
    /* Зігнутий кут для правої сторінки */
    .page.right::after {
      content: '';
      position: absolute;
      bottom: 0;
      right: 0;
      width: 0;
      height: 0;
      border-bottom: 20px solid #fff;
      border-left: 20px solid transparent;
      box-shadow: -2px -2px 4px rgba(0,0,0,0.1);
    }
    /* Кнопки навігації */
    .book-preview button {
      background: var(--color-primary);
      color: #fff;
      border: none;
      padding: 12px 16px;
      font-size: 16px;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.3s;
    }
    .book-preview button:disabled {
      background: #ccc;
      cursor: not-allowed;
    }
    .book-preview button:not(:disabled):hover {
      background: var(--color-accent);
    }

    /* Price section */
.price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 50px;
    color: var(--color-primary);
    text-align: center;
}

.priceLeft {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    text-align: end;
}

.priceLeft .sectionTitle {
    text-align: right;
}

.priceIntro {
    max-width: 600px;
    line-height: 1.6;
}

.priceList {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
}

.priceList li::before {
    content: '\2022';
    color: var(--color-primary);
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.priceHighlight {
    font-size: 20px;
    font-weight: 700;
}

.priceValue {
    font-size: 32px;
    font-weight: 700;
}

/* New styles for updated price section */
.priceTable {
    border-collapse: collapse;
    width: 100%;
    margin-left: auto;
    text-align: left;
}

.priceTable th,
.priceTable td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--color-secondary);
}

.priceTable th {
    font-weight: 700;
}

.priceTable .total td {
    font-weight: 700;
}

.priceSubTitle {
    font-size: 20px;
    font-weight: 700;
}

.priceOrdered {
    list-style-position: inside;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
}

.video-review {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 50px;
    text-align: center;
}

.play-btn {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-accent);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    outline: none;
}

.play-btn .play-icon {
    position: relative;
    z-index: 1;
}

.play-btn::before,
.play-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(149, 174, 148, 0.5);
    animation: pulse 2s infinite;
}

.play-btn::after {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.video-container {
    margin-top: 20px;
}

.spinner {
    margin: 0 auto;
    border: 4px solid var(--color-secondary);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



/* Trusted influencers slider */
.trusted {
    padding: 50px;
    overflow: hidden;
    text-align: center;
}

.trusted-slider {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.trusted-track {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    }

.trusted-track .slick-slide {
    width: 300px !important;
}

.trusted-track img {
    width: 300px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Reviews section with tabs */
.reviews {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 50px;
    text-align: center;
}

.review-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.review-tab {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.review-tab.active {
    background: var(--color-accent);
}

.review-content {
    width: 100%;
}

.video-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    /* Allow vertical page scrolling while swiping the carousel */
    touch-action: pan-x pan-y;

    gap: 20px;
    scroll-snap-type: x mandatory;
    position: relative;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.video-carousel::-webkit-scrollbar,
.photo-grid::-webkit-scrollbar {
    display: none;
}

.video-carousel,
.photo-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.video-card {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    scroll-snap-align: start;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
}

.video-wrapper video {
    width: 100%;
    border-radius: 5px;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.photo-grid img {
    width: 100%;
    height: auto;
     display: block;
}

.cta-after-reviews {
    text-align: center;
    padding: 50px;
}

.footer {
    background: var(--color-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

.footer p {
    margin: 0;
}

.footer .socials a img {
    width: 30px;
}

.caseHidden {
    display: none;
}

.case.active .caseHidden {
    display: block;
}

.caseToggle {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 2px;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.3s;
}

.caseToggle:hover {
    background: var(--color-accent);
}

.sectionSubTitle {
    text-align: center;
    font-size: 15px;
}

/* Fade-in effect for sections */
.fade-section {
    opacity: 0;
    transform: translateY(20px);
}

.fade-item {
    opacity: 0;
    transform: translateY(20px);
}

.fade-item.fade-visible {
    animation: fadeIn 0.6s forwards;
}

.fade-visible {
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-item {
    opacity: 0;
    transform: translateY(20px);
}

.fade-item.fade-visible {
    animation: fadeIn 0.6s forwards;
}


.authorSocials {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.textActionMe {
    font-size: 15px !important;
    text-align: center;
}

.mySocials {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.authorSubtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 10px;
}

.authorList {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    align-items: baseline;
    text-align: start;
}

.authorList li::before {
    content: '\2022';
    color: var(--color-primary);
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.aStDiv {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5px;
    background-color: rgb(149, 174, 148); 
}

.backWeight {
    background-color: rgb(149, 174, 148);
    padding: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.authorStory {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-top: 10px;
    text-align: center;
}
/* ---------------- Responsive styles ---------------- */

/* ---------------- Responsive styles ---------------- */


@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .mainLeft {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .leftText {
    align-items: center;
    text-align: center;
  }

  .mainImg {
    max-width: 300px;
  }

  .book-preview {
    --book-width: 700px;
  }

  .price {
    flex-direction: column;
  }

  .priceLeft {
    text-align: center;
    align-items: center;
  }

  .priceLeft .sectionTitle {
    text-align: center;
  }

  .formSection {
    flex-direction: column;
    align-items: center;
  }

  .formSectionLeft,
  .formSectionRight {
    align-items: center;
    text-align: center;
  }

  .authorImg {
    width: 300px;
    height: 300px;
  }

  .trusted-track img {
    width: 300px;
    height: auto;
  }

  .trusted-track .slick-slide {
    width: 300px !important;
  }

  .video-card {
    flex: 0 0 200px;
  }


  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }


  .footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}



@media (max-width: 480px) {
    .MainBtnBox {
        margin-bottom: 15adpx;
    }

    .trusted-slider {
    width: 100%;
  }
    body {
        width: 100%;
    }

  .nav {
    display: none;
  }

  .header {
    flex-direction: column;
    gap: 10px;
  }

  main,
  .whom,
  .what-is-inside,
  .cases,
  .photoAttr,
  .price,
  .video-review,
  .author {
    padding: 15px;
  }

  .formSection {
    padding: 10px;
    margin: 10px;
  }

    .price-note {
    font-size: 20px;
  }

  .formSectionLeft .mainTitle {
    font-size: 24px;
  }

  .book-preview {
    flex-direction: column;
    --book-width: 100%;
    --book-aspect: 1265 / 1790;
    gap: 10px;
  }

  .book-preview button {
    width: 100%;
  }

  .book {
    width: 100%;
  }

  .page {
    width: 100%;
  }

  .page.right {
    display: none;
  }



  .photoAttr img {
    width: 100%;
    height: auto;
  }

  .authorImg {
    width: 250px;
    height: 250px;
  }

  .trusted-track img {
    width: 300px;
    height: auto;
  }

  .trusted-track .slick-slide {
    width: 300px !important;
  }

  .trusted,
  .reviews,
  .cta-after-reviews {
    padding: 20px;
  }

   .video-carousel {
    padding-right: 40px;
    position: relative;
  }

  .video-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to left, rgba(0,0,0,0.1), rgba(0,0,0,0));
  }

  .video-card {
    flex: 0 0 85%;
  }

  .photo-grid {
   display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-right: 40px;
    scroll-snap-type: x mandatory;
    position: relative;
  }

  .photo-grid::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to left, rgba(0,0,0,0.1), rgba(0,0,0,0));
  }

  .photo-grid img {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .CustomerPlan div h2 {
    font-size: 18px;
  }

    body, section {
    width: 100%;      /* замість width:100vw; */
    max-width: 1200px;
    margin: 0 auto;
    }

    .CustomerPains div {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .CustomerPlan .sectionTitle {
        text-align: center;
        font-size: 18px;
    }

    .CustomerPlan {
        align-items: center;
    }

    .priceLeft .sectionTitle {
        width: 230px;
    }

    .formSection {
        max-width: 390px;
        margin: 0 auto;
        align-items: center;
        justify-content: center;
    }
}