@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,700;1,700&display=swap');

* {
    margin: 0;
    padding: 0;
}
body {   
    font-family: "Source Code Pro", monospace;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    color: black;
    font-size: 24px;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
}
.wrapper {
    background: white;
    width: 100%;
    overflow-x: hidden;
}
.container {
    width: 1200px;
    width: 90%;
    margin: 0 auto;
}
.logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}
header .logo {
    text-transform: uppercase;
    font-size: 64px;
}
header img {
    position: relative;
    top: 7px;
    margin-right: 7px;
}
header nav {
    width: auto;
}
header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    z-index: 2;
    position: relative;
}
header nav ul li {
    display: inline-block;
}
header nav ul li.active::after {
    content: '';
    display: block;
    width: 40px;
    height: 5px;
    background: #6C63FF;
    border-radius: 10px;
    position: relative;
    top: 20px;
    left: 15px;
}
header nav ul li a {
    color: black;
}
header nav ul li:not(.active):not(.btn) a:hover {
    border-bottom: 5px solid #6C63FF;
}
header nav ul li.btn a, .email .block button {
    background: #6C63FF;
    padding: 9px 17px;
    border-radius: 5px;
    transition: all 500ms ease;
}
header nav ul li.btn a:hover, .email .block button:hover {
    background: #4e45ec;
}
.hero {
    padding: 50px 0;
    min-height: 500px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
}
.hero--info {
    width: 50%;
    max-width: 550px; 
    text-align: left;
}
.hero--info h1 {
    font-size: 64px;
    font-weight: 461px;
}
.hero--info p {
    font-weight: 461px;
    line-height: 170%;
    margin: 15px;
}
.hero--info .btn, .hero-about .info .btn {
    font-size: 48px;
    background: #6C63FF;
    padding: 24px 54px;
    border: 0;
    transition: all 500ms ease;
}
.hero--info .btn:hover, .hero-about .info .btn:hover {
    cursor: pointer;
    transform: scale(1.1);
}
.hero img {
    position: absolute;
    top: 50px;
    right: 0px;
}
.trending {
    padding-top: 50px;
}
.trending-header {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px;         
}
.trending h3 {
    font-weight: 600;
    font-size: 31px;
}
.see-all {
    color: black;             
    background: #6C63FF;
    border-radius: 5px;
    padding: 10px 20px;
    text-decoration: none; 
    display: inline-block;
    font-weight: bold;
    font-size: 14px;
    transition: all 500ms;
}
.trending .see-all:hover {
    transform:scale(1.1);
}
.trending .games, footer .blocks {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.treding .games .block {
    flex: 1 1 300px;
}
.trending .games span {
    display: block;
    text-align: center;
    margin-top: 20px;
}
.big-text {
    padding: 50px 0;
    font-size: 35px;
    font-weight: 600;
    text-align: center;
    width: 800px;
}
.banner {
    padding: 80px 0;
}
.banner-info{
    width: 550px;      
    text-align: left; 
}
.banner h3 { 
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 30px;
    width: 461px;
    margin-left: 0;
    display: block;
}
.banner p {
    line-height: 170%;
    margin-bottom: 30px;
    width: 550px;
    margin-left: 0;
}
.banner img {
    margin-bottom: 30px;
    max-width: 1300px; 
    width: 100%;      
    height: auto;
    display: block;    
    margin-left: auto; 
    margin-right: auto;
}
.email {
    padding-bottom: 120px;
}
.email h3 {
    margin-top: 60px;
    font-size: 30px;
}
.email .block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    height: auto;
}
.email .block h4 {
    font-size: 30px;
    font-weight: 500;
}
.email .block p {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
}
.email .block div:last-child {
    display: flex;
    align-items: center;
    background: white;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    border-radius: 5px;
    padding: 5px;
    width: auto;
}
.email .block input {
    background: white;
    outline: none;
    border: 0;
    border-radius: 5px;
    width: 300px;
    font-family: "Source Code Pro", monospace;
    font-weight: 700;
    padding: 20px 30px;
    z-index: 1;
}
.email .block input::placeholder {
    color: #898989;
}
.email .block button {
    cursor: pointer;
    border: 0;
    padding: 13px 17px;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}
footer {
    background: white;
    padding: 50px 0;
}
footer .blocks {
    display: flex;
    justify-content: space-between;
}
footer .blocks p {
    width: 300px;
    margin: 15px 0;
}
footer .blocks h4 {
    font-weight: 500;
    font-size: 17px;
}
footer .blocks ul {
    list-style: none;
}
footer .blocks ul li {
    margin-top: 7px;
    opacity: 0.8;
}
footer hr {
    margin: 30px 0;
    border: 0;
    height: 0.6px;
    background: #898989;
}
footer > p {
    text-align: center;
}
.hero-about .info {
    width: 500px;
    padding: 150px 0;
}
.hero-about .info h1{
    margin-bottom: 15px;
    font-size: 30px;
}
.hero-about .info .btn {
    margin-top: 20px;
}
.hero-about {
    position: relative;
}
.hero-about img {
    position: absolute;
    right: -50px;
    top: 0;
}
.work {
    padding: 80px 0;
}
.work h2 {
    font-size: 25px;
    margin-bottom: 40px;
}
.work .blocks {
    display: flex;
    justify-content: space-between;
}
.work .blocks .block {
    width: 25%;
    border-radius: 10px;
    padding: 50px 35px;
    background: #c7c6c6;
}
.work .blocks .block h3 {
    font-size: 20px;
    margin: 20px 0;
}
.work .blocks .block .badge {
    border-radius: 7px;
    padding: 10px 20px;
}
.work .blocks .block .badge.purple {
    background: #bf83ce;
}
.work .blocks .block .badge.brown {
    background: rgb(159, 22, 22);
}
.work .blocks .block .badge.green {
    background: #579665;
}
.hero-contacts h1 {
    text-align: center;
    margin-top: 70px;
    margin-bottom: 30px;
    font-size: 33px;
}
.hero-contacts p {
    text-align: center;
}
.hero-contacts img {
    width: 70%;
    margin: 80px 15%;
}
.feedback {
    padding: 70px 0;
    background: #c7c6c6;
}
.feedback h2 {
    text-align: center;
    font-weight: 500;
    font-size: 30px;
}
.feedback p {
    text-align: center;
    margin-top: 10px;
}
.feedback form {
    margin: 80px auto;
    width: 600px;
}
.feedback form .inline {
    display: flex;
    justify-content: space-between;
}
.feedback form .inline>div {
    width: 50%;
}
.feedback form label {
    color: #666666;
    font-size: 14px;
}
.feedback form input, .feedback form textarea {
    background: #b4b4b5;
    border-radius: 10px;
    border: 0.6px solid #ffffff;
    display: block;
    width: 90%;
    padding: 15px 10px;
    outline: none;
    margin-top: 7px;
    margin-bottom: 20px;
}
.feedback form .one-line {
    width: 96%;
}
.feedback form textarea {
    resize: none;
    height: 200px;
}
.feedback form button {
    background: #6C63FF;
    border-radius: 5px;
    border: 0;
    float: right;
    cursor: pointer;
    padding: 15px 35px;
    transition: all 500ms ease;
}
.feedback form button:hover {
    background: #4e45ec;
}
@media (max-width: 1100px) {
    .hero-about img {
        position: static;
        display: block;
        width: 80%;
        margin: 20px auto;
    }
    .hero-about .info {
        padding: 50px 0;
        text-align: center;
    }
}
@media (max-width: 992px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }
    header .logo {
         font-size: 36px;
    }
    header nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0;
    }
    header nav ul li.btn a {
        padding: 5px 10px;
        font-size: 16px;
    }
    .courses-grid {
        gap: 30px;
        margin-top: 50px;
    }
    .work .blocks {
        flex-direction: column;
        gap: 20px;
    }
    .work .blocks .block {
        width: 100%;
        box-sizing: border-box;
    }
}
@media (max-width: 768px) {
    .hero--info, .hero-about .info, .banner-info, .big-text, .feedback form {
    width: 100% !important; 
    max-width: 100%;
    }
    header {
        flex-direction: column;
        gap: 20px;
    }
    header .logo {
        font-size: 32px;
    }
    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero--info {
        max-width: 100%;
    }
    .hero--info h1 {
        font-size: 32px;
    }
    .hero img {
        position: static; 
        max-width: 100%;
        margin-top: 30px;
    }
    .hero--info .btn {
        font-size: 24px;
        padding: 15px 30px;
        display: inline-block;
    }
    .work .blocks {
        flex-direction: column;
    }
    
    .work .blocks .block {
        width: 100% !important;
    }
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px 0;
}
.course-card {
    background: #c8bbf7;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 17px;
    padding: 10px 10px;
}
.card-footer button.btn-small {
    cursor: pointer;
    border: 0;
    padding: 7px 10px;
    background-color: #6C63FF;
    border-radius: 5px;
}
.card-footer button.btn-small:hover {
    background-color:#4e45ec
}

