@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap");

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Gilroy, sans-serif;
  background-color: #0b0b0b;
  color: #f5f5f5;
  padding-top: 75px;
  max-width: 30rem;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  overflow-y: scroll;
}

a {
  color: inherit;
  text-decoration: none;
  outline: none !important;
}

ul, ol {
  list-style: none;
}
.modal {
  display: none;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 111;
}

.modal.active {
  display: block;
}

.modal-close {
  position: absolute;
  top: -3.25rem;
  right: -2.25rem;
}

.modal-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 21.5rem;
  width: 82%;
}

.modal-image img {
  width: 100%;
}
.container {
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
  margin: 0 auto;
}

/* Фиксированная шапка */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 30rem;
  height: 110px;
  width: 100%;
  padding: 0.5rem 0;
  background-color: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  max-width: 110px;
  display: none;
}

.header-logo img {
  width: 100%;
  display: block;
}
.header-social{
  display: flex;
  gap: 12px;
}
.header-social a{
  display: block;
  width: 40px;
  height: 40px;
  border-radius:50%;
}
.header-social svg{
   border-radius:50%;
}
.header-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 0;
  padding-left: 0;
  width: 100%;
}

.header-action a {
  margin-right: 0.8rem;
  display: flex;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.header-action a.active {
  opacity: 1;
}

.header-action a img {
  width: 28px;
  height: auto;
}

.header-action a span {
  font-size: 16px;
  padding-left: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.header-botoom{
  margin-top: 1rem;
  display: flex;
  align-items:center;
  justify-content: space-between;
}

/* Навигация по вкладкам (Категории) */
.tabs-head {
  position: fixed;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 30rem;
  width: 100%;
  background: #161616;
  z-index: 99;
  border-bottom: 1px solid #222;
  padding-left: 0;
  padding-top: 0;
}

.tabs-head.tabs-head-fixed {
  top: 75px;
  background: #161616;
}

.tabs-head__row {
  padding-right: 0;
  overflow-x: auto;
  display: flex;
  flex-wrap: nowrap;
  padding: 0.75rem 1rem;
  scrollbar-width: none;
}

.tabs-head__row::-webkit-scrollbar {
  display: none;
}

.tabs-head__item {
  font-family: 'Merriweather', serif;
  margin-right: 1.25rem;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #aaa;
  border-bottom: none !important;
  padding-bottom: 2px;
}

.tabs-head__item.active {
  color: #f9d342;
  border-bottom: 2px solid #f9d342 !important;
}

/* Контент и заголовки разделов */
.content {
  padding-top: 75px;
}

.content-title {
  display: none;
}

.tabs-content__item {
  margin-top: 20px;
}

.tabs-content__item h2 {
  font-family: 'Merriweather', serif;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: .05em;
  font-weight: 700;
  text-transform: uppercase;
  color: #f9d342;
}
.tabs-content__item h2 + p{
  margin-bottom: 40px;
  text-align: center;
}
/* Превращаем старые элементы в стильные карточки */
.item {
  background: #161616;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: border-color 0.3s;
}
.item.novinka{
  margin-bottom: 18px;
  position: relative;
  border:1px solid #f90e0e;
}
.item.novinka:after{
  content:"новинка";
  position: absolute;
  top: -12px;
  right: 20px;
  display: inline-flex;
  justify-content: center;
  align-items:center;
  padding: 6px 12px;
  background:#fff;
  color:#000;
  font-size: 12px;
  border-radius:20px;
}
.item:hover {
  border-color: #f9d342;
}

/* Скрываем старые картинки-заглушки, если они не нужны для чистоты дизайна, или оставляем компактными */
.item-img {
  display: none !important; 
}

.item .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.item-col {
  width: 82%;
  display: flex;
  flex-direction: column;
}

.item-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #fff;
  order: 1;
}

.item-description {
  margin-top: 4px;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #aaa;
  order: 2;
}

.item-price {
  margin-top: 12px;
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f9d342;
  background: rgba(249, 211, 66, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(249, 211, 66, 0.2);
  order: 3;
}

/* Правила и инфо */
.rules {
  padding-top:50px;
}

.rules-tabs__head {
  display: flex;
  justify-content: space-around;
  background: #161616;
  padding: 8px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.rules-tabs__head-item {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #aaa;
  cursor: pointer;
  padding: 4px 8px;
  border-bottom: none !important;
}

.rules-tabs__head-item.active {
  color: #f9d342;
  border-bottom: 2px solid #f9d342 !important;
  opacity: 1;
}

.rules-tabs__item {
  display: none;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #ccc;
}
.rules-tabs__item.active{
  display: block;
}
.rules p {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.map {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #333;
  margin-top: 15px;
}

/* Кнопка отзыва в шапке (если нужно) */
.riews-btn {
  background: #f90e0e;
  color: #fff;
  display: flex;
  width: max-content;
  justify-content: flex-end;
  text-align: right;
  font-size: 0.875rem;
  padding: 0.625rem;
  border-radius: 10px;
  width: 8.125rem;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  white-space: nowrap;
}

/* Прелоадер */
.preload {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #010200;
  z-index: 1000;
}
.preload img{
  width: 100%;
}