body {
  padding-top: 0;
}

.navbar-brand .logo {
  height: 96px;
  width: auto;
  transition: height 0.2s ease;
  border-radius: 8px;
}

.logo-text {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0d6efd;
  transition: font-size 0.2s ease;
}

/*  ЦВЕТ ТЕКСТА В МЕНЮ (чёрный) */
.header-nav-list>li>a,
.header-nav-list .dropdown-menu-custom li a,
#small-header .nav-link,
#small-header .dropdown-item {
  color: #212529;
}

.header-nav-list>li>a:hover,
.header-nav-list .dropdown-menu-custom li a:hover,
#small-header .nav-link:hover,
#small-header .dropdown-item:hover {
  color: #0d6efd;
}

/* Стили для мобильного меню */
@media (max-width: 992px) {
  #small-header .navbar-nav .nav-link {
    color: #212529;
  }

  #small-header .navbar-nav .dropdown-menu .dropdown-item {
    color: #212529;
  }

  #small-header .navbar-nav .dropdown-menu .dropdown-item:hover {
    color: #0d6efd;
  }
}

/* Очень большие экраны (от 1600px) */
@media (min-width: 1600px) {
  .navbar-brand .logo {
    height: 110px;
  }

  .logo-text {
    font-size: 2.8rem;
  }
}

@media (max-width: 1399px) {
  .navbar-brand .logo {
    height: 88px;
  }

  .logo-text {
    font-size: 2.2rem;
  }
}

@media (max-width: 1199px) {
  .navbar-brand .logo {
    height: 80px;
  }

  .logo-text {
    font-size: 2.0rem;
  }
}

@media (max-width: 991px) {
  .navbar-brand .logo {
    height: 72px;
  }

  .logo-text {
    font-size: 1.8rem;
  }
}

@media (max-width: 767px) {
  .navbar-brand .logo {
    height: 64px;
  }

  .logo-text {
    font-size: 1.6rem;
  }
}

@media (max-width: 575px) {
  .navbar-brand .logo {
    height: 56px;
  }

  .logo-text {
    font-size: 1.4rem;
  }
}

@media (max-width: 399px) {
  .navbar-brand .logo {
    height: 48px;
  }

  .logo-text {
    font-size: 1.2rem;
    display: none;
  }
}

@media (max-width: 349px) {
  .navbar-brand .logo {
    height: 42px;
  }

  .logo-text {
    font-size: 1rem;
  }
}

/* ИКОНКА MAX */
.custom-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  display: inline-block;
  object-fit: contain;
  transition: 0.3s;
}

.footer .social-icons a:hover .custom-icon {
  filter: brightness(0) saturate(100%) invert(32%) sepia(98%) saturate(1730%) hue-rotate(200deg) brightness(95%) contrast(95%);
}

/*  УВЕЛИЧЕНИЕ ТЕКСТА В МЕНЮ*/
.navbar-nav .nav-link {
  font-size: 1.1rem;
  font-weight: 500;
}

/*СТИЛИ ДЛЯ БОЛЬШОЙ ШАПКИ*/
.large-header {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  padding: 30px 0 20px 0;
  transition: all 0.3s ease;
}

.large-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.header-logo-block .logo {
  height: 100px;
  width: auto;
}

.header-info-block {
  text-align: center;
  flex: 1;
}

.header-description {
  font-size: 1.3rem;
  font-weight: 400;
  color: #212529;
  line-height: 1.4;
  margin-bottom: 6px;
}

.header-description .brand-name {
  font-weight: 700;
  color: #0d6efd;
}

.header-description .brand-tagline {
  font-weight: 400;
  color: #495057;
}

.header-subtitle {
  font-size: 1rem;
  color: #6c757d;
}

.header-actions-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.header-phone a {
  font-size: 1.4rem;
  font-weight: 700;
  color: #212529;
  text-decoration: none;
}

.btn-custom-header {
  padding: 10px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  margin-top: 5px;
}

.header-nav-wrapper {
  width: 100%;
  border-top: 1px solid #e9ecef;
  margin-top: 15px;
  padding-top: 15px;
}

.header-nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 25px;
}

.header-nav-list>li>a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.header-nav-list>li>a:hover {
  color: #0d6efd;
}

.header-nav-list .dropdown {
  position: relative;
}

.header-nav-list .dropdown-menu-custom {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px 0;
  list-style: none;
  z-index: 1000;
}

.header-nav-list .dropdown:hover .dropdown-menu-custom {
  display: block;
}

.header-nav-list .dropdown-menu-custom li a {
  display: block;
  padding: 8px 20px;
  text-decoration: none;
  transition: background 0.2s;
}

.header-nav-list .dropdown-menu-custom li a:hover {
  background: #f8f9fa;
  color: #0d6efd;
}

.header-nav-list .dropdown-menu-custom .dropdown-divider {
  margin: 5px 0;
  border: 0;
  border-top: 1px solid #e9ecef;
}

/* маленькая шапка */
#small-header {
  display: none;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
}

#small-header .logo-small {
  height: 50px;
  width: auto;
}

#small-header .nav-link {
  font-size: 1.05rem;
  font-weight: 500;
}

/*  АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ И МОБИЛЬНЫХ */

/* Планшеты и меньше (до 992px) — показываем маленькую шапку с гамбургером */
@media (max-width: 992px) {
  #large-header {
    display: none;
  }

  #small-header {
    display: flex;
    padding: 8px 0;
  }

  body {
    padding-top: 85px;
  }

  #small-header .logo-small {
    height: 40px;
  }

  .header-phone-mobile {
    font-size: 1rem;
    margin: 0 5px;
  }

  /* Настройка гамбургер-меню */
  #small-header .navbar {
    padding: 0;
    width: 100%;
  }

  #small-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0 15px;
    width: 100%;
  }

  #small-header .navbar-brand {
    flex-shrink: 0;
  }

  #small-header .navbar-toggler {
    flex-shrink: 0;
    margin-left: auto;
    border: none;
    padding: 8px 10px;
  }

  #small-header .navbar-toggler:focus {
    box-shadow: none;
  }

  #small-header .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    background: #ffffff;
    padding: 15px 20px 25px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    max-height: 80vh;
    overflow-y: auto;
    width: auto;
  }

  #small-header .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  #small-header .navbar-nav .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
  }

  #small-header .navbar-nav .nav-link:last-of-type {
    border-bottom: none;
  }

  #small-header .navbar-nav .dropdown-menu {
    border: none;
    background: #f8f9fa;
    padding: 5px 0 5px 15px;
    border-radius: 8px;
    margin-top: 0;
    width: 100%;
    position: static;
    transform: none;
    box-shadow: none;
  }

  #small-header .navbar-nav .dropdown-menu .dropdown-item {
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #e9ecef;
    white-space: normal;
  }

  #small-header .navbar-nav .dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
  }

  #small-header .navbar-nav .dropdown-menu .dropdown-item:hover {
    background: transparent;
  }

  #small-header .navbar-nav .dropdown-toggle::after {
    float: right;
    margin-top: 8px;
  }

  #small-header .navbar-nav .btn-primary {
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
    margin-top: 10px;
    width: 100%;
  }
}

/* ТЕЛЕФОНЫ (до 768px) */

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

  #small-header {
    padding: 6px 0;
  }

  #small-header .logo-small {
    height: 36px;
  }

  #small-header .navbar-collapse {
    left: 10px;
    right: 10px;
    padding: 12px 15px 20px;
  }

  .header-phone-mobile {
    font-size: 1rem;
  }
}

/* МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 576px) */
@media (max-width: 576px) {
  body {
    padding-top: 75px;
  }

  #small-header .logo-small {
    height: 34px;
  }

  .header-phone-mobile {
    font-size: 1rem;
  }

  #small-header .navbar-collapse {
    left: 8px;
    right: 8px;
    padding: 10px 12px 18px;
  }

  #small-header .navbar-nav .nav-link {
    font-size: 0.95rem;
    padding: 10px 0;
  }
}

/*  ОЧЕНЬ МАЛЕНЬКИЕ (до 400px)  */
@media (max-width: 400px) {
  body {
    padding-top: 70px;
  }

  #small-header .logo-small {
    height: 30px;
  }

  .header-phone-mobile {
    font-size: 1rem;
  }

  #small-header .navbar-toggler {
    padding: 4px 6px;
  }

  #small-header .navbar-toggler-icon {
    width: 1rem;
    height: 1rem;
  }

  #small-header .navbar-collapse {
    padding: 8px 10px 15px;
    left: 5px;
    right: 5px;
  }

  #small-header .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 8px 0;
  }

  #small-header .navbar-nav .dropdown-menu .dropdown-item {
    font-size: 0.85rem;
    padding: 8px 0;
  }
}

/* чтобы не перекрывались шапкой*/
section[id] {
  scroll-margin-top: 100px;
}

@media (max-width: 992px) {
  section[id] {
    scroll-margin-top: 90px;
  }
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 85px;
  }
}

@media (max-width: 576px) {
  section[id] {
    scroll-margin-top: 80px;
  }
}

@media (max-width: 400px) {
  section[id] {
    scroll-margin-top: 75px;
  }
}

/* футер */
.footer {
  background-color: #212529;
  color: #adb5bd;
}

.footer a {
  color: #adb5bd;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer .social-icons a {
  display: inline-block;
  margin: 0 10px;
  font-size: 1.5rem;
  color: #adb5bd;
  transition: color 0.3s;
}

.footer .social-icons a:hover {
  color: #0d6efd;
}

.footer h5 {
  margin-bottom: 1rem;
}

/* футер для мобилки */
@media (max-width: 767px) {
  .footer {
    text-align: center;
  }

  .footer .col-md-3 {
    margin-bottom: 25px;
  }

  .footer .col-md-3:last-child {
    margin-bottom: 0;
  }

  .footer h5 {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .footer p {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .footer ul li {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }

  .footer ul li a {
    font-size: 1.5rem;
  }

  .footer .small {
    font-size: 0.9rem;
  }

  .footer .social-icons a {
    font-size: 1.8rem;
    margin: 0 12px;
  }

  .footer .social-icons {
    margin-bottom: 5px;
  }

  .footer .custom-icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 576px) {
  .footer h5 {
    font-size: 1.3rem;
  }

  .footer p {
    font-size: 1.3rem;
  }

  .footer ul li {
    font-size: 0.95rem;
  }

  .footer ul li a {
    font-size: 1.3rem;
  }

  .footer .social-icons a {
    font-size: 1.6rem;
    margin: 0 10px;
  }

  .footer .custom-icon {
    width: 24px;
    height: 24px;
  }

  .footer .small {
    font-size: 1.3rem;
  }
}

/* Исправление для иконки max.png */
.footer .social-icons a img.custom-icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: middle;
  object-fit: contain;
  border: none;
  /* Убирает возможные синие рамки */
  /* margin: 0; */
  /* Убирает отступы */
  padding: 0;
  /* Убирает внутренние отступы */
  color: #0b5ed7;
  margin-bottom: 6px;
}

/* Эффект при наведении (синий цвет) */
.footer .social-icons a:hover img.custom-icon {
  filter: brightness(0) saturate(100%) invert(32%) sepia(98%) saturate(1730%) hue-rotate(200deg) brightness(95%) contrast(95%);
}


.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 20px 25px;
  z-index: 1060;
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
}

.cookie-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px 30px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-content a {
  color: #ffc107;
  text-decoration: underline;
}

.cookie-content a:hover {
  color: #ffdb7d;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-buttons .btn-accept {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-buttons .btn-accept:hover {
  background: #0b5ed7;
  transform: scale(1.02);
}

.cookie-buttons .btn-decline {
  background: transparent;
  color: #adb5bd;
  border: 1px solid #495057;
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-buttons .btn-decline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: #6c757d;
}

@media (max-width: 768px) {
  .cookie-banner {
      padding: 15px 20px;
  }
  
  .cookie-content {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
  }
  
  .cookie-content p {
      font-size: 0.85rem;
      text-align: center;
  }
  
  .cookie-buttons {
      justify-content: center;
      width: 100%;
  }
  
  .cookie-buttons .btn-accept,
  .cookie-buttons .btn-decline {
      flex: 1;
      padding: 10px 16px;
      font-size: 0.9rem;
      text-align: center;
      min-width: 120px;
  }
}
