:root {
    --primary-bg: #ffffff;
    --accent-color: #d0e6fd;
    --text-color: #000000;
    --card-bg: #d0e6fd;
    --section-bg: #d0e6fd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg); 
    background-image: url('back.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}
@media (min-width: 721px) {
    body {
        background-size: auto; 
        background-repeat: repeat; 
        background-position: center top;
    }
}

@media (max-width: 720px) {
    body {
        background-size: contain;
        background-repeat: repeat; 
        background-position: center;
        background-attachment: scroll;
    }
}
header {
    background: var(--accent-color);
    padding: 10px 16px;
    text-align: center;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    max-height: 15vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    background: none;
    border: none;
    color: #162660;
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.nav-container {
    width: 100%;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-btn {
    background: #b8d7f8;
    color: #000000;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.1s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

header img {
    max-width: 100%;
    max-height: 10vh;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

section {
    padding: 28px 16px;
    max-width: 1100px;
    margin: 2px auto;
}

h2 {
    text-align: center;
    color: #000000;
    margin-bottom: 18px;
    font-size: 26px;
}

.intro-block {
    background: var(--accent-color);
    padding: 40px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgb(0, 0, 0);
    margin: 0 auto 24px;
    border-radius: 12px;
    max-width: 1100px;
    gap: 20px;
}

.intro-text {
    flex: 1;
    text-align: left;
}

.intro-text h1 {
    font-size: 32px;
    margin: 0 0 16px;
}

.intro-text p {
    font-size: 18px;
    margin: 0;
}

.intro-image {
    flex: 1;
    text-align: right;
}

.intro-image img {
    display: flex;
    justify-content: center;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.intro-image img {
    transform: translateX(50%); 
}
.intro-actions {
    display: flex;
    justify-content: center; 
    align-items: center; 
    gap: 20px; 
    padding: 20px 16px; 
    margin: 0 auto 10px; 
    max-width: 1100px; 
    width: 100%; 
}
.intro-btn {
    background: var(--accent-color);
    color: rgb(0, 0, 0);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease, transform 0.1s ease;
}
.red-btn {
    background: #ff0000; 
    color: rgb(255, 255, 255);
}

.intro-btn:hover {
    background: darken(var(--accent-color), 10%);
    transform: translateY(-2px);
}
@media (max-width: 720px) {
    .intro-content {
        flex-direction: column;
        text-align: center;
    }

    .intro-actions {
        flex-direction: column;
        gap: 10px;
    }

    .intro-btn {
        width: 100%;
        padding: 10px;
    }
}
.audience-cards,
.benefits-cards {
    background-color: #ffffff;
    padding: 28px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.audience-card,
.benefits-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(87, 97, 0, 0.06);
    padding: 16px;
    text-align: center;
}

.audience-card p,
.benefits-card p {
    margin: 0;
    font-size: 16px;
    color: #000000;
}

.about-author {
    background-color: var(--section-bg);
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-image {
    flex: 1;
    text-align: center;
}

.author-image .author-slider {
    width: 100%;
    max-width: 400px; /* Обмеження ширини каруселі */
    margin: 0 auto;
    position: relative;
}

.author-image .swiper-slide img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.author-text {
    flex: 2;
    text-align: left;
}

.author-text h2 {
    margin-top: 0;
}

.author-text p {
    margin: 8px 0;
    font-size: 16px;
    color: var(--text-color);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-color); 
    top: 50%; 
    transform: translateY(-50%);
}
.swiper-pagination {
    position: absolute; 
    bottom: -30px; 
    left: 50%;
    transform: translateX(-50%); 
    width: auto; 
}
.swiper-pagination-bullet {
    background: var(--accent-color); 
    margin: 0 5px;
}

@media (max-width: 720px) {
    .about-author {
        flex-direction: column;
        text-align: center;
    }
    .author-image .author-slider {
        max-width: 100%; 
    }
    .swiper-pagination {
        bottom: -20px; 
    }
}

.cards {
    background-color: #ffffff;
    padding: 28px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(87, 97, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(87, 97, 0, 0.09);
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 16px;
    flex-grow: 1;
    text-align: left;
}

.card h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #000000;
    text-align: left !important;
    display: flex; 
    align-items: center;
}
.card .card-content h3 .price {
    font-size: 16px;
    color: var(--text-color); 
    margin-left: 10px; 
    display: flex;
    align-items: center;
    gap: 5px; 
}

.card .card-content h3 .old-price {
    font-size: 14px;
    color: #888; 
    text-decoration: line-through; 
    margin-left: 5px;
}
.card p {
    font-size: 14px;
    color: #000000;
    margin: 0 0 12px 0;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 16px 16px 16px;
    display: flex;
    gap: 10px;
    align-items: center;
}


.toggle-btn {
    background: #162660;
    color: #ffffff;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.18s ease;
}

.toggle-btn:hover {
    background: #162660;
}

.learn-btn {
    background: #ff0000; 
    color: rgb(255, 255, 255);
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 17px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
    text-decoration: none; 
    display: inline-block; 
}
#lead-bottom::before {
    content: "Перехід ";
    font-size: 0; 
}
.course-page .learn-btn {
    padding: 26px 48px;   
    font-size: 28px;
    border-radius: 10px;
}
.learn-btn:hover {
    background: #b8d7f8; 
}
.card-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, padding 0.18s ease;
    padding: 0 16px;
    background: var(--card-bg);
    line-height: 1.8;
}

.card-detail.open {
    max-height: none;
    height: auto;
    padding: 12px 16px;
}

.card-detail p {
    margin: 0;
    color: #445;
    font-size: 14px;
}

.cases-slider,
.reviews-slider {
    background-color: #ffffff;
    padding: 28px;
    border-radius: 12px;
    margin: 24px 0;
}

.swiper {
    width: 100%;
    padding: 20px 0;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.review-card,
.case-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(87, 97, 0, 0.06);
    width: 90%;
    max-width: 1000px;
    padding: 20px;
    text-align: center;
}

.review-card .media,
.case-card .case-media {
    width: 100%;
    max-height: 600px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.review-card .media img,
.case-card .case-media img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
}

.review-card .media video,
.case-card .case-media video {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
}

.case-card .case-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 16px;
}

.review-card p,
.case-card p {
    font-size: 16px;
    color: #576100;
    margin: 0;
}

.review-card h3,
.case-card h3 {
    font-size: 20px;
    color: #576100;
    margin: 0 0 10px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #162660;
}

.swiper-pagination-bullet-active {
    background: #162660;
}
.author-text p a,
.footer-content p a {
    color: #000000; 
    text-decoration: none; 
    font-weight: bold; 
}



.faq {
    background-color: #ffffff;
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.faq-item {
    margin-bottom: 16px;
}

.faq-item h3 {
    font-size: 18px;
    color: #000000;
    margin: 0;
    cursor: pointer;
    padding: 10px;
    background: var(--card-bg);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.faq-item h3:hover {
    background: #e0f0f7;
}

.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 10px;
}

.faq-answer p {
    margin: 0;
    font-size: 16px;
    color: #000000;
}

.images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.images img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.payment {
    text-align: center;
    margin-top: 30px;
}

.pay-btn {
    background: #ff0000; 
    color: rgb(255, 255, 255);
    padding: 14px 36px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease, transform 0.12s ease;
}

.pay-btn:active {
    transform: translateY(1px);
}

footer {
    background: var(--accent-color);
    text-align: center;
    padding: 18px 10px;
    color: rgb(0, 0, 0);
    margin-top: 36px;
}

.social-links {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    margin-bottom: 10px; 
}

.social-links a {
    margin: 8px 0; 
    color: #000000; 
    font-size: 22px;
    transition: color 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.social-links a:hover {
    color: #333333;
}

.social-links a:last-child { 
    font-size: 16px;
    vertical-align: middle;
}
#how-to {
    background: var(--section-bg); /* такий самий фон, як у відгуках */
    padding: 40px 20px;
    text-align: center;
}
.howto-slider {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.howto-card img {
    width: 100%;
    max-width: 600px;   
    max-height: 400px;  
    object-fit: contain; 
    margin: 0 auto;      
    display: block;
    border-radius: 8px;
}
.review-card .media video {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
}
@media (max-width: 720px) {
    .menu-toggle {
        display: block;
    }
    .nav-buttons {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--accent-color);
        padding: 10px 16px;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    .nav-buttons.active {
        display: flex;
    }
    .nav-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        text-align: left;
        margin: 5px 0;
    }
    header {
        padding: 10px 12px;
    }
    header img {
        max-height: 8vh;
    }
    .card img {
        height: 180px;
    }
    h2 {
        font-size: 22px;
    }
    .case-card .case-media {
        flex-direction: column;
    }
    .case-card .case-media img,
    .case-card .case-media video {
        width: 100%;
        max-height: 400px;
    }
    .review-card .media img,
    .case-card img {
        max-height: 400px;
    }
    .review-card .media video,
    .case-card .case-media video {
        max-height: 400px;
    }
    .review-card p,
    .case-card p {
        font-size: 14px;
    }
    .review-card h3,
    .case-card h3 {
        font-size: 18px;
    }
    .intro-block {
        flex-direction: column;
    }
    .intro-text {
        text-align: center;
    }
    .intro-image {
        text-align: center;
    }
    .audience-cards,
    .benefits-cards {
        grid-template-columns: 1fr;
    }
    .about-author {
        flex-direction: column;
        text-align: center;
    }
    .author-image .swiper-slide img {
        max-width: 260px;
        width: 100%;
        height: auto;
        margin: 0 auto;
    }
}
.nav-btn {
    text-decoration: none !important;
}
.toggle-btn {
    text-decoration: none !important;
}
.course-title-box {
    background: #d9edff; /* світло-блакитний */
    padding: 26px 0;
    text-align: center;
    margin: 20px 0 40px;
    border-radius: 12px;
    width: 100%;
}

.course-title-box h1 {
    margin: 0;
    font-size: 30px;
    color: #0d3b4a;
    font-weight: 700;
}
.course-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center; /* центр кнопки */
}
.course-nav-buttons {
    display: flex;
    justify-content: center;
}

@media (max-width: 720px) {
    .course-nav-buttons {
        display: flex;
        justify-content: center;
        position: static;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
}
.course-suptitle-wrapper {
  background: #e6f4ff;
  border-radius: 12px;
  padding: 8px 14px;
  margin: 16px 0 10px;
  text-align: center;
}

.course-suptitle {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d3b4a;
  font-weight: 600;
}
.course-hero-text {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(13, 59, 74, 0.06);
}

.course-hero-subtitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #334;
  font-weight: 400; 
}
.course-page #about-author {
    max-width: 680px;          
    margin: 0 auto 40px;
}


.course-page .about-author {
    display: block;
}

.course-page .author-image {
    margin-bottom: 16px;
}

/*.course-top {
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
    padding: 14px 16px;
}

.course-top-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
}

.course-top-inner h1 {
    margin: 0;
    font-size: 22px;
    color: #fff;
}


.back-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.9);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.back-btn::before {
    content: "←";
    font-size: 14px;
}

.back-btn:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.16);
}

.back-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}*/