/* ==============================
   MOKU — Unified & Optimized CSS
   ============================== */

/* === ROOT VARIABLES === */
:root {
  --paper: #f5f5f4; /*f8f5ec*/
  --ink: #1a1a1a;
  --gold: #c3a56a;
  --seal: #b0301e;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--paper);
  background-image: url("../images/rice-paper.jpg");
  background-repeat: repeat;
  background-size: 300px 300px;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Оптимизация фона для mobile */
@media (max-width: 768px) {
  body {
    background-size: 200px 200px;
  }
}

/* Отключение фона на очень маленьких экранах для производительности */
@media (max-width: 480px) {
  body {
    background-image: none;
    background-color: var(--paper);
  }
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1245px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  /* max-width: 900px; */
}

/* ===============================
   HEADER / NAVIGATION
   =============================== */
.header {
  background: #faf9f7;
  border-bottom: 1px solid #1a1a1a33;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Уведомление о добавлении в корзину */
.cart-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 999;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.cart-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.cart-notification-content {
  background: #fff;
  color: var(--ink);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--gold);
  min-width: 250px;
}

.cart-notification-content svg {
  color: var(--gold);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: relative;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 20px;
  text-transform: uppercase;
  flex: 1;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-center {
  flex: 0 0 auto;
  text-align: center;
}

.nav-left a,
.nav-right a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.nav-left a:hover,
.nav-right a:hover {
  color: var(--seal);
}

.cart-link {
  position: relative;
}

.header-logo a {
  text-decoration: none;
  display: block;
}

.logo {
  text-align: center;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
  max-width: 200px;
}

.logo-main {
  font-family: 'Manrope', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 2px;
  display: block;
}

.logo-sub {
  font-size: 13px;
  color: #555;
  display: block;
  margin-top: 4px;
  font-style: italic;
}

.logo-en {
  font-size: 11px;
  color: #aaa;
  display: block;
  margin-top: 2px;
  font-style: italic;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: absolute;
  top: 12px;
  right: 20px;
}

.search-icon {
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  color: var(--ink);
}

.search-icon:hover {
  color: var(--gold);
}

#searchForm {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.lang-switcher a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}

.lang-switcher a.active {
  color: var(--seal);
  font-weight: 600;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  color: #222;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon:hover {
  color: var(--seal);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--seal);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #222;
  border-radius: 1px;
  transition: all 0.3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-top: 1px solid #eee;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 20px 0;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.05);
}

.mobile-menu a {
  color: #222;
  text-decoration: none;
  padding: 10px 0;
  width: 100%;
  text-align: center;
  font-size: 16px;
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: #f7f7f7;
}

/* Main Content */
.main-content {
  flex: 1;
}

/* ===============================
   SECTIONS: HERO / FEATURES / CATALOG
   =============================== */
.hero {
  position: relative;
  overflow: hidden;
  margin: 20px auto;
  max-width: 1245px;
  border-radius: 16px;
  padding-top: 10px;
}

/* Hero Section */
/* Hero Slider - Glide.js */
.hero-slider {
  position: relative;
  margin: 0 auto 3rem;
  max-width: 1245px;
  border-radius: 16px;
  overflow: hidden;
}

.hero-slider .glide {
  position: relative;
}

.hero-slider .glide__track {
  overflow: hidden;
}

.hero-slider .glide__slides {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-slider .glide__slide {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.hero-slider .slide-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider .slide-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slider .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-slider .slide-text-content {
  text-align: center;
  color: #fff;
  max-width: 800px;
  z-index: 1;
}

.hero-slider .slide-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.hero-slider .slide-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-slider .slide-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-shadow: none;
}

.hero-slider .slide-button:hover {
  background: var(--seal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Glide arrows - убраны по запросу */

/* Glide bullets */
.hero-slider .glide__bullets {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-slider .glide__bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-slider .glide__bullet:hover,
.hero-slider .glide__bullet--active {
  background: var(--gold);
  border-color: var(--gold);
}

/* Fallback hero section */
.hero-section {
  position: relative;
  margin: 0 auto;
  max-width: 1245px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-image {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 16px;
  background: #f5f5f5;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide {
  text-align: center;
  padding: 4rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f5ec 0%, #f0ede0 100%);
}

.hero-slide h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 4rem;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: 3px;
  font-weight: 700;
}

.hero-slide p {
  font-size: 1.25rem;
  color: #555;
  max-width: 600px;
  margin: 0.5rem auto;
  font-style: italic;
}

/* Старые стили hero-quote удалены - используются новые стили ниже */

/* Features */
.features {
  padding: 4rem 0;
  text-align: center;
}

.home-categories {
  padding: 4rem 0;
}

.feature {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.25s; }
.feature:nth-child(3) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.features h2,
.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--ink);
  letter-spacing: 0.5px;
  font-weight: 700;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-top: 2rem;
}

.feature-card {
  text-align: center;
}

.feature img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.feature img:hover {
  transform: scale(1.03);
}

.feature h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #111;
}

.feature p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

/* Section */
.section {
  padding: 4rem 0;
}

.section-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-left: auto;
  margin-right: auto;
}

/* Catalog */
.catalog {
  text-align: center;
  padding: 4rem 0;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
}

.product {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product h4 {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.product p {
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.product-thumb {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  background: #f7f7f7;
  margin-bottom: 1rem;
}

.product img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: block;
}

.product .btn {
  margin-top: auto;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-image {
  display: block;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f7f7;
  margin-bottom: 12px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #e73c3c, #c02b2b);
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.product-badge-new {
  top: 10px;
  right: 10px;
}

.product-badge-hit {
  background: linear-gradient(135deg, #f1c40f, #e2b007);
  color: #222;
  top: 50px;
  right: 10px;
}

.product-info {
  padding: 0;
}

.product-name {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  color: #111;
  margin: 12px 0 6px;
  font-weight: 600;
}

.product-price {
  font-size: 1.2rem;
  color: var(--seal);
  font-weight: 700;
  margin-bottom: 10px;
}

.product-price-old {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--gold);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  width: auto;
}

.btn:hover {
  background: var(--seal);
  color: #fff;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
}

.btn-primary:hover {
  background: var(--seal);
}

.btn-outline {
  background: #fff;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: #fff;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-date {
  background: var(--gold);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 10px;
}

.news-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 700;
}

.news-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s;
}

.news-title a:hover {
  color: var(--seal);
}

.news-excerpt {
  color: #444;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Product Page */
.product-page {
  padding: 60px 0;
}

.product__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.product__image {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.product__info {
  padding: 0;
}

@media (max-width: 900px) {
  .product__wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .product__image {
    position: static;
  }
  
  .product-page .container > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .product-gallery-thumbs {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Footer */
.footer {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 40px 0;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-section h3,
.footer-section h4 {
  font-family: 'Manrope', sans-serif;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #aaa;
}

.footer .seal {
  width: 40px;
  margin: 0 auto 10px;
  display: block;
}

.footer__nav {
  margin-top: 1rem;
}

.footer__nav a {
  margin: 0 10px;
  color: #ddd;
  font-size: 14px;
  transition: 0.3s;
  text-decoration: none;
}

.footer__nav a:hover {
  color: #fff;
}

/* Cart Modal */
.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

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

.cart-modal-content {
  background-color: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.cart-modal-header h2 {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  font-size: 1.5rem;
}

.cart-close {
  background: none;
  border: none;
  color: #222;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.cart-close:hover {
  color: var(--seal);
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111;
}

.cart-item-price {
  color: var(--seal);
  font-weight: 600;
}

.cart-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.cart-total {
  margin-bottom: 1rem;
}

.cart-total p {
  margin-bottom: 0.5rem;
  color: #555;
}

.cart-total strong {
  color: var(--ink);
  font-size: 1.2rem;
}

/* ===============================
   GALLERY
   =============================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery__grid > div {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  aspect-ratio: 1;
}

.gallery__grid > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery__grid > div:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

/* ===============================
   BOARDS CATEGORIES
   =============================== */
.boards-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.board-category-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  border-top: 4px solid var(--gold);
  transition: transform 0.3s, box-shadow 0.3s;
}

.board-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}


/* Единые размеры для всех заголовков подкатегорий */
.subcategory-block-title,
.subcategory-title-full,
.board-category-title {
  font-size: 1.75rem;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.75rem;
}

.board-category-description {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  min-height: 80px;
}

/* Аккордеон для описания категории */
.category-accordion {
  margin-bottom: 3rem;
}

.category-accordion-toggle {
  width: 100%;
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  text-align: left;
}

.category-accordion-toggle:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.category-accordion-toggle.active {
  background: var(--gold);
  color: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.category-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: #fff;
  border-top: none;
  border-radius: 0 0 12px 12px;
}

.category-accordion-content.active {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.category-accordion-content .category-description {
  padding: 2rem 1.5rem;
  margin-bottom: 0;
}

.category-description {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.category-description-center {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.category-description p {
  margin-bottom: 1rem;
}

.category-description strong {
  color: var(--ink);
  font-weight: 600;
}

.subcategory-products-grid {
  margin-top: 2rem;
}

/* Фильтры для boards */
.boards-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

/* Блоки подкатегорий для boards */
.boards-subcategories-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.subcategory-block {
  margin-bottom: 0;
  padding-bottom: 3rem;
  border-bottom: 1px solid #e0d7c3;
}

.subcategory-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}


/* Аккордеон для описаний */
.subcategory-accordion {
  margin-bottom: 2rem;
}

.subcategory-accordion-toggle {
  width: 100%;
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  text-align: left;
}

.subcategory-accordion-toggle:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.subcategory-accordion-toggle.active {
  background: var(--gold);
  color: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
  line-height: 1;
}

.subcategory-accordion-toggle.active .accordion-icon {
  transform: rotate(45deg);
}

.subcategory-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: #fff;
  border-top: none;
  border-radius: 0 0 12px 12px;
}

.subcategory-accordion-content.active {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.subcategory-block-description {
  padding: 2rem;
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.subcategory-block-description p {
  margin-bottom: 1rem;
}

.subcategory-block-description strong {
  color: var(--ink);
  font-weight: 600;
}

/* Для выбранной подкатегории */
.subcategory-section {
  margin-top: 2rem;
}

.subcategory-description-full {
  padding: 2rem;
  margin-bottom: 0;
}

.subcategory-section {
  margin-top: 2rem;
}

.subcategory-content-full {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
}

.subcategory-content-full p {
  margin-bottom: 1rem;
}

.subcategory-content-full strong {
  color: var(--ink);
  font-weight: 600;
}

/* Стили для краткого описания товара */
.product__info .subtitle p {
  margin-bottom: 0.5rem;
}

.product__info .subtitle strong {
  color: var(--ink);
  font-weight: 600;
}

/* Страница товара - единые стили */
.product-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}

.product-short-description {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.product-short-description p {
  margin-bottom: 0.5rem;
}

.product-short-description strong {
  color: var(--ink);
  font-weight: 600;
}

.product-description-section {
  margin-bottom: 2rem;
}

.product-description-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-weight: 700;
}

.product-description-content {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
}

.product-description-content p {
  margin-bottom: 1rem;
}

.product-description-content strong {
  color: var(--ink);
  font-weight: 600;
}

/* Страница "О Бренде" - единые стили */
.container.narrow {
  /* max-width: 900px; */
  margin: 0 auto;
}

.about-hero-quote {
  text-align: center;
  margin: 3rem 0 4rem;
  padding: 2rem 0;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.about-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  font-style: italic;
  margin: 0;
}

.about-intro {
  margin: 3rem 0;
  text-align: center;
}

.about-lead {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 500;
}

.about-block {
  margin: 3rem 0;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.about-block-highlight {
  background: linear-gradient(135deg, #fff 0%, #faf9f6 100%);
  border-left: 4px solid var(--gold);
}

.about-block-philosophy {
  background: linear-gradient(135deg, #faf9f6 0%, #fff 100%);
  border-right: 4px solid var(--seal);
}

.about-block-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.about-text {
  color: #555;
  line-height: 1.9;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.about-text-emphasis {
  font-weight: 600;
  color: var(--ink);
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-features-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.about-features-list li {
  font-size: 1.1rem;
  line-height: 2;
  color: #555;
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.8rem;
}

.about-features-list li:before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.about-features-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.about-final-quote {
  margin: 4rem 0 3rem;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--seal) 100%);
  border-radius: 16px;
  color: #fff;
}

.about-final-text {
  font-size: 1.5rem;
  line-height: 1.8;
  margin: 0;
  font-style: italic;
}

.about-final-text strong {
  font-size: 1.7rem;
  font-weight: 700;
  display: block;
  margin-bottom: 1rem;
}

.about-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 1.75rem;
  color: var(--gold);
  margin: 3rem 0 1.5rem;
  font-weight: 700;
}

/* Единый стиль для пустых состояний */
.empty-state-text {
  text-align: center;
  color: #555;
  padding: 3rem 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Новости на главной - горизонтальный layout */
.news-list-home {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.news-card-home-horizontal {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card-home-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.news-card-home-horizontal .news-date-square {
  top: 8px;
  left: 8px;
  padding: 0.5rem 0.7rem;
  min-width: 45px;
}

.news-card-home-horizontal .news-date-day {
  font-size: 1.4rem;
}

.news-card-home-horizontal .news-date-month {
  font-size: 0.65rem;
}

.news-card-content {
  display: flex;
  gap: 0;
  align-items: center;
}

.news-card-text {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* Квадратный формат даты */
.news-date-square {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgb(176 48 30);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  z-index: 10;
  min-width: 55px;
  border: 1px solid rgba(255,255,255,0.8);
}

.news-date-day {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 0.15rem;
}

.news-date-month {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--paper);
  line-height: 1;
  letter-spacing: 0.3px;
}

.news-date-badge {
  background: var(--gold);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* Скрываем старый формат даты на главной, используем только квадратный */
.news-card-text .news-date-badge {
  display: none;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.news-card-title a:hover {
  color: var(--gold);
}

.news-card-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  flex: 1;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  width: auto;
  align-self: flex-start;
}

.news-card-image {
  overflow: hidden;
  position: relative;
  width: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s;
  display: block;
  max-height: 150px;
}

.news-card-image a {
  display: block;
  width: 100%;
  position: relative;
}

.news-card-home-horizontal:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-image a {
  display: block;
  height: 100%;
}

.news-more-link {
  text-align: center;
  margin-top: 2rem;
}

/* Список новостей */
.news-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card-list {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.news-card-list:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.news-card-list-image {
  display: block;
  overflow: hidden;
  height: 200px;
  position: relative;
}

.news-card-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card-list:hover .news-card-list-image img {
  transform: scale(1.05);
}

.news-card-list-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-list-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.75rem 0;
  line-height: 1.4;
}

.news-card-list-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.news-card-list-title a:hover {
  color: var(--gold);
}

.news-card-list-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  flex: 1;
}

.news-card-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  width: auto;
  align-self: flex-start;
}

/* Страница отдельной новости */
.news-item-container {
  max-width: 1200px;
  margin: 0 auto;
}

.news-breadcrumbs {
  margin-bottom: 2rem;
  color: #555;
  font-size: 0.9rem;
}

.news-breadcrumbs a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
}

.news-breadcrumbs a:hover {
  color: var(--gold);
}

.news-item-article {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.news-item-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  align-items: start;
}

.news-item-image-wrapper {
  position: sticky;
  top: 2rem;
}

.news-item-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.news-item-image img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s;
}

.news-item-image a:hover img {
  transform: scale(1.02);
}

.news-item-image a {
  display: block;
}

.news-item-content-wrapper {
  min-width: 0;
}

.news-item-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.news-item-excerpt {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.8;
  font-style: italic;
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
}

.news-item-footer {
  padding-top: 2rem;
  border-top: 2px solid #f0f0f0;
  margin-top: 2rem;
}

.news-content-body {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Контакты - адаптивность */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .boards-categories-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .board-category-card {
    padding: 1.5rem;
  }
  
  .boards-subcategories-list {
    gap: 2rem;
  }
  
  .subcategory-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
  
  
  .subcategory-block-description {
    padding: 1.5rem;
  }
  
  .subcategory-description-full {
    padding: 1.5rem;
  }
  
  .subcategory-title-full {
    font-size: 1.75rem;
  }
  
  .product-title,
  .news-item-title {
    font-size: 2rem;
  }
  
  /* Новости на главной - мобильная версия */
  .news-card-content {
    flex-direction: column;
  }
  
  .news-card-image {
    width: 100%;
    order: -1;
    max-height: 200px;
  }
  
  .news-card-image img {
    max-height: 200px;
    object-fit: cover;
  }
  
  .news-card-text {
    padding: 1rem;
  }
  
  .news-card-title {
    font-size: 1rem;
  }
  
  .news-card-excerpt {
    font-size: 0.8rem;
  }
  
  .news-read-more {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  /* Список новостей - мобильная версия */
  .news-grid-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .news-card-list-content {
    padding: 1.25rem;
  }
  
  .news-card-list-title {
    font-size: 1.1rem;
  }
  
  /* Страница новости - мобильная версия */
  .news-item-article {
    padding: 1.5rem;
  }
  
  .news-item-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .news-item-image-wrapper {
    position: static;
  }
  
  .news-item-title {
    font-size: 1.75rem;
  }
  
  .news-item-excerpt {
    font-size: 1rem;
    padding-left: 1rem;
  }
  
  .news-date-square {
    top: 8px;
    left: 8px;
    padding: 0.5rem 0.7rem;
    min-width: 45px;
  }
  
  .news-date-day {
    font-size: 1.3rem;
  }
  
  .news-date-month {
    font-size: 0.6rem;
  }
  
  .news-card-content {
    grid-template-columns: 1fr;
  }
  
  .news-card-image {
    order: -1;
  }
  
  /* Контакты - мобильная версия */
  .contacts-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .contacts-layout > div {
    padding: 2rem 1.5rem !important;
    width: 100%;
    box-sizing: border-box;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
    width: 100%;
  }
  
  .form-input,
  .form-textarea {
    width: 100% !important;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .form-label {
    display: block;
    width: 100%;
  }
  
  button[type="submit"] {
    width: 100% !important;
    box-sizing: border-box;
  }
  
  .category-description-center {
    padding: 0 1rem;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-left,
  .nav-right {
    display: none !important;
  }
  
  .burger {
    display: flex !important;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .nav-center {
    order: 1;
    flex: 1 1 100%;
    margin: 1rem 0;
  }
  
  .header-actions {
    position: static;
    order: 2;
  }
  
  /* Продукты - мобильная версия */
  .product-page > .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  /* Категории - мобильная версия */
  .category-accordion {
    margin-bottom: 2rem;
  }
  
  .category-accordion-toggle {
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }
  
  .category-accordion-content .category-description {
    padding: 1.5rem 1.2rem;
  }
  
  .mobile-menu.show {
    display: flex;
  }
  
  .header-logo {
    flex: 0;
    min-width: auto;
  }

  .hero-slide h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .about-hero-title {
    font-size: 2rem;
  }
  
  .about-lead {
    font-size: 1.1rem;
  }
  
  .about-block {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  .about-block-title {
    font-size: 1.5rem;
  }
  
  .about-text {
    font-size: 1rem;
  }
  
  .about-text-emphasis {
    font-size: 1.05rem;
  }
  
  .about-final-quote {
    padding: 2rem 1.5rem;
  }
  
  .about-final-text {
    font-size: 1.2rem;
  }
  
  .about-final-text strong {
    font-size: 1.4rem;
  }
  
  .about-subtitle {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }
  
  .subcategory-block-title,
  .subcategory-title-full,
  .board-category-title {
    font-size: 1.5rem;
  }
  
  .product-title,
  .news-item-title {
    font-size: 2rem;
  }
  
  .product-short-description {
    font-size: 1.1rem;
  }
  
  .home-categories {
    padding: 3rem 0;
    margin: 1.5rem 0;
  }
  
  .category-card {
    padding: 1.5rem;
  }
  
  .category-card h3 {
    font-size: 1.3rem;
  }

  .products-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-section,
  .hero-image,
  .hero-slider .glide__slide {
    height: 300px;
  }
  
  .hero-slider .slide-title {
    font-size: 1.8rem;
  }
  
  .hero-slider .slide-text {
    font-size: 1rem;
  }
  
  /* Стрелки слайдера убраны */
}

@media (max-width: 600px) {
  .features__grid,
  .products-grid,
  .catalog__grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-section,
  .hero-image,
  .hero-slider .glide__slide {
    height: 220px;
  }
  
  .hero-slider .slide-title {
    font-size: 1.3rem;
  }
  
  .hero-slider .slide-text {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .hero-slider .slide-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .hero-slider .slide-overlay {
    padding: 1rem;
  }
  
  .hero-slider .glide__bullets {
    bottom: 10px;
    gap: 8px;
  }
  
  .hero-slider .glide__bullet {
    width: 10px;
    height: 10px;
  }
  
  .product,
  .product-card {
    width: 90%;
    max-width: 320px;
  }
}

/* Safari fix */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 900px) {
    .nav-left,
    .nav-right {
      display: none !important;
    }
    .burger {
      display: flex !important;
    }
  }
}

/* ===============================
   ПЛАВАЮЩИЕ ЭЛЕМЕНТЫ
   =============================== */

/* Кнопка "Вверх" */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-to-top.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--seal);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Плавающий WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #fff;
  font-size: 32px;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Плавающая корзина */
.floating-cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  z-index: 2000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.floating-cart-sidebar.open {
  right: 0;
}

.floating-cart-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.floating-cart-header h3 {
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0;
}

.floating-cart-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.floating-cart-close:hover {
  background: #f0f0f0;
  color: var(--seal);
}

.floating-cart-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.floating-cart-item {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.floating-cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.floating-cart-item-info {
  flex: 1;
  min-width: 0;
}

.floating-cart-item-name {
  font-weight: 600;
  color: #111;
  margin-bottom: 5px;
  font-size: 0.9rem;
  line-height: 1.3;
}

.floating-cart-item-price {
  color: var(--seal);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.floating-cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-cart-item-qty button {
  width: 24px;
  height: 24px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cart-item-qty input {
  width: 40px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px;
  font-size: 14px;
}

.floating-cart-item-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

.floating-cart-item-remove:hover {
  color: var(--seal);
}

.floating-cart-footer {
  padding: 20px;
  border-top: 2px solid #eee;
  background: var(--paper);
  position: sticky;
  bottom: 0;
}

.floating-cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.floating-cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-cart-actions .btn {
  width: 100%;
  text-align: center;
  padding: 12px;
}

/* Кнопка открытия корзины */
.floating-cart-toggle {
  position: fixed;
  bottom: 25px;
  right: 95px;
  width: 60px;
  height: 60px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(195, 165, 106, 0.4);
  z-index: 998;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 24px;
  border: none;
}

.floating-cart-toggle:hover {
  background: var(--seal);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(176, 48, 30, 0.6);
}

.floating-cart-toggle .cart-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--seal);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* Оверлей для корзины */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-overlay.show {
  display: block;
  opacity: 1;
}

/* ===============================
   ЛАЙТБОКС
   =============================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
}

/* ===============================
   УЛУЧШЕННЫЕ ФОРМЫ
   =============================== */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0d7c3;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: all 0.3s ease;
}

.form-select,
select.form-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 2px solid #e0d7c3;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  cursor: pointer;
}

.form-select::-ms-expand,
select.form-input::-ms-expand {
  display: none;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195, 165, 106, 0.1);
}

.form-select:focus,
select.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195, 165, 106, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c3a56a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--seal);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

.form-success {
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid #4caf50;
  color: #2e7d32;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.form-error-message {
  background: rgba(244, 67, 54, 0.1);
  border: 2px solid #f44336;
  color: #c62828;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* ===============================
   УЛУЧШЕННАЯ ГЛАВНАЯ СТРАНИЦА
   =============================== */
.hero-quote {
  margin: 2rem auto 3rem;
  padding: 0;
  position: relative;
}

.hero-quote-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.hero-quote-text {
  position: relative;
  margin: 0;
  padding: 1.2rem 2rem;
  background: #faf9f6;
  border: 2px solid var(--gold);
  border-radius: 6px;
  box-shadow: 
    0 3px 15px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(195, 165, 106, 0.08) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
  font-style: italic;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  
  /* Эффект "вырванного куска бумаги" - неровные края */
  clip-path: polygon(
    0% 2%,
    3% 0%,
    97% 0%,
    100% 2%,
    100% 98%,
    97% 100%,
    3% 100%,
    0% 98%
  );
}

/* Эффект "вырванного куска бумаги" - декоративные элементы */
.hero-quote-text::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 12%;
  width: 18px;
  height: 18px;
  background: #faf9f6;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.hero-quote-text::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 15%;
  width: 14px;
  height: 14px;
  background: #faf9f6;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

/* Кавычки */
.quote-mark {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.25;
  position: relative;
  display: inline-block;
  vertical-align: top;
  font-weight: 300;
}

.quote-mark-left {
  margin-right: 0.4rem;
  margin-top: -0.2rem;
  margin-left: -0.3rem;
}

.quote-mark-right {
  margin-left: 0.4rem;
  margin-top: 0.2rem;
  vertical-align: bottom;
  margin-right: -0.3rem;
}

/* Адаптив для hero-quote */
@media (max-width: 768px) {
  .hero-quote-text {
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
    line-height: 1.5;
  }
  
  .quote-mark {
    font-size: 2rem;
  }
  
  .quote-mark-left {
    margin-right: 0.3rem;
    margin-left: -0.2rem;
  }
  
  .quote-mark-right {
    margin-left: 0.3rem;
    margin-right: -0.2rem;
  }
  
  .hero-quote-text::before {
    width: 14px;
    height: 14px;
    top: -5px;
  }
  
  .hero-quote-text::after {
    width: 12px;
    height: 12px;
    bottom: -4px;
  }
}

/* Категории на главной */
.home-categories {
  padding: 4rem 0;
  background: #fff;
  margin: 2rem 0;
  border-radius: 20px;
}

.category-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--gold);
}

.category-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.category-card h3 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 700;
}

.category-card p {
  color: #555;
  margin-bottom: 1.5rem;
  flex: 1;
  line-height: 1.6;
  font-size: 1rem;
}

.category-card .btn {
  margin-top: auto;
}

/* ===============================
   ГАЛЕРЕЯ ПРОДУКТОВ
   =============================== */
.product-gallery {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.product-gallery-main img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-gallery-main:hover img {
  transform: scale(1.05);
}

.product-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-gallery-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
  border-color: var(--gold);
  transform: scale(1.05);
}

/* ===============================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   =============================== */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 80px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .floating-whatsapp {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
    font-size: 28px;
  }

  .floating-cart-toggle {
    bottom: 15px;
    right: 80px;
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .floating-cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .product-gallery-thumbs {
    flex-direction: row;
    overflow-x: auto;
  }

  .product-gallery-thumb {
    width: 100px;
    flex-shrink: 0;
  }

  /* Старые медиа-запросы для hero-quote удалены - используются новые стили выше */

  /* Маленькие изображения в новостях на мобильных - убираем float */
  .news-content-image-link.news-content-image-small,
  .news-content-image-small {
    float: none;
    margin: 1rem 0;
    max-width: 100%;
  }
}

/* Стили для контента новостей */
.news-content-body p {
  margin-bottom: 1.5rem;
}

.news-content-body h1,
.news-content-body h2,
.news-content-body h3,
.news-content-body h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-weight: 700;
}

.news-content-body h2 {
  font-size: 1.8rem;
}

.news-content-body h3 {
  font-size: 1.5rem;
}

.news-content-body ul,
.news-content-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.news-content-body li {
  margin-bottom: 0.5rem;
}

.news-content-body img,
.news-content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  display: block;
}

/* Ссылки с изображениями в контенте */
.news-content-image-link {
  display: inline-block;
  text-decoration: none;
  border: none;
  transition: opacity 0.3s, transform 0.3s;
}

.news-content-image-link:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.news-content-image-link:not(.news-content-image-small) {
  display: block;
  width: 100%;
}

/* Маленькие изображения - обтекание текстом справа */
.news-content-image-link.news-content-image-small {
  float: left;
  margin: 0 1.5rem 1rem 0;
  max-width: 300px;
}

.news-content-image-link.news-content-image-small .news-content-image {
  margin: 0;
  max-width: 100%;
  width: auto;
}

.news-content-image-small {
  float: left;
  margin: 0 1.5rem 1rem 0;
  max-width: 300px;
}

/* Очистка float после маленьких изображений */
.news-content-body p::after {
  content: "";
  display: table;
  clear: both;
}

/* Главное изображение новости */
.news-main-image {
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

.news-main-image:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.news-content-body a:not(.news-content-image-link) {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color 0.3s;
}

.news-content-body a:not(.news-content-image-link):hover {
  color: var(--seal);
  border-bottom-color: var(--seal);
}

.news-content-body blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
}

.news-content-body code {
  background: #f5f5f5;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

.news-content-body pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

.news-content-body pre code {
  background: none;
  padding: 0;
}


/* Особенности */
.values {
  padding: 4rem 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.value-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Карточка */
.value-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
}

/* Картинка */
.value-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

/* Overlay с описанием */
.value-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.3) 100%);
  color: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.value-overlay p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* Заголовок - часть карточки, всегда виден */
.value-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin: 0;
  padding: 1rem 1rem;
  line-height: 1.4;
  background: #fff;
  border-top: 2px solid var(--gold);
}

/* Hover эффекты */
.value-item:hover .value-card img {
  transform: scale(1.05);
}

.value-item:hover .value-overlay {
  opacity: 1;
}

/* Адаптив */
@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .value-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .value-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.85),
      rgba(0,0,0,0.4)
    );
  }
  
  .value-title {
    font-size: 1rem;
    padding: 1rem 0.8rem;
  }
  
  .value-overlay p {
    font-size: 0.9rem;
  }
  
  .cart-notification {
    top: 80px;
    right: 10px;
    left: 10px;
  }
  
  .cart-notification-content {
    min-width: auto;
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Стили для отзывов */
.star-rating {
  transition: color 0.2s, transform 0.2s;
}

.star-rating:hover {
  transform: scale(1.2);
}

input[type="radio"]:checked + .star-rating,
.star-rating:hover ~ .star-rating {
  color: #ffc107;
}

/* ===============================
   АНИМАЦИИ ПРИ ПРОКРУТКЕ
   =============================== */
section.section-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Плавные переходы для изображений */
img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Улучшенная анимация для карточек */
.product-card,
.news-card,
.category-card,
.value-item {
  will-change: transform, opacity;
}

/* Плавная прокрутка для всего документа */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



/* ===============================
   УЛУЧШЕНИЯ МОБИЛЬНОЙ ВЕРСИИ
   =============================== */
@media (max-width: 768px) {
  /* Улучшенная навигация на мобильных */
  .nav {
    flex-wrap: wrap;
  }
  
  .nav-left,
  .nav-right {
    order: 2;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }
  
  .nav-center {
    order: 1;
    width: 100%;
  }
  
  /* Улучшенные формы на мобильных */
  .form-group {
    margin-bottom: 1.2rem;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px; /* Предотвращает зум на iOS */
  }
  
  /* Улучшенные карточки товаров */
  .product {
    padding: 1rem;
  }
  
  .product img {
    max-height: 200px;
  }
  
  /* Улучшенная корзина на мобильных */
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  
  .cart-item-image {
    width: 80px;
    height: 80px;
  }
  
  /* Улучшенные таблицы в админке на мобильных */
  .admin-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .admin-table table {
    min-width: 800px;
  }
  
  /* Улучшенные графики на мобильных */
  #revenueChart,
  #statusChart {
    max-height: 250px !important;
  }
  
  /* Улучшенные модальные окна */
  .quick-view-content {
    width: 95% !important;
    max-height: 90vh !important;
    padding: 1rem !important;
  }
  
  /* Улучшенные кнопки */
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  /* Улучшенная типографика */
  h1, h2, h3 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  /* Еще более компактная версия для маленьких экранов */
  .container {
    padding: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .catalog__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .product {
    padding: 0.8rem;
  }
  
  /* Компактные формы */
  .form-group {
    margin-bottom: 1rem;
  }
  
  /* Компактные кнопки */
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  /* Компактная навигация */
  .header-actions {
    gap: 0.5rem;
  }
  
  /* Компактные плавающие элементы */
  .scroll-to-top {
    bottom: 80px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .floating-whatsapp {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
  }
  
  .floating-cart-toggle {
    bottom: 80px;
    left: 15px;
    width: 50px;
    height: 50px;
  }
}

/* Оптимизация производительности на мобильных */
@media (max-width: 768px) {
  /* Отключаем сложные эффекты на слабых устройствах */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Улучшаем скроллинг */
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Оптимизация изображений */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Улучшенная производительность анимаций */
  .product-card,
  .news-card,
  .category-card {
    will-change: transform;
  }
}

/* ===============================
   КНОПКИ "ПОДЕЛИТЬСЯ"
   =============================== */
.share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  color: #fff;
}

.share-btn svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.share-btn span {
  display: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-facebook {
  background: #1877f2;
}

.share-facebook:hover {
  background: #166fe5;
  border-color: #166fe5;
}

.share-twitter {
  background: #1da1f2;
}

.share-twitter:hover {
  background: #1a91da;
  border-color: #1a91da;
}

.share-whatsapp {
  background: #25d366;
}

.share-whatsapp:hover {
  background: #20ba5a;
  border-color: #20ba5a;
}

.share-telegram {
  background: #0088cc;
}

.share-telegram:hover {
  background: #0077b5;
  border-color: #0077b5;
}

.share-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-instagram:hover {
  background: linear-gradient(45deg, #e0852a 0%, #d55a2d 25%, #c91f34 50%, #b91a57 75%, #a91579 100%);
  border-color: #bc1888;
}

@media (max-width: 768px) {
  .share-btn {
    width: 40px;
    height: 40px;
  }
  
  .share-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ===============================
   МОДАЛЬНОЕ ОКНО ПОДПИСКИ
   =============================== */
.subscribe-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.subscribe-modal.show {
  opacity: 1;
  pointer-events: all;
}

.subscribe-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.subscribe-modal-content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
  animation: modalSlideUp 0.3s ease;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.subscribe-modal.show .subscribe-modal-content {
  transform: translateY(0);
}

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

.subscribe-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: #333;
  line-height: 1;
}

.subscribe-modal-close:hover {
  background: var(--seal);
  color: #fff;
  transform: rotate(90deg);
}

.subscribe-modal-body {
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.subscribe-modal-body h3 {
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 700;
}

.subscribe-modal-body p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .subscribe-modal-content {
    width: 95%;
    max-width: 95%;
  }
  
  .subscribe-modal-body {
    padding: 2.5rem 1.5rem 1.5rem;
  }
  
  .subscribe-modal-body h3 {
    font-size: 1.5rem;
  }
  
  .subscribe-modal-body form {
    flex-direction: column;
  }
  
  .subscribe-modal-body form button {
    width: 100%;
  }
}


/* Общий контейнер */
.go-terms {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #faf8f5; /* мягкий древесный оттенок */
  color: #2e2e2e;
}

/* Заголовки */
.go-terms th {
  background-color: #e2dace; /* светлый натуральный тон */
  color: #2e2e2e;
  font-weight: 600;
  padding: 12px 15px;
  text-align: left;
  font-size: 1.05em;
  border-bottom: 2px solid #c0b79a;
}

/* Ячейки данных */
.go-terms td {
  padding: 10px 15px;
  border-bottom: 1px solid #ded6c8;
  font-size: 0.97em;
}

/* Чередование строк */
.go-terms tr:nth-child(even) {
  background-color: #f7f3ee;
}

/* Акцент на важность */
.go-terms td:last-child {
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .go-terms th,
  .go-terms td {
    padding: 8px 10px;
    font-size: 0.9em;
  }
}


/* */
/* Общие стили таблицы */
.go-terms {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #faf8f5;
  color: #2e2e2e;
}
.go-terms th {
  background-color: #e2dace;
  color: #2e2e2e;
  font-weight: 600;
  padding: 12px 15px;
  text-align: left;
  font-size: 1.05em;
  border-bottom: 2px solid #c0b79a;
}
.go-terms td {
  padding: 10px 15px;
  border-bottom: 1px solid #ded6c8;
  font-size: 0.97em;
}
.go-terms tr:nth-child(even) {
  background-color: #f7f3ee;
}

/* Индикаторы важности */
.importance-indicator {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.importance-high { background-color: #e74c3c; }     /* Красный - ВАЖНО */
.importance-medium { background-color: #f1c40f; }   /* Желтый - Желательно */
.importance-low { background-color: #2ecc71; }      /* Зеленый - Не так важно */

/* Мобильная адаптация */
@media (max-width: 768px) {
  .go-terms th, .go-terms td {
    padding: 8px 10px;
    font-size: 0.88em;
  }
  .go-terms {
    display: block;
    overflow-x: auto; /* Горизонтальная прокрутка для узких экранов */
  }
}
@media (max-width: 480px) {
  .go-terms th, .go-terms td {
    padding: 6px 8px;
    font-size: 0.82em;
  }
  .importance-indicator {
    width: 14px;
    height: 14px;
  }
}