/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1a4d7a;
    --primary-dark: #0d2840;
    --primary-darker: #0a1929;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --white: #ffffff;
    --overlay: rgba(13, 40, 64, 0.90);
    --overlay-light: rgba(26, 77, 122, 0.82);
    --text-light: rgba(255,255,255,0.82);
}

* { margin:0; padding:0; box-sizing:border-box; }


/* Language switcher link */
.top-bar-right {
    display: flex;
    align-items: center;
}
.lang-link {
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #555;
    border-radius: 4px;
    transition: all 0.2s;
}
.lang-link:hover {
    color: #fff;
    border-color: #f2732e;
    background: rgba(242,115,46,0.15);
}

body {
    font-family: 'Inter', 'Noto Sans', sans-serif;
    background: var(--primary-darker);
    color: #1a2a3a;
    overflow-x: hidden;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: rgba(10,25,41,0.95);
    color: #aaa;
    font-size: 12px;
    padding: 7px 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left span { margin-right: 18px; }
.top-bar-left span:last-child { margin-right:0; }
.lang-switch-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc;
    padding: 3px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}
.lang-switch-btn:hover {
    background: rgba(230,126,34,0.2);
    border-color: var(--accent);
    color: #fff;
}

/* ===== HEADER ===== */
.header {
    background: rgba(13,40,64,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    position: fixed;
    top: 32px; left: 0; right: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-img {
    height: 44px;
    width: auto;
}
.logo-text { display:none; }
.logo-main {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.logo-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.main-nav { display:flex; gap:6px; }
.nav-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(230,126,34,0.15);
}
.btn-orange {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-orange:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); }
.btn-lg { padding: 12px 28px; font-size: 14px; }
.btn-sm { padding: 6px 16px; font-size: 12px; }
.btn-blue {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-blue:hover { background: #2a6dba; }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ===== HER0 COVER (brochure P1 style) ===== */
.hero-cover {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 80px;
}
.hero-bg-img {
    position: absolute;
    inset: 0;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}
.hero-bg-fade {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,
        rgba(8,18,30,0.96) 0%,
        rgba(10,28,50,0.92) 18%,
        rgba(13,40,70,0.78) 35%,
        rgba(18,55,90,0.45) 52%,
        rgba(26,75,120,0.10) 68%,
        transparent 82%
    );
    z-index: 1;
    pointer-events: none;
}
.hero-bg-edge-right {
    position: absolute;
    right: 0; top: 0;
    width: 10%; height: 100%;
    background: linear-gradient(270deg, rgba(0,0,0,0.18) 0%, transparent 100%);
    z-index: 2; pointer-events: none;
}
.hero-bg-edge-left {
    position: absolute;
    left: 0; top: 0;
    width: 6%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, transparent 100%);
    z-index: 2; pointer-events: none;
}
.hero-overlay {
    position: absolute;
    left: 0; top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(160deg, rgba(8,18,32,0.88) 0%, rgba(13,40,64,0.72) 70%, rgba(18,54,84,0.55) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 56px;
    z-index: 3;
}
.hero-logo-wrap {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 16px;
    background: radial-gradient(ellipse at center, rgba(110,180,255,0.12) 0%, transparent 70%);
    margin-bottom: 8px;
    width: fit-content;
}
.hero-logo-ps {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}
.orange-bar {
    width: 56px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.hero-cover-title-main {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-cover-sub {
    font-size: 15px;
    font-weight: 300;
    opacity: 0.7;
    letter-spacing: 2.5px;
    margin-top: 10px;
    text-transform: uppercase;
}
.hero-cover-desc {
    font-size: 13px;
    opacity: 0.55;
    margin-top: 12px;
    line-height: 1.5;
}
.hero-cover-btns {
    margin-top: 32px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== SECTION COMMON ===== */
.section { padding: 70px 0; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.section-title.light, .section-title-light {
    color: #fff;
}
.section-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 640px;
}
.section-desc.light, .section-desc-light {
    color: rgba(255,255,255,0.6);
}

/* ===== PRODUCTS MATRIX (brochure P13 style) ===== */
.section-dark {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 70px 0;
}
.products-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.matrix-item {
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}
.matrix-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.12);
}
.matrix-img-wrap {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 180px;
    overflow: hidden;
}
.matrix-item img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}
.matrix-item:hover img { transform: scale(1.08); }
.matrix-img-wrap::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 65%;
    background: linear-gradient(to top,
        rgba(8,20,34,0.95) 0%,
        rgba(8,20,34,0.70) 40%,
        rgba(8,20,34,0.20) 70%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}
.matrix-label {
    position: absolute;
    left: 0; bottom: 0;
    right: 0;
    padding: 14px 12px 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.45;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    color: #fff;
}
.matrix-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.08) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}
.matrix-extra {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    flex: 1;
    background: rgba(255,255,255,0.04);
}
.matrix-extra-inner { text-align: center; }
.matrix-extra-icon { font-size: 32px; margin-bottom: 8px; }
.matrix-extra-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}
.matrix-extra-desc { font-size: 11px; opacity: 0.6; color: #fff; }

/* ===== PRODUCT DETAIL PAGE (brochure P3-P12 style) ===== */
.section-product {
    padding: 0;
    position: relative;
}
.product-page {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}
.product-bg {
    position: absolute;
    inset: 0;
}
.product-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.product-bg-fade {
    position: absolute;
    left: 0; top: 0;
    width: 46%;
    height: 100%;
    background: linear-gradient(160deg, rgba(10,25,41,0.76) 0%, rgba(18,54,84,0.58) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
    pointer-events: none;
}
.product-overlay {
    position: absolute;
    left: 0; top: 0;
    width: 46%;
    height: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 48px;
    z-index: 2;
    overflow-y: auto;
}
.product-overlay::-webkit-scrollbar { width: 0; }
.prod-cat {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 6px;
}
.prod-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.35);
    white-space: nowrap;
}
.prod-title-ru {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.75;
    margin-bottom: 18px;
    line-height: 1.3;
}
.prod-desc {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
}
.prod-desc strong { color: var(--accent-light); }
.spec-section-title {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: 0.45;
    margin-bottom: 10px;
    margin-top: 4px;
}
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 20px;
}
.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
    line-height: 1.5;
}
.spec-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--accent);
}
.spec-key {
    font-weight: 600;
    opacity: 0.7;
    min-width: 78px;
    flex-shrink: 0;
}
.spec-val { opacity: 0.92; }
.spec-val em { font-style:normal; color:var(--accent-light); font-weight:600; }
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}
.tag {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
    color: #fff;
}
.tag-orange {
    border-color: var(--accent);
    color: var(--accent-light);
    opacity: 1;
}

/* ===== ADVANTAGES / PROFILE (brochure P2 style) ===== */
.section-profile {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 70px 0;
    color: #fff;
}
.section-profile-light {
    background: #f4f6f8;
    padding: 70px 0;
}
.profile-h {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
}
.profile-h-ru {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 36px;
    font-weight: 300;
    color: #fff;
}
.cap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 900px;
}
.cap-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 22px 26px;
    transition: all 0.3s;
}
.cap-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}
.cap-icon { font-size: 28px; margin-bottom: 8px; }
.cap-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}
.cap-name-ru {
    font-size: 11px;
    opacity: 0.5;
    margin-bottom: 8px;
    font-weight: 400;
}
.cap-desc {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.78;
    color: #fff;
}

/* ===== ABOUT ===== */
.about-grid-2 {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 48px;
    align-items: center;
}
.about-desc {
    font-size: 14px;
    line-height: 1.85;
    color: #444;
    margin-bottom: 20px;
}
.about-stats-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.about-stat-item {
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    text-align: center;
}
.about-stat-num {
    font-size: 38px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.about-stat-label {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 6px;
}

/* ===== INQUIRY ===== */
.inquiry-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 36px;
    align-items: start;
}
.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group { display:flex; flex-direction:column; gap:5px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}
.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height:80px; }
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
}
.inquiry-sidebar { display:flex; flex-direction:column; gap:18px; }
.sidebar-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 22px 24px;
    color: rgba(255,255,255,0.8);
}
.sidebar-box h3 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 10px;
}
.sidebar-box p {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 14px;
}
.sidebar-box p:last-child { margin-bottom:0; }
.sidebar-box strong { color:#fff; }

/* ===== FOOTER (brochure P14 style) ===== */
.footer-dark {
    background: linear-gradient(135deg, #0a1929 0%, var(--primary) 70%, #1a5a8c 100%);
    padding: 50px 0 24px;
    color: #fff;
}
.footer-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 700px;
    margin: 0 auto 36px;
}
.footer-contact-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: left;
}
.contact-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.4;
    margin-bottom: 5px;
}
.contact-val {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.footer-bottom-dark {
    text-align: center;
    font-size: 11px;
    opacity: 0.3;
    letter-spacing: 1.5px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-overlay.active { display:flex; }
.modal {
    background: var(--primary-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 36px 40px;
    width: 480px;
    max-width: 92vw;
    color: #fff;
    position: relative;
}
.modal h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.modal p {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 24px;
}
.modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    cursor: pointer;
}
.modal-close:hover { color:#fff; }
.modal .form-group { margin-bottom:14px; }

/* ===== SUCCESS TOAST ===== */
.success-toast {
    position: fixed;
    bottom: 32px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(13,40,64,0.95);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3000;
    pointer-events: none;
    white-space: nowrap;
}
.success-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== SMOOTH SCROLL ===== */
html { scroll-behavior: smooth; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .products-matrix { grid-template-columns: repeat(3, 1fr); }
    .hero-overlay { width: 60%; padding: 40px 36px; }
    .product-overlay { width: 55%; padding: 40px 32px; }
    .prod-title { font-size: 34px; }
}
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10,25,41,0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
        z-index: 998;
    }
    .main-nav.mobile-open { display:flex; }
    .main-nav .nav-link {
        font-size: 18px;
        padding: 14px 32px;
    }
    .mobile-menu-btn { display:block; z-index:999; position:relative; }
    .products-matrix { grid-template-columns: repeat(2, 1fr); }
    .hero-cover { min-height: 100vh; }
    .hero-overlay { width: 100%; background: linear-gradient(180deg, rgba(8,18,32,0.75) 0%, rgba(13,40,64,0.82) 100%); padding: 80px 24px 40px; }
    .hero-cover-title-main { font-size: 30px; }
    .product-page { min-height: auto; height: auto; }
    .product-bg { position:relative; height: 280px; }
    .product-overlay { position:relative; width:100%; padding: 28px 20px; }
    .product-bg-fade { width:100%; height:40%; top:auto; bottom:0; background: linear-gradient(to top, rgba(8,18,32,0.92) 0%, transparent 100%); }
    .spec-grid { grid-template-columns: 1fr; }
    .cap-grid { grid-template-columns: 1fr; }
    .about-grid-2 { grid-template-columns: 1fr; }
    .inquiry-grid { grid-template-columns: 1fr; }
    .footer-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .products-matrix { grid-template-columns: 1fr; }
    .hero-cover-title-main { font-size: 24px; }
    .prod-title { font-size: 26px; }
    .top-bar-left span { font-size: 11px; margin-right:10px; }
}
