:root {
  --primary-color: #e74c3c;
  --primary-light: #ff6b5b;
  --orange-color: #ff914d;
  --secondary-color: #27ae60;
  --light-green: #e8f8f5;
  --dark-color: #2c3e50;
  --light-color: #f5f6f7;
  --footer-color: #2c3e50;
  --menu-color: #2c3e50;
  --card-bg: #ffffff;
  --text-color: #333333;
  --light-text: #bdc3c7;
}

body {
  background-color: #fafafa;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-color);
}

/* Убираем подчеркивание у всех ссылок */
a {
  text-decoration: none !important;
}

.header-white {
  background-color: white;
  padding: 20px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.logo {
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: var(--dark-color);
  font-family: "Montserrat", sans-serif;
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-highlight {
  background-color: var(--primary-color);
  color: white;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-block;
  transform: skew(-12deg);
  margin-left: 6px;
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.phone-link {
  font-weight: 700;
  color: var(--dark-color);
  text-decoration: none;
  _display: flex;
  align-items: center;
  margin-right: 25px;
  font-size: clamp(1rem, 1.5vw, 1.7rem);
}
.phone-link i {
  margin-right: 5px;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.gradient-stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--orange-color) 0%, var(--primary-color) 100%);
  margin: 0;
}

.title-stripe {
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--orange-color) 0%, var(--primary-color) 100%);
  margin: 20px auto 30px;
  border-radius: 3px;
}

/* Меню */
.navbar-custom {
  background-color: var(--menu-color);
  padding: 0;
}

.navbar-custom .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
}

.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-custom .nav-link {
  color: white;
  font-weight: 600;
  padding: 12px 20px;
  transition: all 0.3s;
  text-align: center;
  white-space: nowrap;
  border-radius: 6px;
  font-size: 1rem;
}

.navbar-custom .nav-item {
  margin: 5px;
}

.navbar-nav {
  justify-content: center;
}

.navbar-custom .nav-link i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.navbar-custom .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-custom .nav-link.active {
  background-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

@media (max-width: 992px) {
  .navbar-custom .navbar-nav {
    flex-direction: column;
  }
  .navbar-custom .navbar-nav .nav-link {
    text-align: left;
  }
}

/* Слайдер */
.carousel-container {
  max-width: 1200px;
  margin: 0 auto 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(44, 62, 80, 0.85);
  padding: 20px;
  border-radius: 8px;
  bottom: 60px;
  left: 10%;
  right: 10%;
}

.carousel-caption h3 {
  font-size: 1.8rem;
  font-weight: 700;
}

.slogan-card {
  background-color: var(--light-green);
  border: none;
  padding: 25px;
  border-radius: 12px;
  _margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.slogan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--secondary-color);
}

.slogan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.slogan-card i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* Карточки производителей - улучшенный стиль */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.brand-card {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: none;
  opacity: 0;
  position: relative;
  z-index: 1;
}

.brand-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(255, 145, 77, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.brand-card.animated {
  opacity: 1;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12), 0 10px 10px rgba(0, 0, 0, 0.08);
}

.brand-card:hover::before {
  opacity: 1;
}

.brand-logo-container {
  padding: 40px 30px;
  background: white;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.brand-logo {
  max-height: 90px;
  max-width: 100%;
  object-fit: contain;
  _filter: grayscale(100%) opacity(0.9);
  transition: all 0.4s ease;
}

/* Заглушка для логотипа - улучшенный стиль */
.brand-logo-placeholder {
  width: 140px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
  border-radius: 8px;
  color: var(--dark-color);
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  padding: 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.brand-card:hover .brand-logo {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

.brand-card:hover .brand-logo-placeholder {
  background: linear-gradient(135deg, #e9f5ff 0%, #d0e5f7 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-card-body {
  padding: 25px 20px;
  text-align: center;
  background: #f9f9f9;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.brand-card:hover .brand-card-body {
  background: white;
}

.brand-name {
  color: var(--dark-color);
  font-weight: 700;
  margin: 0;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.brand-name::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.brand-card:hover .brand-name::after {
  width: 100%;
}

/* Подвал */
.footer {
  background-color: var(--footer-color);
  color: var(--light-color);
  padding: 50px 0 30px;
}

.footer h5 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
  font-weight: 700;
  color: white;
}

.footer h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-link {
  color: var(--light-text);
  transition: all 0.2s;
  display: block;
  margin-bottom: 10px;
}

.footer-link:hover {
  color: white;
  transform: translateX(5px);
}

.footer-link i {
  margin-right: 8px;
  color: var(--primary-color);
}

.payment-methods {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.payment-method {
  width: 50px;
  height: 30px;
  background: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.payment-method img {
  max-width: 100%;
  max-height: 100%;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  font-size: 0.9rem;
}

/* Анимации */
.wow {
  visibility: hidden;
}

.animate__animated {
  visibility: visible;
}

/* Адаптивность */
@media (max-width: 768px) {
  .carousel-item img {
    height: 300px;
  }

  .carousel-caption {
    bottom: 30px;
    padding: 15px;
  }

  .carousel-caption h3 {
    font-size: 1.4rem;
  }

  .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
}

/* ==================================================================== */
#logon_panel {
  display: none;
  position: absolute;
  top: -300px;
  left: 50%;
  margin-left: -185px;
  width: 370px;
  border: 4px solid #76aed3;
  z-index: 9998;
  background-color: #f0f0f0;
  padding-bottom: 7px;
}
.logon-cms {
  position: relative;
}
.logon-cms a {
  background: transparent;
  display: block;
  margin: 10px 0 0 20px;
  width: 88px;
  height: 31px;
}
.logon-cms span {
  position: absolute;
  top: 18px;
  left: 55px;
  font: 11px Arial, Verdana, Helvetica, sans-serif;
  color: #818181;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  z-index: 1000;
}
.logon-cms div {
  /* ico_close*/
  position: absolute;
  top: -10px;
  right: 0;
  width: 24px;
  height: 24px;
  background-position: -96px 0;
  cursor: hand;
  cursor: pointer;
  z-index: 9999;
}

.logon-cms a img {
  border: none;
}
.logon-content {
  padding: 11px 18px;
  text-align: center;
}
#logon_title {
  font: 18px Arial, Verdana, Helvetica, sans-serif;
  color: #bbb;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}
.logon-error {
  color: red !important;
}
.ico-ajax {
  display: none;
  float: left;
  margin: 18px 0 0 8px;
  position: absolute;
}
.amnesia {
  display: block;
  float: left;
  margin: 18px 0 0 77px;
  position: absolute;
  background-color: transparent;
  font-size: 14px;
}

hr.logon-line {
  width: 100%;
  height: 2px;
  border: 0;
  clear: both;
  float: left;
  color: transparent;
  background-color: #fafafa;
  margin: 0 0 11px 0;
  border-top: solid 1px #ddd;
}

#logon_form input {
  padding: 3px 0;
  border: solid 1px #ccc;
  outline: none;
  -moz-border-radius: 1px;
  -webkit-border-radius: 1px;
  border-radius: 1px;
  width: 100%;
  height: 30px;
  margin: 9px 0;
  text-align: center;
  font: 18px Arial, Verdana, Helvetica, sans-serif;
}
#logon_form input:hover {
  border-color: #999;
}
#logon_form input.ico-user {
  background: #fff url("../img/ico_user.png") no-repeat 1% 50%;
}
#logon_form input.ico-email {
  background: #fff url("../img/ico_mail.png") no-repeat 1% 50%;
}
#logon_form input.ico-key {
  background: #f0f0f0 url("../img/ico_key.png") no-repeat 1% 50%;
}
#logon_form input[type="password"] {
  background: #fff url("../img/ico_passw.png") no-repeat 1% 50%;
}

#logon_form input[type="button"] {
  width: 40%;
  height: 36px;
  float: right;
  font: 18px Arial, Verdana, Helvetica, sans-serif;
  color: #999;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);

  background-color: #eee;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
  background-image: -webkit-linear-gradient(top, #fff, #eee);
  background-image: -moz-linear-gradient(top, #fff, #eee);
  background-image: -ms-linear-gradient(top, #fff, #eee);
  background-image: -o-linear-gradient(top, #fff, #eee);
  background-image: linear-gradient(top, #fff, #eee);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#eeeeee');
  -moz-box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.7) inset;
  -webkit-box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.7) inset;
  box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.7) inset;
}
#logon_form input[type="button"]:hover {
  border: solid 1px #ccc;
  background-color: #ddd;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
  background-image: -webkit-linear-gradient(top, #fff, #ddd);
  background-image: -moz-linear-gradient(top, #fff, #ddd);
  background-image: -ms-linear-gradient(top, #fff, #ddd);
  background-image: -o-linear-gradient(top, #fff, #ddd);
  background-image: linear-gradient(top, #fff, #ddd);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#dddddd');
}
#logon_form input[type="button"]:active {
  -moz-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1) inset;
  -webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1) inset;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1) inset;
  position: relative;
  top: 1px;
  outline: 0;
}
#logon_form input[type="button"]::-moz-focus-inner {
  /* */
  border: none;
}
#logon_form input[type="button"]:focus {
  outline: 0;
}
