/* ===========================================================
   STYLE.CSS – основные стили (только десктоп)
=========================================================== */

/* ---------- RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    max-width: 100vw;
    overflow-x: hidden;
}
body {
    font-family: 'Inter', sans-serif;
    background: #070B14;
    color: #ffffff;
    overflow-x: hidden;
    min-width: 320px;
    line-height: 1.6;
    position: relative;
    max-width: 100vw;
}
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -20;
    pointer-events: none;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #070B14; }
::-webkit-scrollbar-thumb { background: #3D7BFF; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #6B9DFF; }

/* ---------- SELECTION ---------- */
::selection { background: #4F8CFF; color: #ffffff; }

/* ---------- LINKS ---------- */
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ---------- CONTAINER ---------- */
.container { width: min(1320px, 92%); margin: auto; max-width: 100%; }

/* ===========================================================
   BACKGROUND
=========================================================== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(79,140,255,.12), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(0,225,255,.08), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(110,0,255,.09), transparent 40%);
    z-index: -5;
}

/* ===========================================================
   BLUR ELEMENTS
=========================================================== */
.background-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -2;
}
.blur1 { width: 380px; height: 380px; background: #3F79FF; top: -120px; left: -100px; opacity: .22; }
.blur2 { width: 430px; height: 430px; background: #00CFFF; right: -150px; bottom: -120px; opacity: .12; }

/* ===========================================================
   HEADER
=========================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: .35s;
    backdrop-filter: blur(18px);
    background: rgba(8,12,20,.55);
    border-bottom: 1px solid rgba(255,255,255,.05);
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
}

/* ===========================================================
   ЛОГОТИП
=========================================================== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    transition: opacity 0.3s ease;
}
.logo:hover { opacity: 0.8; }
.logo-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #4F8CFF, #00E7FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #4F8CFF;
}
.logo svg {
    flex-shrink: 0;
    display: block;
}

/* ===========================================================
   NAVIGATION
=========================================================== */
nav {
    display: flex;
    gap: 42px;
}
nav a {
    position: relative;
    font-size: 15px;
    color: #D7DCE8;
    transition: .35s;
}
nav a:hover { color: #ffffff; }
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #4F8CFF;
    transition: .35s;
}
nav a:hover::after { width: 100%; }

/* ===========================================================
   BUTTONS
=========================================================== */
.button {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 34px;
    border-radius: 50px;
    background: #4F8CFF;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    transition: .35s;
    box-shadow: 0 10px 40px rgba(79,140,255,.35);
}
.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(79,140,255,.55);
}
.secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: none;
}
.secondary:hover { background: rgba(255,255,255,.05); }

/* ===========================================================
   HERO — ИЗМЕНЕНО: сетка/типографика 1-в-1 как на about.html
=========================================================== */
..hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero .container {
    width: min(1320px, 92%);
    max-width: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
    position: relative;
    z-index: 10;
}
.hero-left {
    position: relative;
    max-width: 900px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 100px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: #7DB5FF;
    margin-bottom: 0;
}
.hero-left h1 {
    max-width: 820px;
    margin: 27px 0 30px;
    font-size: clamp(48px, 5.5vw, 80px);
    line-height: 1.04;
    letter-spacing: -3.6px;
    font-weight: 700;
}
.hero-left p {
    max-width: 650px;
    margin: 0;
    font-size: 20px;
    color: #AEB7C8;
    line-height: 1.8;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 40px;
}
.hero-buttons .button {
    min-width: 180px;
    text-align: center;
}
.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
}

/* ===========================================================
   HERO GRID & NOISE
=========================================================== */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: .35;
    pointer-events: none;
    z-index: 1;
}
.hero-noise {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #ffffff 1px, transparent 2px);
    background-size: 120px 120px;
    opacity: .05;
    pointer-events: none;
    z-index: 1;
}
.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: .15;
    pointer-events: none;
    z-index: 1;
}
.glow-left { background: #4F8CFF; top: -100px; left: -150px; }
.glow-right { background: #00CFFF; bottom: -100px; right: -150px; }

/* ===========================================================
   SCROLL DOWN
=========================================================== */
.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    width: 28px;
    height: 52px;
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,.25);
    z-index: 10;
}
.scroll-down span {
    display: block;
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    width: 5px;
    height: 12px;
    border-radius: 30px;
    background: #4F8CFF;
}

/* ===========================================================
   SECTION
=========================================================== */
section {
    padding: 140px 0;
    position: relative;
}
section h2 {
    font-size: 48px;
    margin-bottom: 70px;
    text-align: left;
    font-weight: 700;
}
section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 1px;
    background: linear-gradient(transparent, rgba(79,140,255,.3), transparent);
}

/* ===========================================================
   SECTION HEADING (общий для всех страниц)
=========================================================== */
.section-heading {
    margin-bottom: 58px;
}
.section-heading > span,
.section-heading > div > span {
    display: block;
    margin-bottom: 14px;
    color: var(--color-primary, #4F8CFF);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.section-heading h2 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -2.8px;
    text-align: left;
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff, #d7e7ff, #4F8CFF);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGradient 8s linear infinite;
}

/* ===========================================================
   ABOUT
=========================================================== */
#about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
#about .about-content > h2 {
    text-align: left;
    margin-bottom: 30px;
}
.about-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.about-content p {
    color: #BFC7D5;
    font-size: 17px;
    line-height: 1.9;
}
.about-video {
    width: 100%;
    height: 550px;
    border-radius: 35px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 30px 70px rgba(0,0,0,.28);
    position: relative;
    background: #070B14;
}
.about-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================================================
   CARDS
=========================================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 35px;
}
.card {
    position: relative;
    min-height: 260px;
    border-radius: 28px;
    padding: 35px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    transition: .45s;
}
.card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: #4F8CFF;
    box-shadow: 0 20px 50px rgba(79,140,255,.25);
}
.card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #4F8CFF;
    filter: blur(90px);
    right: -120px;
    top: -120px;
    opacity: 0;
    transition: .45s;
}
.card:hover::before { opacity: .25; }
.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background: rgba(79,140,255,.12);
    color: #4F8CFF;
    font-size: 28px;
    transition: .4s;
    overflow: hidden;
}
.card-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.card:hover .card-icon { transform: rotate(8deg) scale(1.08); }
.card h3 { font-size: 25px; margin-bottom: 18px; }
.card p { color: #BFC7D5; line-height: 1.8; }
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(79,140,255,.8), rgba(0,212,255,.3), transparent, rgba(79,140,255,.8));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: .45s;
    pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card:hover {
    background: radial-gradient(circle at top left, rgba(79,140,255,.15), transparent 45%), rgba(255,255,255,.04);
}

/* ===========================================================
   SERVICES
=========================================================== */
#services { position: relative; }
#services::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    background: #0037FF;
    filter: blur(250px);
    opacity: .07;
    top: 120px;
    right: -250px;
}

/* ===========================================================
   PORTFOLIO
=========================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
}
.project {
    position: relative;
    height: 320px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
    transition: .45s;
}
.project:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(79,140,255,.25);
    border-color: #4F8CFF;
}
.project::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    opacity: .65;
    z-index: 1;
}
.project::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(79,140,255,.8), rgba(0,212,255,.3), transparent, rgba(79,140,255,.8));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: .45s;
    pointer-events: none;
    z-index: 3;
}
.project:hover::after { opacity: 1; }
.project:hover {
    background: radial-gradient(circle at top left, rgba(79,140,255,.15), transparent 45%), rgba(255,255,255,.04);
}
.project img {
    position: absolute;
    inset: 0;
    transition: transform 1s;
    z-index: 0;
}
.project:hover img { transform: scale(1.08); }

/* ===========================================================
   TIMELINE
=========================================================== */
.timeline {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding-top: 50px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    top: 75px;
    height: 2px;
    background: linear-gradient(90deg, #4F8CFF, #00E1FF, #4F8CFF);
    z-index: 1;
}
.timeline-item {
    position: relative;
    text-align: center;
    padding: 0 5px;
    z-index: 2;
}
.timeline-dot {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #101826;
    border: 2px solid #4F8CFF;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    transition: .45s;
    box-shadow: 0 0 20px rgba(79,140,255,0.2);
}
.timeline-item:hover .timeline-dot {
    background: #4F8CFF;
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(79,140,255,.45);
}
.timeline-item h3 { font-size: 18px; margin-bottom: 8px; }
.timeline-item p { color: #BFC7D5; line-height: 1.6; font-size: 14px; }

/* ===========================================================
   REVIEWS
=========================================================== */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 35px;
}
.review {
    position: relative;
    padding: 40px;
    border-radius: 28px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
    transition: .45s;
}
.review:hover {
    transform: translateY(-10px);
    border-color: #4F8CFF;
}
.review::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: #4F8CFF;
    filter: blur(120px);
    right: -150px;
    top: -150px;
    opacity: 0;
    transition: .45s;
}
.review:hover::before { opacity: .22; }
.review::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(79,140,255,.8), rgba(0,212,255,.3), transparent, rgba(79,140,255,.8));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: .45s;
    pointer-events: none;
}
.review:hover::after { opacity: 1; }
.review:hover {
    background: radial-gradient(circle at top left, rgba(79,140,255,.15), transparent 45%), rgba(255,255,255,.04);
}
.review-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}
.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    flex-shrink: 0;
}
.review h4 { font-size: 20px; }
.stars { color: #FFD54A; margin-top: 6px; letter-spacing: 2px; }
.review p { color: #BFC7D5; line-height: 1.9; }

/* ===========================================================
   FAQ
=========================================================== */
.faq { max-width: 950px; margin: auto; }
.faq-item {
    margin-bottom: 22px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    transition: .35s;
}
.faq-item:hover { border-color: #4F8CFF; }
.faq-question {
    padding: 28px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    user-select: none;
}
.faq-question span { font-size: 30px; transition: .35s; }
.faq-item.active span { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s ease;
}
.faq-answer p { padding: 0 35px 30px; color: #BFC7D5; line-height: 1.9; }

/* ===========================================================
   CONTACTS
=========================================================== */
#contacts .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.contact-info .section-heading {
    margin-bottom: 12px;
}
.contact-card {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    transition: .4s;
}
.contact-card:hover {
    border-color: #4F8CFF;
    transform: translateX(8px);
}
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { color: #BFC7D5; }
.contact-form {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 32px;
    padding: 45px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #111B2C;
    border: none;
    outline: none;
    color: #fff;
    padding: 18px 22px;
    margin-bottom: 20px;
    border-radius: 16px;
    transition: .35s;
    font-family: inherit;
    font-size: 15px;
}
.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 2px #4F8CFF;
}
input::placeholder,
textarea::placeholder { color: #7D8797; }
input:hover,
textarea:hover { background: #16253B; }

/* ===========================================================
   КАРТА
=========================================================== */
.map-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: .4s;
}
.map-wrapper:hover {
    border-color: #4F8CFF;
    box-shadow: 0 20px 60px rgba(79,140,255,0.15);
}
.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
    filter: brightness(0.85) saturate(0.9);
    transition: filter .4s;
}
.map-wrapper:hover iframe {
    filter: brightness(1) saturate(1);
}
.map-wrapper::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(79,140,255,0.2), transparent, rgba(0,220,255,0.2));
    opacity: 0;
    transition: .4s;
    pointer-events: none;
    z-index: 1;
}
.map-wrapper:hover::before { opacity: 1; }

/* ===========================================================
   FOOTER
=========================================================== */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,.08);
    background: #060A12;
    position: relative;
}
footer::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(transparent, rgba(79,140,255,.6), transparent);
}
footer .container:first-of-type {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}
.footer-title { font-size: 22px; margin-bottom: 22px; }
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-column a {
    color: #BFC7D5;
    transition: .35s;
}
.footer-column a:hover {
    color: #4F8CFF;
    padding-left: 8px;
}
.copyright {
    margin-top: 70px;
    text-align: center;
    color: #7E8798;
    font-size: 15px;
    border-top: 1px solid rgba(255,255,255,.05);
    padding-top: 40px;
}

/* ===========================================================
   TITLE EFFECT
=========================================================== */
h1, h2 {
    background: linear-gradient(90deg, #ffffff, #d7e7ff, #4F8CFF);
    background-size: 300%;
    -webkit-background-clip: text;
    color: transparent;
}

/* ===========================================================
   BUTTON GLOW
=========================================================== */
.button {
    position: relative;
    overflow: hidden;
}
.button::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 220%;
    background: rgba(255,255,255,.25);
    transform: rotate(25deg);
    left: -180px;
    top: -60%;
}

/* ===========================================================
   PREMIUM HERO CARD — подогнано под правую колонку (~496px)
=========================================================== */
.main-card {
    width: 100%;
    max-width: 480px;              /* ИЗМЕНЕНО: 480px — влезает в 0.8fr при 1320px */
    border-radius: 32px;
    padding: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: box-shadow .35s;
    box-shadow: 0 40px 90px rgba(0,0,0,.45);
    will-change: transform;
    isolation: isolate;
    backface-visibility: hidden;
    transform: perspective(1600px) rotateX(0deg) rotateY(0deg);
}
.main-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(79,140,255,.9), transparent, rgba(0,220,255,.45), transparent, rgba(79,140,255,.9));
    opacity: .25;
    filter: blur(10px);
    z-index: -2;
}
.main-card::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: #4F8CFF;
    filter: blur(120px);
    right: -100px;
    top: -100px;
    opacity: .35;
}
.card-reflection {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.30), rgba(255,255,255,.10), transparent 70%);
    filter: blur(25px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    opacity: .75;
    transition: opacity .3s;
}
.main-card:hover .card-reflection { opacity: 1; }
.main-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.main-card-top span { color: #c9d2df; font-size: 16px; font-weight: 500; }
.status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4cff7f;
    box-shadow: 0 0 20px #4cff7f, 0 0 40px #4cff7f;
}

/* ===========================================================
   CHART
=========================================================== */
.main-chart {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 20px;
    background: linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.06);
    overflow: hidden;
}
.main-chart::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 40px 40px;
}
.main-chart::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 50px;
    height: 4px;
    border-radius: 20px;
    background: linear-gradient(90deg, #4F8CFF, #00E1FF);
    clip-path: polygon(0% 80%, 10% 70%, 20% 78%, 30% 50%, 40% 55%, 50% 20%, 60% 38%, 70% 15%, 80% 25%, 90% 8%, 100% 0%);
}
.chart-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
#chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* ===========================================================
   STATS
=========================================================== */
.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}
.stats div {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    transition: .35s;
}
.stats div:hover {
    transform: translateY(-8px);
    background: rgba(79,140,255,.08);
    border-color: #4F8CFF;
}
.stats small { color: #8f9ab0; font-size: 12px; }
.stats h2 { margin-top: 6px; font-size: 24px; }

/* ===========================================================
   FLOATING CARDS — ИЗМЕНЕНО: спрятаны, чтобы не «кривить» правую колонку
=========================================================== */
.floating-card {
    display: none;
}

/* ===========================================================
   HEADER SCROLL
=========================================================== */
header.scrolled {
    height: 72px;
    background: rgba(7,11,20,.82);
    backdrop-filter: blur(30px);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
header.is-scrolled {
    background: rgba(7,11,20,.82);
    backdrop-filter: blur(30px);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

/* ===========================================================
   CURSOR GLOW
=========================================================== */
.cursor-glow {
    position: fixed;
    left: 0;
    top: 0;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: .18;
    filter: blur(90px);
    background: radial-gradient(circle, rgba(79,140,255,.9), rgba(79,140,255,.2), transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity .35s;
    will-change: transform;
}

/* ===========================================================
   AMBIENT GLOW PARTICLES
=========================================================== */
.ambient-particle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: -3;
    pointer-events: none;
}
.ap-1 { width: 300px; height: 300px; background: #4F8CFF; top: 15%; left: 5%; }
.ap-2 { width: 350px; height: 350px; background: #00CFFF; top: 55%; right: 2%; }
.ap-3 { width: 250px; height: 250px; background: #6E00FF; bottom: 10%; left: 25%; }

/* ===========================================================
   МОДАЛЬНОЕ ОКНО
=========================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(7,11,20,.85);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal {
    background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 32px;
    padding: 50px 40px;
    max-width: 480px;
    width: 92%;
    backdrop-filter: blur(40px);
    box-shadow: 0 40px 90px rgba(0,0,0,.5);
    transform: scale(.9) translateY(20px);
    transition: transform .4s ease;
    position: relative;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal h2 { text-align: center; margin-bottom: 30px; font-size: 32px; }
.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    transition: .3s;
    opacity: .6;
}
.modal-close:hover { opacity: 1; transform: rotate(90deg); }
.modal input,
.modal textarea {
    width: 100%;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 16px 20px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 18px;
    transition: .3s;
}
.modal input:focus,
.modal textarea:focus {
    border-color: #4F8CFF;
    box-shadow: 0 0 0 3px rgba(79,140,255,.2);
    outline: none;
}
.modal textarea { resize: vertical; min-height: 80px; }

/* ===========================================================
   УВЕДОМЛЕНИЯ
=========================================================== */
.notification {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 16px 32px;
    border-radius: 60px;
    font-weight: 500;
    font-size: 16px;
    z-index: 2000;
    opacity: 0;
    transition: all .4s ease;
    pointer-events: none;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    max-width: 92%;
    text-align: center;
    backdrop-filter: blur(20px);
}
.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.notification.success {
    background: rgba(34, 197, 94, .9);
    border: 1px solid rgba(34, 197, 94, .4);
    color: #fff;
}
.notification.error {
    background: rgba(239, 68, 68, .9);
    border: 1px solid rgba(239, 68, 68, .4);
    color: #fff;
}

/* ===========================================================
   УНИВЕРСАЛЬНЫЙ КЛАСС ДЛЯ ИЗОБРАЖЕНИЙ
=========================================================== */
.img-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mobile-menu {
    display: none;
}
.hamburger {
    display: none;
}