:root {
    --accent: rgb(240, 117, 148);
    --accent-2: rgb(223, 69, 108);
    --muted: #6b7280;
    --bg: #f6f8fb;
    --card: #ffffff;
    --text: #0b1220;
    --muted-2: #94a3b8;
    --shadow: rgba(16, 24, 40, 0.04)
}

[data-theme="dark"] {
    --accent: rgb(240, 117, 148);
    --accent-2: rgb(223, 69, 108);
    --muted: #c3c9db;
    --bg: rgba(24, 24, 24, 1);
    --card: rgb(31, 31, 31);
    --text: #ffffff;
    --muted-2: #6b7a93;
    --shadow: rgba(240, 117, 148, 0.15)
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg)
}

img {
    max-width: 100%;
    height: auto;
}

svg {
    fill: var(--text) !important;
}

a {
    color: inherit
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px
}


.logo {
    display: flex;
    gap: 12px;
    align-items: center
}

nav {
    display: flex;
    gap: 18px;
    align-items: center
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px
}

.theme-toggle {
    padding: 8px;
    cursor: pointer;
    background-color: transparent;
    border: 0;
}

.theme-toggle svg {
    fill: var(--text) !important;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 36px;
    align-items: center;
    padding: 32px 0
}

.kicker {
    display: inline-block;
    background: #eef5ff;
    color: var(--accent);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #eef5ff;
    font-weight: 700;
    margin-bottom: 14px
}

[data-theme="dark"] .kicker {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 14px
}
h1 {
    font-size: 34px;
    margin-bottom: 12px
}

.lead {
    color: var(--muted);
    margin-bottom: 20px
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.about {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-card {
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow);
    padding: 28px;
}

.hub-card-img {
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow);
    height: 100%;
    max-width: 100%;
}

.hub-card-img img {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px var(--shadow);
    max-width: 100%;
}

.project-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--shadow)
}

.project-item strong {
    font-size: 15px
}

.project-item span {
    color: var(--muted);
    font-size: 13px
}

#products .card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

#products .card .inDevelopment {
    position: absolute;
    color: var(--accent);
    right: 16px;
    top: 10px;
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#products .card p {
    flex-grow: 1;
    margin-bottom: 0;
}

#products .card a {
    margin-top: 20px;
    cursor: pointer;
}



.services,
.process,
.clients,
.footer-cta {
    margin-top: 28px
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 16px
}

.card {
    background: var(--card);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow)
}

.card h3 {
    margin-bottom: 8px
}

.muted {
    color: var(--muted)
}

.process {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.step {
    flex: 1;
    min-width: 180px;
    background: var(--bg);
    padding: 14px;
    border-radius: 10px
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px
}

.project-tile {
    background: linear-gradient(180deg, #fff, #fbfdff);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(11, 17, 32, 0.05)
}

.clients-logos {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px
}

.logo-box {
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--shadow);
    min-width: 90px;
    text-align: center
}

.contact {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 18px
}

.contact form {
    display: flex;
    gap: 8px;
    flex: 1
}

input,
textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--shadow);
    width: 100%;
    background: transparent;
    color: var(--text)
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    box-shadow: none;
    border: 1px solid var(--shadow) !important;
}

footer {
    margin-top: 36px;
    padding: 22px 0;
    color: var(--muted);
    font-size: 14px
}


@media (max-width:1000px) {
    .hero {
        grid-template-columns: 1fr 360px
    }

    .cards {
        grid-template-columns: repeat(2, 1fr)
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:640px) {
    nav {
        display: none
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .cards {
        grid-template-columns: 1fr
    }

    .projects-grid {
        grid-template-columns: 1fr
    }

    .logo-mark {
        width: 42px;
        height: 42px
    }

    h1 {
        font-size: 24px
    }

    .header-controls {
        gap: 6px
    }

    /* show floating button on small screens */
    .floating-theme-btn {
        display: flex
    }

    /* make header toggle slightly smaller on mobile */
    .theme-toggle {
        padding: 6px;
        font-size: 13px
    }
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    position: relative;
    z-index: 70
}

.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800
}

.nav-link {
    padding: 8px 12px;
    border-radius: 10px
}

.btn {
    background: var(--accent);
    color: #000;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

.theme-toggle {
    padding: 8px;
    cursor: pointer
}

.lang-select {
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(11, 17, 32, 0.06);
    background: var(--bg);
    color: var(--text)
}

/* mobile toggle button */
.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(11, 17, 32, 0.06);
    background: var(--card);
    cursor: pointer
}

.mobile-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text);
}


/* mobile menu (hidden by default) */
.mobile-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--card);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 12px 30px var(--shadow);
    transform-origin: top;
    transition: opacity .18s ease, transform .18s ease;
    opacity: 0;
    transform: translateY(-6px);
}

.mobile-menu.open {
    display: block;
    opacity: 1;
    transform: translateY(0)
}

.mobile-menu .nav {
    flex-direction: column;
    gap: 8px
}

.mobile-menu .header-controls {
    flex-direction: row;
    gap: 8px;
    margin-top: 12px
}

.faise {
    display: flex;
    align-items: center;
}

.faisePad {
    margin-left: 20px;
}

/* small-screen adjustments */
@media (max-width:1000px) {
    .hero {
        grid-template-columns: 1fr 360px
    }

    .cards {
        grid-template-columns: repeat(2, 1fr)
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:640px) {
    .desktop-only {
        display: none !important;
    }

    nav {
        display: flex
            /* we'll hide desktop nav visually but keep for accessibility */
    }

    .mobile-toggle {
        display: flex
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .cards {
        grid-template-columns: 1fr
    }

    .projects-grid {
        grid-template-columns: 1fr
    }

    .logo-mark {
        width: 42px;
        height: 42px
    }

    h1 {
        font-size: 24px
    }

    .header-controls.desktop-only {
        display: none
    }

    .header-controls.mobile-only {
        display: flex
    }

    .theme-toggle {
        padding: 6px;
        font-size: 13px
    }

    /* ensure mobile menu above floating button */
    .mobile-menu {
        z-index: 80
    }

    .faise {
        flex-direction: column;
    }

    .faise p {
        text-align: justify !important;
    }

    .faisePad {
        margin-left: 0px;
    }
}


.aura-container {
    position: relative;
    display: inline-block;
}

.aura-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    border-radius: 50%;
    background: conic-gradient(#ff00cc, #3333ff, #00ccff, #ff00cc);
    background-size: 300% 300%;
    animation: plasmaAura 4s linear infinite;
    filter: blur(20px);
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.3s ease;
}

@keyframes plasmaAura {
    0% {
        background-position: 0% 50%;
        opacity: 0.7;
    }

    50% {
        background-position: 100% 50%;
        opacity: 0.4;
    }

    100% {
        background-position: 0% 50%;
        opacity: 0.7;
    }
}

/* Эффект вытягивания при наведении */
.aura-container:hover .aura-ring {
    filter: blur(18px) brightness(1.1);
    opacity: 0.7;
}

/* Адаптация для темной темы */
[data-theme="dark"] .aura-ring {
    opacity: 0.4;
    filter: blur(20px) brightness(0.7);
}

[data-theme="dark"] .aura-container:hover .aura-ring {
    filter: blur(18px) brightness(0.9);
    opacity: 0.5;
}

/* Убедимся, что карточка выше ауры */
.hub-card {
    position: relative;
    z-index: 1;
}

.hub-card-img {
    position: relative;
    z-index: 1;
}

.pricing {
    margin-top: 28px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 16px;
}

.plan-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 16px;
}

.plan {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 220px;
    border: 1px solid rgba(11, 17, 32, 0.04);
}

.plan .title {
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 18px;
}

.plan .price {
    font-size: 22px;
    font-weight: 800;
    margin: 6px 0 12px 0;
}

.plan .muted {
    margin-bottom: 12px;
}

.plan ul {
    margin: 0 0 14px 18px;
    color: var(--muted);
}

.plan .cta {
    margin-top: auto;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #000;
}

.plan.popular {
    border: 1px solid rgba(43, 110, 246, 0.12);
    box-shadow: 0 14px 40px rgba(255, 0, 255, 0.12);
    will-change: box-shadow;
    animation: popular-shadow 4s ease-in-out infinite;
}

@keyframes popular-shadow {
    0% {
        box-shadow: 0 10px 30px rgba(255, 0, 255, 0.06), 0 2px 6px rgba(43, 110, 246, 0.04);
    }

    50% {
        box-shadow: 0 22px 64px rgba(255, 0, 255, 0.18), 0 8px 22px rgba(43, 110, 246, 0.10);
    }

    100% {
        box-shadow: 0 10px 30px rgba(255, 0, 255, 0.06), 0 2px 6px rgba(43, 110, 246, 0.04);
    }
}

.plan.popular:hover {
    animation-play-state: paused;
    box-shadow: 0 26px 80px rgba(255, 0, 255, 0.22), 0 10px 28px rgba(43, 110, 246, 0.12);
}

.plan.half {
    grid-column: span 1;
}

@media (max-width:1000px) {
    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plan-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .plan.half {
        grid-column: auto;
    }
}

@media (max-width:640px) {
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .plan-grid-2 {
        grid-template-columns: 1fr;
    }

    .aura-ring {
        width: 100%;
    }
    .marginTopMob {
        margin-top: 20px;
    }
}