:root {
    --primary:      #0d0d0d;
    --primary-soft: #1a1a1a;
    --accent:       #ff2d2d;
    --accent-2:     #2d6bff;
    --bg:           #0f1115;
    --bg-alt:       #171a21;
    --text:         #f5f5f7;
    --text-muted:   #9aa0ac;
    --radius:       14px;
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.25);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.45), 0 8px 24px rgba(0,0,0,0.3);
    --shadow-lg:    0 8px 32px rgba(0,0,0,0.55), 0 16px 48px rgba(0,0,0,0.35);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Rubik', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

/* SCROLL PROGRESS */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 9999; transition: width 0.08s linear;
}

/* HEADER */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(15, 17, 21, 0.7);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
    padding: 10px 0;
    background: rgba(15, 17, 21, 0.92);
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex; align-items: center; gap: 28px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text);
    font-family: 'Oswald', sans-serif;
}
.logo-mark {
    background: linear-gradient(135deg, var(--accent), #ff6b3d);
    color: #fff; font-weight: 700; font-size: 1rem;
    padding: 6px 10px; border-radius: 8px;
    letter-spacing: 0.05em;
    box-shadow: 0 0 18px rgba(255,45,45,0.5);
}
.logo-text { font-size: 1.25rem; font-weight: 600; }

.nav { margin-left: auto; }
.nav-menu {
    display: flex; gap: 26px; list-style: none;
}
.nav-menu a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.95rem; font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 4px;
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a.active { color: var(--accent); }
.nav-menu a.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--accent); border-radius: 2px;
}

.header-phone {
    color: var(--text); text-decoration: none;
    font-weight: 600; font-size: 0.95rem;
    padding: 8px 16px; border-radius: 8px;
    border: 1px solid rgba(255,45,45,0.4);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.header-phone:hover {
    background: var(--accent); border-color: var(--accent);
    box-shadow: 0 0 22px rgba(255,45,45,0.5);
}

.burger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.burger span {
    width: 26px; height: 2px; background: var(--text);
    border-radius: 2px; transition: all 0.3s ease;
}
.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 {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    width: 800px; height: 800px;
    background: radial-gradient(circle at center,
        color-mix(in srgb, var(--accent) 45%, transparent) 0%,
        color-mix(in srgb, var(--accent) 18%, transparent) 40%,
        transparent 70%);
    top: -250px; right: -200px;
    pointer-events: none; z-index: 0;
    animation: pulseRed 4s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle at center,
        color-mix(in srgb, var(--accent-2) 32%, transparent) 0%,
        color-mix(in srgb, var(--accent-2) 12%, transparent) 45%,
        transparent 68%);
    bottom: -180px; left: -150px;
    pointer-events: none; z-index: 0;
    animation: pulseBlue 4s ease-in-out infinite 1s;
}
@keyframes pulseRed {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}
@keyframes pulseBlue {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* BEACONS */
.hero-lights { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.beacon {
    position: absolute; width: 14px; height: 14px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 20px 6px rgba(255,45,45,0.7);
    animation: flash 1.4s ease-in-out infinite;
}
.beacon-2 { background: var(--accent-2); box-shadow: 0 0 20px 6px rgba(45,107,255,0.7); animation-delay: 0.35s; }
.beacon-3 { background: var(--accent); box-shadow: 0 0 20px 6px rgba(255,45,45,0.7); animation-delay: 0.7s; }
.beacon-4 { background: var(--accent-2); box-shadow: 0 0 20px 6px rgba(45,107,255,0.7); animation-delay: 1.05s; }
.beacon-1 { top: 22%; left: 8%; }
.beacon-2 { top: 68%; left: 14%; }
.beacon-3 { top: 30%; right: 12%; }
.beacon-4 { bottom: 20%; right: 20%; }
@keyframes flash {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.4); }
}

.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-badge {
    display: inline-block;
    background: rgba(255,45,45,0.12);
    border: 1px solid rgba(255,45,45,0.35);
    color: #ff8a8a;
    padding: 8px 18px; border-radius: 100px;
    font-size: 0.85rem; font-weight: 500;
    margin-bottom: 28px;
    animation: fadeUp 0.8s ease forwards;
}
.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.6rem);
    font-weight: 700;
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease 0.1s both;
}
.hero-title span {
    background: linear-gradient(90deg, var(--accent), #ff8a3d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 36px;
    animation: fadeUp 0.8s ease 0.25s both;
}
.hero-actions {
    display: flex; gap: 16px; flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.4s both;
}
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #ff5a2d);
    color: #fff; text-decoration: none;
    padding: 15px 34px; border-radius: 10px;
    font-weight: 600; font-size: 1rem;
    border: none; cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 24px rgba(255,45,45,0.4);
    font-family: 'Rubik', sans-serif;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 34px rgba(255,45,45,0.6);
}
.cta-secondary {
    display: inline-block;
    color: var(--text); text-decoration: none;
    padding: 15px 34px; border-radius: 10px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.18);
    transition: all 0.2s ease;
}
.cta-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--accent-2);
}

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

/* STATS */
.stats {
    background: var(--bg-alt);
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-number {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #ff8a3d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* SECTIONS */
.services, .catalog, .process, .contact {
    padding: 100px 0;
    position: relative;
}
.services { background: var(--bg); }
.catalog { background: var(--bg-alt); }
.process { background: var(--bg); }
.contact {
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15,17,21,0.82), rgba(15,17,21,0.92)),
        url("assets/images/upload-bdb66e.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -20;
}
.contact::after {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle at center,
        color-mix(in srgb, var(--accent) 30%, transparent) 0%,
        transparent 70%);
    top: -200px; right: -150px;
    pointer-events: none; z-index: -1;
}

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}
.section-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    margin-bottom: 16px;
}
.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    position: relative;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255,255,255,0.05);
}
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,45,45,0.1);
    border-radius: 12px;
    border: 1px solid rgba(255,45,45,0.25);
}
.card h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}
.card p { color: var(--text-muted); font-size: 0.97rem; }

/* CATALOG */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column;
}
.product::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 2;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-visual {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
}
.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.product:hover .product-visual img { transform: scale(1.08); }
.visual-1 { background: linear-gradient(135deg, #ff2d2d, #7a0d0d); }
.visual-2 { background: linear-gradient(135deg, #2d6bff, #0d2d7a); }
.visual-3 { background: linear-gradient(135deg, #ff2d2d, #2d6bff); }
.visual-4 { background: linear-gradient(160deg, #ff8a3d, #7a2d0d); }
.product-badge {
    position: absolute; top: 14px; left: 14px;
    background: rgba(0,0,0,0.6);
    color: #fff; font-size: 0.75rem; font-weight: 600;
    padding: 5px 12px; border-radius: 100px;
    letter-spacing: 0.05em;
    z-index: 2;
    backdrop-filter: blur(6px);
}
.product-body {
    padding: 22px;
    display: flex; flex-direction: column; flex: 1;
}
.product-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.product-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
    flex: 1;
}
.product-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
}
.product-price {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ff8a3d;
}
.product-btn {
    background: rgba(255,45,45,0.12);
    color: #ff8a8a;
    border: 1px solid rgba(255,45,45,0.35);
    padding: 8px 16px; border-radius: 8px;
    text-decoration: none; font-size: 0.85rem; font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.product-btn:hover {
    background: var(--accent); color: #fff; border-color: var(--accent);
}

/* PROCESS */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.step {
    position: relative;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 40px 26px 28px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-num {
    position: absolute;
    top: -10px; right: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 5rem; font-weight: 700;
    color: rgba(255,45,45,0.1);
    line-height: 1;
}
.step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    position: relative;
}
.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
}

/* CONTACT */
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}
.contact-list {
    list-style: none;
    margin-top: 32px;
    display: flex; flex-direction: column; gap: 16px;
}
.contact-list li {
    display: flex; align-items: center; gap: 14px;
    color: var(--text);
    font-size: 1rem;
}
.contact-list li span {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,45,45,0.1);
    border: 1px solid rgba(255,45,45,0.25);
    border-radius: 10px;
    font-size: 1.1rem;
}

.contact-form {
    background: rgba(15,17,21,0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}
.contact-form::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.form-group {
    position: relative;
    margin-bottom: 24px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 16px 16px 16px;
    color: var(--text);
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group label {
    position: absolute;
    left: 16px; top: 16px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--bg);
    padding: 0 6px;
}
.contact-form .cta-button { width: 100%; }
.form-note {
    margin-top: 14px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.2em;
}
.form-note.success { color: #4ade80; }
.form-note.error { color: #ff6b6b; }

/* FOOTER */
.footer {
    background: var(--primary);
    padding: 60px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand .logo-mark {
    display: inline-block;
    margin-bottom: 12px;
}
.footer-brand .logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 12px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}
.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text);
}
.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: rgba(15,17,21,0.98);
        backdrop-filter: blur(14px);
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        transform: translateY(-140%);
        transition: transform 0.35s ease;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-menu a { font-size: 1.05rem; }
    .burger { display: flex; margin-left: auto; }
    .header-phone { display: none; }
    .nav { margin-left: 0; }

    .hero { padding: 130px 0 80px; min-height: auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .services, .catalog, .process, .contact { padding: 70px 0; }
    .services-grid, .catalog-grid, .process-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions a { text-align: center; }
    .contact-form { padding: 26px; }
    .contact::before { background-attachment: scroll; }
}

@media (max-width: 380px) {
    .container { padding: 0 16px; }
    .logo-text { font-size: 1.05rem; }
}