@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #0a0a0f;
    --secondary: #12121a;
    --accent: #ff4d6d;
    --accent-light: #ff7096;
    --gold: #ffa800;
    --teal: #00c9a7;
    --purple: #845ef7;
    --text: #ffffff;
    --text-muted: #8b8b9e;
    --card-bg: rgba(255,255,255,0.03);
    --card-border: rgba(255,255,255,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 77, 109, 0.3);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 77, 109, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.05);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
}

.logo-version {
    color: var(--accent);
}

#problems,
#paei,
#cases,
#about,
#form {
    scroll-margin-top: 88px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: white;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 30px 30px;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 20px;
    font-weight: 600;
    padding: 15px 0;
    border-bottom: 1px solid var(--card-border);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-main {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    width: 500px;
    height: 600px;
    object-fit: contain;
    border-radius: 20px;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 77, 109, 0.15) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 20px;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 77, 109, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(132, 94, 247, 0.1) 0%, transparent 40%),
                var(--primary);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-badge span {
    color: var(--accent);
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.hero-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Section */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: var(--secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid rgba(255, 77, 109, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Problems */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.problem-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.problem-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 77, 109, 0.15);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* PAEI Test */
.paei-section {
    background: var(--secondary);
}

.paei-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.paei-model {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.paei-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.paei-card:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.paei-letter {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 8px;
}

.paei-card:nth-child(1) .paei-letter { color: var(--accent); }
.paei-card:nth-child(2) .paei-letter { color: var(--gold); }
.paei-card:nth-child(3) .paei-letter { color: var(--teal); }
.paei-card:nth-child(4) .paei-letter { color: var(--purple); }

.paei-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.paei-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.paei-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
}

.paei-form h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.paei-form p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.quiz-question {
    margin-bottom: 24px;
}

.quiz-question h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    border-color: var(--accent);
    background: rgba(255, 77, 109, 0.05);
}

.quiz-option input {
    display: none;
}

.quiz-option span {
    width: 20px;
    height: 20px;
    border: 2px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quiz-option input:checked + span {
    border-color: var(--accent);
    background: var(--accent);
}

.quiz-option input:checked + span::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Cases */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.case-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.case-header {
    padding: 28px;
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.1), rgba(132, 94, 247, 0.1));
    border-bottom: 1px solid var(--card-border);
}

.case-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.case-header h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.case-client {
    font-size: 13px;
    color: var(--text-muted);
}

.case-body {
    padding: 28px;
}

.case-section {
    margin-bottom: 20px;
}

.case-section h4 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.case-section p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.case-results {
    display: flex;
    gap: 12px;
}

.case-result {
    flex: 1;
    padding: 16px;
    background: rgba(0, 201, 167, 0.1);
    border-radius: 10px;
    text-align: center;
}

.case-result-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--teal);
}

.case-result-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-main {
    height: 500px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
}

.about-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px 28px;
    text-align: center;
}

.about-experience-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
}

.about-experience-label {
    font-size: 13px;
    color: var(--text-muted);
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 4px;
}

.about-role {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 24px;
}

.about-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-quote {
    background: var(--card-bg);
    border-left: 3px solid var(--accent);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Form */
.form-section {
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.1), rgba(132, 94, 247, 0.1));
}

.form-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
}

.form-box h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.form-box > p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.form-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group select {
    cursor: pointer;
    -webkit-text-fill-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b8b9e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    color: #0a0a0f;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group--full {
    grid-column: 1 / -1;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.form-consent__label input {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.form-consent__label a {
    color: var(--accent);
    text-decoration: underline;
}

.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
    border-color: #ff6b6b;
}

.form-field__error {
    margin-top: 6px;
    font-size: 12px;
    color: #ff8a8a;
}

.contact-form__status {
    margin-top: 16px;
    font-size: 14px;
    min-height: 1.25em;
    color: var(--text-muted);
}

.contact-form__status.is-pending {
    color: var(--gold);
}

.contact-form__status.is-success {
    color: var(--teal);
}

.contact-form__status.is-error {
    color: #ff8a8a;
}

/* Logos */
.logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
}

.customer-logo {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.customer-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.logo-item {
    width: 120px;
    height: 60px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--secondary);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer h4 {
    font-size: 14px;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.footer-contact p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p,
.footer-policy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-policy:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-main {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        width: 100%;
        max-width: 500px;
        height: 400px;
    }
    
    .paei-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .form-box {
        padding: 32px 24px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.6s ease forwards;
}