/* ===== Общие стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Кастомный скролл */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00e0ff, #8a2be2);
    border-radius: 4px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 0.5px;
}
.btn-primary {
    background: linear-gradient(135deg, #00e0ff, #8a2be2);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 224, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.5);
}
.btn-outline {
    background: transparent;
    border: 2px solid #00e0ff;
    color: #00e0ff;
    margin-left: 16px;
}
.btn-outline:hover {
    background: #00e0ff;
    color: #0a0a0a;
    box-shadow: 0 0 20px #00e0ff;
}

/* Хедер */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    background: transparent;
}
header.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 224, 255, 0.2);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
}
.logo span {
    color: #00e0ff;
}
nav {
    display: flex;
    align-items: center;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 32px;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
}
nav a:hover,
nav a.active {
    color: #00e0ff;
}
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

/* Футер */
footer {
    background: #050505;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0,224,255,0.1);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}
.footer-links a {
    color: #aaa;
    text-decoration: none;
    margin-left: 32px;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #00e0ff;
}
.copyright {
    text-align: center;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #222;
    padding-top: 30px;
}

/* ===== Стили для лендинга (index) ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(0, 224, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.15) 0%, transparent 50%);
}
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 224, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 224, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}
.hero-content {
    max-width: 700px;
}
.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
}
.hero h1 span {
    background: linear-gradient(135deg, #00e0ff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 40px;
    max-width: 600px;
}
.hero-btns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    margin-top: 60px;
    gap: 60px;
}
.stat-item {
    text-align: left;
}
.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #00e0ff;
}
.stat-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Секции общие */
section {
    padding: 100px 0;
}
.section-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}
.section-subtitle {
    text-align: center;
    color: #888;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 18px;
}

/* Клиенты */
.clients {
    padding: 60px 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(0,224,255,0.1);
    border-bottom: 1px solid rgba(0,224,255,0.1);
}
.clients-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
.client-item {
    filter: grayscale(1) brightness(1.5);
    opacity: 0.7;
    transition: all 0.3s;
    font-size: 24px;
    font-weight: 700;
    color: #ccc;
    font-family: 'Space Grotesk', sans-serif;
}
.client-item:hover {
    filter: grayscale(0);
    opacity: 1;
    color: #fff;
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-card {
    background: rgba(20, 20, 30, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 224, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: #00e0ff;
    box-shadow: 0 20px 40px rgba(0, 224, 255, 0.2);
}
.service-card i {
    font-size: 48px;
    background: linear-gradient(135deg, #00e0ff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #fff;
}
.service-card p {
    color: #aaa;
    font-size: 15px;
}

/* Кейс */
.featured {
    background: linear-gradient(135deg, rgba(0,224,255,0.05), rgba(138,43,226,0.05));
    border-radius: 40px;
    padding: 60px;
}
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.featured-image {
    background: rgba(0,0,0,0.3);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(0,224,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mockup {
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 20px;
    color: #00e0ff;
    font-family: monospace;
    font-size: 14px;
    border: 1px solid #00e0ff;
    box-shadow: 0 0 30px rgba(0,224,255,0.3);
}
.mockup-line {
    display: flex;
    margin-bottom: 10px;
}
.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00e0ff;
    margin-right: 10px;
}
.featured h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}
.featured p {
    color: #bbb;
    margin-bottom: 30px;
}
.featured-meta {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}
.meta-item span {
    color: #00e0ff;
    font-weight: 700;
    font-size: 24px;
    display: block;
}

/* Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.advantage-item {
    text-align: center;
    padding: 30px;
}
.advantage-icon {
    font-size: 40px;
    color: #00e0ff;
    margin-bottom: 20px;
}
.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #fff;
}
.advantage-item p {
    color: #999;
    font-size: 14px;
}

/* Процесс */
.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    margin-top: 60px;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00e0ff, #8a2be2, transparent);
    z-index: 0;
}
.step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: #0a0a0a;
    padding: 0 10px;
}
.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e0ff, #8a2be2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    font-weight: 700;
    color: #0a0a0a;
    border: 4px solid #0a0a0a;
    box-shadow: 0 0 0 2px #00e0ff;
}
.step h4 {
    font-size: 20px;
    color: #fff;
}

/* Отзывы */
.testimonials {
    background: rgba(0,0,0,0.3);
}
.testimonial-card {
    background: rgba(30,30,40,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,224,255,0.2);
    border-radius: 24px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.testimonial-text {
    font-size: 18px;
    font-style: italic;
    color: #ddd;
    margin-bottom: 30px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e0ff, #8a2be2);
}
.author-info h4 {
    color: #fff;
    margin-bottom: 4px;
}
.author-info p {
    color: #888;
    font-size: 14px;
}

/* Контакты (общий блок, используется в index и contacts) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.contact-info h3 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 20px;
}
.contact-details {
    margin: 30px 0;
}
.contact-details p {
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #ccc;
}
.contact-details i {
    color: #00e0ff;
    width: 24px;
    font-size: 20px;
}
.social-links a {
    color: #fff;
    font-size: 24px;
    margin-right: 24px;
    transition: color 0.3s;
}
.social-links a:hover {
    color: #00e0ff;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,224,255,0.2);
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00e0ff;
    box-shadow: 0 0 15px rgba(0,224,255,0.3);
}
.contact-form button {
    width: 100%;
    padding: 16px;
    font-size: 18px;
}

/* ===== Стили для редактора (editor) ===== */
.playground {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 0 0;
    min-height: calc(100vh - 200px); /* подстройка под хедер и футер */
	padding-top: 100px;
}
.playground-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}
.playground-header h1 {
    font-size: 32px;
    background: linear-gradient(135deg, #00e0ff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.btn-run {
    background: linear-gradient(135deg, #00e0ff, #8a2be2);
    border: none;
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0, 224, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-run:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.5);
}

/* Панели редактора */
.editor-panels {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 400px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.panel {
    flex: 1 1 300px;
    background: #111216;
    border-radius: 16px;
    border: 1px solid rgba(0, 224, 255, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s;
}
.panel:hover {
    border-color: #00e0ff;
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.2);
}
.panel-header {
    background: rgba(0, 224, 255, 0.1);
    padding: 12px 16px;
    font-weight: 600;
    color: #00e0ff;
    border-bottom: 1px solid rgba(0, 224, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}
.panel-header i {
    font-size: 18px;
}
.code-area {
    flex: 1;
    background: #0c0c12;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
    border: none;
    resize: none;
    outline: none;
    width: 100%;
    height: 100%;
    tab-size: 2;
}
.code-area:focus {
    background: #0a0a0f;
}

/* Панель результата */
.result-panel {
    background: #111216;
    border-radius: 16px;
    border: 1px solid rgba(0, 224, 255, 0.2);
    overflow: hidden;
    margin-top: 10px;
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
}
.result-header {
    background: rgba(0, 224, 255, 0.1);
    padding: 12px 16px;
    font-weight: 600;
    color: #00e0ff;
    border-bottom: 1px solid rgba(0, 224, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}
.result-frame {
    flex: 1;
    background: white;
    border: none;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

/* ===== Страница контактов (contacts) ===== */
.contacts-page {
    padding: 140px 0 80px;
    min-height: 60vh;
}
.map-container {
    margin: 40px 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0,224,255,0.3);
}
.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ===== Адаптивность ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 48px; }
    .featured-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    nav {
        display: none;
    }
    nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-bottom: 1px solid rgba(0,224,255,0.2);
        z-index: 99;
    }
    nav.active a {
        margin: 12px 0;
        font-size: 18px;
    }
    .menu-toggle {
        display: block;
    }
    .hero-btns .btn { display: block; width: 100%; margin: 10px 0; }
    .btn-outline { margin-left: 0; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .process-steps::before { display: none; }
    .step { margin-bottom: 30px; }
    .footer-content { flex-direction: column; }
    .footer-links a { margin-left: 0; margin-right: 20px; }
    .editor-panels { flex-direction: column; }
    .playground-header { flex-direction: column; align-items: flex-start; }
    .contacts-page { padding-top: 120px; }
}