/* Шрифты */
@font-face {
  font-family: "klukva";
  src: url("../fonts/klukva.otf") format("opentype");
}

@font-face {
  font-family: "MargeneDemo";
  src: url("../fonts/ManegeDemo-Light.ttf") format("truetype");
}

@font-face {
  font-family: "ExtraSemiLight";
  src: url("../fonts/CaskaydiaMonoNerdFontPropo-ExtraLightItalic.ttf") format("truetype");
}

@font-face {
  font-family: "Multiround";
  src: url("../fonts/MultiroundPro.otf") format("opentype");
}

/* Сброс и базовые стили */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #111;
  color: #fff;
  cursor: url("../cursors/pointer.cur"), auto;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Хедер */
.site-header {
  background: linear-gradient(to right, #0f172a, #352836);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#lang-toggle {
  background-color: #1a202c;
  color: #cbd5e0;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid #4a5568;
  cursor: pointer;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #fff;
}

.logo img {
  height: 38px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.logo:hover img {
  transform: rotate(3deg) scale(1.05);
}

.logo-text {
  font-family: "Multiround", sans-serif;
  font-size: 1.4rem;
  font-weight: bold;
  background: linear-gradient(to right, #ffffff, #fdffd8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: "MargeneDemo", sans-serif;
  font-size: 0.95rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.contact-item img {
  width: 14px;
  height: 14px;
}

.contact-item a {
  color: #bae6fd;
  text-decoration: none;
  font-size: 1rem;
}

.btn-order {
  background: linear-gradient(to right, #14b8a6, #0ea5e9);
  padding: 0.4rem 1rem;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  border: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-family: "Multiround", sans-serif;
  font-size: 0.85rem;
}

.btn-order:hover {
  background: linear-gradient(to right, #0ea5e9, #14b8a6);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

/* ==========================================================================
   Navigation & Menu - FINAL CLEAN IMPLEMENTATION
   ========================================================================== */

/* --- 1. Mobile Menu Button (Hamburger) --- */
.mobile-menu-toggle {
  display: none;
}

.mobile-menu-toggle .bar {
  display: none;
}

/* --- 2. Navigation Menu Container & Links (Desktop is default) --- */
.nav-menu {
  position: relative;
  visibility: visible;
  opacity: 1;
  background: none;
  transform: none;
}

.nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #f0f0f0;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.nav-link:hover,
.nav-item.active .nav-link {
  background: linear-gradient(145deg, #0891b2, #22d3ee);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(34, 211, 238, 0.3);
  transform: scale(1.05);
}

.nav-link:active {
  transform: scale(1);
  box-shadow: 0 1px 4px rgba(34, 211, 238, 0.2);
}

/* Продукт */
.product-page {
  background-color: #fff;
  padding: 2rem 0;
}

.product-display {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
  padding: 2rem;
  gap: 2rem;
}

.product-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  cursor: url("../cursors/link.cur"), auto;
  transition: transform 0.3s ease;
}

.product-image img:hover {
  transform: scale(1.05);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  color: #1e293b;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.price {
  font-size: 1.8rem;
  font-weight: bold;
  color: black;
  font-family: "Multiround";
}

.description {
  font-size: 1.1rem;
  color: #475569;
  font-family: "ExtraSemiLight";
}

.volume-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.volume-btn {
  background: #f3f4f6;
  border: 2px solid transparent;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  text-align: center;
  cursor: url("../cursors/link.cur"), auto;
  transition: all 0.3s ease;
}

.volume-btn:hover {
  background-color: #e0e7ff;
}

.volume-btn.active {
  border-color: #4f46e5;
  background-color: #eef2ff;
  font-weight: bold;
}

.add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #0ea5e9;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: url("../cursors/link.cur"), auto;
  transition: background-color 0.3s ease;
}

.add-to-cart:hover {
  background-color: #0284c7;
}

.cart-icon {
  width: 20px;
  height: 20px;
}

.icons {
  display: flex;
  gap: 10px;
}

.icon {
  width: 40px;
  height: 40px;
}

.tab-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.tab-button {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: #334155;
  border-bottom: 2px solid transparent;
  cursor: url("../cursors/link.cur"), auto;
  transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
  color: #0ea5e9;
  border-color: #0ea5e9;
}

.tab-content {
  display: none;
  animation: fadeTab 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeTab {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.protocol-section {
  background: #f3f4f6;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 17px;
  color: #111;
}

.protocol-toggle {
  font-weight: bold;
  color: #0056b3;
  cursor: url("../cursors/link.cur"), auto;
  margin-bottom: 0.5rem;
}

.protocol-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 1s ease, opacity 0.3s ease;
  font-family: "MargeneDemo";
}

.protocol-content.visible {
  max-height: 500px;
  opacity: 1;
}

.protocol-content ul {
  padding-left: 1.5rem;
  margin: 0;
}

.protocol-content li {
  margin-bottom: 0.5rem;
}

/* Отзывы */
.review-section {
  padding: 3rem 0;
  background: #fff;
  color: #111827;
}

.section-title {
  font-family: "klukva", sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  text-align: center;
}

.filter-sort-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-item label {
  font-family: "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #4b5563;
}

.filter-item select,
.filter-item input[type="checkbox"] {
  padding: 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #f9fafb;
  cursor: url("../cursors/link.cur"), auto;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-card {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.reviewer-name {
  font-family: "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.reviewer-name img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.stars {
  color: #facc15;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.review-title {
  font-family: "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.review-text {
  font-family: "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #4b5563;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 1rem;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: url("../cursors/link.cur"), auto;
  transition: all 0.2s ease;
}

.pagination button:hover {
  background: #e2e8f0;
  border-color: #0ea5e9;
  color: #0ea5e9;
}

.pagination button.active {
  background: #0ea5e9;
  color: #fff;
  border-color: #0ea5e9;
}

/* Дополнительные компоненты */
.product-display-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.mt-4 {
  font-size: 14px;
  font-family: "Segoe UI";
}

.warning,
.specifications {
  font-size: 1.1rem;
  color: #4b5563;
  font-family: "ExtraSemiLight";
}

.specifications {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.confirmation-msg {
  display: none;
  color: #10b981;
  font-weight: bold;
  margin-top: 1rem;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Media Queries - FINAL CLEAN IMPLEMENTATION
   ========================================================================== */

/* --- Mobile & Tablet (up to 767px) --- */
@media (max-width: 767px) {
  .header-container {
    flex-wrap: wrap;
  }

  .header-top {
    width: 100%;
    justify-content: space-between;
  }
  
  .product-display { flex-direction: column; gap: 1.5rem; padding: 1.5rem; }

  .nav-menu {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0;
    order: 3;
  }

  .nav-menu ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .nav-item:last-child {
    margin-top: 0;
  }

  .contact-details {
    display: none;
  }

  .nav-item {
    width: auto;
    text-align: center;
  }
  
  .product-title {
    font-size: 1.6rem;
  }

  .price {
    font-size: 1.5rem;
  }

  .add-to-cart {
    font-size: 0.95rem;
  }

  .volume-btn {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .review-card {
    font-size: 0.85rem;
  }

  .reviewer-name {
    font-size: 0.9rem;
  }

  .review-title {
    font-size: 0.9rem;
  }

  .review-text {
    font-size: 0.8rem;
  }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
  .header-container {
    padding: 0.5rem 1rem;
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .logo img {
    height: 32px;
  }
  #lang-toggle {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  .header-top {
    align-items: center;
  }
  .contact-details {
    display: none;
  }
  .nav-link {
    font-size: 0.7rem;
  }

  .product-title {
    font-size: 1.4rem;
  }

  .price {
    font-size: 1.5rem;
  }

  .add-to-cart {
    font-size: 0.95rem;
  }

  .volume-btn {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .review-card {
    font-size: 0.85rem;
  }

  .reviewer-name {
    font-size: 0.9rem;
  }

  .review-title {
    font-size: 0.9rem;
  }

  .review-text {
    font-size: 0.8rem;
  }
}

/* Планшеты (от 640px) */
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Десктопы (от 768px) */
@media (min-width: 768px) {
  .header-container {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  .header-top {
    width: auto;
  }
  .logo {
    margin-right: 2rem;
  }
  .logo-text {
    font-size: 1.5rem;
  }
  .contact-details {
    display: flex;
  }
  .contact-details .btn-order {
    margin-left: 1rem;
  }

  .nav-menu {
    display: flex !important;
    position: static;
    width: auto;
    background: none;
    padding: 0;
  }

  .nav-menu ul {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }

  .product-display {
    flex-direction: row;
    gap: 2rem;
    padding: 2.5rem;
  }

  .product-title {
    font-size: 2rem;
  }

  .review-title {
    font-size: 1.75rem;
  }
}

/* Большие экраны (от 1024px) */
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .header-container {
    padding: 1rem 0;
  }

  .logo img {
    height: 50px;
  }

  .logo-text {
    font-size: 1.8rem;
  }

  .contact-details {
    font-size: 0.9rem;
    gap: 0.8rem;
  }

  .contact-item {
    padding: 0.4rem 0.6rem;
  }

  .nav-item {
    margin: 0 1rem;
  }

  .nav-link {
    font-size: 1rem;
  }

  .btn-order {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Очень большие экраны (от 1440px) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .header-container {
    padding: 1.2rem 0;
  }

  .logo img {
    height: 55px;
  }

  .logo-text {
    font-size: 2rem;
  }

  .contact-details {
    font-size: 0.95rem;
    gap: 1rem;
  }

  .nav-item {
    margin: 0 2rem;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
  }

  .btn-order {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }
}