:root {
    --primary: #8B5CF6;
    --secondary: #EC4899;
    --purple: #7C3AED;
    --dark: #1F2937;
    --light: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #F9FAFB;
    color: var(--dark);
    line-height: 1.6;
}

footer {
    border-top: 1px solid #ddd
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    background: var(--light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--purple), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.logo-text {
    font-family: "Rubik Mono One", monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--purple);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav a.active {
    background: rgba(123, 97, 255, 0.1);
    color: var(--purple);
}

.hero {
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid #A2a2a2;
    border-radius: 8px;
    position: relative;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding: 40px;
    position: relative;
    z-index: 3;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
}

.character {
    position: absolute;
    left: 0;
    height: 113%;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

.character-shadow {
    position: absolute;
    bottom: 0;
    left: 50px;
    width: 300px;
    height: 60px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    filter: blur(10px);
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 40px;
    color: var(--dark);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(to right, var(--purple), var(--secondary));
    color: white;
    box-shadow: 0 5px 20px rgba(123, 97, 255, 0.3);
    border-radius: 8px;
}

.btn-primary:hover {
    transform: translateY(-5px);
}

.btn-secondary {
    background: white;
    color: var(--purple);
    border: 2px solid var(--purple);
}

.btn-secondary:hover {
    background: rgba(123, 97, 255, 0.05);
    transform: translateY(-5px);
}


.features {
    padding: 80px 0;
    background-color: white;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: var(--dark);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--purple), var(--secondary));
    border-radius: 2px;
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 30px auto 0;
    color: var(--dark);
    opacity: 0.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(123, 97, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--dark);
    opacity: 0.8;
    font-size: 1rem;
    text-align: left;
}

.copyright {
    text-align: center;
    padding: 30px 0;
    color: var(--dark);
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
}


@media (max-width: 1100px) {
    .hero-image {
        height: 450px;
    }
}

@media (max-width: 992px) {            
    .hero-text {
        text-align: center;
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        height: 400px;
        width: 100%;
    }
    .character {
        top: -39px;
    }
    .character-shadow {
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
    }
}
@media (max-width: 994px) {     
    .hero-image, .character {
        display: none;
    }
}
@media (max-width: 768px) {    
    nav ul {
        justify-content: center;
    }
    
    .hero {
        padding: 60px 0 20px;
    }
    
    .hero-image {
        height: 350px;
        margin-top: -60px;
    }
    
    .feature-card {
        padding: 25px;
    }
}
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin-top: 0;
    opacity: 0;
    transition:
        max-height 0.4s ease,
        padding 0.4s ease,
        margin-top 0.4s ease,
        opacity 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 10px;
    display: none;
}

    /* открытое */
.mobile-menu.open {
    max-height: 300px;      /* чуть больше реальной высоты */
    padding: 2rem;
    margin-top: -4px;       /* чтобы слегка «зашли» под header */
    opacity: 1;
}


.mobile-menu a {
    padding: 12px 20px;
    text-decoration: none;
    /* color: var(--dark); */
    font-weight: 700;
    display: block;
    text-align: center;
    transition: opacity 0.2s;
    
}

.mobile-menu a.active {
    background: rgba(123, 97, 255, 0.1);
    color: var(--purple);
}

.mobile-menu a.active:hover {
    background: #f3f4f6;
}

@media (max-width: 769px) {
    nav {
        display: none;
    }
    .mobile-menu {
        display: block;
    }
    .hamburger {
        display: block;
    }
    .header-content {
        justify-content: space-between;
    }
    .mobile-menu {
        opacity: 1;
    }
}

@media (max-width: 710px) {
    .feature-card {
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero-image {
        height: 300px;
        margin-top: -40px;
    }
    
    .btn {
        padding: 12px 25px;
        width: 100%;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    nav a {
        font-size: 14px;
        padding: 6px 12px;
    }
}