* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.section-title {
  text-transform: uppercase;
  font-size: 24px;
  padding: 24px 0;
  padding-left: 36px;
  position: relative;
}
.section-title svg {
  position: absolute;
  left: 0;
  top: 50%;
  margin-right: 24px;
  transform: translateY(-37%);
}
.section-title svg path {
  fill: #2c3e50;
}
.page__body {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  min-width: 1024px;
  min-height: 100vh;

  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 24px;
  color: #2c3e50;
  font-style: normal;
}
.container {
  overflow: hidden;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
}
/* ===== КОНТЕЙНЕР (сетка) ===== */
.app-wrapper {
  display: grid;
  grid-template-columns: 3em 1fr; /* сайдбар 240px, контент — всё остальное */
  grid-template-rows: 1fr; /* одна строка на всю высоту */
  height: 100vh; /* на всю высоту экрана */
  gap: 0; /* без отступов между колонками */
}

/* ===== САЙДБАР ===== */
.sidebar {
  background: #e8f4f8;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* скролл внутри сайдбара */
  height: 100vh; /* на всю высоту */
  position: sticky;
  top: 0;
  transition: width 0.25s ease;
  z-index: 100;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
  background: #f0f2f5;
  padding: 24px;
  overflow-y: auto; /* скролл внутри контента */
  height: 100vh; /* на всю высоту */
}
.main {
  padding: 24px;
  overflow-y: auto;
}
.sidebar-menu-link {
  min-height: 42px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  padding-left: 24px;
  padding-right: 36px;
  border-right: 1px solid rgba(44, 62, 80, 0.2);
  transition:
    color 0.2s ease-in-out,
    background-color 0.2s ease-in-out,
    font-weight 0.2s ease-in-out;
}
.sidebar-menu-link:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  border-top: 1px solid rgba(44, 62, 80, 0.2);
  border-bottom: 1px solid rgba(44, 62, 80, 0.2);
  color: #2980b9;
}
.sidebar-menu-link svg path {
  transition: fill 0.2s ease-in-out;
}
.sidebar-menu-link:hover svg path {
  fill: #2980b9;
}
.sidebar-menu-link.active {
  color: #2980b9;
  background-color: #ffffff;
}
.sidebar-menu-link.active svg path {
  fill: #2980b9;
}
.sidebar-menu-link svg {
  margin-right: 32px;
}
.sidebar-menu {
  /* padding: 24px 0; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: left;
  border-bottom: 1px solid #2c3e50;
  border-top: 1px solid #2c3e50;
  border-right: 1px solid rgba(44, 62, 80, 0.2);
}
.sidebar-logo {
  padding: 24px 36px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-right: 1px solid rgba(44, 62, 80, 0.2);
  border-top: 1px solid #2c3e50;
}
.sidebar-logo-icon {
  font-size: 48px;
}
.sidebar-logo-text {
  font-size: 16px;
}
.date,
.time,
.user-profile {
  display: flex;
}
.user-profile,
.sidebar-footer {
  padding: 24px 0;
}
.user-profile {
  padding: 24px 36px 24px 24px;
  margin-top: auto;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid #2c3e50;
  align-items: center;
}
.date,
.time,
.user-profile {
  min-height: 42px;
  align-items: center;
}
.date svg,
.time svg,
.user-profile-left svg {
  margin-right: 32px;
}
.user-profile-left {
  display: flex;
  align-items: center;
}
.sidebar-footer {
  padding: 24px 36px 24px 24px;
  border-right: 1px solid rgba(44, 62, 80, 0.2);
  height: 100%;
}
.user-profile .sidebar-menu-link {
  padding: 0;
  border: none;
}
.datetime {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.sidebar-menu::before,
.sidebar-menu::after {
  content: "";
  display: block; /* или inline-block */
  width: 100%;
  height: 24px;
}

.sidebar-menu-link-user {
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  /* padding-left: 24px;
  padding-right: 36px;
  border-right: 1px solid rgba(44, 62, 80, 0.2); */
  transition:
    background-color 0.2s ease-in-out,
    font-weight 0.2s ease-in-out;

  text-decoration: none;
  color: #2c3e50;
  transition: color 0.2s ease-in-out;
}
.sidebar-menu-link-user:hover {
  background-color: transparent;
  color: #2980b9;
}
.exit svg path {
  transition: fill 0.2s ease-in-out;
}
.exit:hover svg path {
  fill: #2980b9;
}

/*Login html*/
.form-group label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
  font-size: 20px;
}
.btn {
  /* width: 100%; */
  padding: 14px;
  background: #2980b9;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  justify-content: center;
  flex: 0;
  align-items: center;
  /* margin-top: 10px; */
  border: 2px solid #2980b9;
  transition:
    background-color 0.2s ease-in-out,
    color 0.2s ease-in-out;
}

.btn:hover {
  background: #ffffff;
  color: #2980b9;
}
.btn:hover svg path {
  fill: #2980b9;
}

.btn:active {
  transform: scale(0.98);
}
.btn svg path {
  fill: #ffffff;
  transition: fill 0.2s ease-in-out;
}
.btn-add {
  max-width: 170px;
  flex: 0;
}
.btn-white {
  background-color: #ffffff;
  flex: 0;
}
.btn-white svg path {
  fill: #2980b9;
}
.btn-white:hover {
  background-color: #2980b9;
}
.btn-white:hover svg path {
  fill: #ffffff;
}

/* Поле сканирования */
.scan-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.scan-group input {
  flex: 1;
  padding: 14px 18px;
  font-size: 20px;
  border: 2px solid #ddd;
  border-radius: 12px;
  text-align: left;
  /* background: #fafafa; */
  transition: 0.2s;
  width: 100%;
}

.scan-group input:focus {
  border-color: #2980b9;
  outline: none;
  background: white;
}

.scan-group input.found {
  border-color: #2980b9;
}

.scan-group input.not-found {
  border-color: #e74c3c;
  background: #fdedec;
}
/* Стилизация выпадающего списка (работает не во всех браузерах) */
input[list]::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}

input[list]:focus::-webkit-calendar-picker-indicator {
  opacity: 1;
}
.autocomplete-wrapper {
  max-width: 800px;
  width: 100%;
  position: relative;
}
.autocomplete-list {
  position: absolute;
  background-color: #ffffff;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: none;
}
.autocomplete-item {
  padding: 14px 18px;
  width: 100%;
  border-radius: 12px;
}
.autocomplete-item {
  border-bottom: 2px solid #2980b9;
  /* border-left: 2px solid #2980b9; */
  border-radius: 0 0 10px 10px;
}
.show {
  border-left: 2px solid #2980b9;
  border-radius: 0 0 10px 10px;
  display: block;
  z-index: 100;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 12px 0;
  font-weight: 700;
  border-top: 2px solid #2c3e50;
}
.cart-total .total-amount {
  color: #2c3e50;
}

.empty-cart {
  text-align: center;
  padding: 30px 0;
  color: #aaa;
}
.section-subtitle {
  padding-left: 0;
}

/*стили index.html которые нужно проверить*/
/* Шапка */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.header h1 {
  color: #1a3a5c;
  font-size: 28px;
}

.header .links a {
  color: #1a3a5c;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 18px;
  background: white;
  border-radius: 30px;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header .links a:hover {
  background: #eaf2f8;
}

@media (max-width: 800px) {
  .two-columns {
    grid-template-columns: 1fr;
  }
}

/* Карточки */
.card {
  margin-bottom: 30px;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.product-preview {
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

.product-preview .name {
  font-weight: 600;
  color: #1a3a5c;
}

.product-preview .price {
  color: #27ae60;
  font-weight: 700;
}

.product-preview .stock {
  color: #888;
  font-size: 14px;
}

/* Корзина */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cart-table th {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 2px solid #eee;
  color: #888;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

.cart-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-table .qty {
  width: 60px;
  padding: 4px 8px;
  border: 2px solid #ddd;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
}

.cart-table .qty:focus {
  border-color: #1a3a5c;
  outline: none;
}

.cart-table .remove-btn {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
}

.cart-table .remove-btn:hover {
  color: #c0392b;
}

/* Способы оплаты */
.payment-methods {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.payment-methods button {
  padding: 10px 24px;
  border: 2px solid #ddd;
  border-radius: 30px;
  background: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: 0.2s;
  flex: 1;
  min-width: 80px;
}

.payment-methods button:hover {
  border-color: #1a3a5c;
  background: #f8f9fa;
}

.payment-methods button.active-card {
  border-color: #2980b9;
  background: #2980b9;
  color: #ffffff;
}

.payment-methods button.active-sbp {
  border-color: #8e44ad;
  background: #8e44ad;
  color: white;
}

.payment-methods button.active-cash {
  border-color: #27ae60;
  background: #27ae60;
  color: white;
}

/* Кнопка завершения чека */
.btn-checkout {
  width: 100%;
  padding: 18px;
  font-size: 22px;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 10px;
}

.btn-checkout:hover {
  background: #1e8449;
  transform: scale(1.01);
}

.btn-checkout:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
}

/* Сообщения */
.message {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.message.success {
  display: block;
  background: #d5f5e3;
  color: #1a7a42;
}

.message.error {
  display: block;
  background: #fadbd8;
  color: #922b21;
}

.message.info {
  display: block;
  background: #d6eaf8;
  color: #1a5276;
}

/* Удаление по ШК */
.delete-section {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fef9e7;
  border-radius: 10px;
  border: 1px dashed #f1c40f;
}

.delete-section .scan-group {
  margin-bottom: 0;
}

.delete-section .scan-group input {
  font-size: 16px;
  padding: 10px 14px;
}

.delete-section .scan-group .btn-del {
  padding: 10px 20px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.delete-section .scan-group .btn-del:hover {
  background: #c0392b;
}

/*Пин */
.sidebar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
}
/* ===== СБРОС СТИЛЕЙ ДЛЯ BUTTON ===== */
button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
  text-decoration: none;
}

/* Убираем синий фон на мобильных устройствах при тапе */
button:focus {
  outline: none;
}

button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* Для кнопок, которые должны выглядеть как ссылки */
button.link {
  background: none;
  border: none;
  color: #1a3a5c;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/**/
.menu,
.menu-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 100%;
  list-style-type: none;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
  z-index: 10;
  overflow: hidden;
  box-shadow: 2px 0 18px rgba(0, 0, 0, 0.26);
}
.menu-bar li a {
  padding: 0 24px;
}
.menu-button svg path {
  fill: #2c3e50;
}
.menu,
.menu-bar {
  display: flex;
  flex-direction: column;
}
.menu li a {
  display: inline-block;
  height: 3em;
  width: 3em;
  line-height: 3em;
  text-align: center;
  color: #72739f;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.1s ease-in-out;
}

.menu-bar li a:hover,
.menu li a:hover {
  background: #2980b9;
  color: #fff;
}
.menu-bar li a:hover svg path,
.menu li a:hover svg path {
  fill: #ffffff;
}
.menu-item-active {
  background: #2980b9;
}
.menu-bar li a.menu-item-active {
  color: #ffffff;
}
.menu-item-active svg path {
  fill: #ffffff;
}
.menu-bar {
  overflow: hidden;
  left: 3em;
  z-index: 5;
  width: 0;
  height: 100%;
  transition: all 0.3s ease-in-out;
}
.menu-bar li a {
  display: block;
  height: 3em;
  line-height: 3em;
  text-align: left;
  font-size: 24px;
  color: #2c3e50;
  text-decoration: none;
  position: relative;
  font-family: verdana;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.1s ease-in-out;
}
.menu-bar li:first-child a {
  height: 3em;
  /* background: #2980b9; */
  color: #ffffff;
  line-height: 3;
}

.para {
  color: #033f72;
  padding-left: 100px;
  font-size: 3em;
  margin-bottom: 20px;
}

.open {
  width: 10em;
  height: 100%;
}
/* .exit {
  margin-top: auto;
} */

@media all and (max-width: 500px) {
  .container {
    margin-top: 100px;
  }
  .menu {
    height: 5em;
    width: 100%;
  }
  .menu li {
    display: inline-block;
  }
  .menu-bar li a {
    width: 100%;
  }
  .menu-bar {
    width: 100%;
    left: 0;
    bottom: 0;
    height: 0;
  }
  .open {
    width: 100%;
    height: auto;
  }
  .para {
    padding-left: 5px;
  }
}
@media screen and (max-height: 34em) {
  /* .menu li,
        .menu-bar {
          font-size: 70%;
        } */
}
@media screen and (max-height: 34em) and (max-width: 500px) {
  .menu {
    height: 3.5em;
  }
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}
table td {
  padding: 4px 8px;
  border-bottom: 1px solid #f0f0f0;
}
table th {
  background: #f7f7f7;
  color: #333;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 2px solid #e0e4e8;
}
.table-scroll {
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
}
.table-wrapper {
  background: white;
  border-radius: 10px;
  padding: 0 0 10px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
table tr:hover td {
  background: #fafbfc;
}
.btn-small {
  transition: fill 0.2s ease-in-out;
}
.btn-small:hover svg path {
  fill: #2980b9;
}

.search-box {
  max-width: 800px;
}

/* ==========================================
   МОДАЛЬНОЕ ОКНО (своё, без библиотек)
   ========================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-box {
  background: white;
  border-radius: 10px;
  padding: 32px 36px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box .modal-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 12px;
}

.modal-box h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin: 0 0 8px 0;
}

.modal-box .modal-subtitle {
  text-align: center;
  color: #888;
  font-size: 15px;
  margin-bottom: 20px;
}

.modal-box .modal-body {
  font-size: 15px;
  line-height: 1.7;
  color: #2c3e50;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.modal-box .modal-body p {
  margin: 6px 0;
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}

.modal-box .modal-body p:last-child {
  border-bottom: none;
}

.modal-box .modal-body .label {
  color: #888;
  font-weight: 500;
}

.modal-box .modal-body .value {
  font-weight: 600;
  color: #2c3e50;
}

.modal-box .modal-body .value.danger {
  color: #e74c3c;
}

.modal-box .modal-body .value.success {
  color: #27ae60;
}

.modal-box .modal-body .value.warning {
  color: #e67e22;
}

.modal-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 10px;
}

.modal-actions .btn-modal {
  padding: 10px 28px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

.modal-actions .btn-modal:hover {
  transform: scale(1.02);
}

.modal-actions .btn-modal:active {
  transform: scale(0.97);
}

.modal-actions .btn-confirm {
  background: #27ae60;
  color: white;
}

.modal-actions .btn-confirm:hover {
  background: #1e8449;
}

/* .modal-actions .btn-confirm.danger {
  background: #e74c3c;
} */

.modal-actions .btn-confirm.danger:hover {
  background: #c0392b;
}

.modal-actions .btn-confirm.warning {
  background: #f39c12;
}

.modal-actions .btn-confirm.warning:hover {
  background: #d68910;
}

.modal-actions .btn-cancel {
  background: #ecf0f1;
  color: #555;
}

.modal-actions .btn-cancel:hover {
  background: #d5dbdb;
}

/* Успех / Ошибка (автоисчезающие) */
.modal-toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  z-index: 10000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s ease;
  display: none;
  max-width: 90%;
  text-align: center;
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.modal-toast.success {
  background: #d5f5e3;
  color: #1a7a42;
  border: 2px solid #27ae60;
}

.modal-toast.error {
  background: #fadbd8;
  color: #922b21;
  border: 2px solid #e74c3c;
}

.modal-toast.info {
  background: #d6eaf8;
  color: #1a5276;
  border: 2px solid #1a3a5c;
}

.group {
  display: flex;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  width: 100%;
  max-width: 1920px;
  margin-bottom: 0;
  z-index: 100;
  top: 0;
}
.card-header-others {
  gap: 24px;
  margin-left: auto;
}
.card-header-logo,
.card-header-others {
  display: flex;
  align-items: center;
}
.card-header-btns {
  display: flex;
  gap: 8px;
}
.card-header-logo {
  margin-right: 64px;
}

.btn-cancel {
  background: #ecf0f1;
  color: #555;
  border: none;
}

/* Модалка подтверждения — всегда поверх всех */
#modalOverlay {
  z-index: 99999 !important;
}

/* Модалка календаря — ниже */
#calendarModal {
  z-index: 9998 !important;
}

/* Модалка калькулятора — тоже ниже */
#calculatorModal {
  z-index: 9998 !important;
}

/* ===== Иконка календаря с точкой ===== */
.calendar-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calendar-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 10px;
  height: 10px;
  background: #e74c3c;
  border-radius: 50%;
  border: 2px solid white;
  display: none;
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.5);
}

.calendar-dot.show {
  display: block;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
/* ===== День с напоминанием в календаре ===== */
.calendar-day {
  position: relative;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
  text-align: center;
}

.calendar-day.has-reminder::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #e74c3c;
  border-radius: 50%;
}

.calendar-day.today {
  background: #1a3a5c;
  color: white;
}

.calendar-day.today.has-reminder::after {
  background: #f1c40f;
}

.calendar-day.selected {
  background: #eaf2f8;
  border: 2px solid #1a3a5c;
}

.calendar-day:hover {
  background: #f0f4f8;
}
/* ===== КАЛЕНДАРЬ ===== */
#calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.calendar-day {
  padding: 10px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.15s;
  position: relative;
  font-size: 14px;
  background: white;
  border: 2px solid transparent;
}

.calendar-day:hover {
  background: #f0f4f8;
}

.calendar-day.today {
  background: #1a3a5c;
  color: white;
  font-weight: 700;
}

.calendar-day.selected {
  border-color: #1a3a5c;
}

/* Красная точка под днём с напоминанием */
.calendar-day.has-reminder::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #e74c3c;
  border-radius: 50%;
}

.calendar-day.today.has-reminder::after {
  background: #f1c40f;
}

.card-header-logo {
  width: 64px;
}

/* .first-section {
  margin-top: 135px;
} */

/* ===== ЗАЩИТА ОТ ДВОЙНОГО НАЖАТИЯ ===== */
.btn-loading {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Если кнопка с иконкой — спиннер справа */
.btn-loading .btn-text {
  opacity: 0.6;
}
