/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c50018;
    --secondary-color: #033560;
    --accent-color: #8abc60;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

/* Utility Classes */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.discontinued { color: var(--primary-color); font-size: 14px; }

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo img {
    height: 50px;
    width: auto;
}

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

.nav-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    font-size: 12px;
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-menu img {
    height: 30px;
    margin-bottom: 5px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Main Content */
.site-main {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
}

.main-content {
    background: #fff;
}

/* Video Section */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* News Section */
.news-section h2 {
    background: var(--bg-color);
    padding: 12px 20px;
    margin-bottom: 20px;
    font-size: 18px;
    border-left: 4px solid var(--primary-color);
}

.news-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
}

.news-box::-webkit-scrollbar {
    width: 8px;
}

.news-box::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

.news-box::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.news-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

.news-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.news-item a:hover {
    text-decoration: underline;
}

/* Intro Section */
.intro-section h2 {
    background: var(--bg-color);
    padding: 12px 20px;
    margin: 30px 0 20px;
    font-size: 18px;
    border-left: 4px solid var(--primary-color);
}

.full-width-img {
    width: 100%;
    height: auto;
    margin: 20px 0;
}

.catalog-img {
    max-width: 350px;
    display: block;
    margin: 0 auto;
    transition: var(--transition);
}

.catalog-link:hover .catalog-img {
    transform: scale(1.05);
}

/* Tabs */
.tabs {
    margin: 40px 0;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-button:hover {
    background: var(--bg-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Product Grid - 3 cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    background: white;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-card a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: var(--text-color);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.product-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Scene Section */
.scene-title {
    background: var(--bg-color);
    padding: 12px 20px;
    margin: 40px 0 20px;
    font-size: 16px;
    border-left: 4px solid var(--primary-color);
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

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

.scene-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: var(--transition);
}

.scene-item:hover img {
    transform: scale(1.05);
}

.scene-item p {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-light);
}

/* Company Info */
.company-info {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 8px;
}

.company-info h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.company-info p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Product Table */
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.product-table th {
    background: var(--bg-color);
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary-color);
}

.product-table td {
    padding: 12px;
    border: 1px solid var(--border-color);
    font-size: 14px;
}

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

/* Contact Form */
.contact-section {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(197, 0, 24, 0.1);
}

.form-group input[type="email"]:nth-of-type(2) {
    margin-top: 10px;
}

.required {
    color: var(--primary-color);
    font-size: 12px;
    margin-left: 5px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

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

.btn-submit,
.btn-reset {
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

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

.btn-submit:hover {
    background: #a50014;
    transform: translateY(-2px);
}

.btn-reset {
    background: var(--text-light);
    color: white;
}

.btn-reset:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Sidebar */
.sidebar {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar h2 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.sidebar-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-of-type {
    border-bottom: none;
}

.sidebar-section h3 {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.sidebar-section p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.sidebar-img-link {
    display: block;
    text-align: center;
    margin-bottom: 15px;
}

.sidebar-img-link img {
    transition: var(--transition);
}

.sidebar-img-link:hover img {
    transform: scale(1.1);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: block;
    padding: 10px 0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.sidebar-menu a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.sidebar-menu small {
    display: block;
    color: var(--text-light);
    font-size: 11px;
    margin-bottom: 2px;
}

.sidebar-menu strong {
    display: block;
    font-size: 13px;
}

.sidebar-links {
    margin-top: 30px;
}

.link-button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: white;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.link-button:hover {
    background: var(--primary-color);
    color: white;
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--text-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 0.7;
    visibility: visible;
}

.scroll-top:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* Note Text */
.note {
    text-align: right;
    color: var(--primary-color);
    font-size: 13px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--border-color);
        display: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        border-left: 3px solid transparent;
    }
    
    .tab-button.active {
        border-left-color: var(--primary-color);
        border-bottom-color: transparent;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .scene-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-table {
        font-size: 12px;
    }
    
    .product-table th,
    .product-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .contact-section {
        padding: 20px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-submit,
    .btn-reset {
        width: 100%;
    }
    
    .scene-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar-menu small {
        font-size: 10px;
    }
    
    .sidebar-menu strong {
        font-size: 12px;
    }
}