/* assets/css/style.css */
/* Небольшие кастомы поверх Tailwind — фон, оверлей мегаменю, карточки. */

body{
  position: relative;
  background: 
    radial-gradient(2000px 1200px at 15% 25%, rgba(255,255,255,.15), transparent 60%),
    radial-gradient(1800px 1000px at 85% 75%, rgba(100,116,139,.08), transparent 55%),
    radial-gradient(1500px 900px at 50% 15%, rgba(148,163,184,.06), transparent 50%),
    radial-gradient(2200px 1400px at 70% 50%, rgba(203,213,225,.05), transparent 65%),
    radial-gradient(1600px 1000px at 30% 80%, rgba(241,245,249,.04), transparent 55%),
    linear-gradient(180deg, rgb(203 213 225) 0%, rgb(226 232 240) 50%, rgb(241 245 249) 100%);
  background-attachment: fixed;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    repeating-linear-gradient(140deg, transparent, transparent 20px, rgba(148,163,184,.12) 20px, rgba(148,163,184,.12) 20.5px),
    repeating-linear-gradient(140deg, transparent, transparent 30px, rgba(203,213,225,.08) 30px, rgba(203,213,225,.08) 30.5px),
    repeating-linear-gradient(40deg, transparent, transparent 20px, rgba(148,163,184,.1) 20px, rgba(148,163,184,.1) 20.5px),
    repeating-linear-gradient(40deg, transparent, transparent 30px, rgba(203,213,225,.06) 30px, rgba(203,213,225,.06) 30.5px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

body::after{
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 1500px 800px at 10% 20%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(ellipse 1200px 600px at 90% 80%, rgba(100,116,139,.03), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-tech{
  position: relative;
  background: radial-gradient(1000px 600px at 15% 10%, rgba(56,189,248,.55), rgba(2,6,23,0) 60%),
              radial-gradient(900px 600px at 85% 20%, rgba(251,191,36,.28), rgba(2,6,23,0) 58%),
              linear-gradient(135deg, #0b1220 0%, #0f2a44 35%, #101827 100%);
  overflow: hidden;
}
.hero-tech::before{
  content:"";
  position:absolute; inset:0;
  background-image: url('../img/1.jpg');
  background-size: cover;
  background-position: center;
  opacity: .35;
  filter: saturate(1.2) contrast(1.1) brightness(0.85);
}
/* Примечание: путь ../img/1.jpg работает, т.к. CSS находится в assets/css/, а img в assets/img/ */
.hero-tech::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(2,6,23,.4), rgba(2,6,23,.65));
}

.card-link{
  display:block;
  border-radius: 1.5rem;
  overflow:hidden;
  border: 1px solid rgb(226 232 240);
  border-left: 4px solid rgb(203 213 225);
  background: #fff;
  box-shadow: 0 10px 30px rgba(2,6,23,.08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, border-left-color .15s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  position: relative;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-link:nth-child(1) { animation-delay: 0.1s; }
.card-link:nth-child(2) { animation-delay: 0.2s; }
.card-link:nth-child(3) { animation-delay: 0.3s; }
.card-link:nth-child(4) { animation-delay: 0.4s; }
.card-link:nth-child(5) { animation-delay: 0.5s; }
.card-link:nth-child(6) { animation-delay: 0.6s; }

.card-link:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(2,6,23,.12);
  border-color: rgb(203 213 225);
  border-left-color: rgb(175 190 210);
}

.card-media{
  position: relative;
  height: 160px;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}
.card-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
  transition: background .3s ease;
}
.card-link:hover .card-media{
  transform: scale(1.08);
}
.card-link:hover .card-media::after{
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 100%);
}

.card-body{ 
  padding: 18px; 
  position: relative;
}

.card-title{ 
  font-weight: 600; 
  letter-spacing: -0.01em; 
  font-size: 1rem;
  line-height: 1.4;
  color: rgb(15 23 42);
  margin-bottom: 6px;
}

.card-text{ 
  margin-top: 0; 
  font-size: 13px; 
  color: rgb(100 116 139); 
  line-height: 1.5; 
}

.mini-card{
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgb(226 232 240);
  border-left: 4px solid rgb(15 23 42);
  padding: 16px;
  background: linear-gradient(180deg, #fff, rgb(248 250 252));
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mini-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2,6,23,.08);
  border-color: rgb(203 213 225);
  border-left-color: rgb(15 23 42);
}
.mini-title{ font-weight: 600; color: rgb(15 23 42); }
.mini-text{ margin-top: 6px; font-size: 14px; color: rgb(71 85 105); line-height: 1.5; }

.step{ display:flex; gap: 12px; align-items:flex-start; }
.step-n{
  flex:0 0 auto;
  width: 34px; height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  display:grid; place-items:center;
  font-weight: 700;
}
.step-t{ font-weight: 600; }
.step-d{ font-size: 13px; color: rgba(255,255,255,.75); margin-top: 2px; }

/* --- Overlay (Mega menu) --- */
.overlay{ position: fixed; inset:0; z-index: 60; }
.overlay.hidden{ display:none; }
.overlay-backdrop{
  position:absolute; inset:0;
  background: rgba(2,6,23,.55);
  backdrop-filter: blur(6px);
}
.overlay-panel{
  position: relative;
  margin: 20px auto;
  width: min(1120px, calc(100% - 24px));
  height: min(720px, calc(100% - 40px));
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgb(226 232 240);
  box-shadow: 0 30px 80px rgba(2,6,23,.35);
  overflow: hidden;
  display:flex;
  flex-direction: column;
}
.overlay-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgb(226 232 240);
}
.overlay-close{
  border-radius: 14px;
  padding: 10px;
}
.overlay-close:hover{ background: rgb(241 245 249); }

.overlay-body{
  flex:1 1 auto;
  display:grid;
  grid-template-columns: 300px 1fr;
  min-height: 0;
}
.overlay-aside{
  border-right: 1px solid rgb(226 232 240);
  overflow: auto;
}
.overlay-main{
  overflow: auto;
  min-height: 0;
}
.overlay-main-head{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgb(226 232 240);
  padding: 14px 16px;
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 10px;
  z-index: 1;
}
.overlay-foot{
  border-top: 1px solid rgb(226 232 240);
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content: flex-end;
  gap: 10px;
}

/* --- Request modal tweaks --- */
#requestOverlay .overlay-panel{
  width: min(760px, calc(100% - 24px));
  height: min(560px, calc(100% - 40px));
}
#requestOverlay .overlay-body{
  display: block;
}

.catalog-sections{
  display:grid;
  gap: 6px;
}
.catalog-sections button{
  text-align:left;
  width:100%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: rgb(51 65 85);
}
.catalog-sections button:hover{
  background: rgb(241 245 249);
}
.catalog-sections button.active{
  background: rgb(15 23 42);
  color: white;
  border-color: rgba(15,23,42,.2);
}

.catalog-items{
  padding: 14px 16px 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  column-gap: 24px;
}
.catalog-items > div{
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 2px solid rgb(226 232 240);
  padding-right: 24px;
}
.catalog-items > div:last-child{
  border-right: none;
  padding-right: 0;
}
.catalog-items a{
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: rgb(51 65 85);
  text-decoration: none;
  line-height: 1.5;
  transition: color .15s ease;
  border-bottom: 1px solid transparent;
}
.catalog-items a:hover{
  color: rgb(15 23 42);
  border-bottom-color: rgb(226 232 240);
}

/* Mobile menu */
.mobile-menu{ position: fixed; inset:0; z-index: 70; }
.mobile-menu.hidden{ display:none; }
.mobile-backdrop{ position:absolute; inset:0; background: rgba(2,6,23,.55); backdrop-filter: blur(6px); }
.mobile-panel{
  position:absolute; left: 12px; right: 12px; top: 12px;
  background:#fff;
  border-radius: 20px;
  border: 1px solid rgb(226 232 240);
  box-shadow: 0 30px 80px rgba(2,6,23,.35);
  overflow:hidden;
}

#catalogSort{
  font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 900px){
  .overlay-panel{ height: calc(100% - 24px); margin: 12px auto; }
  .overlay-body{ grid-template-columns: 1fr; }
  .overlay-aside{ border-right: 0; border-bottom: 1px solid rgb(226 232 240); }
  .catalog-items{ grid-template-columns: repeat(2, 1fr); }
  .catalog-items > div:nth-child(2){ border-right: none; padding-right: 0; }
  .catalog-items > div:nth-child(3){ border-right: 2px solid rgb(226 232 240); padding-right: 24px; }
}
/* Bootstrap table styles (adapted for Formoplast design) */
/* Базовый класс таблицы */
.prose .table,
.prose table.table{
  width: 100%;
  margin-bottom: 1rem;
  color: rgb(15 23 42); /* slate-900 */
  border-collapse: collapse;
  vertical-align: top;
  font-size: 0.875rem; /* 14px - компактный размер текста */
  line-height: 1.4; /* Компактный межстрочный интервал */
}
.prose .table > :not(caption) > * > *,
.prose table.table > :not(caption) > * > *{
  padding: 0.625rem 0.5rem; /* Еще больше вертикальные паддинги */
  background-color: transparent;
  border-bottom-width: 1px;
  border-bottom-color: rgb(226 232 240); /* slate-200 */
  box-shadow: inset 0 0 0 9999px transparent;
}
.prose .table > tbody,
.prose table.table > tbody{
  vertical-align: inherit;
}
.prose .table > thead,
.prose table.table > thead{
  vertical-align: bottom;
}
.prose .table > :not(:first-child),
.prose table.table > :not(:first-child){
  border-top: 2px solid rgb(226 232 240); /* slate-200 */
}

/* Заголовки таблицы */
.prose .table thead th,
.prose table.table thead th{
  background-color: rgb(241 245 249); /* slate-100 */
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid rgb(226 232 240); /* slate-200 */
  color: rgb(15 23 42); /* slate-900 */
}
.prose .table tbody td,
.prose table.table tbody td{
  border-bottom: 1px solid rgb(226 232 240); /* slate-200 */
}

/* Обнуляем маргины у <p> внутри ячеек таблиц */
.prose .table p,
.prose table.table p,
.prose table:not(.table) p{
  margin: 0;
  font-size: 0.8125rem; /* 13px - меньше чем основной текст таблицы */
  line-height: 1.4;
}
.prose .table p:not(:last-child),
.prose table.table p:not(:last-child),
.prose table:not(.table) p:not(:last-child){
  margin-bottom: 0.25rem; /* Небольшой отступ между параграфами */
}

/* Полосатые строки (table-striped) */
.prose .table-striped > tbody > tr:nth-of-type(odd) > *,
.prose table.table-striped > tbody > tr:nth-of-type(odd) > *{
  background-color: rgba(241, 245, 249, 0.5); /* slate-100 с прозрачностью */
}
.prose .table-striped-columns > :not(caption) > tr > :nth-child(even),
.prose table.table-striped-columns > :not(caption) > tr > :nth-child(even){
  background-color: rgba(241, 245, 249, 0.5);
}

/* Границы (table-bordered) */
.prose .table-bordered,
.prose table.table-bordered{
  border: 1px solid rgb(226 232 240); /* slate-200 */
}
.prose .table-bordered > :not(caption) > *,
.prose table.table-bordered > :not(caption) > *{
  border-width: 1px 0;
}
.prose .table-bordered > :not(caption) > * > *,
.prose table.table-bordered > :not(caption) > * > *{
  border-width: 0 1px;
  border-color: rgb(226 232 240); /* slate-200 */
}

/* Без границ (table-borderless) */
.prose .table-borderless > :not(caption) > * > *,
.prose table.table-borderless > :not(caption) > * > *{
  border-bottom-width: 0;
}
.prose .table-borderless > :not(:first-child),
.prose table.table-borderless > :not(:first-child){
  border-top-width: 0;
}

/* Эффект при наведении (table-hover) */
.prose .table-hover > tbody > tr:hover > *,
.prose table.table-hover > tbody > tr:hover > *{
  background-color: rgb(248 250 252); /* slate-50 */
  color: rgb(15 23 42); /* slate-900 */
}

/* Компактный размер (table-sm) - еще более компактный */
.prose .table-sm > :not(caption) > * > *,
.prose table.table-sm > :not(caption) > * > *{
  padding: 0.25rem 0.375rem;
  font-size: 0.8125rem; /* 13px */
}

/* Темная тема (table-dark) */
.prose .table-dark,
.prose table.table-dark{
  color: rgb(248 250 252); /* slate-50 */
  border-color: rgb(71 85 105); /* slate-600 */
}
.prose .table-dark > :not(caption) > * > *,
.prose table.table-dark > :not(caption) > * > *{
  border-bottom-color: rgb(71 85 105); /* slate-600 */
  background-color: rgb(15 23 42); /* slate-900 */
  box-shadow: inset 0 0 0 9999px transparent;
}
.prose .table-dark > thead,
.prose table.table-dark > thead{
  border-bottom-color: rgb(71 85 105); /* slate-600 */
}
.prose .table-dark > tbody + tbody,
.prose table.table-dark > tbody + tbody{
  border-top-color: rgb(71 85 105); /* slate-600 */
}
.prose .table-dark.table-striped > tbody > tr:nth-of-type(odd) > *,
.prose table.table-dark.table-striped > tbody > tr:nth-of-type(odd) > *{
  background-color: rgba(30, 41, 59, 0.5); /* slate-800 с прозрачностью */
}
.prose .table-dark.table-hover > tbody > tr:hover > *,
.prose table.table-dark.table-hover > tbody > tr:hover > *{
  background-color: rgba(30, 41, 59, 0.75); /* slate-800 */
  color: rgb(248 250 252); /* slate-50 */
}

/* Цветовые варианты строк/ячеек */
.prose .table-active,
.prose .table-active > th,
.prose .table-active > td{
  background-color: rgba(241, 245, 249, 0.5); /* slate-100 */
}
.prose .table-primary,
.prose .table-primary > th,
.prose .table-primary > td{
  background-color: rgba(2, 132, 199, 0.1); /* sky-600 */
  color: rgb(2, 132, 199);
}
.prose .table-secondary,
.prose .table-secondary > th,
.prose .table-secondary > td{
  background-color: rgba(100, 116, 139, 0.1); /* slate-500 */
  color: rgb(51, 65, 85); /* slate-700 */
}
.prose .table-success,
.prose .table-success > th,
.prose .table-success > td{
  background-color: rgba(34, 197, 94, 0.1); /* green-500 */
  color: rgb(22, 163, 74); /* green-600 */
}
.prose .table-danger,
.prose .table-danger > th,
.prose .table-danger > td{
  background-color: rgba(239, 68, 68, 0.1); /* red-500 */
  color: rgb(220, 38, 38); /* red-600 */
}
.prose .table-warning,
.prose .table-warning > th,
.prose .table-warning > td{
  background-color: rgba(251, 191, 36, 0.1); /* amber-400 */
  color: rgb(217, 119, 6); /* amber-600 */
}
.prose .table-info,
.prose .table-info > th,
.prose .table-info > td{
  background-color: rgba(56, 189, 248, 0.1); /* sky-400 */
  color: rgb(2, 132, 199); /* sky-600 */
}
.prose .table-light,
.prose .table-light > th,
.prose .table-light > td{
  background-color: rgb(248 250 252); /* slate-50 */
  color: rgb(15 23 42); /* slate-900 */
}
.prose .table-dark,
.prose .table-dark > th,
.prose .table-dark > td{
  background-color: rgb(15 23 42); /* slate-900 */
  color: rgb(248 250 252); /* slate-50 */
}

/* Адаптивная обертка (table-responsive) */
.prose .table-responsive{
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose .table-responsive > .table,
.prose .table-responsive > table.table{
  margin-bottom: 0;
}

/* Комбинации классов */
.prose .table-striped.table-hover > tbody > tr:hover > *,
.prose table.table-striped.table-hover > tbody > tr:hover > *{
  background-color: rgb(241 245 249); /* slate-100 */
}

/* Старые стили для обратной совместимости (если таблица без класса .table) */
.prose table:not(.table){
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem; /* 14px - компактный размер текста */
  line-height: 1.4; /* Компактный межстрочный интервал */
}
.prose table:not(.table) th,
.prose table:not(.table) td{
  padding: 0.625rem 0.5rem; /* Еще больше вертикальные паддинги */
}
.prose h1,
.prose h2,
.prose h3,
.prose h4{
  color: rgb(15 23 42);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.prose h1{
  font-size: 1.875rem; /* ~30px */
  margin: 0 0 0.75rem;
}
.prose h2{
  font-size: 1.5rem; /* ~24px */
  margin: 1.75rem 0 0.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgb(226 232 240);
}
.prose h3{
  font-size: 1.25rem; /* ~20px */
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgb(2 132 199); /* sky-600 - голубая линия */
}
.prose h4{
  font-size: 1.125rem; /* ~18px */
  margin: 1rem 0 0.5rem;
}
.prose p{
  margin: 0.75rem 0;
  font-size: 0.9375rem; /* 15px - немного меньше стандартного */
}
.prose ul,
.prose ol{
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
}
.prose ul{
  padding-left: 1.5rem;
}
.prose ol{
  padding-left: 1.75rem;
  counter-reset: list-counter;
}
.prose li{
  margin: 0.5rem 0;
  line-height: 1.6;
  position: relative;
}
/* Маркеры для ul */
.prose ul > li::before{
  content: "•";
  position: absolute;
  left: -1.5rem;
  color: rgb(2 132 199); /* sky-600 */
  font-weight: 600;
  font-size: 1.2em;
  line-height: 1.4;
}
/* Нумерация для ol */
.prose ol > li{
  counter-increment: list-counter;
  padding-left: 1.5rem;
}
.prose ol > li::before{
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  color: rgb(2 132 199); /* sky-600 */
  font-weight: 600;
  min-width: 1.25rem;
  text-align: right;
}
/* Вложенные списки */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul{
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  margin-left: 1rem;
}
.prose ul ul > li::before{
  content: "◦";
  color: rgb(100 116 139); /* slate-500 */
  font-size: 1em;
}
.prose ol ol{
  counter-reset: list-counter;
}
.prose ol ol > li::before{
  content: counter(list-counter, lower-alpha) ".";
  color: rgb(100 116 139); /* slate-500 */
}
.prose a{
  color: rgb(2 132 199); /* sky-600 */
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover{
  color: rgb(3 105 161); /* sky-700 */
}
/* Старые стили для обратной совместимости (если таблица без класса .table) */
.prose table:not(.table) thead th{
  background: rgb(241 245 249);
  font-weight: 600;
  text-align: left;
}
.prose table:not(.table) tbody tr{
  transition: background-color .15s ease;
}
.prose table:not(.table) tbody tr:hover{
  background: rgb(248 250 252);
}

@media (max-width: 768px){
  /* Удерживаем таблицу в пределах контейнера на мобильных */
  .prose table,
  .prose .table{
    width: 100%;
    table-layout: fixed;
  }
  .prose table th,
  .prose table td,
  .prose .table th,
  .prose .table td{
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 520px){
  .catalog-items{ grid-template-columns: 1fr; }
  .catalog-items > div{ border-right: none !important; padding-right: 0 !important; }
  .prose h1{ font-size: 1.5rem; margin-bottom: 0.6rem; }
  .prose h2{ font-size: 1.25rem; margin-top: 1.25rem; }
  .prose h3{ font-size: 1.125rem; }
  .prose h4{ font-size: 1rem; }
  .card-title{ font-size: 0.95rem !important; }
  .prose table,
  .prose .table{ font-size: 0.8125rem; } /* 13px на мобильных */
  .prose table th,
  .prose table td,
  .prose .table th,
  .prose .table td{ padding: 0.25rem 0.375rem; } /* Еще более компактные паддинги на мобильных */
}

/* Bootstrap image classes (img-fluid, responsive) */
.img-fluid,
img.img-fluid{
  max-width: 100%;
  height: auto;
}

.responsive,
img.responsive,
iframe.responsive,
video.responsive,
embed.responsive,
object.responsive{
  max-width: 100%;
  height: auto;
  display: block;
}

/* Для iframe и video с сохранением пропорций */
iframe.responsive,
video.responsive{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* Стандартное соотношение для видео */
}

/* Стили для Яндекс.Карты */
#yandex-map {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#yandex-map > ymaps {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

div.flex-1.min-h-\[400px\] {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Cookies уведомление */
.cookies-notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 360px;
  background: white;
  border: 1px solid rgb(226 232 240);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.15);
  padding: 16px;
}

.cookies-notice.hidden {
  display: none;
}

.cookies-notice-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookies-notice-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(71 85 105);
  margin: 0;
}

.cookies-accept-btn {
  align-self: flex-start;
  padding: 8px 20px;
  background: rgb(15 23 42);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.cookies-accept-btn:hover {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .cookies-notice {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

/* Анимация спиннера */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Скрываем кнопку "вверх" на мобильных устройствах */
@media (max-width: 1023px) {
  #scrollToTop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

