/* ==============================
   RESET & BASE
   ============================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0A0A0A;
    --bg-card: #141414;
    --bg-card-alt: #1A1A1A;
    --bg-card-hover: #1E1E1E;
    --border: #1F1F1F;
    --border-hover: #333333;
    --text: #FFFFFF;
    --text-secondary: #999999;
    --text-muted: #555555;
    --accent: #CDFF00;
    --accent-dim: rgba(205, 255, 0, 0.08);
    --accent-glow: rgba(205, 255, 0, 0.15);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-sm: 10px;
    --radius-pill: 100px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ==============================
   NAVIGATION
   ============================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text);
    transition: var(--transition);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text);
    background: var(--accent-dim);
}

.nav-link.active {
    color: #0A0A0A;
    background: var(--accent);
    font-weight: 600;
}

/* Burger */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-burger.open span:nth-child(2) {
    opacity: 0;
}

.nav-burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==============================
   BUTTONS
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-accent {
    background: var(--accent);
    color: #0A0A0A;
}

.btn-accent:hover {
    background: #d4ff33;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(205, 255, 0, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

.arrow {
    font-size: 16px;
    transition: var(--transition);
}

.btn:hover .arrow,
.card-link:hover .arrow {
    transform: translate(2px, -2px);
}

/* ==============================
   BADGE & TAG
   ============================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(205, 255, 0, 0.15);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

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

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
}

.text-accent {
    color: var(--accent);
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==============================
   HERO
   ============================== */
.hero {
    padding: 120px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero-text h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 420px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero bento */
.hero-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

/* ==============================
   BENTO CARDS
   ============================== */
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.bento-card-hover {
    transition: var(--transition);
}

.bento-card-hover:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(205, 255, 0, 0.05);
}

.bento-grid {
    display: grid;
    gap: 12px;
}

.bento-about {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
}

.bento-big {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}

.bento-wide {
    grid-column: 1 / -1;
}

.bento-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 16px;
    transition: var(--transition);
}

.card-link:hover {
    gap: 10px;
}

/* Hero bento specifics */
.bento-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-card-alt);
}

.avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--bg), var(--bg-card-alt));
    border: 2px solid var(--border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 12px;
}

.bento-card-label {
    font-size: 14px;
    font-weight: 600;
}

.bento-wave {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.wave-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
}

.wave-decoration svg {
    width: 100%;
    height: 100%;
}

.bento-stat {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.bento-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
}

.bento-chrome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.chrome-sphere {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 30% 30%, #e0e0e0, #888888 40%, #333333 70%, #111111);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08), inset 0 -2px 6px rgba(0,0,0,0.5);
    margin-bottom: 12px;
    animation: float 6s ease-in-out infinite;
}

.chrome-sm {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
}

.chrome-md {
    width: 48px;
    height: 48px;
}

.chrome-xs {
    width: 32px;
    height: 32px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.bento-projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--bg-card-alt);
}

/* Wave backgrounds */
.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    pointer-events: none;
}

.wave-bg svg {
    width: 100%;
    height: 100%;
}

/* ==============================
   ADVANTAGES PILLS
   ============================== */
.advantages {
    padding: 40px 0;
}

.pills-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    cursor: default;
}

.pill:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
}

.pill-icon {
    display: flex;
    color: var(--accent);
}

/* ==============================
   ABOUT BENTO
   ============================== */
.about-bento {
    padding: 80px 0;
}

/* ==============================
   CASES SECTION
   ============================== */
.cases-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

/* ==============================
   SERVICES PREVIEW (index)
   ============================== */
.services-preview {
    padding: 80px 0;
}

.bento-services-preview {
    grid-template-columns: repeat(4, 1fr);
}

.service-preview-card {
    display: flex;
    flex-direction: column;
}

.service-preview-top {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

.service-wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.service-preview-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.service-preview-card p {
    font-size: 13px;
    flex-grow: 1;
    margin-bottom: 12px;
}

/* ==============================
   PAGE HERO (inner pages)
   ============================== */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

/* ==============================
   SERVICES FULL (services page)
   ============================== */
.services-full {
    padding: 40px 0 80px;
}

.bento-services {
    grid-template-columns: repeat(2, 1fr);
}

.service-card-full {
    display: flex;
    flex-direction: column;
}

.service-top-decor {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

.service-wave-lg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.service-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-body p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 16px;
}

.price-tag {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
}

/* ==============================
   CTA SECTION
   ============================== */
.cta-section {
    padding: 0 0 80px;
}

.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}

.cta-card h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

/* ==============================
   REVIEWS
   ============================== */
.reviews-section {
    padding: 40px 0 80px;
}

.bento-reviews {
    grid-template-columns: repeat(2, 1fr);
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-stars {
    display: flex;
    gap: 2px;
    color: var(--accent);
    font-size: 18px;
}

.review-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    font-style: italic;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-dim);
    border: 1px solid rgba(205, 255, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.review-name {
    font-size: 14px;
    font-weight: 600;
}

.review-role {
    font-size: 12px;
    color: var(--text-muted);
}

.review-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-card-alt);
}

.review-cta h3 {
    font-size: 22px;
}

.review-cta p {
    max-width: 340px;
    margin-bottom: 16px;
}

/* ==============================
   CONTACTS
   ============================== */
.contacts-section {
    padding: 40px 0 80px;
}

.bento-contacts {
    grid-template-columns: repeat(3, 1fr);
}

.contact-card-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 24px;
    min-height: 180px;
}

.contact-icon-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    color: var(--text);
    transition: var(--transition);
}

.contact-card-big:hover .contact-icon-lg {
    background: var(--accent-dim);
    border-color: var(--accent-glow);
}

.contact-icon-lg.whatsapp { color: #25D366; }
.contact-icon-lg.telegram { color: #2AABEE; }
.contact-icon-lg.vk { color: #0077FF; }
.contact-icon-lg.email { color: #EA4335; }

.contact-card-big:hover .contact-icon-lg.whatsapp { background: rgba(37, 211, 102, 0.1); border-color: rgba(37, 211, 102, 0.25); }
.contact-card-big:hover .contact-icon-lg.telegram { background: rgba(42, 171, 238, 0.1); border-color: rgba(42, 171, 238, 0.25); }
.contact-card-big:hover .contact-icon-lg.vk { background: rgba(0, 119, 255, 0.1); border-color: rgba(0, 119, 255, 0.25); }
.contact-card-big:hover .contact-icon-lg.email { background: rgba(234, 67, 53, 0.1); border-color: rgba(234, 67, 53, 0.25); }

.contact-card-big h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-card-big p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==============================
   FOOTER
   ============================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text);
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==============================
   ANIMATIONS
   ============================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.bento-card,
.pill,
.cta-card {
    animation: fadeInUp 0.5s ease-out both;
}

.hero-text {
    animation: fadeInUp 0.6s ease-out;
}

.hero-bento .bento-card:nth-child(1) { animation-delay: 0.1s; }
.hero-bento .bento-card:nth-child(2) { animation-delay: 0.15s; }
.hero-bento .bento-card:nth-child(3) { animation-delay: 0.2s; }
.hero-bento .bento-card:nth-child(4) { animation-delay: 0.25s; }

.pills-row .pill:nth-child(1) { animation-delay: 0.05s; }
.pills-row .pill:nth-child(2) { animation-delay: 0.1s; }
.pills-row .pill:nth-child(3) { animation-delay: 0.15s; }
.pills-row .pill:nth-child(4) { animation-delay: 0.2s; }

/* ==============================
   RESPONSIVE — TABLET
   ============================== */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .hero-bento {
        max-width: 480px;
    }

    .bento-services-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-about {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==============================
   RESPONSIVE — MOBILE
   ============================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Nav mobile */
    .nav-burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 20px;
        padding: 14px 32px;
    }

    /* Hero */
    .hero {
        padding: 90px 0 40px;
    }

    .hero-text h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        justify-content: center;
    }

    .hero-bento {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        max-width: 100%;
    }

    /* Sections */
    .section-header h2 {
        font-size: 28px;
    }

    .about-bento,
    .services-preview {
        padding: 60px 0;
    }

    .bento-about {
        grid-template-columns: 1fr;
    }

    .bento-services-preview {
        grid-template-columns: 1fr;
    }

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

    .bento-reviews {
        grid-template-columns: 1fr;
    }

    .bento-contacts {
        grid-template-columns: 1fr 1fr;
    }

    .contact-card-big {
        min-height: 140px;
        padding: 24px 16px;
    }

    /* Page hero */
    .page-hero {
        padding: 110px 0 40px;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    /* CTA */
    .cta-card {
        padding: 32px 24px;
    }

    .cta-card h2 {
        font-size: 22px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Pills */
    .pills-row {
        gap: 8px;
    }

    .pill {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .hero-text h1 {
        font-size: 30px;
    }

    .bento-contacts {
        grid-template-columns: 1fr;
    }

    .hero-bento .bento-card {
        padding: 20px;
    }

    .bento-stat {
        font-size: 26px;
    }

    .page-hero h1 {
        font-size: 30px;
    }
}
