/* 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;
}

/* === Sketchfab masking (from backup 1610) === */
.skfb-iframe-wrapper {
  /* hide Sketchfab header/footer chrome */
  clip-path: inset(60px 0 50px 0);
  -webkit-clip-path: inset(60px 0 50px 0);
  overflow: hidden;
}

.skfb-active .skfb-iframe-wrapper {
  clip-path: inset(60px 0 50px 0);
  -webkit-clip-path: inset(60px 0 50px 0);
}

@supports not (clip-path: inset(0)) {
  .skfb-iframe-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    z-index: 10;
    pointer-events: none;
  }
  .skfb-iframe-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #fff;
    z-index: 10;
    pointer-events: none;
  }
}

/* === Share & Contact Modals - LIGHT VERSION FROM BACKUP 1610 === */
#share-modal-container,
#contact-modal-container {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.share-modal-window,
.contact-modal-window {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

.share-modal-window {
  max-width: 480px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.close-share-modal,
.close-contact-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-share-modal:hover,
.close-contact-modal:hover {
  background: #f5f5f5;
  color: #333;
}

.share-modal-window h2,
.contact-modal-window h2 {
  margin: 0 0 24px 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.share-modal-window h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.share-configuration-section {
  margin-bottom: 32px;
}

.share-configuration-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #666;
  font-size: 14px;
}

.configuration-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

#configuration-link,
#contact-config-link {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  background: #f9f9f9;
  color: #666;
  font-family: monospace;
}

#configuration-link:focus,
#contact-config-link:focus {
  outline: none;
  border-color: #007bff;
  background: white;
}

#copy-link-btn {
  padding: 12px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

#copy-link-btn:hover {
  background: #0056b3;
}

.social-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  color: #495057;
}

.social-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

.social-btn svg,
.social-btn img {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.share-image-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.share-image-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-image-block:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

.share-image-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  color: #666;
}

.share-image-block span {
  font-weight: 500;
  color: #495057;
  font-size: 16px;
}

/* Contact Icons - Share Modal Style */
.contact-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 20px 0;
}

.contact-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.contact-icon:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

.contact-icon img,
.contact-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #007bff;
}

/* Custom consent checkbox styling */
.consent-checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}

.consent-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.consent-checkbox:hover input ~ .checkmark {
  border-color: #007bff;
}

.consent-checkbox input:checked ~ .checkmark {
  background-color: #007bff;
  border-color: #007bff;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.consent-text {
  flex: 1;
  line-height: 1.4;
}

.contact-submit-btn {
  padding: 16px 32px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 8px;
}

.contact-submit-btn:hover {
  background: #0056b3;
}

.contact-submit-btn:disabled,
.contact-submit-btn.disabled {
  background: #b5b5b5;
  cursor: not-allowed;
  opacity: 0.6;
}

/* reCAPTCHA Styling */
.g-recaptcha {
  margin: 8px 0;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 767px) {
  .share-modal-window,
  .contact-modal-window {
    padding: 24px;
    margin: 20px;
  }
  
  .contact-icons {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .contact-icon {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .configuration-link-row {
    flex-direction: column;
  }
  
  #copy-link-btn {
    width: 100%;
  }
}

.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;
} 