/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Брендовая палитра пользователя */
    --c-1: #454545;
    --c-2: #6D5959;
    --c-3: #9DCBBA;
    --c-4: #ABEBD2;
    --c-5: #04F06A;

    /* Тёмная тема */
    --bg-0: #0b0b0b;
    --bg-1: #121212;
    --bg-2: #1b1b1b;
    --text: #f5f7f7;
    --muted: #b7c1bd;

    --container: 1200px;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --glass: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

html, body { height: 100%; }
body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    /* background: radial-gradient(1200px 600px at 10% -10%, rgba(4,240,106,.12), transparent 60%),
                radial-gradient(900px 500px at 110% 10%, rgba(157,203,186,.12), transparent 60%),
                var(--bg-0); */
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bg-grid { /* фоновая сетка */
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(60% 60% at 50% 30%, black, transparent 70%);
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(18,18,18,.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .3px; display: inline-flex; align-items: center; gap: 8px; }
.logo__spark { color: var(--c-5); filter: drop-shadow(0 0 6px rgba(4,240,106,.5)); }
.logo--sm { font-size: 14px; }

.nav { display: flex; gap: 20px; align-items: center; }
.nav__link { color: var(--muted); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 10px; transition: .2s ease; }
.nav__link:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav__cta { 
    background: linear-gradient(135deg, var(--c-3), var(--c-5)); 
    color: #0b0b0b; 
    position: relative;
    overflow: hidden;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(4, 240, 106, 0.2);
}
.nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 240, 106, 0.3);
    filter: brightness(1.1);
}
.nav__cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}
.nav__cta:hover::before {
    left: 100%;
}

.burger { display: none; width: 40px; height: 40px; background: transparent; border: 0; position: relative; }
.burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--text); border-radius: 1px; transition: .25s ease; }
.burger span:nth-child(1){ top: 12px; }
.burger span:nth-child(2){ top: 19px; }
.burger span:nth-child(3){ top: 26px; }
.burger.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2){ opacity: 0; }
.burger.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 80px 0 40px; position: relative; }
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero__title { font-size: 44px; line-height: 1.15; letter-spacing: .2px; }
.hero__subtitle { color: var(--muted); margin: 14px 0 24px; }
.hero__actions { display: flex; gap: 12px; margin-bottom: 18px; }
.hero__badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text); font-weight: 600; font-size: 13px; }
.hero__visual { position: relative; min-height: 320px; }
.hero__orb { position: absolute; inset: 0; margin: auto; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(171,235,210,.9), rgba(4,240,106,.45) 60%, transparent 70%); filter: blur(18px); animation: float 6s ease-in-out infinite; opacity: .6; }
.hero__mockup { position: absolute; inset: 0; display: grid; place-items: center; }
.mockup__screen { width: 320px; height: 200px; border-radius: 16px; background: var(--glass); border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.mockup__screen.small { width: 180px; height: 120px; margin-top: 24px; }

/* Sections */
.section { padding: 64px 0; }
.section__title { font-size: 32px; margin-bottom: 24px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { 
    background: rgba(255,255,255,.04); 
    border: 1px solid rgba(255,255,255,.06); 
    border-radius: var(--radius); 
    padding: 20px; 
    box-shadow: var(--shadow); 
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.card:hover { 
    transform: translateY(-6px); 
    background: rgba(255,255,255,.06);
    border-color: var(--c-5);
    box-shadow: 0 12px 30px rgba(4, 240, 106, 0.2);
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-4), var(--c-5));
    transform: scaleX(0);
    transition: transform .4s ease;
}
.card:hover::before {
    transform: scaleX(1);
}
.card__icon { 
    font-size: 22px; 
    transition: all .3s ease;
    display: inline-block;
}
.card:hover .card__icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(4, 240, 106, 0.4));
}
.card__title { 
    margin: 8px 0 6px; 
    font-size: 18px; 
    transition: color .3s ease;
    font-weight: 600;
}
.card:hover .card__title {
    color: var(--c-5);
}
.card__text { 
    color: var(--muted); 
    transition: color .3s ease;
}
.card:hover .card__text {
    color: var(--text);
}

/* Benefits */
.benefits__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; }
.benefit { 
    display: grid; 
    grid-template-columns: 44px 1fr; 
    gap: 12px; 
    align-items: start; 
    background: rgba(255,255,255,.04); 
    border: 1px solid rgba(255,255,255,.06); 
    border-radius: var(--radius); 
    padding: 16px; 
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.benefit:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.06);
    border-color: var(--c-5);
    box-shadow: 0 8px 25px rgba(4, 240, 106, 0.15);
}
.benefit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-4), var(--c-5));
    transform: scaleX(0);
    transition: transform .3s ease;
}
.benefit:hover::before {
    transform: scaleX(1);
}
.benefit__icon { 
    display: grid; 
    place-items: center; 
    width: 44px; 
    height: 44px; 
    border-radius: 12px; 
    background: linear-gradient(135deg, var(--c-4), var(--c-5)); 
    color: #0b0b0b; 
    font-weight: 900; 
    transition: all .3s ease;
}
.benefit:hover .benefit__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(4, 240, 106, 0.3);
}
.benefit__title { 
    font-size: 18px; 
    margin-bottom: 4px; 
    transition: color .3s ease;
}
.benefit:hover .benefit__title {
    color: var(--c-5);
}
.benefit__text { color: var(--muted); }

/* CTA */
.cta {padding: 20px;};
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; background: linear-gradient(180deg, rgba(109,89,89,.25), rgba(157,203,186,.15)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.cta__content h2 { font-size: 28px; margin-bottom: 8px; }
.cta__content p { color: var(--muted); margin-bottom: 14px; }
.cta__visual { position: relative; height: 160px; }
.pulse { position: absolute; inset: 0; margin: auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(4,240,106,.35), transparent 60%); filter: blur(10px); animation: pulse 2.8s infinite ease-in-out; }

/* FAQ */
.faq__list { max-width: 800px; margin: 0 auto; }
.faq__item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: border-color .2s ease; }
.faq__item:last-child { margin-bottom: 0; }
.faq__item.active { border-color: var(--c-5); }
.faq__question { width: 100%; background: transparent; border: 0; color: var(--text); padding: 20px; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 16px; transition: color .2s ease; }
.faq__question:hover { color: var(--c-5); }
.faq__icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--text); font-size: 18px; font-weight: 700; transition: transform .3s ease, background .2s ease; }
.faq__item.active .faq__icon { transform: rotate(45deg); background: var(--c-5); color: #0b0b0b; }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq__item.active .faq__answer { max-height: 200px; }
.faq__answer p { padding: 0 20px 20px; color: var(--muted); line-height: 1.6; margin: 0; }

/* Portfolio */
.grid-portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work { 
    background: rgba(255,255,255,.04); 
    border: 1px solid rgba(255,255,255,.06); 
    border-radius: var(--radius); 
    padding: 10px; 
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.work:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,.06);
    border-color: var(--c-5);
    box-shadow: 0 12px 30px rgba(4, 240, 106, 0.2);
}
.work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-4), var(--c-5));
    transform: scaleX(0);
    transition: transform .4s ease;
}
.work:hover::before {
    transform: scaleX(1);
}
.work__img { 
    height: 200px; 
    border-radius: 10px; 
    background: linear-gradient(135deg, rgba(171,235,210,.2), rgba(4,240,106,.12)), url('/static/images/placeholder.jpg'); 
    background-size: cover; 
    background-position: center; 
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.work__img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(4, 240, 106, 0.1), rgba(171, 235, 210, 0.1));
    opacity: 0;
    transition: opacity .3s ease;
}
.work:hover .work__img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(4, 240, 106, 0.3);
}
.work:hover .work__img::after {
    opacity: 1;
}
.work span { 
    display: block; 
    margin-top: 8px; 
    color: var(--muted); 
    font-size: 14px; 
    text-align: center; 
    transition: color .3s ease;
    font-weight: 500;
}
.work:hover span {
    color: var(--c-5);
}
.work__img.img1 { background-image: url('/static/images/portfolio/1.png'); }
.work__img.img2 { background-image: url('/static/images/portfolio/2.png'); }
.work__img.img3 { background-image: url('/static/images/portfolio/3.png'); }
.work__img.img4 { background-image: url('/static/images/portfolio/4.png'); }
.work__img.img5 { background-image: url('/static/images/portfolio/5.png'); }
.work__img.img6 { background-image: url('/static/images/portfolio/6.png'); }


/* Contact */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.contact__bullets { margin-top: 10px; color: var(--muted); }
.contact__bullets li { margin-left: 16px; }
.form { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.form__field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.form label { font-weight: 600; }
.form input, .form textarea { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); color: var(--text); border-radius: 12px; padding: 12px 14px; outline: none; transition: .2s ease; }
.form input:focus, .form textarea:focus { border-color: var(--c-5); box-shadow: 0 0 0 3px rgba(4,240,106,.15); }
.form__note { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* Footer */
.footer { border-top: 1px solid rgba(255,255,255,.06); margin-top: 24px; padding: 20px;}
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.footer__copy { color: var(--muted); font-size: 13px; margin-top: 4px; }
.footer__right { display: flex; gap: 14px; }
.footer__right a { color: var(--muted); text-decoration: none; }
.footer__right a:hover { color: var(--text); }

/* Buttons */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    height: 44px; 
    padding: 34px 16px; 
    gap: 8px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 700; 
    letter-spacing: .2px; 
    border: 0; 
    cursor: pointer; 
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn:active { transform: translateY(1px); }
.btn-primary { 
    background: linear-gradient(135deg, var(--c-5), var(--c-3)); 
    color: #0b0b0b; 
    box-shadow: 0 4px 15px rgba(4, 240, 106, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 240, 106, 0.4);
    filter: brightness(1.1);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-secondary { 
    background: rgba(255,255,255,.08); 
    color: var(--text); 
    border: 1px solid rgba(255,255,255,.08); 
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn-secondary:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--c-5);
    color: var(--c-5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 240, 106, 0.2);
}
.btn-full { width: 100%; }
.btn-lg { height: 50px; padding: 0 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }
@keyframes pulse { 0% { opacity: .6; transform: scale(.95);} 50% { opacity: 1; transform: scale(1);} 100% { opacity: .6; transform: scale(.95);} }

/* Adaptive */
@media (max-width: 960px){
    .hero__inner { grid-template-columns: 1fr; }
    .cta__inner { grid-template-columns: 1fr; }
    .contact__inner { grid-template-columns: 1fr; }
    .grid-portfolio { grid-template-columns: 1fr 1fr; }
    .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
    .nav { position: fixed; inset: 68px 0 auto 0; background: rgba(18,18,18,.98); backdrop-filter: blur(8px); padding: 16px; display: grid; gap: 8px; transform: translateY(-16px); opacity: 0; pointer-events: none; border-bottom: 1px solid rgba(255,255,255,.06); }
    .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .burger { display: inline-block; }
    .hero { padding-top: 40px; }
    .grid-portfolio { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
}

@media (max-width: 540px){
    .benefits__list { grid-template-columns: repeat(1, 1fr);}
    .footer__inner { flex-direction: column;}
}

