:root {
    --primary-bg: #D1D5D8;
    --secondary-bg: #C1C5C8;
    --text-color: #2F3136;
    --accent-color: #bdbcb9;
    --highlight: #98eadf;
    --highlight-deep: #4fc7b6;
    --dark-panel: #1f2125;
    --font-head: 'Tektur', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-ui: 'IBM Plex Mono', monospace;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 2rem; text-transform: uppercase; line-height: 1.05; }
h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.3rem); margin-bottom: 1.5rem; text-transform: uppercase; }

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.eyebrow {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--highlight-deep);
    display: block;
    margin-bottom: 1rem;
}

.marker-highlight {
    background-color: rgba(31, 33, 37, 0.08); 
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
    color: var(--dark-panel);
    font-weight: 600;
}

/* Header Navigation */
.top-nav {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1.25rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; pointer-events: none;
    transition: background 0.4s ease, padding 0.4s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}
.top-nav.scrolled {
    background: rgba(31, 33, 37, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
}
.top-nav > * { pointer-events: auto; }

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.top-logo {
    height: 48px; width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 2px var(--highlight));
    transition: var(--transition);
}

.nav-catalogue-btn {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.2s ease;
    padding: 0.2rem 0.8rem;
}
.nav-catalogue-btn:hover {
    color: var(--highlight);
    text-shadow: 0 0 12px var(--highlight);
    transform: translateY(-2px);
}

.nav-contacts-btn {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--highlight-deep);
    border-radius: 50px;
    background: var(--highlight);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}
.nav-contacts-btn:hover {
    background: #aef3e9;
    box-shadow: 0 6px 20px rgba(152, 234, 223, 0.6);
    transform: translateY(-2px);
}

/* Hero Section */
.hero { 
    position: relative; width: 100%; min-height: 100vh; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    text-align: center; overflow: hidden; padding: 8rem 2rem 6rem; color: #fff; 
}
.hero-video { 
    position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; 
    transform: translate(-50%, -50%); z-index: -2; object-fit: cover; 
    filter: blur(3px) brightness(0.35); 
}
.hero-tag { font-family: var(--font-ui); font-size: clamp(0.85rem, 1.8vw, 1rem); letter-spacing: 4px; text-transform: uppercase; color: var(--highlight); margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 4.2rem); max-width: 1050px; text-shadow: 0 4px 20px rgba(0,0,0,0.6); line-height: 1.08; }
.hero h1 .accent { color: var(--highlight); }
.hero-sub { font-family: var(--font-body); font-size: clamp(1rem, 2.2vw, 1.35rem); max-width: 750px; margin-top: 1.8rem; color: #e6e8ea; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin-top: 2.8rem; }
.hero-stat b { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--highlight); line-height: 1; }
.hero-stat span { font-family: var(--font-ui); font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: #c7cacd; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin-top: 3rem; }
.btn-primary, .btn-ghost { padding: 1.2rem 2.6rem; font-family: var(--font-ui); font-size: 1rem; text-decoration: none; text-transform: uppercase; letter-spacing: 2px; transition: var(--transition); cursor: pointer; border-radius: 4px; display: inline-block; }
.btn-primary { color: var(--text-color); background: var(--highlight); border: 1px solid var(--highlight); font-weight: 600; }
.btn-primary:hover { background: #aef3e9; transform: translateY(-2px); }
.btn-ghost { color: #fff; background: rgba(209, 213, 216, 0.08); border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* General Sections */
.section-block { padding: 6rem 2rem; max-width: 1300px; margin: 0 auto; }
.compare { background: var(--secondary-bg); border-top: 1px solid rgba(47,49,54,0.1); border-bottom: 1px solid rgba(47,49,54,0.1); }
.compare-inner { max-width: 1300px; margin: 0 auto; padding: 6rem 2rem; }
.compare-head { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.compare-card { padding: 2.5rem 2rem; border-radius: 8px; }
.compare-card ul { list-style: none; margin-top: 1rem; }
.compare-card li { margin-bottom: 0.8rem; padding-left: 1.5rem; position: relative; }
.card-pain { background: #2b2d31; color: #d6d8da; }
.card-pain li::before { content: "✕"; position: absolute; left: 0; color: #ff6b6b; }
.card-gain { background: var(--dark-panel); color: #eef0f1; border: 1px solid var(--highlight-deep); }
.card-gain li::before { content: "✓"; position: absolute; left: 0; color: var(--highlight); }

/* Slogan Banner */
.slogan { 
    position: relative; 
    padding: 9rem 2rem; 
    text-align: center; 
    background: repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255,255,255,0.03) 15px, rgba(255,255,255,0.03) 30px), var(--dark-panel); 
    background-attachment: fixed;
    color: #fff; 
}
.slogan .accent { color: var(--highlight); }
.slogan-main { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: 2px; }
.slogan-sub { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 600; margin-top: 1.5rem; }

/* Description Layout */
.desc-layout { display: flex; align-items: center; gap: 40px; }
.desc-text { flex: 1; }
.desc-text ul { list-style-type: square; margin-left: 1.5rem; margin-top: 1rem; }
.desc-img { flex: 0 0 45%; max-width: 550px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.desc-img.no-border { border-radius: 0; box-shadow: none; }
.desc-img img { width: 100%; height: auto; display: block; }

/* Specific dark grey pill background for headers */
.big-header { 
    font-size: 1.8rem; 
    color: var(--highlight); 
    background: var(--dark-panel);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    margin-top: 2rem; 
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.styled-list li { margin-bottom: 0.8rem; font-size: 1.05rem; }
.styled-list.checks li::before { content: "✓"; color: var(--highlight); margin-right: 10px; font-weight: bold; }

/* Block: "Что может лить эта машина" */
.make-section { background: var(--primary-bg); padding: 6rem 0; }
.make-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.8rem; margin-top: 2.5rem; }
.make-grid.transparent-blue .make-card {
    background: #2a2d33;
    border: 2px solid rgba(79, 199, 182, 0.4);
    transition: var(--transition);
}
.make-grid.transparent-blue .make-card:hover {
    border-color: var(--highlight);
    box-shadow: 0 0 20px rgba(79, 199, 182, 0.15);
}
.make-card { color: #fff; border-radius: 8px; padding: 2rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }

/* 2. Futura PT font applied to "Что может лить эта машина" titles text */
.make-card, 
.make-card h4, 
.make-card p {
    font-family: 'Futura PT', Futura, sans-serif !important;
}

.make-card h4 { font-size: 1.2rem; color: var(--highlight); margin-bottom: 0.8rem; }
.make-card p { font-size: 0.95rem; color: #c0c4c8; }
.card-emoji { font-size: 2.5rem; margin-bottom: 1rem; }

.btn-example {
    background: transparent; 
    color: var(--highlight); 
    border: none; 
    font-family: var(--font-ui); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 600; 
    margin-top: 1.5rem; 
    cursor: pointer; 
    text-align: left; 
    padding: 0; 
    transition: color 0.2s, transform 0.2s;
    font-size: 1.8rem;
}
.btn-example:hover { 
    color: #fff; 
    transform: translateX(5px);
}

/* Specifications Table */
.spec-section { background: var(--secondary-bg); padding: 6rem 2rem; }
.spec-inner { max-width: 1000px; margin: 0 auto; }
.spec-table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); background: var(--dark-panel); border-radius: 10px; overflow: hidden; color: #fff; }
.spec-table tr:nth-child(even) { background: rgba(255,255,255,0.03); }
.spec-table td { padding: 1.2rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.spec-table td:first-child { font-weight: 600; color: var(--highlight); width: 45%; }
.spec-table.right-aligned td:last-child { text-align: right; padding-right: 2rem; }

/* Photo Gallery - Creative Screen-Wide Grid */
.gallery-section { padding: 6rem 0; max-width: 100%; margin: 0 auto; }
.gallery-section h2 { padding-left: 2rem; }
.gallery-grid.wide-square { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
    gap: 8px; 
    width: 100%;
}
.gallery-grid.wide-square .gallery-item {
    aspect-ratio: auto;
    border-radius: 0;
    cursor: pointer;
    overflow: hidden;
    background: #000;
    position: relative;
}
.gallery-item:nth-child(4n - 3) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(5n) { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.gallery-item:hover img { transform: scale(1.05); }

/* Video Block & Pure CSS Play Button Tiles */
.video-section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; text-align: center; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.8rem; margin-top: 2rem; }
.video-tile { aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.3); position: relative; cursor: pointer; }
.video-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.3s;
}
.video-tile:hover .vid-overlay { background: rgba(0,0,0,0.3); }

/* Play Button using pure CSS to avoid mobile emojis */
.play-btn {
    width: 80px; height: 80px; 
    background: var(--highlight); 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    margin-bottom: 1rem; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    color: transparent;
    font-size: 0;
}
.play-btn::after {
    content: '';
    display: block;
    width: 0; height: 0;
    border-top: 14px solid transparent;
    border-left: 22px solid var(--text-color);
    border-bottom: 14px solid transparent;
    margin-left: 6px;
}

.vid-title { font-family: var(--font-head); font-size: 1.5rem; color: #fff; text-transform: uppercase; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* Quiz Styles */
.quiz-section { background: var(--dark-panel); color: #fff; padding: 6rem 2rem; }
.quiz-inner { max-width: 750px; margin: 0 auto; background: #16181b; padding: 3rem 2.5rem; border-radius: 12px; border: 1px solid rgba(152, 234, 223, 0.2); }
.quiz-step { display: none; animation: fadeIn 0.4s ease; }
.quiz-step.active { display: block; }
.quiz-option { display: block; margin: 1rem 0; padding: 1rem; background: #22252a; border-radius: 6px; cursor: pointer; transition: var(--transition); }
.quiz-option:hover { background: #2c3037; border-left: 4px solid var(--highlight); }
.quiz-option input[type="radio"] { display: none; }
.quiz-result { display: none; text-align: center; padding: 2rem 0; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Contact Section & Phone Hover Effect */
.contact-section { text-align: center; padding: 6rem 2rem 8rem; background-color: var(--text-color); color: var(--primary-bg); border-top: 5px solid var(--highlight); }

.phone { 
    display: block; 
    font-family: var(--font-ui); 
    font-size: clamp(2.2rem, 5vw, 4.5rem); 
    color: var(--highlight); 
    text-decoration: none; 
    margin: 1.5rem 0 2.5rem; 
    font-weight: 700; 
    transition: var(--transition);
}
.phone:hover {
    color: #ffffff;
    text-shadow: 0 0 15px var(--highlight), 0 0 30px var(--highlight-deep);
}

.tg-btn { display: inline-flex; padding: 1.4rem 3rem; background-color: var(--highlight); color: var(--text-color); text-decoration: none; border-radius: 60px; font-weight: 700; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); }
.tg-btn:hover { background: #aef3e9; transform: translateY(-3px); }
.office-info { margin-top: 2rem; font-size: 1.1rem; color: #eef0f1; }
.address-bold { font-weight: 700; margin: 0.5rem 0; font-size: 1.2rem; }
.metro-line { display: flex; align-items: center; justify-content: center; font-family: var(--font-ui); font-weight: 600; color: #ccc; }
.orange-dot { display: inline-block; width: 12px; height: 12px; background: #FF8C00; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 8px rgba(255, 140, 0, 0.6); }
.map-container { margin-top: 3.5rem; width: 100%; max-width: 1000px; height: 380px; border-radius: 12px; overflow: hidden; margin-left: auto; margin-right: auto; border: 2px solid var(--highlight); }

/* Catalogue Layout */
.catalogue-wrapper { padding: 9rem 2rem 5rem; max-width: 1400px; margin: 0 auto; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; width: 100%; }
.catalogue-card { background: var(--dark-panel); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card-img-container { width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #121315; }
.card-img-container img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-details { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-details h3 { font-family: var(--font-head); font-size: 1.25rem; color: #fff; margin-bottom: 0.6rem; }
.card-details p { font-family: var(--font-body); font-size: 0.95rem; color: #b9bdc1; margin-bottom: 1.2rem; flex-grow: 1; }
.card-price { font-family: var(--font-ui); font-size: 1.3rem; font-weight: 700; color: var(--highlight); }

/* Contacts Overlay Modal */
.contacts-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 16, 18, 0.95); backdrop-filter: blur(8px); z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.contacts-overlay.active { opacity: 1; pointer-events: all; }
.contacts-overlay-content { background: var(--text-color); color: var(--primary-bg); padding: 3rem 2rem; border-radius: 12px; border-top: 5px solid var(--highlight); max-width: 700px; width: 90%; position: relative; text-align: center; max-height: 90vh; overflow-y: auto; }
.close-overlay-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

/* Admin Panel */
.admin-container { padding: 8rem 2rem 5rem; max-width: 950px; margin: 0 auto; }
.admin-card { background: var(--dark-panel); color: #fff; padding: 2.5rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.admin-input-group { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 1.5rem; }
.admin-input { font-family: var(--font-ui); padding: 1rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15); background: #141518; color: #fff; font-size: 1rem; }

.btn-admin-add-large {
    width: 100%;
    padding: 1.8rem 2.5rem;
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--highlight);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(152, 234, 223, 0.3);
    margin-bottom: 2.5rem;
}
.btn-admin-add-large:hover {
    background: #aef3e9;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(152, 234, 223, 0.5);
}

.crop-preview-container { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin: 1rem 0; }
.crop-preview-box { 
    width: 300px; 
    height: 400px; 
    border: 2px dashed var(--highlight); 
    border-radius: 6px; 
    overflow: hidden !important; 
    background: #090a0b; 
    position: relative; 
    cursor: grab;
    touch-action: none;
}
.crop-preview-box:active { cursor: grabbing; }
.crop-preview-box canvas { display: block; width: 100%; height: 100%; }

.scale-control-row { display: flex; align-items: center; gap: 1rem; width: 100%; max-width: 300px; font-family: var(--font-ui); }
.scale-control-row label { font-size: 0.9rem; text-transform: uppercase; color: var(--highlight); }
.scale-control-row input[type="range"] { flex: 1; accent-color: var(--highlight); cursor: pointer; }

.admin-item-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.admin-item-row { display: flex; justify-content: space-between; align-items: center; background: #16181b; padding: 1.2rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.bin-btn { background: transparent; border: none; font-size: 1.5rem; cursor: pointer; color: #ff6b6b; transition: transform 0.2s; }
.bin-btn:hover { transform: scale(1.25); }

.btn-act-save { background: var(--highlight); color: var(--text-color); padding: 1rem 2rem; border: none; border-radius: 6px; font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; cursor: pointer; }
.btn-cancel-red { background: #e74c3c; color: #fff; border: none; padding: 1rem 2rem; font-family: var(--font-ui); text-transform: uppercase; font-weight: 600; border-radius: 6px; cursor: pointer; }

.precaution-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 100000; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.precaution-modal.active { opacity: 1; pointer-events: all; }
.precaution-box { background: #1f2125; color: #fff; padding: 2.5rem; border-radius: 10px; max-width: 480px; text-align: center; border: 1px solid #ff4d4d; }
.btn-danger-confirm { background: #ff2a2a; color: #fff; border: none; padding: 0.9rem 2rem; font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; border-radius: 6px; cursor: pointer; }

/* Universal Carousel Modal Overlay (Maximized size) */
.carousel-overlay {
    position: fixed; inset: 0; background: rgba(10, 12, 15, 0.9); backdrop-filter: blur(10px); z-index: 100000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.carousel-overlay.active { opacity: 1; pointer-events: all; }
.carousel-close { position: absolute; top: 30px; right: 40px; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; z-index: 2; }
.carousel-btn { background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 2rem; width: 60px; height: 60px; border-radius: 50%; cursor: pointer; transition: background 0.2s; position: absolute; z-index: 2; }
.carousel-btn:hover { background: var(--highlight); color: var(--dark-panel); }
.prev-btn { left: 40px; }
.next-btn { right: 40px; }
.carousel-content { display: flex; flex-direction: column; align-items: center; max-width: 95vw; max-height: 95vh; position: relative; }
.carousel-content img { max-width: 95vw; max-height: 95vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); object-fit: contain; }
.carousel-text-panel { text-align: center; margin-top: 1.5rem; color: #fff; display: none; }
.carousel-text-panel h3 { font-size: 1.8rem; color: var(--highlight); margin-bottom: 0.5rem; }
.carousel-text-panel p { font-size: 1.1rem; color: #ccc; }

footer { padding: 3rem 1rem; background: #16181b; color: #888; font-family: var(--font-ui); font-size: 0.85rem; text-align: center; }

.tall-text { transform: scaleY(1.1); display: inline-block; }
.bold-stat { font-weight: 900; }

@media (max-width: 1024px) {
    .catalogue-grid { grid-template-columns: repeat(2, 1fr); }
    .compare-grid { grid-template-columns: 1fr; }
    .desc-layout { flex-direction: column; }
}

@media (max-width: 768px) {
    .desc-layout { 
        flex-direction: column; 
        background: url('9.png') center/cover no-repeat;
        position: relative;
        padding: 2rem;
        border-radius: 12px;
        overflow: hidden;
        z-index: 1;
    }
    .desc-layout::before {
        content: '';
        position: absolute; inset: 0;
        background: rgba(31, 33, 37, 0.85);
        z-index: -1;
    }
    .desc-text { color: #fff; }
    .desc-text .big-header { background: #121315; }
    .desc-img { display: none; }
}

@media (max-width: 640px) {
    .catalogue-grid { grid-template-columns: 1fr; }
    .top-nav { padding: 0.8rem 1rem; }
    .nav-left { gap: 0.6rem; }
    .top-logo { height: 30px; }
    .nav-catalogue-btn { font-size: 1.05rem; padding: 0.2rem 0.4rem; }
    .nav-contacts-btn { font-size: 0.75rem; padding: 0.5rem 1rem; letter-spacing: 0.5px; }
    .btn-example { font-size: 1.3rem; }
    .gallery-grid.wide-square { 
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important; 
        grid-auto-rows: 160px;
        gap: 4px;
    }
    .gallery-item:nth-child(4n - 3), .gallery-item:nth-child(5n) { 
        grid-column: span 1 !important; 
        grid-row: span 1 !important; 
    }
}

/* --- 1. ЛМД-2 СЕКЦИЯ (СКРОЛЛБАР УДАЛЕН) --- */
.desc-tiles-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none !important; /* Убран скроллбар для Firefox */
}
.desc-tiles-container::-webkit-scrollbar { 
    display: none !important; /* Убран скроллбар для Chrome, Safari, Edge */
}

.desc-tile {
    flex: 1 1 350px;
    min-width: 300px;
    background: transparent;
    border-top: 4px solid var(--highlight-deep);
    padding-top: 1.5rem;
    scroll-snap-align: start;
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.desc-tile img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.desc-tile p {
    font-size: 1.15rem;
    line-height: 1.5;
    color: #131d22;
}
.desc-tile:hover {
    transform: translateY(-8px);
    border-color: #fff;
}
.desc-tile:hover img {
    transform: scale(1.05);
}

/* --- ЧТО МОЖЕТ ЛИТЬ - В ОДИН РЯД НА ВСЕХ ЭКРАНАХ --- */
.make-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    flex-wrap: nowrap;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
}
.make-grid::-webkit-scrollbar { display: none; }
.make-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .carousel-btn { display: none !important; }
}

/* =========================================
   3. СТИЛИ ДЛЯ КВАЛИФИКАЦИОННОГО ОПРОСА
========================================= */
.quiz-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}
.quiz-bar {
    height: 100%;
    background: var(--highlight);
    width: 0%;
    transition: width 0.4s ease;
}
.quiz-step-label {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--highlight);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.quiz-q {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.quiz-opt {
    background: #22252a;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 6px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.quiz-opt:hover {
    background: #2c3037;
    border-left: 4px solid var(--highlight);
}
.quiz-input {
    width: 100%;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: #141518;
    color: #fff;
    font-family: var(--font-ui);
    margin-bottom: 1rem;
}
.quiz-optional {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}
.quiz-submit {
    width: 100%;
    padding: 1rem;
    background: var(--highlight);
    color: var(--text-color);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 1rem;
}
.quiz-back {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    margin-top: 1.5rem;
    font-family: var(--font-ui);
    text-transform: uppercase;
    display: block;
    width: 100%;
    text-align: center;
}
.quiz-back:hover { color: #fff; }