/* ============================================
   ОБЩИЕ СТИЛИ
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    background-color: #0a0a0a;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #8a2be2, #c77dff);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #aaa;
    font-size: 1.05rem;
    margin-bottom: 60px;
    margin-top: 24px;
}

.subsection-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

/* ============================================
   ПРЕЛОАДЕР
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
    animation: preloaderPulse 1.8s ease-in-out infinite;
    letter-spacing: -1px;
}

.preloader-logo span {
    color: #8a2be2;
}

.preloader-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.preloader-dots span {
    width: 10px;
    height: 10px;
    background: #8a2be2;
    border-radius: 50%;
    animation: dotBounce 1.2s ease-in-out infinite;
}

.preloader-dots span:nth-child(2) { animation-delay: 0.2s; }
.preloader-dots span:nth-child(3) { animation-delay: 0.4s; }

.preloader-bar-wrap {
    width: 220px;
    height: 3px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 3px;
    margin: 0 auto 16px;
    overflow: hidden;
}

.preloader-bar {
    height: 100%;
    background: linear-gradient(90deg, #8a2be2, #c77dff);
    border-radius: 3px;
    animation: preloaderFill 1.6s ease-in-out forwards;
}

.preloader-text {
    color: #777;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(0.97); }
}

@keyframes dotBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-12px); opacity: 1; }
}

@keyframes preloaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   НАВИГАЦИЯ
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 18px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(138, 43, 226, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: #8a2be2;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 36px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8a2be2, #c77dff);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: #8a2be2;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(138, 43, 226, 0.4);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    border-color: #8a2be2;
    background: rgba(138, 43, 226, 0.1);
}

/* ============================================
   ГЛАВНЫЙ ЭКРАН
   ============================================ */
.first-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #10102a 50%, #16213e 100%);
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Частицы фона */
.hero-bg-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-particles span {
    position: absolute;
    display: block;
    background: rgba(138, 43, 226, 0.12);
    border-radius: 50%;
    animation: floatParticle 8s ease-in-out infinite;
}

.hero-bg-particles span:nth-child(1) { width: 300px; height: 300px; top: -80px; right: -60px; animation-duration: 9s; }
.hero-bg-particles span:nth-child(2) { width: 180px; height: 180px; top: 60%; left: -50px; animation-duration: 11s; animation-delay: 2s; }
.hero-bg-particles span:nth-child(3) { width: 120px; height: 120px; bottom: 10%; right: 20%; animation-duration: 7s; animation-delay: 1s; }
.hero-bg-particles span:nth-child(4) { width: 60px; height: 60px; top: 20%; left: 40%; animation-duration: 6s; animation-delay: 3s; }
.hero-bg-particles span:nth-child(5) { width: 90px; height: 90px; top: 40%; right: 10%; animation-duration: 10s; animation-delay: 0.5s; }
.hero-bg-particles span:nth-child(6) { width: 200px; height: 200px; bottom: -60px; left: 30%; animation-duration: 13s; animation-delay: 4s; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-30px) scale(1.05); opacity: 1; }
}

.first-screen .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.85rem;
    color: #c77dff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-badge i {
    color: #ffd700;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-title span {
    background: linear-gradient(135deg, #8a2be2, #c77dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: #aaa;
    min-height: 2.4em;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 36px;
    color: #bbb;
    max-width: 550px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-mini-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 16px;
    padding: 16px 24px;
    width: fit-content;
}

.mini-stat {
    text-align: center;
    padding: 0 20px;
}

.mini-stat strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #8a2be2;
    line-height: 1.2;
}

.mini-stat span {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(138, 43, 226, 0.3);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    min-height: 50px;
}

.btn-primary {
    background: linear-gradient(135deg, #8a2be2, #6a0dad);
    color: white;
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(138, 43, 226, 0.5);
    background: linear-gradient(135deg, #9d3ef5, #7b1fcc);
}

.btn-secondary {
    background: transparent;
    color: #8a2be2;
    border: 2px solid #8a2be2;
}

.btn-secondary:hover {
    background: rgba(138, 43, 226, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.2);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Блок с кодом */
.hero-image {
    flex: 1;
    min-width: 0;
    max-width: 500px;
}

.code-animation {
    background: rgba(14, 14, 26, 0.95);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(138, 43, 226, 0.1);
    animation: codeFloat 4s ease-in-out infinite;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(20, 20, 35, 0.8);
    border-bottom: 1px solid rgba(138, 43, 226, 0.15);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-filename {
    margin-left: 8px;
    color: #888;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.code-body {
    padding: 24px 28px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.9;
}

.code-line {
    margin-bottom: 2px;
}

.code-indent {
    padding-left: 24px;
}

.code-purple { color: #c792ea; }
.code-blue { color: #82aaff; }
.code-yellow { color: #ffcb6b; }
.code-green { color: #c3e88d; }
.code-orange { color: #f78c6c; }
.code-comment { color: #546e7a; font-style: italic; }

@keyframes codeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Стрелка вниз */
.scroll-down {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: #8a2be2;
    font-size: 1.4rem;
    animation: bounce 2s infinite;
    z-index: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   О НАС
   ============================================ */
.about-content {
    display: flex;
    align-items: center;
    gap: 70px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: #ccc;
    line-height: 1.8;
}

.about-text strong {
    color: #8a2be2;
}

.about-features {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
    font-size: 0.95rem;
}

.about-feature i {
    color: #8a2be2;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 16px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8a2be2, #c77dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    line-height: 1;
}

.stat-text {
    color: #888;
    font-size: 0.85rem;
}

.about-image {
    flex: 1;
    max-width: 460px;
}

.image_placeholder-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.image_placeholder {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* ============================================
   УСЛУГИ
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.service-card {
    background: rgba(18, 18, 32, 0.9);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.35s ease;
    border: 1px solid rgba(138, 43, 226, 0.15);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 16px 40px rgba(138, 43, 226, 0.18);
}

.service-card:hover .service-glow {
    opacity: 1;
}

.service-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-icon-wrap {
    margin-bottom: 20px;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(75, 0, 130, 0.2));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    font-size: 2rem;
    color: #8a2be2;
    transition: all 0.35s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    color: #fff;
    transform: scale(1.1);
}

.service-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
}

.service-text {
    color: #999;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   СЕКЦИЯ ДОВЕРИЕ
   ============================================ */
.trust {
    background: linear-gradient(180deg, #0a0a0a 0%, #0d0d20 50%, #0a0a0a 100%);
}

/* Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.advantage-card {
    background: rgba(16, 16, 30, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8a2be2, #c77dff);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-card:hover {
    transform: translateY(-8px);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 16px 40px rgba(138, 43, 226, 0.15);
}

.advantage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    border-radius: 18px;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.3);
}

.advantage-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.advantage-card p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Процесс работы */
.process-section {
    margin-bottom: 80px;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.process-step {
    background: rgba(16, 16, 30, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    flex: 1;
    min-width: 0;
    transition: all 0.35s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-6px);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 12px 32px rgba(138, 43, 226, 0.15);
}

.step-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #8a2be2;
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.step-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(75, 0, 130, 0.2));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 16px;
    font-size: 1.4rem;
    color: #8a2be2;
    margin-bottom: 16px;
    transition: all 0.35s ease;
}

.process-step:hover .step-icon-wrap {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    color: #fff;
}

.process-step h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.process-step p {
    color: #999;
    font-size: 0.82rem;
    line-height: 1.6;
}

.process-arrow {
    color: rgba(138, 43, 226, 0.5);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Отзывы */
.testimonials-section {
    margin-bottom: 80px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: rgba(16, 16, 30, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 5rem;
    color: rgba(138, 43, 226, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 16px 40px rgba(138, 43, 226, 0.12);
}

.testimonial-stars {
    color: #ffd700;
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    gap: 3px;
}

.testimonial-text {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.8rem;
    color: #888;
}

/* Технологии */
.techstack-section {
    text-align: center;
}

.techstack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 50px;
    color: #c77dff;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-badge:hover {
    background: rgba(138, 43, 226, 0.18);
    border-color: rgba(138, 43, 226, 0.5);
    transform: translateY(-3px);
    color: #fff;
}

.tech-badge i {
    font-size: 1.1rem;
}

/* ============================================
   КОНТАКТЫ
   ============================================ */
.contact-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 18px;
}

.contact-icon {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.25);
}

.contact-details h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.contact-details p {
    color: #aaa;
    font-size: 0.95rem;
}

.contact-details a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #8a2be2;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    background: rgba(18, 18, 32, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 12px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px; /* минимум 16px чтобы не было зума на iOS */
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #8a2be2;
}

.checkbox-group label {
    color: #999;
    font-size: 0.88rem;
    cursor: pointer;
    line-height: 1.5;
}

.doc-link {
    color: #8a2be2;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    cursor: pointer;
}

.doc-link:hover {
    color: #c77dff;
    border-bottom-color: #c77dff;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #12122a;
    border: 1px solid rgba(138, 43, 226, 0.35);
    border-radius: 24px;
    padding: 40px;
    max-width: 680px;
    width: 100%;
    max-height: 82vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.92) translateY(16px);
    transition: transform 0.35s ease;
    scrollbar-width: thin;
    scrollbar-color: #8a2be2 rgba(255,255,255,0.05);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-box::-webkit-scrollbar {
    width: 6px;
}

.modal-box::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.modal-box::-webkit-scrollbar-thumb {
    background: #8a2be2;
    border-radius: 3px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(138, 43, 226, 0.25);
    color: #fff;
    border-color: #8a2be2;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
    padding-right: 50px;
    line-height: 1.3;
}

.modal-body {
    color: #aaa;
    line-height: 1.85;
    font-size: 0.9rem;
}

.modal-body h3 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 22px 0 10px;
    color: #c77dff;
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.modal-body li {
    margin-bottom: 6px;
}

/* ============================================
   ФУТЕР
   ============================================ */
.footer {
    background: #060610;
    padding: 60px 0 28px;
    border-top: 1px solid rgba(138, 43, 226, 0.15);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 220px;
}

.footer-logo p {
    margin-top: 12px;
    color: #888;
    max-width: 280px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h3,
.footer-social h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #8a2be2;
}

.footer-social {
    flex: 1;
    min-width: 150px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 46px;
    height: 46px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a2be2;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.35);
    border-color: transparent;
}

.footer-bottom {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #666;
    font-size: 0.85rem;
}

/* ============================================
   УСПЕХ ФОРМЫ
   ============================================ */
.success {
    font-size: 1rem;
    color: #fff;
    text-align: center;
    margin-top: 16px;
}

.disp {
    display: none;
}

/* ============================================
   АНИМАЦИИ СКРОЛЛА
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   АДАПТИВНОСТЬ — ПЛАНШЕТЫ (≤ 992px)
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.35rem;
    }

    .first-screen .container {
        flex-direction: column;
        text-align: center;
        padding-top: 30px;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        max-width: 100%;
        width: 100%;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-mini-stats {
        margin: 0 auto;
    }

    .hero-badge {
        margin: 0 auto 24px;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-image {
        max-width: 100%;
    }

    .contact-content {
        flex-direction: column;
        gap: 40px;
    }

    .process-steps {
        flex-wrap: wrap;
        gap: 12px;
    }

    .process-arrow {
        display: none;
    }

    .process-step {
        flex: 0 0 calc(50% - 6px);
        min-width: 140px;
    }

    .stats {
        justify-content: space-around;
    }
}

/* ============================================
   АДАПТИВНОСТЬ — МОБИЛЬНЫЕ (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(8, 8, 20, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 30px 30px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.6);
        z-index: 999;
        gap: 0;
        border-right: 1px solid rgba(138, 43, 226, 0.2);
    }

    .nav-menu.active {
        left: 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        margin: 0;
        padding: 14px 0;
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid rgba(138, 43, 226, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Затемнение при открытом меню */
    .menu-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        display: none;
    }

    .menu-overlay.active {
        display: block;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-mini-stats {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .mini-stat {
        padding: 0 12px;
    }

    .mini-stat strong {
        font-size: 1.3rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .code-animation {
        font-size: 0.8rem;
    }

    .code-body {
        padding: 16px 18px;
        font-size: 0.82rem;
        line-height: 1.7;
    }

    .advantages-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .advantage-card {
        padding: 24px 16px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex: 0 0 calc(50% - 6px);
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links,
    .footer-social {
        min-width: unset;
    }

    .stats {
        flex-direction: row;
        gap: 8px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   АДАПТИВНОСТЬ — МАЛЫЕ ЭКРАНЫ (≤ 576px)
   ============================================ */
@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 7px 14px;
    }

    /* Скрываем код на очень маленьких экранах */
    .hero-image {
        display: none;
    }

    .hero-mini-stats {
        width: 100%;
        justify-content: space-around;
    }

    .mini-stat-divider {
        height: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .process-steps {
        flex-direction: column;
    }

    .process-step {
        flex: 1 1 100%;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .stat-item {
        width: 100%;
        text-align: center;
    }

    .techstack-grid {
        gap: 8px;
    }

    .tech-badge {
        font-size: 0.82rem;
        padding: 8px 14px;
    }

    .modal-box {
        padding: 28px 20px;
        border-radius: 16px;
        max-height: 88vh;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .social-icons a {
        width: 50px;
        height: 50px;
    }

    .about-features {
        gap: 10px;
    }

    .contact-item {
        gap: 14px;
    }

    .subsection-title {
        font-size: 1.5rem;
    }

    .preloader-logo {
        font-size: 2.8rem;
    }
}

/* ============================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (≤ 380px)
   ============================================ */
@media (max-width: 380px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .mini-stat strong {
        font-size: 1.1rem;
    }

    .logo {
        font-size: 1.6rem;
    }
}
