@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype-variations');
  font-weight: 100 900;   
  font-stretch: 25% 151%; 
  font-style: normal;
}

@font-face {
  font-family: 'Tahoma';
  src: url('../fonts/TahomaBold.ttf') format('truetype-variations');
  font-style: normal;
}


ul {
    list-style-type: none;
}

body {
    background-color: #e2e2e2;
    margin: 0;
    padding: 0;

}

.content {
    max-width: 1170px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.12);
    background-color: white;
}

header {
    width: 100%;
    background-color: #F1F1F1;

}

.parentheader {
    background-color: #647284;
    width: 100%;
}
.headerheader {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 58px;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0px;
}

.logo a {
    text-decoration: none;
    color: black;
}

.email {
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    color: #FFFFFFCC;
    font-weight: 700;
    transition:  0.3s ease;
}
.email:hover {
    color: #ffffffe9;
    cursor: pointer;
}

.number {
    font-family: 'Tahoma';
    font-size: 13px;
    color: #FFFFFF;
    font-weight: 700;
}

.searchcolor {
    background-color: #f4f4f4;
}

.search {
    height: 90px;
    display: flex;
    align-items: center;

}

.headerheader, .categories, .search {
    max-width: 1030px;
    padding: 0 15px;
    margin: 0 auto;
}

/* Обёртка — позиционирует иконку */
.search-input-wrapper {
    max-width: 435px;
    width: 100% !important;
    position: relative;
    display: inline-block;
    margin: 0 65px; /* переносим margin сюда */
}

/* Стили самого input — почти без изменений */
.search-input-wrapper input {
    border-radius: 18px;
    max-width: 435px;
    width: 100% !important;
    height: 32px;
    outline: none;
    border: 1px solid #cacaca;
    background: rgba(0, 0, 0, 0.03);
    color: #696969;
    padding: 0 36px 0 12px; /* ← увеличил правый padding под иконку */
    box-sizing: border-box;
}

/* Иконка лупы */
.search-input-wrapper .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* чтобы не мешала клику в поле */
    opacity: 0.7;
}

.search-input-wrapper1 {
    max-width: 215px;
    padding: 30px 5px;
    width: 100% !important;
    position: relative;
    display: inline-block;
}

/* Стили самого input — почти без изменений */
.search-input-wrapper1 input {
    border-radius: 18px;
    max-width: 215px;
    width: 100% !important;
    height: 32px;
    outline: none;
    border: 1px solid #cacaca;
    background: rgba(0, 0, 0, 0.03);
    color: #696969;
    padding: 0 36px 0 12px; /* ← увеличил правый padding под иконку */
    box-sizing: border-box;
}

/* Иконка лупы */
.search-input-wrapper1 .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* чтобы не мешала клику в поле */
    opacity: 0.7;
}



.categories {
    background-color: #f1f1f1; 
    padding: 20px 0;
}

.weightheader {
    width: 136px;
    display: flex;
    justify-content: end;

}
.categories ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; 
    gap: 20px; 
    font-family: 'Roboto', sans-serif; 
}

.categories ul li a {
    text-decoration: none;
    color: #666666D9;
    font-size: 13px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.categories ul li a:hover {
    color: #111111D9;
}

.categories ul li a.active {
    color: #111111D9 !important;
}

footer {
    background-color: #647284EB; 
    padding: 0px 0px;
    font-family: 'Roboto', sans-serif;
}

.top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 30px 15px !important;
    font-size: 16px;
    color: #F1F1F1;
}

.lkcart-wrapper {
    width: 100%;
    max-width: 250px;
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {

    .lkcart-wrapper {
        max-width: 100px;
        display: flex;
        flex-direction: row !important;
        justify-content: right;
        align-items: center;
        margin-left: 20px; 
    }

    .top {
        flex-direction: column;
     }

    .parentheader {
        display: none;
    }

    .search-input-wrapper {
        display: none;
    }
    .tg {
        display: block !important;
        text-align: center;
    }

    .categories {
        height: 15px;
    }
    .categories ul {
        display: none;
    }

    .search {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: center;
    }
    .lk {
        display: none;
    }

    .burger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 50px;
        height: 21px;
        cursor: pointer;
        margin-right: 20px;
    }

    .burger span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #777777;
        border-radius: 2px;
        transition: 0.3s;
    }

    /* Скрыть обычное меню на мобильных */
    .categories ul {
        display: none;
    }
    #cartTotalPrice {
        display: none;
    }

    /* Скрыть email/номер в шапке на мобильных */
    .parentheader .email,
    .parentheader .number {
        display: none;
    }

    /* Сдвинуть логотип влево */
    .logo {
        margin-left: 0;
    }

    /* Боковое меню */
    .mobile-menu {
        display: block !important;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.15);
        z-index: 1 !important;
        transition: left 0.3s ease;
    }

    .mobile-menu.open {
        left: 0;
    }

    .mobile-menu-content {
        padding: 20px;
    }

    .mobile-menu-content ul {
        list-style: none;
        padding: 0;
        margin-top: 30px;
    }

    .mobile-menu-content ul li:first-child {
        border-top: 1px solid #e0e0e0;
    }
    

    .mobile-menu-content ul li {
        margin-bottom: 0; /* убираем отступ, если был */
        padding: 12px 0;  /* добавляем вертикальный padding для лучшего вида */
        border-bottom: 1px solid #e0e0e0; /* тонкая светло-серая линия */
    }

    .mobile-menu-content ul li a,
    .mobile-menu-content ul li button {
        text-decoration: none;
        color: #666666D9;
        font-size: 13px;
        font-family: 'Roboto', sans-serif;
        font-weight: bold;
        display: block;
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px 0;
    }

    .mobile-menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 28px;
        background: none;
        border: none;
        cursor: pointer;
        color: #999;
    }

    .mobile-menu-close:hover {
        color: #000;
    }

    .mobile-menu-content a {
        font-size: 16px;
        font-family: 'Tahoma';
        color: black;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
    }
    .tel {
        padding: 20px 10px;
        padding-bottom: 40px;
        text-align: center;
        text-transform: uppercase;
        border-bottom: 1px solid #e0e0e0;
    }

}

.top > div {
    flex: 1;    
}

.top h4 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    position: relative;
}

.top h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: rgb(187, 204, 252);
    margin-top: 10px;
}

.top p {
    font-size: 16px;
    line-height: 1.6;
    color: #F1F1F1;
    margin: 0 0 20px 0;
}

.top ul {
    padding: 0;
    margin: 0;
}

.top li {
    margin-bottom: 10px;
}

.top a {
    color: #F1F1F1;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
}

.top a:hover {
    color: white;

}



/* ----------------конец сайта--------------------- */
.Payment {
    list-style-type: none;
    justify-content: center;
    padding: 7.5px;
    margin: 0;
    display: flex;
    gap: 20px;
}

.bottom {

    color: #FFFFFF80;
    padding: 20px 20px 10px;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    padding: 10px 0; 
    font-size: 14px;
}

.Documents_For_end {

    list-style-type: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    display: flex;
    gap: 20px;
}

.Documents_For_end a {
    color: #e4e4e480;
    text-decoration: none;
    font-size: 12px;
    padding: 5px 0; 
  
}

.Documents_For_end a:hover {
    color: white;

}

.about {
    text-align: center;
}




.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 40px 0;
    font-family: Arial, sans-serif;
  }

  .section-title::before,
  .section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #ddd; /* цвет линий */

  }

  .section-title span {
    padding: 10px 16px;
    background-color: #fff;
    border: 2px solid #ddd;
    font-weight: bold;
    text-transform: uppercase;
    color: #777777;
    font-size: 20px;
  }

  .parentbottom {
    background-color: #647284;
    padding: 15px 0;
  }

  .top, .bottom {
    max-width: 1030px;
    padding: 0 15px;
    margin: 0 auto;
  }


.error {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 900px;
    height: auto;
    padding: 30px;
    background: white;
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
    margin: 0 auto;
}


.error_code {
    font-size: 120px;
    font-weight: bold;
    color: #ddd;
    line-height: 0.5;
    margin: 0;
    margin-left: -55px;
}


.not_found {
    font-size: 28px;
    margin-top: 0;
    color: #979797;
}


.not_found_text {
    font-size: 16px;
    color: #555;
}

.about_error {
    max-width: 750px;
    height: auto;   
}

.search_box {
    display: flex;
    margin-bottom: 60px;
}

.search_for_error {
    max-width: 670px;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-right: none;
    font-size: 14px;
    outline: none;
}

.content_for_error {
    display: flex;
    flex-direction: column;
    height: auto;

}

.search_box button {
    background: #4d4d4d;
    border: none;
    cursor: pointer;
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.search_box button:hover {
    background: #373737;
}


main {
    max-width: 1030px;
    padding: 0 15px;
    margin: 0 auto;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px !important;
    padding: 20px;
    margin-top: 20px;
}

.brand-card {
    background-color: #fff;
    height: 30px;
    border-radius: 2px;
    padding: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px !important;
    box-shadow: 0px 1px 2px rgb(116, 116, 116);
}

.brand-card:hover {
    box-shadow: 0 2px 4px rgb(116, 116, 116);
}

.profiletext {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
}



/* Убедитесь, что ссылка/кнопка не добавляют лишнего */
.profiletext a,
.profiletext button {
    padding: 0;
    margin: 0;
}

.profiletext > div {
    margin-top: 8px; /* отступ от иконки */
    color: #666666D9;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.brand-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    
}

.brand-logo {
    width: 30px;    
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    text-decoration: none !important;
}

.three_mans {
    width: 100%;
    flex-wrap: wrap;
    text-align: center;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.name_ {
    margin-bottom: 5px;
    white-space: nowrap;
    font-weight: bold;
    color: #777777;
    font-size: 17px;
    text-transform: uppercase;
}

.location {
    margin-bottom: 5px;
    font-weight: bold;
    color: #979797;
    font-size: 16px;
    white-space: nowrap;
}

.second_location {
    margin-bottom: 5px;
    font-weight: bold;
    color: #979797;
    font-size: 16px; 
}

.workshop {
    margin-bottom: 5px;
    color: #777777;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
}

.phone {
    margin-bottom: 5px;
    color: #777777;
}

.about_workshop {
    color: #777777;
}

.map iframe {
    margin-top: 20px;
    border-radius: 10px;
}






#popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;

}


.popup-wrapper {
  overflow-y: auto;        /* вертикальный скролл при переполнении */
  overflow-x: hidden;      /* скрыть горизонтальный скролл (опционально) */
  display: flex;
  gap: 40px;
  background: #fff;
  padding: 30px !important;
  margin: 40px;
  max-width: 800px;
  width: 90%;
  max-height: calc(100vh - 60px); 
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  position: relative;
}


.popup-wrapper h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: bold;
  color: #777777;
  text-align: left;
}


.popup-column {
  flex: 1;
  min-width: 250px;
}

.register-col {
  border-left: 1px solid #eee;
  padding-left: 30px;
  
}


.form-group {
  margin-bottom: 15px;
  color: #000000;
  font-weight: bold;
  font-size: 13px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #444;
}

.form-group input,
.form-group input,
.form-group input,
.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  box-sizing: border-box;
  outline: none; 
}


.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
  width: auto;
}

.btn {
  width: 35%;
  height: 45px;
  color: black;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
}



.forgot-password {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  color: #6c757d;
  text-decoration: none;
}

.privacy-note {
  font-size: 15px;
  color: #666;
  margin: 15px 0;
  line-height: 1.4;
}

.privacy-note a {
  color: #000000;
  text-decoration: none;

}

.profile {
  width: 35px;
  height: 35px;
  background: #F1F1F1;
  border-radius: 17px;
  border: 1px solid #c2c2c2;
  margin-left: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile:hover {
  background: #647284;
  border: 1px solid #647284;
}

.profile svg {
  fill: #c0c0c0;
  width: 17px;
  height: 17px;
  transition: fill 0.2s ease; 
}

.profile:hover svg {
  fill: white;
}

.category-grid {
    display: flex;
    flex-direction: column;
    padding: 15px;
    
}

.category-grid a {
    text-decoration: none;
}

.category-grid h2 {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: #222222;
    margin-bottom: 50px;
    text-transform: capitalize;
}

.category-name {
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    color: #333333;
    text-decoration: none;
}



/* Основной контейнер — две колонки */
.category-container {
    display: flex;
    gap: 40px;
    padding: 20px 0;
}

/* Левая колонка — список категорий */
.category-list {
    flex: 1;
    max-width: 700px;
}



/* Три колонки для категорий */
.category-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.category-link {
    display: block;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    text-decoration: none;
}

/* Правый блок — "Прошивка для любой марки" */
.side-block {
    max-width: 250px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.side-block h3 {
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #777777;
    margin-top: 0;
    margin-bottom: 10px;
}

.side-block p {
    font-size: 16px;
    color: #777777;
    font-family: 'Roboto', sans-serif;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.order-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #647284;
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
    transition: background 0.2s ease;
}

.order-btn:hover {
    background: #5b6777;
}

.telegram-info {
    padding-top: 15px;
    font-family: 'Roboto', sans-serif;
}

.telegram-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.telegram-info p {
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    color: #777;
    margin: 0;
    margin-top: 20px;
}


.urll {
    display: flex;
    flex-direction: row;
    font-size: 16px;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 40px;
    color: #777;
}

.detailcategory {
    color: black;
    font-weight: bold;
}

.category-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.breadcrumb-link:hover {
    color: #222;
}

.detailbrand:hover {
    color: #222;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 20px;
}

.product-card {
    background: white;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-id {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.product-price {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.cart-btn {
    width: 100%;
    padding: 4px 8px;
    color: #647284;
    background-color: white;
    border: 2px solid #5b6777;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.cart-btn:hover {
    background: #647284;
    color: white;
}

.product-container {
    width: 100%;
    padding: 40px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-detail {
    text-align: center;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn-large {
    background-color: #555555;
    padding: 12px 20px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: 0px;
    transition:  0.3s ease;
}
.btn-large:hover {
    background-color: #333333;
    cursor: pointer;
}

.description1 {
    width: 100%;
    margin-top: 80px;
    color: #777777;
}
.description1 a {
    color: black;
    text-decoration: none;
}

.description {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid gainsboro;
    margin-top: 80px;
}

.description h3 {
    max-width: 70px;
    margin-top: 0px;
    padding-top: 5px;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    color: #111111D9;
    text-transform: uppercase;
    border-top: 3px solid#647284;
}

.description h3:hover {
    cursor: pointer;
    border-top: 3px solid#647284;

}



#popup-overlay.show {
    display: flex;
    animation: slideDown 0.4s ease-out forwards;
}

#popup-overlay.show .popup-wrapper {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    z-index: 10;
}

.popup-close:hover {
    color: #333;
}

.btn2 {
    font-family: 'Roboto', sans-serif;
    color: white;
    background-color: #647284;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
}

.btn2:hover {
    background-color: #5b6777;
    cursor: pointer;
}


.map-wrapper {
    position: relative;
    width: 100%;
    /* Сохраняем соотношение сторон: 1041 / 436 ≈ 2.387 → 100% / 2.387 ≈ 41.9% */
    aspect-ratio: 1041 / 436; /* Поддерживается в современных браузерах */
    border-radius: 10px;
    overflow: hidden;
    min-height: 400px !important;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 400px !important;
    height: 100%;
    border: none;
}


.man {
    padding: 20px;
    max-width: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.name_ {
    margin-bottom: 5px;
    white-space: normal; 
    font-weight: bold;
    color: #777777;
    font-size: 17px;
    text-transform: uppercase;
}

.location,
.second_location,
.workshop,
.phone,
.about_workshop {
    white-space: normal; /* Важно для мобильных */
    word-break: break-word;
}

.location,
.second_location {
    margin-bottom: 5px;
    font-weight: bold;
    color: #979797;
    font-size: 16px;
}

.workshop {
    margin-bottom: 10px;
    color: #777777;
    font-weight: bold;
    font-size: 20px;
}

.phone {
    margin-bottom: 5px;
    color: #777777;
}

.about_workshop {
    color: #777777;
    font-size: 14px;
    line-height: 1.4;
}

.man img {
    height: auto;
    margin-bottom: 10px;
}


#search-results,
#search-results-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

#search-results a,
#search-results-mobile a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}

#search-results a:hover,
#search-results-mobile a:hover {
    background-color: #f0f4ff;
    color: #000;
}


/* Основной контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


/* Сетка новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Карточка новости */
.news-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Изображение в карточке */
.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-image:hover img {
    transform: scale(1.05);
}

/* Контент карточки */
.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 1.3;
    color: #333;
    font-weight: bold;
}
.news-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.news-content h3 a:hover {
    color: #5a677a;
}

.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.read-more {
    color: #5a677a;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    align-self: flex-start;
    transition: color 0.2s ease;
}
.read-more:hover {
    color: #4a5768;
    text-decoration: underline;
}

/* Нет новостей */
.no-news {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 10px;
    color: #777;
    font-size: 18px;
}

/* Детальная страница */
.news-detail {
    font-family: 'Roboto', sans-serif;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;

}

.news-detail h1 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.news-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.news-header-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
}
.news-header-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.news-full-content {
    color: #444;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}
.news-full-content p {
    margin-bottom: 15px;
}
.news-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.news-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
}
.back-link {
    color: #5a677a;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}
.back-link:hover {
    background: #f0f0f0;
    color: #4a5768;
}

.cart-icon:hover {
    opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        margin-bottom: 20px;
    }

    .news-image {
        height: 160px;
    }

    .news-detail {
        padding: 20px;
    }

    .news-detail h1 {
        font-size: 28px;
    }
}


.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}



.cart-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

#cartTotalPrice {
    font-weight: 600;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #777777;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    border: 1.5px solid white;
}

/* Для пустой корзины */
.cart-badge:empty {
    display: none;
}

/* Анимация при изменении количества */
.cart-badge.updated {
    transform: scale(1.1);
    transition: transform 0.15s ease;
}


.auth-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: 'Roboto', sans-serif;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 16px;
    color: #888;
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: #555;
    font-weight: bold;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #555;
}

.auth-section {
    display: none;
}

.auth-section.active {
    display: block;
}

.auth-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input {
    width: auto;
}

.btn2 {
    width: 100%;
    padding: 12px;
    background: #555555;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px 0 20px;
}

.btn2:hover {
    background: #3a3a3a;
}

.forgot-password {
    display: block;
    text-align: center;
    color: #555;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 10px;
}

.error-msg {
    color: #d32f2f;
    font-size: 14px;
    min-height: 20px;
    margin-top: 10px;
}

.privacy-note {
    font-size: 12px;
    color: #666;
    margin: 15px 0;
    line-height: 1.4;
}

.privacy-note a {
    color: #555;
    text-decoration: underline;
}

.back-to-main {
    display: block;
    text-align: center;
    color: #555;
    margin-top: 20px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .auth-container {
        margin: 20px;
        padding: 15px;
    }
}

#openBtn {
    display: flex !important;
}
.auth-trigger-link {
    display: none !important;
}

/* На мобильных — наоборот */
@media (max-width: 768px) {
    #openBtn {
        display: none !important;
    }
    .auth-trigger-link {
        display: flex !important;
    }
}

.breadcrumb-link {
    text-decoration: none !important;
    color: #777777;
}

.breadcrumb-link2 {
    text-decoration: none !important;
    color: #000000;
}