*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    line-height:1.6;
    color:#222;
    overflow-x:hidden;
    background:#fff;
}

.container{
    width:90%;
    max-width:1200px;
    margin:0 auto;
}

/* HERO */

.hero{
/*    background:#111827;*/
    color:#fff;
    padding:120px 0;
    text-align:center;
}

.magic-background {
  background-image: url("../img/magic.jpg");
  background-repeat: repeat;
  position: relative;
}
.magic-background::after {
    content: '';
    display: block;
    position: absolute;
    z-index: 8;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,.5);
}
.magic-background .container {
    position: relative;
    z-index: 10;
}


.hero h1{
    font-size:clamp(30px, 6vw, 52px);
    line-height:1.2;
    margin-bottom:20px;
}

.hero p{
    font-size:clamp(16px, 3vw, 22px);
    margin-bottom:30px;
}
.hero .container > span{
    display: block;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
}
.hero h1, .hero p, .hero span {
    text-shadow: 0 0 10px rgba(255,255,255,.9);
}

/* BUTTONS */

.btn{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    background:#2563eb;
    color:#fff;
    border:none;
    padding:15px 30px;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
    transition:.3s;
    text-decoration:none;
}

.btn:hover{
    opacity:.9;
    transform:translateY(-2px);
}

@keyframes glowing {
    0% {
        background-position: 0px 0px;
    }
    100% {
        background-position: 400px 0px;
    }
}
.btn-3 {
    box-sizing: border-box;
    position: relative;
    border-radius: 1000px;
    z-index: 0;
    /* padding: 20px 20px; */
}
.btn-3 span {
    display: block;
}
.btn-3 b {
    display: block;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    padding: 20px 40px;
    border: 2px solid #fff;
    background-color: #000;
    overflow: hidden;
    border-radius: 1000px;
    cursor: pointer;
    box-sizing: border-box;
}
.btn-3 .glow {
    display: block;
    position: absolute;
    top: -40px;
    bottom: -40px;
    left: -40px;
    right: -40px;
    background-size: 400px 200px;
    background-repeat: repeat;
    box-sizing: border-box;
    z-index: -1;
    filter: blur(25px);
    mask-image: radial-gradient(black 20%, transparent 70%);
    /* inset: -15px; */
    overflow: hidden;
    background: linear-gradient(45deg, rgb(255, 0, 0), rgb(255, 115, 0), rgb(255, 251, 0), rgb(72, 255, 0), rgb(0, 255, 213), rgb(0, 43, 255), rgb(122, 0, 255), rgb(255, 0, 200), rgb(255, 0, 0), rgb(255, 115, 0), rgb(255, 251, 0), rgb(72, 255, 0), rgb(0, 255, 213)) 0% 0% / 400px 200px;
    animation: 1s linear 0s infinite normal none running glowing;
}
.btn-3:hover {}
.btn-3:active {}

/* SECTIONS */

section{
    padding:80px 0;
}

h2{
    text-align:center;
    margin-bottom:40px;
    font-size:36px;
    line-height:1.2;
}

/* COURSES */

.course-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.course-card{
    padding:25px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    background:#fff;
    transition:.3s;
}

.course-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.course-card h3{
    margin-bottom:10px;
    font-size:22px;
}

/* ADVANTAGES */

.adv-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.adv-grid div{
    padding:25px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    background:#fff;
}

.adv-grid h3{
    margin-bottom:10px;
}

/* RESULTS */

.results ul{
    max-width:700px;
    margin:0 auto;
}

.results li{
    margin:12px 0;
    font-size:18px;
}

/* CTA */

.cta{
    background:#f5f7fb;
    text-align:center;
}

/* POPUPS */

.popup{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    justify-content:center;
    align-items:center;
    z-index:1000;
    padding:20px;
}

.popup-content{
    background:#fff;
    width:100%;
    max-width:450px;
    padding:30px;
    border-radius:14px;
    position:relative;
    animation:popupShow .25s ease;
}

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

.popup-content h2{
    margin-bottom:20px;
    font-size:28px;
}

.popup-content input,
.popup-content select{
    width:100%;
    padding:14px;
    margin-bottom:15px;
    border:1px solid #d1d5db;
    border-radius:8px;
    font-size:16px;
    outline:none;
}

.popup-content input:focus,
.popup-content select:focus{
    border-color:#2563eb;
}

.close,
.close-thanks{
    position:absolute;
    top:12px;
    right:16px;
    font-size:28px;
    cursor:pointer;
    line-height:1;
}

/* TABLETS */

@media (max-width: 768px){

    section{
        padding:60px 0;
    }

    .hero{
        padding:90px 0;
    }

    .hero p{
        margin-bottom:25px;
    }

    h2{
        font-size:30px;
        margin-bottom:30px;
    }

    .course-grid,
    .adv-grid{
        gap:16px;
    }

    .popup-content{
        max-width:500px;
    }
}

/* PHONES */

@media (max-width: 576px){

    .container{
        width:92%;
    }

    .hero{
        padding:70px 0;
    }

    .hero h1{
        margin-bottom:15px;
    }

    .hero p{
        margin-bottom:20px;
    }

    h2{
        font-size:26px;
    }

    .course-grid,
    .adv-grid{
        grid-template-columns:1fr;
    }

    .course-card,
    .adv-grid div{
        padding:20px;
    }

    .results ul{
        padding-left:20px;
    }

    .results li{
        font-size:16px;
    }

    .btn{
        width:100%;
        max-width:320px;
        padding:14px;
    }

    .popup{
        padding:15px;
    }

    .popup-content{
        padding:20px;
        border-radius:12px;
    }

    .popup-content h2{
        font-size:24px;
    }

    .popup-content input,
    .popup-content select{
        font-size:16px;
        padding:14px;
    }
}

/* SMALL PHONES */

@media (max-width: 360px){

    .hero{
        padding:60px 0;
    }

    h2{
        font-size:22px;
    }

    .course-card,
    .adv-grid div{
        padding:16px;
    }

    .popup-content{
        padding:18px;
    }
}