/* ============================================
   СТАЛЬКОМ — PLASMA CUTTING EQUIPMENT
   Black / Red / White Industrial Theme
   ============================================ */

:root {
    --red: #DC2626;
    --red-dark: #B91C1C;
    --red-glow: rgba(220,38,38,0.35);
    --red-soft: rgba(220,38,38,0.12);
    --black: #0a0a0a;
    --black-card: #111111;
    --black-surface: #161616;
    --black-border: #222222;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-300: #d4d4d4;
    --gray-500: #737373;
    --gray-700: #404040;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--gray-300);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm); font-size: 14px;
    font-weight: 600; font-family: var(--font-body); cursor: pointer;
    border: none; transition: all 0.25s; text-decoration: none; white-space: nowrap;
}
.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-primary {
    background: var(--red); color: #fff;
    box-shadow: 0 4px 20px var(--red-glow);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 6px 28px var(--red-glow); }
.btn-accent {
    background: var(--red); color: #fff;
    box-shadow: 0 2px 12px var(--red-glow);
}
.btn-accent:hover { background: #EF4444; transform: translateY(-1px); }
.btn-outline-light {
    background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.25);
}
.btn-outline-light:hover { border-color: var(--red); color: var(--red); }
.btn-ghost {
    background: transparent; color: var(--gray-300); border: 1px solid var(--black-border);
}
.btn-ghost:hover { border-color: var(--red); color: #fff; }
.btn-full { width: 100%; }

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--black); border-bottom: 1px solid var(--black-border);
    padding: 6px 0; font-size: 12px; color: var(--gray-500);
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-contacts { display: flex; gap: 20px; }
.top-item, .top-address { display: flex; align-items: center; gap: 5px; transition: color 0.2s; }
a.top-item:hover { color: var(--red); }

/* ========== HEADER ========== */
.header {
    background: var(--black-surface); position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--black-border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { flex-shrink: 0; }
.logo-img { height: 54px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav-link {
    padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
    color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.8px;
    transition: all 0.2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.header-cta { font-size: 13px; padding: 10px 20px; }

/* ========== HERO ========== */
.hero {
    position: relative; overflow: hidden; padding: 80px 0 60px;
    background: var(--black);
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse at 70% 40%, rgba(220,38,38,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(220,38,38,0.04) 0%, transparent 50%);
}
.hero-sparks {
    position: absolute; inset: 0; z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='0.5' fill='%23DC2626' opacity='0.15'/%3E%3C/svg%3E");
    animation: sparkDrift 20s linear infinite;
}
@keyframes sparkDrift { from{background-position:0 0}to{background-position:400px 200px} }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-title {
    font-family: var(--font-display); font-size: 56px; font-weight: 700;
    line-height: 1.05; color: #fff; text-transform: uppercase; letter-spacing: 1px;
}
.hero-highlight { color: var(--red); }
.hero-sub { font-size: 16px; color: var(--gray-500); margin: 20px 0 36px; max-width: 480px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-image { position: relative; }
.hero-image img { border-radius: 0; box-shadow: none; }
.hero-image { overflow: hidden; }
.hero-image-glow {
    position: absolute; inset: -20px; border-radius: var(--radius-lg);
    background: radial-gradient(ellipse at center, var(--red-glow) 0%, transparent 70%);
    z-index: -1; opacity: 0.5; filter: blur(40px);
}
.hero-accent-line {
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

/* ========== SECTION UTILITIES ========== */
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; background: var(--red-soft); border: 1px solid rgba(220,38,38,0.2);
    border-radius: 100px; font-size: 12px; font-weight: 700; color: var(--red);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px;
}
.section-title {
    font-family: var(--font-display); font-size: 40px; font-weight: 700;
    color: var(--white); line-height: 1.15; text-transform: uppercase; letter-spacing: 0.5px;
}
.section-title.light { color: var(--white); }
.text-accent { color: var(--red); }
.section-desc { font-size: 16px; color: var(--gray-500); margin-top: 12px; max-width: 580px; margin-left: auto; margin-right: auto; }

/* ========== VIDEO SECTION ========== */
.video-section {
    padding: 100px 0 80px;
    background: var(--black);
    position: relative;
    overflow: hidden;
}
.video-section::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(220,38,38,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.video-showcase { position: relative; z-index: 1; }

.video-player-wrap {
    position: relative; background: #000; border-radius: var(--radius-lg);
    overflow: hidden; aspect-ratio: 16/9; box-shadow: 0 8px 60px rgba(220,38,38,0.15), 0 0 0 1px rgba(220,38,38,0.1);
    cursor: pointer; outline: none;
}
.video-player-wrap:focus-visible { box-shadow: 0 0 0 3px var(--red); }
.video-el { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.video-el::-webkit-media-controls { display: none !important; }

/* poster */
.video-poster {
    position: absolute; inset: 0; z-index: 2; display: flex;
    align-items: center; justify-content: center; background: var(--black);
    pointer-events: none;
}
.video-poster svg { width: 100%; height: 100%; }

/* big play */
.video-play-btn {
    position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 14px;
    background: rgba(10,10,10,0.5); border: none; cursor: pointer; transition: background 0.3s;
}
.video-play-btn:hover { background: rgba(10,10,10,0.6); }
.video-play-btn.hide { display: none; }
.play-circle {
    width: 88px; height: 88px; border-radius: 50%;
    background: var(--red); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 40px var(--red-glow), 0 0 80px rgba(220,38,38,0.2);
    transition: transform 0.25s, box-shadow 0.25s;
}
.play-circle svg { margin-left: 4px; }
.video-play-btn:hover .play-circle { transform: scale(1.08); box-shadow: 0 0 60px var(--red-glow); }
.play-label { font-size: 14px; font-weight: 600; color: #fff; letter-spacing: 1px; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }

/* custom controls */
.v-controls {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
    display: flex; align-items: center; gap: 10px; padding: 10px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    opacity: 0; transform: translateY(4px); transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.v-controls.vis { opacity: 1; transform: translateY(0); pointer-events: auto; }
.vc-btn { background: none; border: none; cursor: pointer; padding: 4px; display: flex; opacity: 0.85; transition: opacity 0.2s; flex-shrink: 0; }
.vc-btn:hover { opacity: 1; }
.vc-time { font-size: 12px; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 80px; }
.vc-seek-wrap { flex: 1; position: relative; height: 18px; display: flex; align-items: center; }
.vc-seek-bg { position: absolute; top: 50%; left: 0; right: 0; height: 3px; transform: translateY(-50%); background: rgba(255,255,255,0.12); border-radius: 2px; overflow: hidden; pointer-events: none; transition: height 0.15s; }
.vc-seek-wrap:hover .vc-seek-bg { height: 5px; }
.vc-seek-buf { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: rgba(255,255,255,0.15); }
.vc-seek-bar { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--red); }
.vc-seek-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }

/* video features strip */
.video-features {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
    margin-top: 24px; background: var(--black-border); border-radius: var(--radius);
    overflow: hidden;
}
.vf-item {
    display: flex; align-items: flex-start; gap: 14px; padding: 24px;
    background: var(--black-card);
}
.vf-item svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.vf-item strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.vf-item span { font-size: 12px; color: var(--gray-500); line-height: 1.5; }

/* ========== PRODUCT SECTION ========== */
.product-section {
    padding: 100px 0;
    background: var(--black-surface);
    border-top: 1px solid var(--black-border);
    border-bottom: 1px solid var(--black-border);
}
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.product-image-frame {
    position: relative;
}
.product-image-frame img { width: 100%; display: block; transform: translateX(-8%); }
.product-image-badge {
    position: absolute; top: 16px; left: 16px;
    padding: 6px 14px; background: var(--red); color: #fff;
    font-size: 11px; font-weight: 700; border-radius: 100px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.product-desc { font-size: 15px; color: var(--gray-500); margin: 20px 0 32px; line-height: 1.7; }

.specs-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 36px;
}
.spec-card {
    background: var(--black-card); border: 1px solid var(--black-border);
    border-radius: var(--radius-sm); padding: 16px; text-align: center;
    transition: border-color 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.spec-card:hover { border-color: var(--red); }
.spec-val {
    display: block; font-family: var(--font-display); font-size: 22px;
    font-weight: 700; color: #fff; letter-spacing: 0.5px;
    word-break: break-word; overflow-wrap: break-word;
}
.spec-val--sm {
    font-size: 14px; letter-spacing: 0; line-height: 1.5;
}
.spec-name { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; display: block; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ========== FEATURES ========== */
.features-section {
    padding: 100px 0;
    background: var(--black);
}
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.feature-card {
    background: var(--black-card); border: 1px solid var(--black-border);
    border-radius: var(--radius); padding: 32px 24px;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--red); transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { border-color: rgba(220,38,38,0.3); transform: translateY(-2px); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 10px;
    background: var(--red-soft); display: flex; align-items: center;
    justify-content: center; color: var(--red); margin-bottom: 20px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--gray-500); line-height: 1.7; }

/* ========== CTA STRIP ========== */
.cta-strip {
    padding: 48px 0;
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
    position: relative; overflow: hidden; max-width: 100vw;
}
.cta-strip::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; flex-wrap: wrap; }
.cta-text h2 { font-family: var(--font-display); font-size: 28px; color: #fff; text-transform: uppercase; }
.cta-text p { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 4px; }
.cta-strip .btn-accent { background: #fff; color: var(--red-dark); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.cta-strip .btn-accent:hover { background: var(--gray-100); }

/* ========== FOOTER ========== */
.footer {
    padding: 64px 0 0; background: var(--black-surface);
    border-top: 1px solid var(--black-border);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 48px; }
.footer-logo-img { height: 80px; width: auto; margin-bottom: 16px; }
.footer-about { font-size: 13px; color: var(--gray-500); line-height: 1.7; }
.footer-col h4 {
    font-size: 12px; font-weight: 700; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 14px; color: var(--gray-500); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--red); }
.footer-contacts-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.footer-contacts-list svg { color: var(--red); flex-shrink: 0; }
.footer-bottom {
    margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--black-border);
    text-align: center; font-size: 12px; color: var(--gray-700);
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
    background: var(--black-card); border: 1px solid var(--black-border);
    border-radius: var(--radius-lg); padding: 40px; max-width: 460px; width: 90%;
    position: relative; overflow: hidden;
    transform: translateY(20px) scale(0.97); transition: transform 0.3s;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-spark {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.modal-close {
    position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
    border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--black-border);
    color: var(--gray-500); font-size: 22px; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: all 0.2s;
}
.modal-close:hover { background: var(--red); color: #fff; border-color: var(--red); }
.modal-title {
    font-family: var(--font-display); font-size: 26px; color: #fff;
    text-transform: uppercase; margin-bottom: 8px;
}
.modal-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; line-height: 1.6; }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }
.req { color: var(--red); }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-input {
    padding: 14px 16px; background: var(--black); border: 1px solid var(--black-border);
    border-radius: var(--radius-sm); color: #fff; font-size: 14px; font-family: var(--font-body);
    transition: border-color 0.2s; outline: none;
}
.form-input::placeholder { color: var(--gray-700); }
.form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.form-textarea { min-height: 80px; resize: vertical; }
.modal-note { font-size: 11px; color: var(--gray-700); text-align: center; }

/* Success state */
.modal-success {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 20px 0;
}
.success-icon { margin-bottom: 8px; }
.modal-success h3 { font-family: var(--font-display); font-size: 24px; color: #fff; text-transform: uppercase; }
.modal-success p { font-size: 14px; color: var(--gray-500); }

/* ========== FLOATING CTA ========== */
.floating-cta {
    position: fixed; bottom: 28px; right: 28px; z-index: 900;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--red); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px var(--red-glow);
    cursor: pointer; opacity: 0; transform: scale(0.7);
    transition: all 0.3s;
}
.floating-cta.show { opacity: 1; transform: scale(1); }
.floating-cta:hover { transform: scale(1.08); box-shadow: 0 6px 30px var(--red-glow); }

/* Pulse ring */
.floating-cta::before {
    content: ''; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid var(--red); opacity: 0;
    animation: ctaPulse 2s ease-out infinite;
}
@keyframes ctaPulse { 0%{transform:scale(0.8);opacity:0.6} 100%{transform:scale(1.4);opacity:0} }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-image { max-width: 600px; margin: 0 auto; overflow: visible; }
    .hero-title { font-size: 48px; }

    .product-layout { grid-template-columns: 1fr; gap: 40px; }
    .product-image-frame img { transform: none; } /* cancel desktop shift on stacked layout */
    .features-grid { grid-template-columns: repeat(2,1fr); }
    .video-features { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: repeat(2,1fr); }
}

/* Hamburger button — hidden on desktop */
.nav-mobile-toggle {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-mobile-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--gray-300); border-radius: 2px; transition: all 0.3s;
}

@media (max-width: 768px) {
    .top-contacts { display: none; }
    .top-address { font-size: 11px; }

    /* Hamburger visible, desktop nav hidden */
    .nav { display: none; }
    .nav-mobile-toggle { display: flex; }

    /* Mobile nav drawer */
    .nav.open {
        display: flex; flex-direction: column; gap: 4px;
        position: absolute; top: 76px; left: 0; right: 0; z-index: 99;
        background: var(--black-surface); border-bottom: 1px solid var(--black-border);
        padding: 12px 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }
    .nav.open .nav-link { padding: 12px 16px; font-size: 14px; }

    .header-inner { position: relative; }

    .hero { padding: 50px 0 40px; }
    .hero-title { font-size: 36px; word-break: break-word; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .section-title { font-size: 28px; word-break: break-word; }
    .section-title br { display: none; } /* let text reflow naturally on small screens */
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .specs-grid { grid-template-columns: repeat(2,1fr); }
    .cta-strip-inner { flex-direction: column; text-align: center; }
    .cta-strip .btn { white-space: normal; text-align: center; } /* prevent overflow */
    .play-circle { width: 64px; height: 64px; }
    .play-circle svg { width: 24px; height: 24px; }
    .modal { padding: 28px; }
    .container { padding: 0 16px; }
    .section-desc { font-size: 14px; }
    .video-section { padding: 60px 0 50px; }
    .product-section { padding: 60px 0; }
    .features-section { padding: 60px 0; }
    .vf-item { padding: 16px; }
}

@media (max-width: 480px) {
    .specs-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 30px; }
    .btn-lg { padding: 14px 24px; font-size: 14px; }
}
