/* Core styles extracted from style.css (до Tilda-блока). Версия 1.0 */

/* ===== Технический заголовок темы перенесён не нужен, оставляем только CSS ===== */

body, html, #page, .site-content { overflow-y:auto !important; }

body {
  background: #e0e0e0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
}

.neumorphic-block {
  background: #e0e0e0;
  border-radius: 20px;
  box-shadow:  8px 8px 16px #bebebe,
              -8px -8px 16px #ffffff;
  padding: 32px;
  margin-bottom: 32px;
}

.neumorphic-btn {
  border-radius: 12px;
  background: #e0e0e0;
  box-shadow:  4px 4px 8px #bebebe,
              -4px -4px 8px #ffffff;
  border: none;
  padding: 12px 32px;
  font-size: 1.1em;
  transition: box-shadow 0.2s;
}

.neumorphic-btn:active {
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
}

input, select, textarea {
  border-radius: 10px;
  background: #e0e0e0;
  box-shadow: inset 2px 2px 4px #bebebe,
              inset -2px -2px 4px #ffffff;
  border: none;
  padding: 10px;
  margin-bottom: 16px;
}

.neumorphic-card {
  background: #f5f5f5;
  border-radius: 16px;
  box-shadow:  4px 4px 8px #bebebe,
              -4px -4px 8px #ffffff;
  padding: 24px;
  margin-bottom: 24px;
}

.neumorphic-header {
  background: #e0e0e0;
  box-shadow: 0 4px 12px #d1d9e6;
  border-radius: 0 0 24px 24px;
  padding: 24px 0;
  margin-bottom: 32px;
}

.neumorphic-footer {
  background: #e0e0e0;
  box-shadow: 0 -4px 12px #d1d9e6;
  border-radius: 24px 24px 0 0;
  padding: 24px 0;
  margin-top: 32px;
}

.t-store__card__img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* --- Стили из test.html для меню, брендов, сайдбара, Swiper и адаптивности --- */

.dropdown-menu, .dropdown-menu__sidebar {
    border-radius: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.dropdown-menu {
    padding: 40px 40px 80px 40px;
    display: grid;
    grid-template-columns: 0.5fr 1fr 0.5fr;
    column-gap: 30px;
}
.dropdown-menu__sidebar {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(calc(100% + 20px), -50%);
    width: 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.dropdown-menu__sidebar div {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dropdown-menu__sidebar div .menu-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background-color: white;
    border-radius: 50%;
    margin-bottom: 8px;
}
.dropdown-menu__sidebar div span {
    font-size: 9px;
    font-weight: bold;
    text-align: center;
    color: white;
}
@media (hover: hover) and (pointer: fine) {
    .dropdown-menu__sidebar div .menu-item {
        transition: transform 0.3s, background-color 0.3s;
        transform: translate3d(0, 0, 0);
    }
    .dropdown-menu__sidebar div .menu-item:hover {
        transform: translate3d(0, 0, 0) scale(1.1);
        background-color: #f0f0f0;
    }
}
.dropdown-menu__sidebar div .menu-item img {width: 50%;}

.dropdown-menu__brands {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.brands__span {
    height: 50px;
    font-size: 16px;
    display: flex;
    align-items: center;
    color: white;
}
.brands__swiper {
    flex: 1 1 auto;
    margin-top: 24px;
}
.dropdown-menu__brands .swiper-slide {
    grid-template-columns: repeat(5, 1fr);
    column-gap: 28px;
    row-gap: 40px;
}
.dropdown-menu__brands .configurator-slide {display: grid;}
.dropdown-menu__brands .carbon-slide, .dropdown-menu__brands .wheels-slide {display: none;}
.dropdown-menu__brands .swiper-slide a:not(.not-first-slide) {display: flex;}
.dropdown-menu__brands .swiper-slide .not-first-slide {display: none;}
.dropdown-menu__brands .swiper-slide a {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
@media (hover: hover) and (pointer: fine) {
    .dropdown-menu__brands .swiper-slide a img {
        transform: translate3d(0, 0, 0) scale(0.9);
        transition: transform 0.3s;
    }
    .dropdown-menu__brands .swiper-slide a:hover img {transform: translate3d(0, 0, 0) scale(1);}
}
.dropdown-menu__brands .swiper-slide a span {
    font-size: 10px;
    margin-top: 4px;
    word-break: break-all;
    color: white;
}
.dropdown-menu__brands .swiper-slide a img {width: 100%;}
.dropdown-menu__brands .swiper-pagination{
    position: unset;
    margin-top: 40px;
    font-size: 0;
}
.dropdown-menu__brands .swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
.dropdown-menu__brands .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    margin: 0 10px;
    background: white;
}
.dropdown-menu-wrapper iframe._hidden, .dropdown-menu-mob {display: none;}

@media (max-width: 1500.9px) {
    .dropdown-menu__sidebar {display: none;}
}
@media (max-width: 991.9px) {
    /* Скрываем элементы, но оставляем dropdown-menu-wrapper видимым, иначе меню недоступно */
    .header-elements__phone, .header-elements__btn {display: none;}
    .dropdown-menu-mob {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        display: flex;
        flex-direction: column;
        transform: translate3d(0, -100%, 0);
        transition: transform 0.8s;
        background-color: rgba(0, 0, 0, 0.3);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }
    .dropdown-menu-mob._active {transform: translate3d(0, 0, 0);}
    .dropdown-menu-mob__span {
        font-weight: 800;
        line-height: 155%;
        text-transform: uppercase;
    }
    .dropdown-menu-mob__brands {
        display: grid;
        gap: 20px;
        margin-top: 20px;
    }
    .dropdown-menu-mob__brands a {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .dropdown-menu-mob__brands a img {width: 100%;}
    .dropdown-menu-mob iframe._hidden {display: none;}
    .dropdown-menu-mob__mob-contacts {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    .mob-contacts__dividing-line {
        height: 1px;
        margin: 16px 0 10px 0;
        background-color: rgba(0, 0, 0, 0.2);
    }
}
@media (max-width: 1880.9px) and (min-width: 321px) {
    .shop__cross {transform: translate3d(calc(15px + (20 - 15) * ((100vw - 321px) / (1880 - 321))), 0, 0);} /* сокращено */
}

/* Дальнейшие правила адаптива и кастомного меню сохранены, см. style.css при необходимости */

/* === Header language switcher (Polylang) === */
.header-elements__lang-switcher{
    display:flex;
    align-items:center;
    position:relative;
    padding:0 12px; /* внутренний отступ для разделителей */
}
.header-elements__lang-switcher::before{
    content:'';
    display:block;
    width:1px;
    height:24px;
    background:rgba(0,0,0,.25);
}
.header-elements__lang-switcher::before{margin-right:12px;}
.header-elements__lang-switcher::after{
    content:'';
    display:block;
    width:1px;
    height:24px;
    background:rgba(0,0,0,.25);
    margin-left:12px;
}
.header-elements__lang-switcher ul{
    list-style:none!important;
    margin:0;
    padding:0;
    display:flex;
    gap:8px;
}
.header-elements__lang-switcher li{display:inline-block;}
.header-elements__lang-switcher a{
    font-weight:600;
    text-transform:uppercase;
    text-decoration:none;
    color:#000;
}
.header-elements__lang-switcher a:hover{text-decoration:underline;}

/* вертикальный разделитель перед иконкой корзины */
.header-element.cartcopy_elem{
    margin-left:12px;
    padding-left:0;
    border-left:none;
} 