:root {
  --theme-color: #003b75;
  --theme-btn: #007575;
  --theme-card: #00757533;
}

[data-theme="dark"] {
  --theme-color: #003b75;
  --theme-btn: #007575;
  --theme-card: #00757591;
}

[data-theme="dark"] .themed-image {
  filter: brightness(1.1) contrast(1.2);
}

/* По умолчанию — без фильтра */
.themed-image {
  filter: none;
  transition: filter 0.3s ease;
}

.wow {
  margin-bottom: 2%;
}

.border-end,
.border-start {
  border-color: #ffffff8c !important;
}

[data-theme="dark"] .btn:hover {
  background-color: var(--theme-card);
  text-decoration: none;
  color: white;
}

[data-theme="light"] .btn:hover {
  background-color: var(--theme-card);
  text-decoration: none;
  color: white;
}

[data-theme="light"] .btn {
  color: white;
}

.navbar {
  background-color: var(--theme-color) !important;
  border-radius: 20px;
  width: 70%;
  left: 15%;
  top: 20px;
  padding: 0;
}

/* С «Магазином» и корзиной меню не влезает в 70% на узких десктопах
   (и у залогиненного — с ником) и переносится на вторую строку.
   Здесь расширяем «таблетку» так же, как на мобильных. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar {
    width: 90%;
    left: 5%;
  }
}

.navbar a,
.navbar .nav-link:focus,
.navbar .nav-link:hover,
.navbar-brand:focus,
.navbar-brand:hover {
  color: #ffffff;
  text-decoration: none;
}

.towhite,
.towhite:hover,
.towhite:focus {
  color: white !important;
}

footer {
  background-color: var(--theme-color);
  padding: 10px;
}

footer .row {
  justify-content: space-between;
}

footer a,
footer p,
footer h1,
footer h2 {
  color: #ffffff !important;
}

.btn {
  background-color: var(--theme-btn);
  border: none;
  font-size: 1.2rem;
}

.card {
  background-color: var(--theme-card) !important;
  border: none;
  /* from figma: Drop Shadow - x:5, y:5, Blur:10, Spread:0, rgb(0,0,0,0.25) */
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.25) !important;
}

.list-group-item.active {
  border: none;
}

.form-control {
  background-color: #ffffff;
  border: none;
}

.form-control:focus {
  background-color: #ffffff;
}

.active {
  background-color: var(--theme-btn) !important;
  color: white !important;
}

html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.news-title {
  background-color: rgba(0, 117, 117, 0.2);
  border-radius: 20px;
  box-shadow: 5 5 10px rgba(0, 0, 0, 0.25);
  padding: 5px 5px 0px 5px;
  text-align: center;
}

.content-wrapper {
  flex: 1;
  padding-bottom: 5%;
}

.login {
  padding: 5% !important;
  width: 35%;
  padding-left: 6% !important;
  padding-right: 6% !important;
}

input,
.form-control {
  font-weight: 400;
  font-size: 1.2rem;
}

.navbar-collapse {
  flex-basis: 0;
}

.promo {
  margin-bottom: 3%;

}

.promo {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* Соотношение сторон 16:9 */
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.caption {
  padding: 20px;
}

.caption h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #333;
}

.caption p {
  font-size: 1rem;
  line-height: 1.5;
  color: #939393;
}

.meta {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #888;
}

@media (max-width: 768px) {
  .card {
    max-width: 100%;
  }

  .caption h3 {
    font-size: 1.2rem;
  }

  .caption p {
    font-size: 0.9rem;
  }
}


@media (max-width: 768px) {
  .home-zdrussia-card {
    margin-top: 1%;
  }

  .home-zdrussia-card .liu {
    font-size: large !important;
  }

  .offcanvas-backdrop {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px) !important;
  }

  .navbar-toggler {
    padding: 0;
    line-height: 0;
    border: none;
  }

  .offcanvas {
    color: var(--bs-body-color) !important;
  }

  .offcanvas {
    width: 70% !important;
  }

  .offcanvas li {
    font-size: xx-large;
  }

  .navbar {
    border-radius: 8px;
    width: 90% !important;
    left: 5% !important;
  }

  .login {
    width: 100%;
  }

  .preview,
  main svg {
    width: 100% !important;
    height: 100% !important;
  }

  main h1 {
    height: 0 !important;
    font-size: 37px !important;
  }

  main p {
    font-size: 22px !important;
    margin-top: 45px;
  }
}

.home-zdrussia-card {
  background: rgba(0, 59, 117, 0.2) !important;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  padding: 1%;
  height: 100%;
  min-height: 350px;
  align-items: center;
  overflow: hidden;
}


.home-zdrussia-card .uley {
  font-family: RailwayCargoRus2022;
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
}

.home-zdrussia-card .liu {
  display: flex;
  align-items: center;
  justify-content: start;
  flex: 1;
  /* равное распределение по высоте */
  padding: 0 1rem;
  gap: 0.5rem;
  font-size: x-large;
}

.home-zdrussia-card .btn {
  background-color: rgba(0, 59, 117, 1);
  color: white;
  width: fit-content;
  align-self: center;
  margin-top: auto;
}