:root {
    --blue: #1467e8;
    --blue-deep: #082d63;
    --ink: #111827;
    --muted: #667085;
    --line: #dfe5ec;
    --surface: #f4f7fa;
    --white: #fff;
    --coral: #f05a47;
    --navy: #09192f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--white); }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; letter-spacing: 0; }
button { color: inherit; }
img { max-width: 100%; }
.shell { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(223, 229, 236, .9);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
}

.navbar { display: grid; grid-template-columns: minmax(230px, 1fr) auto auto; align-items: center; min-height: 72px; gap: 22px; }
.identity { display: inline-flex; align-items: center; gap: 12px; min-width: 0; padding-left: 8px; font-weight: 900; }
.identity-mark { display: grid; place-items: center; flex: 0 0 auto; width: 58px; height: 58px; border-radius: 10px; color: #fff; background: var(--blue); box-shadow: 0 8px 18px rgba(20, 103, 232, .22); }
.identity-mark.has-image { overflow: hidden; padding: 0; color: transparent; background: #fff; border: 1px solid var(--line); }
.identity-mark.has-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.identity-copy { display: grid; min-width: 0; line-height: 1.18; }
.identity-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-copy span { color: var(--muted); font-size: .75rem; }
.site-menu { display: flex; align-items: center; gap: 2px; }
.site-menu a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 7px; color: #3b4658; font-size: .84rem; font-weight: 800; white-space: nowrap; }
.site-menu a:hover { color: var(--blue-deep); background: #edf4ff; }
.site-menu .mobile-account-link { display: none; }
.site-menu .logout-form { display: none; margin: 0; }
.site-menu .logout-form button { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #f4c7c3; border-radius: 8px; color: #b42318; background: #fff5f4; font: inherit; font-weight: 900; cursor: pointer; text-align: left; }
.site-menu .logout-form button:hover { color: #fff; border-color: #d92d20; background: #d92d20; }
.account { display: flex; align-items: center; gap: 8px; }
.account-link, .account-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue-deep); background: #fff; font-size: .82rem; font-weight: 900; cursor: pointer; }
.account-link.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.account form { margin: 0; }
.account-button { color: #fff; border-color: #d92d20; background: #d92d20; box-shadow: 0 10px 22px rgba(217, 45, 32, .18); }
.account-button:hover { border-color: #b42318; background: #b42318; }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 19px; height: 2px; background: currentColor; content: ""; }
.menu-toggle span { position: relative; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

@media (min-width: 1181px) {
    .site-header .shell {
        width: min(1180px, calc(100% - 56px));
    }
    .navbar {
        grid-template-columns: minmax(260px, 1fr) auto auto;
        min-height: 86px;
        gap: 30px;
    }
    .identity-mark {
        width: 66px;
        height: 66px;
        font-size: 1.08rem;
    }
    .identity-copy strong {
        font-size: 1.08rem;
    }
    .identity-copy span {
        font-size: .84rem;
    }
    .site-menu {
        gap: 8px;
    }
    .site-menu a {
        min-height: 50px;
        padding: 0 15px;
        font-size: .95rem;
    }
    .account-link,
    .account-button {
        min-height: 50px;
        padding: 0 18px;
        font-size: .93rem;
    }
}

.hero { position: relative; min-height: 560px; overflow: hidden; color: #fff; background: var(--navy); }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; transition: opacity .32s ease; }
.hero-image.changing { opacity: 0; }
.hero-overlay { background: linear-gradient(90deg, rgba(5, 20, 43, .94) 0%, rgba(5, 20, 43, .77) 44%, rgba(5, 20, 43, .2) 78%); }
.hero-inner { position: relative; z-index: 1; display: grid; align-items: center; min-height: 560px; padding: 54px 0 72px; }
.hero-content { display: grid; gap: 18px; width: min(610px, 100%); }
.kicker { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.kicker::before { width: 28px; height: 3px; background: var(--coral); content: ""; }
.hero h1 { margin: 0; font-size: clamp(3rem, 6vw, 5rem); line-height: .97; letter-spacing: 0; }
.hero p { max-width: 560px; margin: 0; color: #dce6f3; font-size: 1rem; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 8px; color: var(--blue-deep); background: #fff; font-weight: 900; }
.hero-stat { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px; background: rgba(255, 255, 255, .09); font-weight: 900; }
.hero-index { position: absolute; right: max(24px, calc((100vw - 1080px) / 2)); bottom: 34px; z-index: 2; color: rgba(255, 255, 255, .78); font-size: .78rem; font-weight: 900; }

.catalog-bar { position: relative; z-index: 4; margin-top: -28px; }
.catalog-bar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 92px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 18px 45px rgba(9, 25, 47, .12); }
.catalog-intro { display: grid; gap: 3px; }
.catalog-intro strong { font-size: 1.05rem; }
.catalog-intro span { color: var(--muted); font-size: .84rem; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue-deep); background: #fff; font-size: .8rem; font-weight: 900; }
.quick-links a:hover { border-color: #a8c8f8; background: #edf4ff; }

.section { padding: 72px 0; }
.section.alt { background: var(--surface); }
.section.dark { color: #fff; background: var(--navy); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.heading { display: grid; gap: 7px; }
.heading-label { color: var(--blue); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.dark .heading-label { color: #78adff; }
.heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.05; }
.heading p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.65; }
.dark .heading p { color: #9fb0c7; }
.section-count { color: var(--muted); font-size: .85rem; font-weight: 800; }

.product-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 22px; }
.search { display: flex; width: min(650px, 100%); padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.search input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search button { min-height: 40px; padding: 0 13px; border: 0; border-radius: 7px; color: var(--blue-deep); background: #edf4ff; font-weight: 900; cursor: pointer; }
.active-filter { min-width: 0; color: var(--blue-deep); font-size: .82rem; font-weight: 900; text-align: right; }

.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.product-card { appearance: none; display: grid; align-content: start; gap: 0; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(17, 24, 39, .045); cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-4px); border-color: #a9c7f5; box-shadow: 0 16px 34px rgba(20, 103, 232, .1); }
.product-image { display: block; aspect-ratio: 4/3; overflow: hidden; background: #eef2f7; }
.product-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.product-card:hover img { transform: scale(1.025); }
.product-copy { display: grid; gap: 8px; padding: 14px; }
.product-name { color: var(--ink); font-size: .95rem; font-weight: 900; line-height: 1.4; overflow-wrap: anywhere; }
.product-brand { width: fit-content; padding: 5px 8px; border-radius: 6px; color: var(--blue-deep); background: #edf4ff; font-size: .7rem; font-weight: 900; }

.brand-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.all-products { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border: 1px solid #34506f; border-radius: 8px; color: #fff; background: transparent; font-weight: 900; cursor: pointer; }
.all-products.active { color: var(--blue-deep); border-color: #fff; background: #fff; }
.brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.brand-card { appearance: none; display: grid; width: 100%; padding: 0; overflow: hidden; border: 1px solid #253a55; border-radius: 8px; color: #fff; background: #10243f; cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease; }
.brand-card:hover, .brand-card.active { transform: translateY(-3px); border-color: #78adff; }
.brand-image { display: block; aspect-ratio: 4/3; overflow: hidden; background: #172d49; }
.brand-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; }
.brand-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-info span { flex: 0 0 auto; color: #9eb0c6; font-size: .72rem; font-weight: 800; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.gallery-card { appearance: none; display: grid; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; text-align: left; }
.gallery-image { display: block; aspect-ratio: 4/3; overflow: hidden; background: #edf1f5; }
.gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.gallery-card:hover img { transform: scale(1.025); }
.gallery-caption { display: grid; gap: 6px; padding: 14px; }
.gallery-caption strong { font-size: .95rem; overflow-wrap: anywhere; }
.gallery-caption span { max-height: 3.1em; overflow: hidden; color: var(--muted); font-size: .82rem; line-height: 1.55; overflow-wrap: anywhere; }

.about-layout { display: grid; grid-template-columns: .62fr 1.38fr; gap: 56px; }
.about-lead { display: grid; align-content: start; gap: 18px; }
.about-lead p, .about-copy p { margin: 0; color: var(--muted); line-height: 1.82; }
.about-copy { display: grid; gap: 24px; }
.about-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.about-row:last-child { padding-bottom: 0; border-bottom: 0; }
.about-row strong { color: var(--blue-deep); }

.location-layout { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.location-copy { display: grid; align-content: center; gap: 15px; padding: 32px; border-right: 1px solid var(--line); }
.location-copy h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.location-copy p { margin: 0; color: var(--muted); line-height: 1.65; }
.location-link { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 44px; padding: 0 15px; border-radius: 8px; color: #fff; background: var(--blue); font-weight: 900; }
.map, .map iframe { min-height: 390px; }
.map { background: #eaf0f6; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

.social-band { border-top: 1px solid #203650; background: #0d213a; }
.social-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; color: #fff; }
.social-band-copy { display: grid; gap: 4px; }
.social-band-copy span { color: #91a4bc; font-size: .82rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { display: inline-flex; align-items: center; min-height: 39px; padding: 0 12px; border: 1px solid #334c69; border-radius: 8px; color: #fff; font-size: .78rem; font-weight: 900; }
.social-links a:hover { border-color: #78adff; background: #173a66; }

.footer { color: #dce5f0; background: var(--navy); }
.footer-main { display: grid; grid-template-columns: 1.45fr repeat(2, minmax(170px, 1fr)); gap: 36px; padding: 48px 0 34px; }
.footer-column { display: grid; align-content: start; gap: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: #fff; font-weight: 900; }
.footer-brand span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--blue); }
.footer-brand span.has-image { overflow: hidden; padding: 0; background: #fff; border: 1px solid #213650; }
.footer-brand span.has-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.footer-column h3 { margin: 0; color: #fff; font-size: .85rem; text-transform: uppercase; }
.footer-column p { max-width: 370px; margin: 0; color: #8fa1b8; line-height: 1.7; }
.contact-list { display: grid; gap: 9px; }
.contact-list a { width: fit-content; font-weight: 700; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 0 22px; border-top: 1px solid #213650; color: #8295ad; font-size: .8rem; }

.loader-wrap { display: grid; place-items: center; gap: 11px; min-height: 180px; color: var(--muted); font-size: .84rem; font-weight: 800; }
.dark .loader-wrap { color: #9fb0c7; }
.loader { width: 36px; height: 36px; border: 4px solid #dce8f8; border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; text-align: center; }
.dark .empty { color: #9fb0c7; border-color: #253a55; background: #10243f; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 25px; }
.pagination button, .pagination span { display: grid; place-items: center; min-width: 39px; min-height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--blue-deep); background: #fff; font-weight: 900; }
.pagination button { cursor: pointer; }
.pagination .active { color: #fff; border-color: var(--blue); background: var(--blue); }
.dark .pagination button, .dark .pagination span { color: #fff; border-color: #334c69; background: #10243f; }
.dark .pagination .active { border-color: var(--blue); background: var(--blue); }

.fade-item { opacity: 0; transform: translateY(12px); transition: opacity .38s ease, transform .38s ease; }
.fade-item.is-visible { opacity: 1; transform: none; }
.back-top { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 12px 28px rgba(20, 103, 232, .3); cursor: pointer; }

.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(4, 13, 26, .72); }
.modal.open { display: flex; }
.dialog { display: grid; grid-template-columns: .92fr 1.08fr; width: min(900px, 100%); max-height: calc(100vh - 40px); overflow: hidden; border-radius: 8px; background: #fff; }
.dialog-media { display: grid; place-items: center; min-height: 420px; border-right: 1px solid var(--line); background: #f3f6f9; }
.dialog-media img { display: block; width: 100%; max-height: 430px; object-fit: contain; }
.dialog-body { display: grid; align-content: start; gap: 17px; padding: 24px; overflow: auto; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.dialog-head h2 { margin: 0; font-size: 1.75rem; overflow-wrap: anywhere; }
.close { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 1.35rem; }
.details { max-height: 300px; overflow: auto; padding: 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fafbfd; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-wrap; }
.details::-webkit-scrollbar,
.gallery-dialog-copy::-webkit-scrollbar { width: 8px; }
.details::-webkit-scrollbar-track,
.gallery-dialog-copy::-webkit-scrollbar-track { border-radius: 999px; background: #edf3fb; }
.details::-webkit-scrollbar-thumb,
.gallery-dialog-copy::-webkit-scrollbar-thumb { border-radius: 999px; background: #9db8dc; }
.details::-webkit-scrollbar-thumb:hover,
.gallery-dialog-copy::-webkit-scrollbar-thumb:hover { background: #6f93c5; }
.gallery-dialog {
    display: grid;
    grid-template-rows: minmax(240px, 1fr) auto;
    width: min(940px, 100%);
    height: min(780px, calc(100vh - 40px));
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}
.gallery-dialog > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    background: #08172b;
}
.gallery-dialog-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: flex-start;
    gap: 14px;
    min-height: 116px;
    max-height: 44vh;
    padding: 17px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.gallery-dialog-copy {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    max-height: calc(44vh - 34px);
    overflow-y: auto;
    padding: 2px 10px 2px 0;
    overscroll-behavior: contain;
    scrollbar-color: #9db8dc #edf3fb;
    scrollbar-width: thin;
}
.gallery-dialog-copy strong,
.gallery-dialog-copy span {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
}
.gallery-dialog-copy strong { color: var(--ink); font-size: 1.12rem; line-height: 1.45; }
.gallery-dialog-copy span { padding: 12px 13px; border: 1px solid #e3ebf5; border-radius: 8px; color: var(--muted); background: #fff; line-height: 1.72; }

@media (max-width: 1180px) {
    .navbar { grid-template-columns: minmax(220px, 1fr) auto; }
    .site-menu { position: absolute; top: 72px; left: 24px; right: 24px; display: none; flex-direction: column; align-items: stretch; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 18px 44px rgba(9, 25, 47, .16); }
    .site-menu.open { display: flex; }
    .site-menu a { min-height: 45px; border-bottom: 1px solid #edf0f4; }
    .site-menu .mobile-account-link { display: inline-flex; }
    .site-menu .logout-form { display: block; width: 100%; padding-top: 4px; }
    .site-menu .logout-form button { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 8px; color: #fff; background: #d92d20; box-shadow: 0 10px 22px rgba(217,45,32,.16); text-align: center; }
    .account { display: none; }
    .menu-toggle { display: grid; }
    .products-grid, .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-layout, .location-layout { grid-template-columns: 1fr; }
    .about-layout { gap: 32px; }
    .location-copy { border-right: 0; border-bottom: 1px solid var(--line); }
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .shell { width: min(100% - 22px, 1080px); }
    .identity { padding-left: 0; }
    .identity-copy span { display: none; }
    .site-menu { left: 11px; right: 11px; }
    .hero, .hero-inner { min-height: 500px; }
    .hero-inner { padding: 48px 0 68px; }
    .hero-overlay { background: rgba(5, 20, 43, .72); }
    .hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
    .hero-index { right: 12px; bottom: 36px; }
    .catalog-bar-inner { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .section-head, .brand-toolbar, .social-band-inner { align-items: flex-start; flex-direction: column; }
    .product-tools { grid-template-columns: 1fr; }
    .active-filter { text-align: left; }
    .products-grid, .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .product-copy { padding: 11px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .about-row { grid-template-columns: 1fr; gap: 8px; }
    .social-band-inner { padding: 20px 0; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .dialog { grid-template-columns: 1fr; overflow: auto; }
    .dialog-media { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
    .dialog-media img { max-height: 280px; }
    .gallery-dialog {
        grid-template-rows: minmax(190px, 48vh) auto;
        height: calc(100vh - 22px);
    }
    .gallery-dialog-footer { max-height: 48vh; padding: 14px; }
    .gallery-dialog-copy { max-height: calc(48vh - 28px); }
}

@media (max-width: 390px) {
    .identity-copy strong { max-width: 210px; font-size: .88rem; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .hero-action, .hero-stat { width: 100%; }
    .quick-links { display: grid; grid-template-columns: 1fr 1fr; }
    .quick-links a { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .fade-item { opacity: 1; transform: none; }
}
