@font-face {
    font-family: 'Tilda Sans';
    src: url('tilda-sans_light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tilda Sans';
    src: url('tilda-sans_medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --main-background-color: #000000;
    --main-text-color: #ffffff;
    --gray-color: #272727;
    --dark-gray-color: #1d1d1d;
    --main-icon-color: #878787;
    --main-red-color: #ff0000;
    --main-blue-color: #3b82f6;
    --color-yellow-start: #ffff58;
    --color-yellow-end: #fdc652;

    --text-light: 300;
    --text-medium: 500;
    --text-bold: 700;
    --font-family-base: 'Tilda Sans', sans-serif;
}

body {
    background-color: var(--main-background-color);
    font-family: var(--font-family-base);
    font-weight: var(--text-light);
}

nav.navbar {
    background-color: var(--main-background-color);
}

.a, .p, h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

.navbar-accounts {
    background-color: var(--main-red-color);
    border-bottom: 2px solid var(--main-blue-color);
}

.navbar-search .btn-primary {
    background-color: var(--main-red-color);
    border-color: var(--main-red-color);
}

.product_pod {
    border: 1px solid var(--main-red-color);
    border-radius: 8px;
    padding: 15px;
    background: var(--main-red-color);
    transition: box-shadow 0.2s ease-in-out;
}

.product_pod:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.product_pod h3 a {
    color: #1e3a8a;
    font-weight: 600;
}

.bg-header-gradient {
    background: linear-gradient(to top, var(--gray-color), var(--main-background-color)) !important;
    padding: 15px !important;
    color: var(--main-text-color);
}

.custom-nav .nav-left {
    display: flex;
    gap: 50px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-nav .nav-right {
    display: flex;
    gap: 8px; 
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-nav ul.nav-left,
.custom-nav ul.nav-right {
    justify-content: flex-start;
}

.custom-nav .nav-left li a:hover,
.custom-nav .nav-right li a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.nav-right li:first-child a::after {
    content: none;
}

.brand {
    color: var(--main-text-color);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.bg-header-gradient {
    background: linear-gradient(to top, var(--gray-color), var(--main-background-color)) !important;
    padding: 10px;
    color: var(--main-text-color);
}

.custom-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    justify-content: flex-end;
}

.custom-nav ul li a {
    color: var(--main-text-color);
    text-decoration: none;
    font-weight: 300;
    transition: opacity 0.3s;
}

.custom-nav ul li a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.custom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-nav .nav-left {
    display: flex;
    gap: 55px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-nav .nav-right {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-nav .nav-left li a,
.custom-nav .nav-right li a {
    color: white;
    text-decoration: none;
    font-weight: 300;
    transition: opacity 0.3s;
}


.main-header {
    padding: 20px 0;
    background: black;
    border-bottom: 1px solid var(--main-background-color);
}

.brand-text {
    flex: 1;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.contact-info {
    text-align: right;
}

.phone {
    font-size: 20px;
    font-weight: 300;
    color: var(--main-text-color);
    letter-spacing: -0.3px;
}

.phone-link {
    color: inherit;
    text-decoration: none;
}

.phone-link:hover {
    color: inherit;
    text-decoration: none;
    filter: brightness(1.5);
}

.work-hours {
    font-size: 12px;
    color: var(--main-text-color);
    margin-top: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-catalog {
    background: #e0d31bb2;
    color: var(--main-text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 300;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-catalog:hover {
    background: #fff23e;
    color: var(--main-text-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.basket {
    position: relative;
}

.basket-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #918f16;
    color: var(--main-text-color);
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand {
    color: var(--main-text-color);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.search-bar {
    margin-top: 15px;
    max-width: 300px;
    position: relative;
}

.search-bar form {
    display: flex;
    gap: 5px;
}

.search-bar input {
    flex: 1;
}

.logo-icon-img {
    width: 550px;
}

.main-header-buttons {
    gap: 35px;
}

.burger-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.custom-hover-btn {
    background: linear-gradient(45deg, var(--color-yellow-end), var(--color-yellow-start));
    transition: all 0.3s ease;
}

.burger-lines {
    display: inline-block;
    width: 15px;
    height: 2px;
    background: currentColor;
    position: relative;
    vertical-align: middle;
}

.burger-lines::before,
.burger-lines::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, background 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.burger-lines::before {
    top: -4px;
}

.burger-lines::after {
    bottom: -4px;
}

.custom-hover-btn:focus,
.custom-hover-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.custom-hover-btn:hover {
    background-color: #dc3545 !important;
    color: var(--main-text-color) !important;
}

.custom-hover-btn:hover .burger-lines::before,
.custom-hover-btn:hover .burger-lines::after {
    background: var(--main-text-color);
}

.custom-hover-btn.active {
    background-color: #dc3545 !important;
    color: var(--main-text-color) !important;
}

.custom-hover-btn.active .burger-lines {
    background: transparent;
}

.custom-hover-btn.active .burger-lines::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--main-text-color);
}

.custom-hover-btn.active .burger-lines::after {
    bottom: 0;
    transform: rotate(-45deg);
    background: var(--main-text-color);
}

.basket-count{
    background: linear-gradient(45deg, var(--color-yellow-end), var(--color-yellow-start));
    transform: translate(0px, -50%);
}


.catalog-dropdown {
    position: absolute;
    top: 31%;
    left: 0;
    width: 100%;
    background: var(--gray-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.catalog-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.catalog-two-columns {
    display: flex;
    gap: 0;
    min-height: 400px;
}

.catalog-sidebar {
    width: 25%;
    background: var(--gray-color);
    padding: 20px 0;
}

.catalog-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalog-nav-item {
    margin: 0;
    padding: 0;
}

.catalog-nav-item a {
    display: block;
    padding: 10px 20px;
    color: var(--main-text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.catalog-nav-item a:hover {
    background-color: #e9ecef;
    color: #dc3545;
    padding-left: 25px;
}

.catalog-nav-item.active a {
    background-color: #dc3545;
    color: var(--main-text-color);
    font-weight: 500;
}

.catalog-nav-divider {
    height: 1px;
    background: #e9ecef;
    margin: 10px 20px;
}

.catalog-content {
    width: 75%;
    padding: 20px 25px;
    background: var(--gray-color);
    border-radius: 0 12px 12px 0;
}

.catalog-content-inner {
    width: 100%;
}

.catalog-subgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.catalog-subcolumn h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0b90b;
    color: var(--main-text-color);
}

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

.catalog-subcolumn ul li {
    margin-bottom: 8px;
}

.catalog-subcolumn ul li a {
    text-decoration: none;
    color: var(--main-text-color);
    font-size: 13px;
    transition: color 0.2s ease;
    display: block;
    padding: 2px 0;
}

.catalog-subcolumn ul li a:hover {
    color: #dc3545;
    padding-left: 3px;
}

.main-header {
    position: relative;
}

.custom-header {
    position: relative;
    z-index: 100;
}

.text-end {
    margin-right: 35px;
}

.promo-block {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.promo-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.promo-bg-image {
    position: absolute;
    top: -50px;
    right: 0;
    height: 600px;
    object-fit: cover;
    object-position: right center;
}

/* Затемнение применяем к обертке, а не ко всему блоку */
.promo-bg-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.promo-block .container {
    position: relative;
    z-index: 1;
}

.promo-content {
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    margin: 70px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.promo-title-text {
    padding: 0 !important;
    margin-top: 20px;
    font-size: 28px;
    color: var(--main-text-color);
    width: 700px;
}

/* Блок "Факты о нас" */

.facts-block {
    padding: 60px 0 60px 0;
    background: var(--main-background-color);
    position: relative;
}

.facts-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;

    background: linear-gradient(
        to top,
        var(--main-background-color) 0%,
        var(--gray-color) 100%
    );

    pointer-events: none;
    z-index: 0;
}

.facts-block::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;

    background: linear-gradient(
        to bottom,
        var(--main-background-color) 0%,
        var(--gray-color) 100%
    );

    pointer-events: none;
    z-index: 0;
}

.facts-block-image {
    margin: 50px 0px 0px 100px;
    width: 350px;
}

.facts-title {
    font-size: 36px;
    font-family: var(--font-family-base);
    font-weight: var(--text-medium);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.facts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.fact-item-title {
    font-size: 16px;
    font-family: var(--font-family-base);
    font-weight: var(--text-bold);
    color: var(--main-text-color);
    margin: 0 !important;
}

.fact-item-text {
    font-size: 16px;
    margin: 0;
    color: var(--main-text-color);
    font-family: var(--font-family-base);
    font-weight: var(--text-light);
}

/* Стили популярных товаров */

.popular-products-block {
    padding: 60px 0 0 0;
}

.popular-products-title {
    text-align: center;
    font-size: 36px;
    color: var(--main-text-color);
    text-transform: uppercase;
    font-weight: 700;
}

/* Для мобильной версии */

.mobile-header {
    display:none;
    background:#000;
    padding:12px 15px;
}

.mobile-header-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.mobile-burger {
    width:25px;
    height:25px;
    background:none;
    border:none;
    padding:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    cursor:pointer;
}

.mobile-burger span {
    display:block;
    width:18px;
    height:2px;
    background:white;
}

.mobile-logo img {
    width: 250px;
    height: auto;
}

.mobile-cart {
    position:relative;
}

.mobile-cart img {
    width:26px;
}

.mobile-cart span {
    position:absolute;
    right:-8px;
    top:-8px;
    background:#ffc107;
    color:#000;
    width:16px;
    height:16px;
    border-radius:50%;
    font-size:10px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.mobile-header-bottom {
    margin-top:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
}

.mobile-catalog {
    height:36px;
    width:auto;
    padding:0 25px;
    background:#ffc107;
    border-radius:20px;
    color:#000;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:7px;
    text-decoration:none;
    font-size:14px;
    border:none;
    cursor:pointer;
}

.mobile-catalog .burger-lines {
    width:14px;
    height:2px;
    background:currentColor;
    position:relative;
    display:inline-block;
    vertical-align:middle;
}

.mobile-catalog .burger-lines::before,
.mobile-catalog .burger-lines::after {
    content:'';
    position:absolute;
    left:0;
    width:100%;
    height:2px;
    background:currentColor;
    transition:all 0.3s ease;
}

.mobile-catalog .burger-lines::before {
    top:-4px;
}

.mobile-catalog .burger-lines::after {
    bottom:-4px;
}

.mobile-icon-btn {
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.mobile-icon-btn img {
    width:100%;
    height:100%;
    object-fit:contain;
}

.mobile-catalog.active .burger-lines {
    background:transparent;
}

.mobile-catalog.active .burger-lines::before {
    top:0;
    transform:rotate(45deg);
}

.mobile-catalog.active .burger-lines::after {
    bottom:0;
    transform:rotate(-45deg);
}

.mobile-menu-overlay {
    display: none;
}