/* --- BODY & BASE STYLES --- */
body {
    margin: 0;
    font-family: var(--font-family, 'Avenir', 'Avenir Next', 'Inter', system-ui, sans-serif);
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    color: #E0E0E0;
}
body::-webkit-scrollbar {
    display: none;
}

/* (old fixed-footer body padding removed — footer is now a static end-of-page layer) */

/* --- TOAST NOTIFICATION --- */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
}
.toast-message {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 0px solid transparent;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.45);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
.toast-message.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- LOGO HEADER --- */
.logotype-header {
    width: 100%;
    max-width: 1600px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 0 auto;
    z-index: 1100;
    padding: 0 24px;
    box-sizing: border-box;
}

.logotype-text {
    font-family: 'Geologica', sans-serif;
    font-size: 40px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color, #20d21a) 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    text-shadow: 0px 4px 20px rgba(32, 210, 26, 0.4), 0px 8px 30px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0px 2px 8px rgba(32, 210, 26, 0.3));
}
.logotype-text:hover {
    background: linear-gradient(135deg, #34d399 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 4px 25px rgba(52, 211, 153, 0.5), 0px 8px 35px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0px 2px 12px rgba(52, 211, 153, 0.4));
}

.header-actions {
    display: flex;
    align-items: center;
    pointer-events: auto;
}

/* --- NAVBAR (calc-tab-group style) --- */
.glass-nav {
    width: 1600px;
    max-width: calc(100% - 32px);
    height: 44px;
    position: relative;
    margin: 10px auto 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    gap: 0;
    background: var(--glass-container-bg, rgba(0, 0, 0, 0.35));
    border-radius: 20px;
    box-shadow: inset 0 0 2px 2px var(--glass-container-inset, rgba(0, 0, 0, 0.5));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.nav-section { display: flex; align-items: center; flex-wrap: nowrap; }
#nav-tabs { overflow: hidden; flex-shrink: 1; display: flex; gap: 0; }
.nav-spacer {
    flex: 1;
    height: 44px;
    background: linear-gradient(180deg, var(--glass-bg-spacer-top, rgba(255,255,255,0.08)) 0%, var(--glass-bg-spacer-bottom, rgba(255,255,255,0.03)) 100%);
    -webkit-backdrop-filter: blur(25px) saturate(50%);
    backdrop-filter: blur(25px) saturate(50%);
    border-top: 0.5px solid var(--glass-border-top, rgba(255, 255, 255, 0.5));
    border-bottom: 2px solid var(--glass-border-bottom, rgba(255, 255, 255, 0.2));
    box-shadow: 0 8px 24px var(--glass-shadow, rgba(0, 0, 0, 0.01));
}

/* Search field inside the expanding drawer (appears on search icon click) */
.search-drawer { height: 44px; }

/* When searching, the field fills the free navbar width and the spacer collapses */
.glass-nav.searching .nav-spacer { display: none; }
.glass-nav.searching .search-drawer.open {
    flex: 1 1 auto;
    max-width: none;
}
/* Field material from design-system.css; the drawer only needs the width. */
#nav-search-input.search-input {
    width: 100%;
    margin: 0;
}

.nav-tab, .icon-btn, .menu-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 14px;
    background: linear-gradient(180deg, var(--glass-bg-top, rgba(255,255,255,0.1)) 0%, var(--glass-bg-bottom, rgba(255,255,255,0.05)) 100%);
    color: var(--glass-text, rgba(255, 255, 255, 0.45));
    -webkit-backdrop-filter: blur(25px) saturate(50%);
    backdrop-filter: blur(25px) saturate(50%);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    text-decoration: none;
    border-top: 0.5px solid var(--glass-border-top, rgba(255, 255, 255, 0.5));
    border-bottom: 2px solid var(--glass-border-bottom, rgba(255, 255, 255, 0.2));
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: 0 8px 24px var(--glass-shadow, rgba(0, 0, 0, 0.01));
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.icon-btn {
    width: 44px;
    padding: 0;
    flex-shrink: 0;
}
/* Normalize all navbar icon glyphs to 18px */
.icon-btn svg, .menu-toggle-btn svg { width: 18px; height: 18px; }
.menu-toggle-btn {
    width: 44px;
    padding: 0;
    flex-shrink: 0;
}
.nav-tab:first-child,
.menu-toggle-btn:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
.nav-tab:first-child {
    padding-left: 30px;
}
.nav-right-icons .icon-btn:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    width: 64px;
    padding-right: 20px;
}
.nav-tab:hover, .icon-btn:hover, .menu-toggle-btn:hover {
    color: var(--glass-text-hover, rgba(255, 255, 255, 0.9));
    background: var(--glass-bg-hover, rgba(255, 255, 255, 0.12));
    border-color: var(--glass-border-hover, rgba(255, 255, 255, 0.35));
    box-shadow: 0 0 14px var(--glass-highlight, rgba(255, 255, 255, 0.12)), 0 8px 24px var(--glass-shadow-hover, rgba(0, 0, 0, 0.3));
    transform: translateY(-0.5px);
}
.nav-tab.active {
    background: var(--glass-bg-active, rgba(255, 255, 255, 0.1));
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    backdrop-filter: blur(25px) saturate(150%);
    border-top: none;
    border-bottom: 1px solid var(--glass-border-active, rgba(255, 255, 255, 0.08));
    border-left: 1px solid var(--glass-border-side, rgba(255, 255, 255, 0.05));
    border-right: 1px solid var(--glass-border-side, rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 0 10px 1px var(--glass-inset-shadow, rgba(0, 0, 0, 0.8));
    color: var(--primary-color, #20d21a);
    text-shadow: 0 0 15px rgba(32, 210, 26, 0.5);
}

.nav-right-icons { 
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    gap: 0;
}

/* The language switch left the navbar for the footer — its button and the
   .lang-code label are styled with the rest of the button family, see
   .footer-lang-btn in design-system.css. */

/* Basket Badge */
.basket-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary-color, #20d21a);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.basket-badge.hidden {
    display: none;
}

/* Rectangular backlight flash on the basket icon when an item is added
   to the cart — matches the icon's own squared-off segment shape (only
   its outer corners are rounded, being the last button in the nav-right
   icon group) rather than a circular pulse. */
@keyframes basketAddFlash {
    0%   { box-shadow: 0 0 0 0 rgba(254, 199, 37, 0.6), 0 8px 24px rgba(0, 0, 0, 0.01); background: rgba(254, 199, 37, 0.30); }
    55%  { box-shadow: 0 0 20px 4px rgba(254, 199, 37, 0.45), 0 8px 24px rgba(0, 0, 0, 0.01); background: rgba(254, 199, 37, 0.16); }
    100% { box-shadow: 0 0 0 0 rgba(254, 199, 37, 0), 0 8px 24px rgba(0, 0, 0, 0.01); background: rgba(255, 255, 255, 0.06); }
}
#basket-toggle.basket-flash {
    animation: basketAddFlash 0.7s ease-out;
}

/* --- INQUIRY DROPDOWN FORM --- (triggered from the footer's "Написать
   нам" button, so it's fixed near the bottom of the viewport instead of
   anchored under the top nav) */
.inquiry-dropdown {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 350px;
    background: rgba(15, 15, 15, 0.2);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    backdrop-filter: blur(25px) saturate(180%);
    padding: 20px;
    border-radius: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 3px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1200;
}

.inquiry-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* --- CONTACT DRAWER --- */
.contact-drawer {
    position: absolute;
    top: 150px;
    /* Aligns to the 1200px content column on wide screens. The bare
       calc() goes NEGATIVE below ~1250px (at 375px it is -388px), which
       threw the drawer that far past the right edge and stretched the
       document to 763px — the page was then laid out at that width and
       every screen narrower than it showed a blank gutter. max() keeps a
       24px gutter instead of going off-screen. */
    right: max(24px, calc(50% - 600px + 24px));
    width: min(280px, calc(100vw - 32px));
    background: rgba(15, 15, 15, 0.2);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    backdrop-filter: blur(25px) saturate(180%);
    padding: 20px;
    border-radius: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 3px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-drawer.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #E0E0E0;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary-color, #20d21a);
}

/* --- BASKET DROPDOWN --- */
.basket-dropdown {
    position: absolute;
    top: 64px;
    right: 24px;
    width: 480px; /* Wider for table columns */
    max-width: 95vw;
    background: rgba(15, 15, 15, 0.25);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    backdrop-filter: blur(25px) saturate(180%);
    padding: 20px;
    border-radius: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 3px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1200;
}

.basket-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.basket-dropdown,
.basket-dropdown * {
    text-shadow: none !important;
}

.basket-dropdown h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: #fff;
}

@media (max-width: 800px) {
    .basket-dropdown { right: 10px; left: 10px; top: 72px; width: auto; max-width: calc(100% - 20px); padding: 14px; }
}

.basket-items {
    margin: 12px 0;
    overflow: visible !important; /* Avoid any scrollbars */
    max-height: none !important;
}

.basket-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    padding: 16px 0;
    font-size: 12px;
}

/* Basket Tabular Redesign */
.basket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.basket-table th {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.basket-table td {
    padding: 8px 4px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.basket-table th.col-code, .basket-table td.col-code {
    text-align: left;
    font-weight: 700;
    color: #fff;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.basket-table th.col-desc, .basket-table td.col-desc {
    text-align: left;
    color: rgba(255, 255, 255, 0.6);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.basket-table th.col-qty, .basket-table td.col-qty {
    text-align: center;
}

.basket-table th.col-price, .basket-table td.col-price {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color, #20d21a);
    white-space: nowrap;
    padding-right: 8px;
}

.basket-table th.col-remove, .basket-table td.col-remove {
    text-align: center;
    width: 24px;
}

/* Compact Qty Controls */
.basket-qty-controls {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

/* Icon pill material from design-system.css; the basket row is tight,
   so these are the one place that overrides the 32px icon footprint. */
.basket-qty-controls button {
    width: 20px;
    height: 20px;
    font-size: 10px;
}

.basket-item-quantity {
    font-size: 11px;
    color: #fff;
    font-weight: 600;
    min-width: 14px;
    text-align: center;
}

/* Trash Icon Button — icon pill material from design-system.css,
   destructive colour is the only local part. */
.basket-item-remove-btn { color: #FF453A; }
.basket-item-remove-btn:hover { color: #FF3B30; }

.basket-item-remove-btn svg {
    display: block;
}

.basket-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.basket-total-amount {
    color: var(--primary-color, #20d21a);
    font-size: 14px;
}

/* --- SEARCH INPUT — material from design-system.css --- */
.search-input { width: 100%; }

/* --- DRAWER BEHAVIOR --- */
.drawer {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.4s ease, opacity 0.3s ease;
    height: 44px;
}
.drawer.open {
    max-width: 600px;
    opacity: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 44px;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-item:hover {
    background: none;
    color: var(--primary-color);
}

/* --- ACTIVE TAB OPTICAL LIGHT REFLECTION --- */
.nav-tab { position: relative; }
.nav-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        color-mix(in srgb, var(--primary-color, #20d21a) 25%, transparent) 20%,
        color-mix(in srgb, var(--primary-color, #20d21a) 75%, transparent) 50%,
        color-mix(in srgb, var(--primary-color, #20d21a) 25%, transparent) 80%,
        transparent 100%);
    filter: blur(0.5px);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--primary-color, #20d21a) 15%, transparent);
    opacity: 0;
    transform: scaleX(0.5);
    transform-origin: center;
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.nav-tab.active::after {
    opacity: 1;
    transform: scaleX(1);
}
.mobile-menu-panel .nav-tab::after { display: none; }

.dropdown-toggle {
    cursor: pointer;
    position: relative;
    padding-right: 24px;
}

.dropdown-toggle::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-dropdown.open .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: rgba(15, 15, 15, 0.85);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    backdrop-filter: blur(25px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 3px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 1200;
}

.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #E0E0E0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-color, #20d21a);
}

/* Mobile dropdown styles */
.mobile-menu-panel .nav-dropdown {
    height: auto;
    flex-direction: column;
    align-items: stretch;
}

.mobile-menu-panel .dropdown-toggle {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 10px;
}

.mobile-menu-panel .dropdown-toggle::after {
    right: 16px;
}

.mobile-menu-panel .dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: all;
    display: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    margin: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.mobile-menu-panel .nav-dropdown.open .dropdown-menu {
    display: block;
}

.mobile-menu-panel .dropdown-item {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 8px;
    margin: 2px 0;
}

.inquiry-dropdown h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
}

/* Icon pill material from design-system.css; only the corner pin and
   the spin on hover are local. */
.close-btn {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 18px;
}
.close-btn:hover { transform: rotate(90deg); }

/* .submit-btn and .form-input — see design-system.css. Both were
   defined here; both are now token-driven in one place. */

/* --- HAMBURGER / MOBILE MENU --- */
.menu-toggle-btn { display: none; }
.menu-toggle-btn .menu-icon-close { display: none; }
.menu-toggle-btn.menu-open .menu-icon-bars { display: none; }
.menu-toggle-btn.menu-open .menu-icon-close { display: block; }

.mobile-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.2);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    backdrop-filter: blur(25px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 3px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 8px;
    display: none;
    flex-direction: column;
    z-index: 1100;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu-panel.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu-panel .nav-tab {
    height: 44px;
    padding: 0 16px;
    width: 100%;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(25px) saturate(50%);
    backdrop-filter: blur(25px) saturate(50%);
}
.mobile-menu-panel .nav-tab.active,
.mobile-menu-panel .nav-tab:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* --- MID-WIDTH: compress tabs before hamburger kicks in --- */
@media (min-width: 769px) and (max-width: 1050px) {
    #nav-tabs .nav-tab { padding: 0 8px; font-size: 13px; }
}

/* --- RESPONSIVE BREAKPOINT --- */
@media (max-width: 768px) {
    .logotype-header { height: 64px; padding: 0 16px; }
    .logotype-text { font-size: 28px; }

    .glass-nav {
        height: 44px;
        padding: 0;
    }

    #nav-tabs { display: none; }
    .menu-toggle-btn { display: flex; align-items: center; justify-content: center; }

    #search-drawer {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        height: auto;
        max-width: none;
        padding: 8px;
        background: rgba(15, 15, 15, 0.85);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        backdrop-filter: blur(25px) saturate(180%);
        border-radius: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.4);
        border-bottom: 2px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        z-index: 1100;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        pointer-events: none;
    }
    #search-drawer.open {
        max-width: none;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    #search-drawer .search-input { width: 100%; }
    #search-drawer .search-input:focus { width: 100%; }

    .nav-right-icons { gap: 0; }
    .icon-btn { padding: 0 8px; }

    .inquiry-dropdown {
        right: 16px !important;
        left: 16px;
        width: auto;
    }
}

/* --- HERO ROW (carousel + news block) --- */
.hero-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    gap: 20px;
    align-items: stretch;
    justify-content: flex-start;
}
.hero-row #carousel-section {
    flex: 2;
    width: auto; 
    min-width: 0;
}
.hero-row .custom-news-block {
    flex: 1;
    width: auto; 
    min-width: 0;
}

@media (max-width: 1200px) {
    .hero-row {
        flex-direction: column;
    }
    .hero-row #carousel-section,
    .hero-row .custom-news-block {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* --- NEWS BLOCK SECTION --- */
.custom-news-block {
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
    border-radius: 15px;
    margin: 0;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-top: 1.5px solid rgba(255, 255, 255, 0.5);
    border-bottom: 4px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}
.news-block-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--news-header-color, #FFFFFF);
    text-align: left;
    letter-spacing: -0.5px;
}
.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    max-height: 600px;
    padding-right: 8px;
}

/* --- CAROUSEL SECTION --- */
.carousel-container {
    width: 100%;
    max-width: 100% !important;
    height: var(--block-height, 600px);
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 15px;
    box-sizing: border-box;
}

.carousel-control {
    background: rgba(255, 255, 255, 0.08) !important;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    border-top: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    border-bottom: 4px solid rgba(255, 255, 255, 0.2) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.carousel-control:hover {
    background: var(--primary-color, #20d21a) !important;
    color: #000 !important;
    transform: scale(1.1);
}

/* --- BLOG BLOCK SECTION --- */
.custom-blog-block {
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
    border-radius: 15px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-top: 1.5px solid rgba(255, 255, 255, 0.5);
    border-bottom: 4px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.blog-block-title {
    margin: 0 0 32px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--news-header-color, #FFFFFF);
    text-align: left;
    letter-spacing: -0.5px;
}

.blog-list-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-article {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: opacity 0.2s ease;
}

.news-article:not(:last-child) {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.news-article-date {
    font-size: 13px;
    color: var(--primary-color, #20d21a);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.news-article-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--news-title-color, #FFFFFF);
}

.news-article-title a {
    color: var(--news-title-color, #FFFFFF);
    text-decoration: none;
    transition: color 0.2s;
}

.news-article-title a:hover {
    color: var(--primary-color, #20d21a);
}

.news-article-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--news-text-color, rgba(255, 255, 255, 0.7));
    margin: 0 0 20px 0;
}

.news-article-actions {
    display: flex;
    gap: 12px;
}



.action-btn.liked {
    color: var(--primary-color, #20d21a);
    border-color: var(--primary-color, #20d21a);
    background: rgba(32, 210, 26, 0.1);
}
