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

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --border: #1f1f1f;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Сетка на фоне */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 2px, 0 2px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: none;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 0 4rem;
    position: relative;
}

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

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sparkle {
    color: #FFD700;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    color: #000000;
    box-shadow: 
        0 4px 14px 0 rgba(251, 191, 36, 0.25),
        0 0 0 0 rgba(251, 191, 36, 0.1),
        0 0 20px 0 rgba(251, 191, 36, 0.15);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 8px 24px 0 rgba(251, 191, 36, 0.35),
        0 0 0 4px rgba(251, 191, 36, 0.1),
        0 0 30px 0 rgba(251, 191, 36, 0.25);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 8px 0 rgba(251, 191, 36, 0.2),
        0 0 0 2px rgba(251, 191, 36, 0.15);
}


.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

/* Reasons Section - Tech Interface Style */
.reasons {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(99, 102, 241, 0.03) 100%);
    padding: 5rem 0;
    position: relative;
    margin-top: -4px;
}

.reasons-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.reasons-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 2.5rem;
    text-align: left;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.reasons-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.reasons-button {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-primary);
    text-align: center;
    cursor: default;
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.5;
    white-space: nowrap;
}

.reasons-button:focus {
    outline: none;
}

/* About-Contact Section */
.about-contact {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(99, 102, 241, 0.03) 100%);
}

.about-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-contact-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-contact-left .section-title {
    text-align: left;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.about-text {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.about-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
}

.about-list li {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 2rem;
    position: relative;
}

.about-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.about-contact-right {
    display: flex;
    align-items: stretch;
}

/* Target Section */
.target .section-title {
    text-align: center;
}

.target-content {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    background: rgba(10, 10, 10, 0.95);
    padding: 2.5rem;
}

.target-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.target-list li {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-primary);
    line-height: 1.8;
    padding-left: 2rem;
    position: relative;
}

.target-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    display: none;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--text-primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    line-height: 1.7;
    color: rgba(167, 139, 250, 0.9);
}

.service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.service-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Cases Section */
.cases {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(99, 102, 241, 0.03) 100%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.case-card {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
}

.case-card:hover {
    border-color: rgba(139, 92, 246, 1);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    background: rgba(10, 10, 10, 1);
}

.case-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--text-primary);
}

.case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.case-card p {
    line-height: 1.7;
    color: rgba(167, 139, 250, 0.9);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 10001;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    margin: 2rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10002;
}

.modal-close:hover {
    color: rgba(139, 92, 246, 0.8);
}

.modal-close svg {
    width: 1.5rem;
    height: 1.5rem;
}

.modal-body {
    padding-top: 1rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.modal-screenshots {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.modal-site .modal-screenshots {
    grid-template-columns: 1fr;
}

.modal-screenshot {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.modal-screenshot img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.modal-description,
.modal-tech,
.modal-results {
    margin-bottom: 2rem;
}

.modal-description h3,
.modal-tech h3,
.modal-results h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modal-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.modal-solution,
.modal-deadline {
    margin-top: 2rem;
}

.modal-solution h3,
.modal-deadline h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modal-solution p,
.modal-deadline p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.modal-tech ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.modal-results ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.modal-tech li,
.modal-results li {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: rgba(167, 139, 250, 0.9);
    font-size: 0.95rem;
}

.modal-results li {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: rgba(251, 191, 36, 0.9);
    position: relative;
    padding-left: 1.5rem;
    width: fit-content;
    max-width: 100%;
}

.modal-results li::before {
    content: '–';
    position: absolute;
    left: 0.5rem;
    color: rgba(251, 191, 36, 0.9);
    font-weight: 600;
}

.modal-results p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Contact Section - используется в about-contact */

.contact-text-box {
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    background: rgba(10, 10, 10, 0.95);
    padding: 2.5rem;
    text-align: center;
}

.contact-text-box .section-title {
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0 0 2rem 0;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #000000;
    padding: 4rem 0 2rem;
    color: var(--text-secondary);
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    margin-bottom: 0;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    width: 2rem;
    height: 2rem;
}

.footer-social-link:hover {
    color: var(--text-primary);
}

.footer-social-link svg {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-copyright a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}


/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        margin-top: 0.5rem;
        border-radius: 12px;
        border: 1px solid rgba(139, 92, 246, 0.3);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
        transition: background 0.2s ease;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a:hover {
        background: rgba(139, 92, 246, 0.1);
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }


    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .about-contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-contact-left .section-title {
        text-align: center;
    }

    .service-badges {
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .service-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Уменьшенные отступы секций для мобильных */
    section {
        padding: 3rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .reasons {
        padding: 3rem 0;
    }

    .reasons-wrapper {
        max-width: 100%;
    }

    .reasons-title {
        margin-bottom: 3.5rem;
    }

    .reasons-buttons {
        gap: 0.75rem;
    }

    .reasons-button {
        padding: 0.65rem 1.25rem;
        font-size: clamp(0.9rem, 1.6vw, 1rem);
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
        max-height: 95vh;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-description p {
        font-size: 1rem;
    }

    .modal-tech ul {
        flex-direction: column;
    }

    .modal-screenshots {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }

    .footer-social {
        align-self: center;
    }
}

/* Background Blobs - Градиентные цветовые пятна */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.6) 0%, rgba(99, 102, 241, 0) 70%);
    top: -200px;
    left: -200px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, rgba(139, 92, 246, 0) 70%);
    top: 50%;
    right: -300px;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.5) 0%, rgba(236, 72, 153, 0) 70%);
    bottom: -150px;
    left: 20%;
}

.blob-4 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.4) 0%, rgba(251, 146, 60, 0) 70%);
    top: 30%;
    left: 50%;
}

/* Убеждаемся, что контент поверх фона */
nav,
main,
footer {
    position: relative;
    z-index: 1;
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}


