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

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

body {
  font-family: 'Montserrat', sans-serif;
  color: #eee;
  overflow-x: hidden;
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: #4ac0e2;
  text-decoration: none;
}

.fixed-table {
  table-layout: fixed;
  width: 100%;
}

.fixed-table th,
.fixed-table td {
  padding: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle .bar,
.menu-toggle .bar::before,
.menu-toggle .bar::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: #fff;
  transition: all .3s ease;
}

.menu-toggle .bar::before {
  transform: translateY(-8px);
}

.menu-toggle .bar::after {
  transform: translateY(8px);
}

.menu-toggle.active .bar {
  background: transparent;
  pointer-events: none;
}

.menu-toggle.active .bar::before {
  transform: rotate(45deg);
}

.menu-toggle.active .bar::after {
  transform: rotate(-45deg);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  transform: translateX(-100%);
  background: linear-gradient(135deg, #0074D9 0%, #7FDBFF 100%);
  box-shadow: 2px 0 12px rgba(0,0,0,0.5);
  transition: transform .4s ease;
  z-index: 1000;
  padding-top: 4rem;
  overflow-y: auto;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.sidebar-header img {
  width: 80px;
  border-radius: 50%;
}

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

.sidebar nav ul li {
  margin: 1rem 0;
  text-align: center;
}

.sidebar nav ul li a {
  display: inline-block;
  font-size: 1.1rem;
  color: #fff;
  padding: .4rem 1rem;
  border-radius: .25rem;
  transition: background .3s, transform .3s;
}

.sidebar nav ul li a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateX(6px);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 900;
  backdrop-filter: blur(2px);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.section {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  display: none;
  background: transparent;
}

.section.show {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  color: #fff;
}

.lead {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #ddd;
}

h2 {
  font-size: 1.4rem;
  margin: 1.5rem 0 .5rem;
  color: #7FDBFF;
}

.list {
  margin: .5rem 0 1rem 1.2rem;
  color: #eee;
}

.list li {
  margin-bottom: .5rem;
  line-height: 1.4;
}

.section img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.sell-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 600px) {
  .sell-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .sell-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: rgba(127, 219, 255, 0.1);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.product-card .price {
  margin-top: .5rem;
  font-size: 1.1rem;
  color: #7FDBFF;
  font-weight: 700;
}

.news-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.news-card {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  text-align: left;
  max-width: 100%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.news-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: rgba(127, 219, 255, 0.1);
}

.news-text {
  margin-bottom: 0.5rem;
}

.news-text p {
  font-size: 1rem;
  color: #eee;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.news-text p:last-child {
  margin-bottom: 0;
}

.news-date {
  font-size: 0.9rem;
  color: #7FDBFF;
  font-weight: 400;
  text-align: right;
}

.reviews-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.review-card {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  text-align: left;
  max-width: 100%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.review-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: rgba(127, 219, 255, 0.1);
}

.review-text {
  font-size: 1rem;
  color: #eee;
  margin-bottom: 0.5rem;
}

.review-author {
  font-size: 0.9rem;
  color: #7FDBFF;
  text-align: right;
}

.review-author a {
  color: #4ac0e2;
  text-decoration: none;
}

.review-author a:hover {
  text-decoration: underline;
}

a,
.product-card a,
.product-card .long-text,
.section,
.fixed-table td {
  word-break: normal;
}

.faq-item {
  margin-bottom: 1rem;
}

.faq-question {
  display: block;
  font-size: 1.2rem;
  color: #7FDBFF;
  text-decoration: none;
  cursor: pointer;
  padding: 0.5rem;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  transition: background 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.faq-question:active,
.faq-question:focus {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
  padding: 0 1rem;
  background: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.faq-answer.active {
  max-height: 500px;
  padding: 0.5rem 1rem;
}

.menu-toggle:focus,
.sidebar nav ul li a:focus {
  outline: 2px solid #7FDBFF;
  outline-offset: 2px;
}
