@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --mantis: #7ac74f;
  --argentinian-blue: #4bb3fd;
  --ghost-white: #f7f7ff;
  --prussian-blue: #0b3954;
  --ut-orange: #ff8811;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
}

html {
  height: 100%;
  margin: 0;
}
main {
  flex: 1;
}

body {
  font-family: Arial, sans-serif;
  margin: 0px;
  line-height: 1.6;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 28px;
}

p {
  font-size: 18px;
}
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

.dark-mode .navbar-dark .nav-link {
  color: #e8eef6 !important;
  transition: color 0.3s ease;
}

.dark-mode .navbar-dark .nav-link:hover {
  color: #00bcd4 !important;
}

.dark-mode .navbar-dark .nav-link.active {
  color: #00bcd4 !important;
}

.dark-mode footer a {
  color: #12afe4 !important;
  transition: color 0.3s ease;
}

.dark-mode footer a:hover {
  color: #76d4ff !important;
}

.dark-mode footer ion-icon {
  color: #12afe4 !important;
}

.dark-mode footer {
  background-color: #0f0f0f !important;
  color: #e8eef6 !important;
  border-top: 1px solid #2e2e2e;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.dark-mode .text-dark {
  color: #f1f1f1 !important;
}

.dark-mode .btn-outline-light {
  border-color: #f1f1f1;
}

.dark-mode .card {
  background-color: #1e1e1e;
  color: #f1f1f1;
  border: 1px solid #333;
}

.dark-mode .card .card-title {
  color: #f9f9f9;
}

.dark-mode .card .card-text {
  color: #dcdcdc;
}

.dark-mode .btn-mantis {
  background-color: #28a745;
  color: #fff;
  border: none;
}

.dark-mode .btn-outline-mantis {
  border-color: #28a745;
  color: #28a745;
}

.dark-mode .btn-outline-mantis:hover {
  background-color: #28a745;
  color: #fff;
}

.dark-mode #cta .bg-light {
  background-color: #1e1e1e !important;
  color: #f1f1f1;
}

.dark-mode #cta h2,
.dark-mode #cta p,
.dark-mode #cta label {
  color: #f1f1f1 !important;
}

.dark-mode #cta .form-control,
.dark-mode #cta .form-select {
  background-color: #2b2b2b;
  color: #f1f1f1;
  border: 1px solid #444;
}

.dark-mode #cta .form-control::placeholder {
  color: #b0b0b0;
}

.dark-mode #cta .input-group-text {
  background-color: #333;
  border: 1px solid #444;
  color: #f1f1f1;
}

.dark-mode #cta .form-check-label {
  color: #ddd;
}

.dark-mode #cta .btn-mantis {
  background-color: #28a745;
  color: #fff;
  border: none;
}

.dark-mode #cta .btn-mantis:hover {
  background-color: #23943e;
}

.dark-mode #cta {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Overlay Sidebar */
/* .sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  background-color: #eaeaea;
  padding: 1.5rem; 
  z-index: 1050;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2); 
  transform: translateX(-100%);
  transition: transform 0.3s ease;
} */

.sidebar-overlay {
  position: fixed; /* Остается на месте при скролле */
  top: 150px; /* Отступ от шапки */
  left: 20px; /* Отступ слева */
  height: auto; /* Высота по содержимому */
  max-height: 70vh; /* Не больше 70% высоты окна */
  width: 250px; /* Ширина блока */
  background-color: #eaeaea;
  padding: 1.5rem;
  z-index: 1050;
  overflow-y: auto; /* Скролл внутри блока, если элементов много */
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
  border-radius: 10px; /* Скругленные углы */
  transform: translateX(-110%); /* скрыт по умолчанию */
  transition: transform 0.3s ease;
}

/* Dark mode */
.dark-mode .sidebar-overlay {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

.dark-mode .sidebar-overlay a {
  color: #a8d5ff;
}

.dark-mode .sidebar-overlay a:hover {
  color: #66b3ff;
}

/* Появление */
.sidebar-overlay.show {
  transform: translateX(0);
}

/* Ссылки внутри */
.sidebar-overlay a {
  display: block;
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--prussian-blue);
  transition: color 0.3s ease;
}

.sidebar-overlay a:hover {
  color: var(--ut-orange);
}
/* .dark-mode .sidebar,
.dark-mode aside.bg-light {
  background-color: #1e1e1e !important;
  color: #f1f1f1;
  border-right: 1px solid #333;
}

.dark-mode .sidebar h3 {
  color: #f9f9f9;
}

.dark-mode .sidebar a {
  color: #a8d5ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.dark-mode .sidebar a:hover {
  color: #66b3ff;
} */

.accordion-header {
  background-color: #fff;
  color: #000;
}

.accordion-content {
  background-color: #f9f9f9;
  color: #333;
}

.dark-mode #faq .bg-light {
  background-color: #161718 !important;
  color: #e8eef6 !important;
  border-color: #2b2d30;
}

.dark-mode #faq h2 {
  color: #ffffff;
}

.dark-mode #faq .accordion-item {
  background-color: #181a1c;
  border: 1px solid #2b2d30;
  border-radius: 8px;
  margin-bottom: 10px;
}

.dark-mode #faq .accordion-header {
  background-color: #202225;
  color: #e8eef6;
  border: none;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dark-mode #faq .accordion-header:hover {
  background-color: #2b2d30;
}

.dark-mode #faq .accordion-content {
  background-color: #1b1d1f;
  color: #d6d6d6;
  padding: 10px 16px;
  border-top: 1px solid #2b2d30;
}

.dark-theme .bg-light {
  background-color: #222 !important;
  color: #f0f0f0;
}
/* .sidebar {
  transition: background-color 0.3s ease, color 0.3s ease;
} */

/* Tablent styles (≤ 1024px) */
@media (max-width: 1024px) {
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 22px;
  }
  p {
    font-size: 16px;
  }
}

/* Mobile styles (≤ 600px) */
@media (max-width: 600px) {
  main section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .text-content {
    width: 90%;
    margin: 0;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .food-image-wrapper {
    width: 100%;
    height: 300px; /* фиксированная высота блока */
    overflow: hidden; /* обрезаем лишнее */
    border-radius: 0.5rem;
    position: relative;
  }

  #foodImage {
    width: 100%;
    height: 100%; /* растягиваем по контейнеру */
    object-fit: cover; /* обрезка и сохранение пропорций */
    display: block;
    transition: opacity 0.5s ease;
  }
}
.food-image-wrapper {
  width: 100%;
  height: 300px; /* фиксированная высота блока */
  overflow: hidden; /* обрезаем лишнее */
  border-radius: 0.5rem;
  position: relative;
}

#foodImage {
  width: 100%;
  height: 100%; /* растягиваем по контейнеру */
  object-fit: cover; /* обрезка и сохранение пропорций */
  display: block;
  transition: opacity 0.5s ease;
}

/* #header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--prussian-blue) !important;
  color: var(--ghost-white) !important;
  padding: 1rem 2rem;
}

#header h1 {
  color: var(--mantis);
}

#header h1, nav a {
  color: var(--ghost-white) !important;
}

nav {
  background-color: var(--prussian-blue);
  padding: 0.5rem 1rem;
}

.nav-link {
  text-decoration: none;
  color: #f7f7f7;
  align-items: center;
  margin-left: 10px;
  padding: 5px 10px;
  display: flex;
  gap: 8px;
}

.nav-link:link,
.nav-link:visited {
  display: inline-block;
  font-weight: 500;
  font-size: 18px;
  transition: all 0.3s;
}

.nav-link:hover,
.nav-link:active {
  color: #535353;
}

.nav-link.nav-link-bor:link,
.nav-link.nav-link-bor:visited {
  padding: 12px 24px;
  border-radius: 9px;
  color: #fff;
  background-color: #214d6d;
}

.nav-link.nav-link-bor:hover,
.nav-link.nav-link-bor:active {
  background-color: #1c435e;
}*/
/*#header {
  background-color: var(--prussian-blue) !important;
  display: inline;
  margin: 0%;
}
.navbar-custom {
  background-color: var(--prussian-blue) !important;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
  color: var(--ghost-white) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--mantis) !important;
}

.navbar-toggler {
  border-color: var(--ghost-white) !important;
}

.navbar-toggler-icon {
  filter: invert(1);
}*/

.text-mantis {
  color: var(--mantis) !important;
}

main section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 5%;
  min-height: 80vh;
}
.food-image {
  border-radius: 50%;
  width: 250px;
  height: 250px;
  object-fit: cover;

  border: 4px solid var(--mantis);
}

.text-content {
  flex: 1.2;
  font-size: 1rem;
  line-height: 1.8;

  margin: 2rem;
  padding: 1.5em;
  border: 3px solid var(--ut-orange);
  width: 60%;
  height: auto;
  box-sizing: border-box;
}

.text-content h2::before {
  content: "★ ";
  color: var(--ut-orange);
  font-size: 1em;
  margin-right: 0.5rem;
}

.text-content h2::after {
  content: " ★";
  color: var(--mantis);
  font-size: 1em;
  margin-left: 0.5rem;
}

.food-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.food-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.logo {
  height: 54px;
}
/*  -------------- FOOTER ---------------- */
/*.grid {
  display: grid;
  column-gap: 64px;
  row-gap: 96px;
}

.footer {
  padding: 64px 0;
  border-top: 1px solid #eee;
  background-color: var(--prussian-blue) !important;
}

.logo-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: block;
  margin-bottom: 32px;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
}

.social-icon {
  height: 24px;
  width: 24px;
}

.copyright {
  font-size: 14px;
  line-height: 1.6;
  color: #dedee6;
  margin-top: 24px;
}

.footer-heading {
  padding-top: 24px;
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: 700;
  color: #f7f7ff;
}

.contacts {
  font-style: normal;
  font-size: 16px;
  line-height: 1.6;
}

.address {
  margin-bottom: 24px;
}

.footer-link:link,
.footer-link:visited {
  text-decoration: none;
  font-size: 16px;
  color: #dedee6;
  transition: all 0.3s;
}

.footer-link:hover,
.footer-link:active {
  color: #adadb3;
}

.team-col {
  margin-top: 24px;
}

.team-p {
  color: #f7f7ff;
}*/

/* -------------- CTA ----------------- */

.section-cta {
  padding: 48px 0 128px;
}

.cta {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  border-radius: 11px;

  background-image: linear-gradient(to right bottom, #eb984e, #e67e22);
  overflow: hidden;
}

.cta-text-box {
  padding: 48px 64px 64px 64px;
  color: #45260a;
}

.cta .heading-secondary {
  color: inherit;
  margin-bottom: 32px;
}

.cta-text {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.cta-img-box {
  background-image: linear-gradient(
      to right bottom,
      rgba(235, 151, 78, 0.35),
      rgba(230, 125, 34, 0.35)
    ),
    url("../img/eating.jpg");
  background-size: cover;
  background-position: center;
}

/*.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 24px;
}

.cta-form label {
  display: flex;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
}

.cta-form input,
.cta-form select {
  width: 100%;
  padding: 12px;
  font-size: 18px;
  font-family: inherit;
  color: inherit;
  border: none;
  background-color: #fdf2e9;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-form input::placeholder {
  color: #aaa;
}

.cta *:focus {
  outline: none;
  box-shadow: 0 0 0 8px rgba(253, 242, 233, 0.5);
}*/

/*.btn,
.btn:link,
.btn:visited {
  display: inline-block;

  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

.btn--form {
  background-color: #45260a;
  color: #fdf2e9;
  align-self: end;
  padding: 12px;
}

.btn--form:hover {
  background-color: #fff;
  color: #555;
}*/

.card {
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  margin: 1rem;
  font-size: 1.2rem;
  color: #333;
}

.card p {
  margin: 0 1rem 1rem;
  color: #666;
  flex-grow: 1;
}

.card-btn {
  background-color: #007bff;
  color: white;
  border: none;
  margin: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.card-btn:hover {
  background-color: #0056b3;
}

/* === GRID LAYOUT === */

#header {
  grid-area: header;
}

/* .sidebar {
  grid-area: sidebar;
  background-color: #eaeaea;
  padding: 1rem;
} */

main {
  grid-area: main;
}

#footer {
  grid-area: footer;
}

/* .sidebar h3 {
  margin-bottom: 1rem;
  color: var(--prussian-blue);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin: 10px 0;
}

.sidebar a {
  text-decoration: none;
  color: var(--prussian-blue);
  transition: color 0.3s ease;
}

.sidebar a:hover {
  color: var(--ut-orange);
} */
/* Hide sidebar */
/* .hidden-sidebar {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
} */

/* Expand main content */
.expanded-main {
  grid-column: 1 / 3; /* takes full width */
  transition: grid-column 0.3s ease;
}

/* Чтобы основной контент был по центру */
main {
  max-width: 1200px;
  margin: 0 auto;
}

/*
@media (max-width: 1024px) {
  .card-section {
    flex-wrap: wrap;
    justify-content: center;
  }

  .card {
    flex: 1 1 calc(50% - 2rem);
    max-width: 45%;
  }
}

@media (max-width: 600px) {
  .card-section {
    flex-direction: column;
    align-items: center;
  }

  .card {
    flex: 1 1 100%;
    max-width: 90%;
  }
}*/

#card-section .card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  text-align: center;
}

#card-section .card img {
  object-fit: cover;
  height: 220px;
}

#card-section .card-body {
  flex-grow: 1;
}
.btn-mantis {
  background-color: var(--mantis);
  color: #fff;
  border: none;
  transition: background-color 0.2s ease-in-out;
}
.btn-mantis:hover {
  background-color: #63b13f;
  color: #fff;
}

.btn-outline-mantis {
  border: 2px solid var(--mantis);
  color: var(--mantis);
  transition: 0.2s;
}
.btn-outline-mantis:hover {
  background-color: var(--mantis);
  color: #fff;
}

.btn-argentinian {
  background-color: var(--argentinian-blue);
  color: #fff;
  border: none;
}
.btn-argentinian:hover {
  background-color: #2f9be4;
}
/* HEADER & NAVBAR */
#header,
.navbar-custom {
  background-color: var(--prussian-blue) !important;
}

.navbar-nav li:nth-child(4) {
  margin-left: 2rem; /* расстояние между группами */
  border-left: 1px solid rgba(255, 255, 255, 0.3); /* тонкая линия как разделитель */
  padding-left: 1rem; /* чтобы текст не прилипал к линии */
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
  color: var(--ghost-white) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--mantis) !important;
}

.navbar-toggler {
  border-color: var(--ghost-white) !important;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.logo {
  height: 40px;
  width: auto;
}

main section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 5%;
  min-height: 80vh;
}

.food-image {
  border-radius: 50%;
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 4px solid var(--mantis);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.food-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.text-content {
  flex: 1.2;
  font-size: 1rem;
  line-height: 1.8;
  margin: 2rem;
  padding: 1.5em;
  border: 3px solid var(--ut-orange);
  width: 60%;
}

.text-content h2::before {
  content: "★ ";
  color: var(--ut-orange);
  margin-right: 0.5rem;
}

.text-content h2::after {
  content: " ★";
  color: var(--mantis);
  margin-left: 0.5rem;
}

/* CARDS */
#card-section .card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

#card-section .card img {
  object-fit: cover;
  height: 220px;
}

#card-section .card-body {
  flex-grow: 1;
}

/* BUTTONS */
.card-btn,
.btn-mantis,
.btn-outline-mantis,
.btn-argentinian {
  border-radius: 5px;
  padding: 0.7rem 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.btn-mantis {
  background-color: var(--mantis);
  color: #fff;
  border: none;
}

.btn-mantis:hover {
  background-color: #63b13f;
}

.btn-outline-mantis {
  border: 2px solid var(--mantis);
  color: var(--mantis);
}

.btn-outline-mantis:hover {
  background-color: var(--mantis);
  color: #fff;
}

.btn-argentinian {
  background-color: var(--argentinian-blue);
  color: #fff;
  border: none;
}

.btn-argentinian:hover {
  background-color: #2f9be4;
}

/* FOOTER */
.footer {
  padding: 64px 0;
  background-color: var(--prussian-blue) !important;
  color: #f7f7ff;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: 700;
}

.footer-link {
  text-decoration: none;
  font-size: 16px;
  color: #dedee6;
  transition: 0.3s;
}

.footer-link:hover {
  color: #adadb3;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
}

.social-icon {
  height: 24px;
  width: 24px;
}
.accordion-header {
  background-color: #f8f9fa;
  border: none;
  outline: none;
  width: 100%;
  text-align: left;
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.accordion-header:hover {
  background-color: #e2e6ea;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 10px;
}
.accordion-header.active {
  background-color: #d1e7dd;
}
.accordion-content p {
  margin: 10px 0;
}

@media (max-width: 991.98px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .navbar-toggler {
    margin: 10px auto;
  }

  .navbar-collapse {
    width: 100%;
  }
}

/* Popup overlay (background) */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup content box */
.popup-content {
  background: #fff;
  padding: 20px 24px;
  border-radius: 12px;
  width: 92%;
  max-width: 540px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Close button (X) */
.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #333;
}
.popup-close:hover {
  color: #d33;
}

.dark-mode .popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup content box */
.dark-mode .popup-content {
  background: #8e4141;
  padding: 20px 24px;
  border-radius: 12px;
  width: 92%;
  max-width: 540px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Close button (X) */
.dark-mode .popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #f1f1f1;
}
.dark-mode .popup-close:hover {
  color: rgb(67, 88, 132);
}

.login-popup {
  max-width: 400px;
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  animation: popupFade 0.3s ease;
}

.login-step {
  display: none;
}

.login-step.active {
  display: block;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
#greeting {
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  padding: 15px 20px;
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.ratingContainer {
  margin-top: 40px;
  margin-bottom: -20px;
}

.counter::after {
  content: " Ordered";
}

section {
  margin-bottom: 1.5rem !important;
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  min-height: auto !important;
}

main {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

@media (max-width: 768px) {
  section {
    margin-bottom: 1rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}
/* Sidebar dark mode */
.dark-mode .sidebar-overlay {
  background-color: #1e1e1e !important;
  color: #f1f1f1;
  border-left: 1px solid #333;
}

.dark-mode .sidebar-overlay h3 {
  color: #f9f9f9;
}

.dark-mode .sidebar-overlay a {
  color: #a8d5ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.dark-mode .sidebar-overlay a:hover {
  color: #66b3ff;
}

/* Search tools dark mode */
.dark-mode #search-tools {
  background-color: #2a2a2a;
  padding: 1rem;
  border-radius: 8px;
  color: #f1f1f1;
}

.dark-mode #search-tools label,
.dark-mode #search-tools small {
  color: #d1d1d1;
}

.dark-mode #search-tools input.form-control {
  background-color: #3a3a3a;
  color: #f1f1f1;
  border: 1px solid #555;
}

.dark-mode #search-tools input.form-control::placeholder {
  color: #aaa;
}

.dark-mode #search-tools .btn-outline-secondary {
  color: #f1f1f1;
  border-color: #555;
}

.dark-mode #search-tools .btn-outline-secondary:hover {
  background-color: #444;
  border-color: #777;
  color: #fff;
}

/* Popup overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Popup content */
.popup-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  position: relative;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

#logout-btn {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-45%);
  background: white;
  color: black;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 5px 10px;
  display: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#profile-popup .popup-content {
  background: white;
  color: black;
  padding: 25px 30px;
  border-radius: 10px;
  width: 300px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

#profile-popup p {
  margin: 10px 0;
  font-size: 16px;
}

/* Прогресс-бар сверху */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px; /* толщина линии */
  width: 0%;
  background: linear-gradient(90deg, #28a745, #80ed99);
  z-index: 9999;
  transition: width 0.15s ease-out;
}
