:root {
    --accent: #295ffc;
    --white: #fff;
    --black: #020202;
    --gray: #878787;
    --blue: #4900C7;
    --purple: #EE4BC7;
    --red: #A90B1D;
}

html { scroll-behavior: smooth; }
/* Basic Reset */
* {
    line-height: 120%;
}

/* Fonts */
body {
    font-family: 'RobotoCondensed', sans-serif;
    font-size: 14px;
    color: var(--black);
}

/* Header */
.header{
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: var(--black);
}

.header-content {
    padding: 12px 20px;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
    color: white;
}

.logo-text{
    font-size: 48px;
}

.logo-img {
    height: 30px;
}

.nav-list{
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-link {
    font-size: 18px;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    border-color: #DD31B2;

}

.nav-link:hover {
    color: #DD31B2;
}

.nav-link:hover:after{
    position: absolute;
    content: '';
    bottom: -9px;
    right: 0;
    left: 0;
    height: 3px;
    background-color: #DD31B2;
}

/* Burger Menu for Mobile */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.3rem;
}

.burger-menu span {
    width: 26px;
    height: 3px;
    background-color: white;
}

/* Toggle Burger Menu Animation */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsiveness */
@media (max-width: 1400px) {
    .logo-text{
        font-size: 38px;
    }
}

@media (max-width: 1024px) {
    .header-content {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .nav-list{
        gap: 36px;
    }

    .nav-item{
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .header-content {
        justify-content: space-between;
    }

    .logo{
        flex:1;
        gap:0;
    }

    .logo-text{
        flex:1;
        text-align: center;
    }

    .nav {
        position: absolute;
        height: 100vh;
        z-index: -1;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--black);
        transition: all .3s;
        transform: translateY(-200%);
    }

    /* Active Class for Menu */
    .nav.active {
        transform: translateY(0);
    }

    .nav-list{
        gap: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .nav-item{
        padding: 40px;
        text-align: center;
    }
}

/* Info Bar */
.info-bar {
    position: sticky;
    top: 81px;
    z-index: 98;
    background-image: linear-gradient(to right, #DD31B2, #50006D);
    text-align: center;
    padding: 10px;
}

.info-bar-text{
    color: var(--white);
    font-size: 24px;
    font-weight: 500;
}

@media (max-width: 1400px) {
    .info-bar{
        top: 69px;
        padding: 4px 20px;
    }
    .info-bar-text{
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .info-bar{
        top: 61px;
    }
}

/* Hero Section */
.hero {
    position: relative;
}

.hero-img {
    width: 100%;
    height: auto;
}

/* Course Introduction Section */
.intro {
    background-color: var(--black);
    text-align: center;
    padding: 48px 20px;
    color: var(--white);
}

.intro-title {
    font-size: 64px;
    margin-bottom: 24px;
}

.intro-title span{
    font-weight: 900;
    color: var(--purple);
}

.intro-subtitle {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 24px;
}

.intro-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    width: 296px;
    height: 56px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 8px;
}

.intro-button:hover {
    background-color: #1849cf;
}

.intro-description {
    font-size: 16px;
    font-weight: 400;
}

.intro-description span{
    font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 1400px) {
    .intro {
        padding: 32px 20px 24px;
    }

    .intro-title {
        font-size: 42px;
        margin-bottom: 8px;
    }

    .intro-subtitle {
        font-size: 28px;
    }
}

@media (max-width: 1024px){
    .intro-button{
        font-size: 16px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .intro {
        padding: 24px 18px 16px;
    }

    .intro-title {
        margin: 0 auto;
        max-width: 330px;
        font-size: 36px;
    }

    .intro-title span {
        display: block;
    }

    .intro-subtitle {
        font-size: 16px;
    }

    .intro-button {
        font-size: 14px;
    }

    .intro-description {
        font-size: 12px;
    }
}
/* About Me Section */
.about-me {
    background: linear-gradient(360deg, var(--black) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 24px 20px 56px;
    text-align: center;
}

.about-title{
    margin-bottom: 16px;
}

.about-card {
    background-color: black;
    border: 1px solid #6F0C18;
}

@media (max-width: 768px) {
    .about-me{
        padding: 32px 20px 24px;
    }
}
/* My Approach to the Course Section */
.approach {
    background-color: #000; /* Black background */
    color: var(--white);
    padding: 24px 20px;
    text-align: center;
}

.approach-title {
    margin-bottom: 16px;
}

.approach-card {
    background: #1D1D1D;
    border: 2px solid transparent;
}

.approach-card-title {
    line-height: 180%;
    font-size: 16px;
    font-weight: 700;
}

.approach-card-text{
    display: flex;
    align-items: center;
    min-height: 45px;
}

.approach-note {
    font-size: 12px;
    margin-top: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .approach-note {
        margin-top: 12px;
    }
}
/* Choose a Course Section */
.course {
    background-color: #000; /* Black background */
    color: var(--white);
    padding: 24px 20px;
    text-align: center;
}

.course-title {
    margin-bottom: 16px;
}

.course-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.course-card {
    width: 100%;
    border-radius: 8px;
    /*overflow: hidden;*/
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Top half with gradient */
.course-card-top {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    pointer-events: none;
    background: linear-gradient(to bottom, var(--accent), #2B5C8D); /* Black gradient */
    padding: 12px 20px 16px;
    text-align: center;
    min-height: 160px; /* Set consistent height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.course-card-top-box{
    display: flex;
    align-items: center;
    gap: 16px;
}


.course-check-mobile{
    display: none;
}

.course-card.advanced .course-card-top{
    background: linear-gradient(to bottom, #0B2575, #F0318B);
}

.course-card.popular .course-card-top{
    background: linear-gradient(to bottom, #4035E0, #3B377A);
}

.course-card.advanced .course-card-top::after,
.course-card.popular .course-card-top::after
{
    position: absolute;
    content: 'Найбільш популярний';
    bottom: -8px;
    font-size: 12px;
    color: var(--white);
    background-color: var(--accent);
    padding: 1px 10px;
    border-radius: 10px;
}

.course-card.advanced .course-card-top::after{
    content: 'Найбільш просунутий';
}

.course-card.popular .course-card-top::after{
    content: 'Популярний';
}

.course-card:hover {
    transform: scale(1.02);
}

.course-card.active {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(42, 90, 248, 0.6);
}

.course-card-title{
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    line-height: 140%;
}

.course-card-icon {
    width: 56px;
    height: 56px;
}

/* Bottom half with solid color */
.course-card-bottom {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    pointer-events: none;
    background-color: var(--white); /* White background */
    padding: 14px 20px 20px;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 162px;
}

.course-card-level {
    font-weight: 500;
}

.course-card.advanced .course-card-level span{
    color: #FF0000;
}

.course-card-description {
    font-size: 12px;
}

.course-check svg {
    width: 48px;
    height: 48px;
}

.course-check-desktop{
    display: block;
}

.course-check-disable{
    display: block;
}

.course-card.active .course-check-disable{
    display: none;
}

.course-check-active{
    display: none;
}

.course-card.active .course-check-active{
    display: block;
}

/*Mobile Responsiveness */
@media (max-width: 768px) {
    .course-cards {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .course-card{
        max-width: 400px;
    }

    .course-card-top{
        min-height: 84px;
        flex-direction: row;
    }

    .course-card-top-box{
        order: -1;
    }

    .course-card-bottom{
        height: 44px;
        flex-direction: row;
    }

    .course-check{
        display: none;
    }

    .course-card.advanced .course-card-top::after,
    .course-card.popular .course-card-top::after{
        bottom: unset;
        top: -8px;
    }

    .course-check-mobile{
        display: block;
    }

    .course-check-desktop{
        display: none;
    }
}

/* General Layout */
.program {
    overflow: hidden;
    padding: 40px 20px 0;
    background-color: #000;
    color: #fff;
    text-align: center;
}

.program-subtitle{
    margin-bottom: 4px;
}

.program-title{
    margin-bottom: 24px;
}

.block-container-wrapper {
    /*display: flex;*/
    /*gap: 8px;*/
    /*max-width: 1000px;*/
    /*margin: 0 auto;*/
}

.block-container {
    /*width: 304px;*/
    background-color: #DBDBDB;
    border-radius: 12px;
}

/* Block Styles */
.block-header {
    text-transform: uppercase;
    background-color: #0030BA;
    color: var(--white);
    padding: 15px;
    font-size: 24px;
    font-weight: 900;
    text-align: left;
    border-radius: 12px 12px 0 0; /* Rounded corners for the top */
}

.block-content {
    color: #000;
    text-align: left;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 380px;
}

.block-list{
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
}

.block-list li span{
    font-weight: 700;
}

/* Footer Style */
.block-footer {
    background-color: #FFFFFF;
    color: #242424;
    padding: 16px;
    font-size: 24px;
    border-radius: 12px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
}
/* General Section Styling */
.pricing {
    background-color: #000;
    text-align: center;
    padding: 40px 20px 20px;
}

.pricing-subtitle{
    margin-bottom: 4px;
}

.pricing-title {
    margin-bottom: 24px;
}

.pricing-cards {
    display: grid;
    grid-auto-flow: column;
    align-items: start;
    gap: 16px;
    max-width: 1104px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .pricing-cards {
        grid-auto-flow: row;
    }

    .pricing-card:nth-child(2){
        grid-row-start: 3;
    }
}

.pricing-card {
    position: relative;
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 358px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.pricing-card-content{
    display: flex;
    flex-direction: column;
    padding: 16px 16px;
}

/* Updated Card Image Styling */
.pricing-card-image {
    width: 100%;
    height: 156px;
    object-fit: cover;
    object-position: center;
}

.pricing-card-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.pricing-card-subtitle {
    font-weight: 600;
    font-size: 16px;
    color: #3B3B3B;
    margin-bottom: 8px;
}

.pricing-list{
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
    color: #3B3B3B;
}

.pricing-descr{
    display: flex;
    justify-content: space-around;
    margin-bottom: 16px;
}

.pricing-descr-item{
    text-align: center;
    padding: 0 8px;
}

.pricing-descr-text{
    font-size: 24px;
    font-weight: 600;
    color: #A90B1D;
    margin-bottom: 2px;
}

.pricing-descr-text.early-price {
    color: var(--black);
}

.pricing-descr-text.not-active {
    color: #9F9F9F
}

.pricing-descr-title{
    font-size: 12px;
    color: #3B3B3B;
}

/* Button Styling */
.apply-button {
    margin-top: auto;
    display: block;
    width: 100%;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
}

.apply-button:hover {
    background-color: #1849cf;
}

.apply-button-disabled {
    background-color: #878787;
    cursor: not-allowed;
    text-align: center;
}

.apply-button-disabled:hover {
    background-color: #878787;
}

/* Test Block Section Styling */
.test-block-section {
    margin: 0 auto;
    background-color: var(--black);
    overflow: hidden;
    padding: 32px 20px;
    text-align: center;
}

.test-block-title{
    margin-bottom: 48px;
}

.test-block-subtitle {
    margin-bottom: 4px;
}

.test-block-note {
    display: none;
    color: #fff;
    font-size: 12px;
    margin-bottom: 24px;
}

.test-action-button {
    display: inline-block;
    text-transform: uppercase;
    background-color: var(--accent);
    font-weight: 600;
    color: #fff;
    padding: 15px 30px;
    margin-top: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.test-block-box{
    max-width: 1400px;
    margin: 0 auto;
}

.test-action-button:hover {
    background-color: #1849cf;
}

.test-block-items-mobile{
    display: none;
}

.test-block-items-desktop{
    display: inline-grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.test-block-big-img{
    grid-column-start: 1;
    grid-column-end: 4;
}

.test-block-img{
    border-radius: 12px;
    width: 100%;
    height: 540px;
}

.test-block-img-big{
    min-width: 1000px;
}

@media(max-width: 1400px){
    .test-block-title{
        margin-bottom: 8px;
    }
    .test-block-note,
    .test-block-items-mobile{
        display: block;
    }
    .test-block-items-desktop{
        display: none;
    }
    .test-block-img{
        width: auto;
    }
}

/* FAQ Section Styling */
.faq-section {
    background-color: var(--black);
    padding: 40px 20px 80px;
    text-align: center;
}

.faq-subtitle {
    margin-bottom: 4px;
}

.faq-title {
    margin-bottom: 18px;
}

.faq-cards-container {
    display: flex;
    align-items: start;
    gap: 16px;
    margin: 0 auto;
    max-width: 1106px;
}

.faq-cards-col{
    flex:1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-card {
    border-radius: 8px;
    background-color: var(--white);
    padding: 16px 20px 24px;
    text-align: center;
}

.faq-card h4 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
}

.faq-card strong{
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    color: #C00000;
}

.faq-card li{
    /*display: inline-block;*/
}

.faq-card p {
    margin-top: 0;
}

.faq-card a {
    color: var(--blue);
    text-decoration: none;
}

.faq-card a:hover {
    text-decoration: underline;
}

/* Farewell Message */
.farewell-message{
    margin-top: 36px;
}

.farewell-message-subtitle {
    margin-bottom: 4px;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .faq-cards-container {
        flex-direction: column;
    }

    .faq-cards-col{
        width: 100%;
        flex-direction: row;
    }

    .faq-card{
        flex: 1;
    }
}

@media (max-width: 768px) {
    .faq-cards-col{
        flex-direction: column;
    }
}

/* Footer Styling */
.footer {
    position: relative;
    background-color: #111;
    color: #e0e0e0;
    padding: 60px 20px;
    text-align: center;
}

.footer-top{
    text-align: left;
    margin: 0 auto;
    max-width: 1320px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-quote-text{
    font-weight: 300;
    max-width: 200px;
}

.footer-payment-icons {
    display: flex;
    gap: 25px;
}

.footer-rights{
    font-weight: 300;
    margin-top: 30px;
    opacity: 0.3;
    text-align: left;
}

.footer-title{
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-map-link{
    color: var(--white);
    font-weight: 300;
    text-decoration: none;
    position: relative;
}


.footer-link{
    color: var(--white);
    font-weight: 300;
    text-decoration: none;
    transition: color;
    transition-duration: 0.2s;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-bottom{
    margin: 0 auto;
    max-width: 1320px;
}

.scroll-to-top {
    position: absolute;
    right: 40px;
    bottom: 24px;
    background-color: #58D68D;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    cursor:pointer;
    transition: background;
    transition-duration: 0.3s;
}

.scroll-to-top:hover {
    background-color: #21d86e;
}

@media (max-width: 1024px) {
    .footer-top{
        grid-template-columns: repeat(2, 1fr);
        row-gap: 60px;
    }

    .footer-contact,
    .footer-links{
        grid-row: 1;
    }

    .footer-bottom{
        margin-top: 32px;
    }

    .scroll-to-top{
        background-color: #A90B1D;
    }
}

@media (max-width: 768px){
    .footer{
        padding: 24px 20px 40px;
    }

    .footer-top{
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
}
.footer-payment-icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-payment-icons img {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-payment-icons img:hover {
    opacity: 1;
    transform: scale(1.05);
}
