/* VARIABLES */
:root {
    --bg-primary: #0c0c0e;
    --bg-secondary: #111114;
    --bg-card: rgba(16, 16, 20, 0.85);
    --accent-red: #8b0000;
    --accent-red-light: #c0292929;
    --accent: #c02929;
    --accent-glow: rgba(192, 41, 41, 0.35);
    --text-main: #efefef;
    --text-muted: #888896;
    --border-dark: #242428;
    --glass-border: rgba(255, 255, 255, 0.04);
    --viber: #7360f2;
    --viber-glow: rgba(115, 96, 242, 0.4);

    --font-heading: 'Barlow Condensed', 'Oswald', sans-serif;
    --font-body: 'Barlow', 'Inter', sans-serif;

    --z-float: 900;
    --z-nav: 1000;
    --z-overlay: 10;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* GRAIN OVERLAY */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 9999;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

.section-title--center {
    text-align: center;
}

.divider {
    height: 3px;
    width: 48px;
    background: var(--accent);
    margin: 0 0 3rem 0;
    border-radius: 1px;
}

.divider--center {
    margin: 0 auto 3rem auto;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 12, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: var(--z-nav);
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 6%;
    background: rgba(12, 12, 14, 0.97);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.08em;
    line-height: 1;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    transition: color 0.25s ease;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-links li a:hover {
    color: var(--text-main);
}

.nav-links li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    display: block;
    width: 24px;
    height: 2px;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-main);
    border-radius: 2px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.97) translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(192, 41, 41, 0.55);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-viber {
    background: var(--viber);
    color: white;
    border: none;
    box-shadow: 0 4px 20px var(--viber-glow);
}

.btn-viber:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(115, 96, 242, 0.6);
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding: 0 6% 7rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: scaleBg 18s infinite alternate;
}

@keyframes scaleBg {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 0% 100%, rgba(139, 0, 0, 0.25) 0%, transparent 55%),
        linear-gradient(to top, rgba(12, 12, 14, 0.97) 0%, rgba(12, 12, 14, 0.5) 40%, rgba(12, 12, 14, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1rem;
    border-left: 2px solid var(--accent);
    padding-left: 0.75rem;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 0.95;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.7;
}

.hero-content p strong { color: var(--text-main); }

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* PARTS SECTION */
.parts-section {
    padding: 7rem 6%;
    background-color: var(--bg-primary);
}

.section-header {
    max-width: 1200px;
    margin: 0 auto 0 auto;
}

.cards-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 480px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 0 1px rgba(192,41,41,0.2);
    border-color: rgba(192, 41, 41, 0.25);
}

.card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.card:hover .card-img { transform: scale(1.06); }

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,12,14,1) 0%, rgba(12,12,14,0.4) 45%, transparent 100%);
}

.card-content {
    position: relative;
    padding: 2rem;
    z-index: 2;
}

.card-content h3 {
    font-size: 1.9rem;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.card-link span {
    transition: transform 0.3s ease;
    display: inline-block;
}

.card:hover .card-link span { transform: translateX(5px); }

/* ABOUT SECTION */
.about-section {
    padding: 7rem 6%;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192,41,41,0.3), transparent);
}

.about-section::after {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139,0,0,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    max-width: 50ch;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-item {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: rgba(12,12,14,0.6);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.feature-item:hover {
    border-color: rgba(192,41,41,0.3);
    background: rgba(192,41,41,0.04);
}

.feature-icon {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-left: 3rem;
    border-left: 1px solid var(--glass-border);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

.stat-number span {
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* CONTACT SECTION */
.contact-section {
    padding: 7rem 6%;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 60%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}

.contact-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    background: var(--bg-secondary);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.info-icon {
    font-size: 1.1rem;
    background: rgba(192, 41, 41, 0.08);
    color: var(--accent);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid rgba(192,41,41,0.15);
}

.info-item h4 {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-item p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-link {
    transition: color 0.25s ease;
    font-variant-numeric: tabular-nums;
}

.phone-link:hover { color: var(--accent); }

.map-container {
    width: 100%;
    min-height: 420px;
}

/* FOOTER */
footer {
    background: #070709;
    text-align: center;
    padding: 2.5rem 6%;
    border-top: 1px solid var(--glass-border);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    border: 1px solid var(--border-dark);
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.social-link:hover {
    color: var(--text-main);
    border-color: rgba(192,41,41,0.4);
    background: rgba(192, 41, 41, 0.08);
    transform: translateY(-2px);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* VIBER INLINE */
.viber-inline {
    display: inline-flex;
    align-items: center;
    color: var(--viber);
    transition: color 0.25s ease, transform 0.25s ease;
    vertical-align: middle;
    flex-shrink: 0;
}

.viber-inline:hover {
    color: #9985ff;
    transform: scale(1.15);
}

/* VIBER FLOAT */
.viber-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: var(--z-float);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--viber);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px var(--viber-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.viber-float:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 32px rgba(115, 96, 242, 0.65);
}

.viber-float:active {
    transform: scale(0.96);
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: 1fr 1fr;
    }

    .cards-container .card:first-child {
        grid-column: 1 / -1;
        height: 380px;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--glass-border);
        padding-top: 2.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: rgba(12, 12, 14, 0.98);
        backdrop-filter: blur(16px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
        padding: 2.5rem 0;
        gap: 2rem;
    }

    .nav-links.active { left: 0; }

    .hero {
        align-items: center;
        padding: 0 6%;
        text-align: center;
    }

    .hero-eyebrow { display: block; text-align: center; border-left: none; padding-left: 0; border-bottom: 1px solid var(--accent); padding-bottom: 0.5rem; display: inline-block; }

    .hero-content p { max-width: 100%; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .cards-container .card:first-child {
        grid-column: auto;
        height: 380px;
    }

    .card { height: 340px; }

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

    .about-stats {
        flex-direction: column;
    }

    .section-title { font-size: 2.2rem; }
}
