/* Темная тема (по умолчанию) */
:root {
  --primary-color: #438afe;
  --hover-color: #6da7ff;
  --primary-color-filter: brightness(0) saturate(100%) invert(48%) sepia(98%) saturate(1575%) hue-rotate(198deg) brightness(102%) contrast(99%);
  --background-color-button: #31404f;
  --background-color: #17212b;
  --text-color: white;
  --image-background: white;
  --down-text-color: #a0b4c9;
  --button-hover: #1e2936;
  --bottom-tab-icons: #8a9aa9;
  --search-border: #3c4a5a;
  --bottom-tab: #263342;
  --border-tab: #2c3744;
  --p-sale: #ff418b;
  --p-normal: aqua;
}

/* Светлая тема */
[data-theme="light"] {
  --primary-color: #438afe;
  --hover-color: #147ce5;
  --primary-color-filter: brightness(0) saturate(100%) invert(30%) sepia(98%) saturate(2475%) hue-rotate(192deg) brightness(93%) contrast(93%);
  --background-color-button: #f5f5f7;
  --background-color: #ffffff;
  --text-color: #1d1d1f;
  --image-background: #f5f5f7;
  --down-text-color: #86868b;
  --button-hover: #e5e5e7;
  --bottom-tab-icons: #86868b;
  --search-border: #d2d2d7;
  --bottom-tab: #f5f5f7;
  --border-tab: #e5e5e7;
  --p-sale: #ff453a;
  --p-normal: #30d158;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background-color);
  overflow-x: hidden;
  color: var(--text-color);
  font-family: "Montserrat", sans-serif;
  padding-left: 5px;
  padding-right: 5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
div,
span,
a,
button,
input {
  font-family: "Montserrat", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  /*transition: color 0.3s ease;*/
}

a:hover {
  color: var(--hover-color);
}

.card {
  border-radius: 10px;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  border-radius: 50px;
  padding: 10px 20px;
  border: none;
  /*transition: all 0.3s ease;*/
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 138, 254, 0.3);
}

input,
textarea,
select {
  font-family: "Montserrat", sans-serif;
  border-radius: 10px;
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(67, 138, 254, 0.25);
}

/* Стили для контейнеров */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 40px 0;
}

.section-title {
  font-size: 14px;
  color: var(--bott);
  margin-bottom: 10px;
  padding-left: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Стили для нижней панели навигации */
.tab-icon img {
  filter: brightness(0) invert(0.6);
  /* Серый цвет для неактивных вкладок */
}

.tab-icon {
  font-size: 20px;
  margin-bottom: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
}

.bottom-tab.active .tab-icon img {
  filter: var(--primary-color-filter);
  /* Синий цвет для активной вкладки */
}