/* Google Fonts */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

:root {
    --primary-color: #003366;
    /* Deep Navy Blue */
    --secondary-color: #0055A4;
    /* Brighter Blue */
    --accent-color: #C0C0C0;
    /* Silver/Metallic */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --white: #ffffff;
    --border-color: #ddd;
}

/* Base Styles */
h1,
h2,
h3 {
    margin: 0;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

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

.bg-light {
    background-color: var(--light-bg);
}

.bg-light-blue {
    background-color: #eef5fc;
    /* Soft blue background for contrast */
}

.bg-dark {
    background-color: var(--primary-color);
    color: white !important;
}

/* ... Buttons ... */

/* Quality Section - Clean Redesign (No BG Image) */
.quality-section-clean {
    background-color: white;
    padding: 100px 0;
    position: relative;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Icons for quality section checkmarks */
.quality-section-clean .cert-check {
    color: var(--secondary-color);
    font-size: 28px;
    margin-right: 8px;
    background: #eef5fc;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    display: inline-block;
}

.quality-section-clean .cert-item {
    font-size: 20px;
    color: #333;
}

.quality-section-clean .quote {
    color: var(--primary-color);
    border-left: 5px solid var(--secondary-color);
    background: #fafafa;
    padding: 20px 30px;
    border-radius: 0 8px 8px 0;
}

.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #002a52;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: white;
    /* Reverted to white for gradient bg */
    border: 2px solid white;
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-color);
}

.nav-list a.btn-primary {
    color: white;
    padding: 8px 20px;
}

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #999;
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 800;
}

.mobile-menu-btn {
    display: none;
    /* Hidden on desktop */
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    /* Gradient overlay: Dark at top (0.7 opacity) fading to transparent at 60% down, allowing bottom image visibility */
    background: linear-gradient(to bottom, rgba(0, 51, 102, 0.8) 0%, rgba(0, 51, 102, 0.4) 40%, rgba(0, 51, 102, 0) 80%), url('../hero.png') no-repeat center bottom/cover;
    background-color: #f0f4f8;
    display: flex;
    align-items: flex-start;
    /* Move content to top */
    padding-top: 100px;
    /* More space from top */
    color: white;
    /* White text for contrast against dark gradient */
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.1;
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Common Section Header */
.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.line {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Profile - Modern Redesign (Glassmorphism) */
.profile-section {
    /* Use bg_profile.png if available, with a nice geometric fallback */
    background: url('../bg_profile.png') no-repeat center center/cover,
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iZyIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+PHN0b3Agb2ZZnNldD0iMCIgc3RvcC1jb2xvcj0iI2Y1ZjdmYSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2MzY2ZlMiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9JzEwMCUnIGZpbGw9InVybCgjZykiLz48L3N2Zz4=');
    background-blend-mode: normal;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Abstract shapes for background depth */
.profile-section::before,
.profile-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.profile-section::before {
    width: 300px;
    height: 300px;
    background: rgba(0, 85, 164, 0.15);
    top: -50px;
    left: -50px;
}

.profile-section::after {
    width: 400px;
    height: 400px;
    background: rgba(0, 51, 102, 0.1);
    bottom: -100px;
    right: -100px;
}

.profile-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.05);
}

/* Modern Typography Focus */
.profile-text p {
    font-size: 26px;
    line-height: 1.6;
    font-weight: 300;
    color: #003366;
    margin: 0;
}

.profile-text::before {
    content: "“";
    display: block;
    font-size: 100px;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: -50px;
    opacity: 0.2;
    font-family: serif;
}


/* Competencies Grid - Adjusted for 5 items */
.grid-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
    flex: 1 1 300px;
    /* Grow, Shrink, Basis */
    max-width: 350px;
    /* Limit width */
}

.card:hover {
    transform: translateY(-5px);
}

.card .icon {
    font-size: 40px;
    margin-bottom: 20px;
    background: #f0f4f8;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    color: var(--secondary-color);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Quality */
.quality-content {
    max-width: 800px;
    margin: 0 auto;
}

.cert-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.cert-item {
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-check {
    color: var(--secondary-color);
    font-size: 24px;
}

.quote {
    font-style: italic;
    font-size: 20px;
    color: #555;
    margin-top: 30px;
    font-weight: 500;
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    display: inline-block;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-table th,
.product-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.product-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.product-table tr:hover {
    background-color: #f1f1f1;
}

/* Tech & QA */
.tech-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.badge {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
}

.highlight-text {
    font-size: 24px;
    color: var(--secondary-color);
}

/* Global */
.section.bg-dark h3 {
    margin-top: 20px;
    color: #ddd;
}

/* Contact Form */
.contact-section {
    background-color: #f8f9fa;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.full-width {
    grid-column: span 2;
}

.full-width-btn {
    grid-column: span 2;
    margin-top: 20px;
}

label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

input,
textarea,
select {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border 0.3s;
    background-color: #fafafa;
}

input:focus,
textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 85, 164, 0.1);
}

/* Footer */
.footer {
    background-color: #111;
    color: #888;
    padding: 30px 0;
    font-size: 14px;
}

/* Responsive - base mobile rules (kept for compatibility) */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        width: 30px;
        height: 25px;
        position: relative;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        margin-bottom: 5px;
    }
}

/* Update: Card visuals & SVG integration */
.card .icon svg {
    vertical-align: middle;
    width: 50px;
    height: 50px;
    color: var(--secondary-color);
}

/* Fallback Tech Backgrounds (Clean CSS Patterns) */
.pattern-wafer {
    background-color: #001f3f;
    /* Dark background base */
    /* Placeholder Pattern (Will show if bg_wafer.png is missing) */
    background-image: url('../bg_wafer.png'), radial-gradient(#003366 1px, transparent 1px), radial-gradient(#003366 1px, transparent 1px);
    background-position: center center, 0 0, 25px 25px;
    background-size: cover, 50px 50px, 50px 50px;
    background-repeat: no-repeat, repeat, repeat;
    color: white;
    /* White text for readability against dark wafer */
    position: relative;
    overflow: hidden;
}

.pattern-wafer::before {
    /* Dark overlay to ensure text pops against busy wafer image */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 31, 63, 0.75);
    z-index: 0;
}

.pattern-wafer .container {
    position: relative;
    z-index: 1;
}

.pattern-wafer h2,
.pattern-wafer p,
.pattern-wafer .highlight-text,
.pattern-wafer .badge {
    color: white !important;
    border-color: white !important;
}

.pattern-wafer .badge {
    background: rgba(255, 255, 255, 0.1);
}

.pattern-wafer .highlight-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    /* Glow effect */
}

/* Separator Styling for Tech Section */
.separator {
    color: var(--secondary-color) !important;
    /* Bright Blue/Cyan to pop */
    font-weight: bold;
    margin: 0 5px;
}

/* Quality Section - Clean Redesign (With Subtle Image Background) */
.quality-section-clean {
    position: relative;
    /* Cleanroom background restored with white overlay for readability */
    background: url('../bg_cleanroom.png') no-repeat center center/cover;
    padding: 100px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.quality-section-clean::before {
    /* White overlay to keep it clean but show image texture */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    /* 50% White Opacity - Increased visibility */
    z-index: 0;
}

.quality-section-clean .container {
    position: relative;
    z-index: 1;
}

/* Icons for quality section checkmarks */
.quality-section-clean .cert-check {
    color: var(--secondary-color);
    font-size: 28px;
    margin-right: 8px;
    background: #eef5fc;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    display: inline-block;
}

.quality-section-clean .cert-item {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.quality-section-clean .quote {
    color: var(--primary-color);
    border-left: 5px solid var(--secondary-color);
    background: rgba(255, 255, 255, 0.9);
    /* Slightly more opaque background for quote */
    padding: 20px 30px;
    border-radius: 0 8px 8px 0;
    margin-top: 40px;
    font-style: italic;
    font-weight: 500;
    display: inline-block;
    /* Center aligned properly */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.bg-light-blue {
    background-color: #eef5fc;
    /* Soft blue background for contrast */
}

/* Global Network Background */
.global-section {
    position: relative;
    background: url('../bg_network.png') no-repeat center 10%/cover;
    /* Shifted up to show more map */
    background-color: #001f3f;
    color: white;
    overflow: hidden;
}

.global-section::after {
    /* Dark overlay for text readability */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.6);
    z-index: 0;
}

.global-section .container {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════
   HERO MOSAIC (2×2 GRID)
═══════════════════════════════════════════════ */
.hero {
    position: relative;
    height: 720px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background: none;
    padding-top: 0;
}

.hero-mosaic {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
}

.hero-mosaic-item {
    background-size: cover;
    background-position: center;
    transition: transform 8s ease;
    transform: scale(1.05);
    animation: mosaicZoom 12s ease-in-out infinite alternate;
}

.hero-mosaic-item:nth-child(2) { animation-delay: -3s; }
.hero-mosaic-item:nth-child(3) { animation-delay: -6s; }
.hero-mosaic-item:nth-child(4) { animation-delay: -9s; }

@keyframes mosaicZoom {
    from { transform: scale(1.0); }
    to   { transform: scale(1.06); }
}

#particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 15, 50, 0.82) 0%,
        rgba(0, 40, 90, 0.58) 50%,
        rgba(0, 15, 50, 0.72) 100%
    );
    z-index: 2;
}

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

/* dots: 데스크탑에서 숨김 (모자이크 사용) */
.hero-dots {
    display: none;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-dot.active {
    background: white;
    transform: scale(1.35);
}

/* ═══════════════════════════════════════════════
   PRODUCT PHOTO GALLERY
═══════════════════════════════════════════════ */
.gallery-subtitle {
    color: #666;
    font-size: 15px;
    margin-top: 8px;
}

.product-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.gallery-item {
    position: relative;
    flex: 0 0 calc(25% - 11px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 51, 102, 0.12);
    background: #e8eef5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.6), rgba(0, 85, 164, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 42px;
    color: white;
    font-weight: 200;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

/* ═══════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

#lightbox-img {
    max-width: 88vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lbFadeIn 0.25s ease;
}

@keyframes lbFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 44px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 70px;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    cursor: pointer;
    padding: 10px 22px;
    border-radius: 6px;
    opacity: 0.65;
    transition: all 0.2s;
    line-height: 1;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; background: rgba(255, 255, 255, 0.18); }

/* ═══════════════════════════════════════════════
   TABLET (≤1024px)
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .gallery-item {
        flex: 0 0 calc(33.333% - 10px);
    }
}

/* ═══════════════════════════════════════════════
   MOBILE (≤768px)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* --- Header & Nav --- */
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header-container {
        padding: 0 16px;
    }

    .lang-switch {
        margin-right: 8px;
    }

    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 999;
    }

    .nav.nav-open {
        max-height: 340px;
    }

    .nav-list {
        display: flex !important;
        flex-direction: column;
        padding: 20px 24px;
        gap: 18px;
    }

    .mobile-menu-btn span {
        transition: transform 0.3s, opacity 0.3s;
        transform-origin: center;
    }

    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 8px);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -8px);
    }

    /* --- Hero 모바일: 데스크탑과 동일한 모자이크 배경 --- */
    .hero {
        height: 100svh;
        min-height: 500px;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .hero-mosaic {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }

    .hero-content {
        padding: 0 20px;
        width: 100%;
        max-width: none;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
    }

    .hero h1 {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .hero p {
        font-size: 15px;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-dots {
        display: none;
    }

    /* --- Profile section --- */
    .profile-section {
        padding: 60px 0;
    }

    .profile-content {
        padding: 32px 20px;
    }

    .profile-text p {
        font-size: 18px;
    }

    /* --- Competencies cards --- */
    .grid-centered {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: none;
    }

    /* --- Contact form --- */
    .contact-form {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .full-width-btn {
        grid-column: span 1;
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }

    /* --- Gallery --- */
    .product-gallery {
        gap: 8px;
    }

    .gallery-item {
        flex: 0 0 calc(50% - 4px);
    }

    /* --- Lightbox --- */
    .lightbox-prev { left: 4px; padding: 8px 12px; font-size: 50px; }
    .lightbox-next { right: 4px; padding: 8px 12px; font-size: 50px; }

    /* --- Section padding reduction --- */
    .section {
        padding: 56px 0;
    }

    .quality-section-clean {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    /* --- Profile decorative quote mark --- */
    .profile-text::before {
        font-size: 60px;
        margin-bottom: -30px;
    }

    .profile-text p {
        font-size: 17px;
    }

    /* --- Quality quote --- */
    .quality-section-clean .quote {
        padding: 16px 20px;
        font-size: 15px;
        text-align: left;
        display: block;
        width: 100%;
    }

    .quality-section-clean .cert-item {
        font-size: 16px;
    }

    /* --- Tech badges --- */
    .tech-badges {
        gap: 12px;
    }

    /* --- Global section text --- */
    .global-section h3 {
        font-size: 18px;
    }

    /* --- Footer --- */
    .footer {
        padding: 20px 0;
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════
   SMALL MOBILE (≤480px)
═══════════════════════════════════════════════ */
@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 calc(50% - 4px);
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero p {
        font-size: 14px;
    }

    .cert-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}