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

html, body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #111111;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  max-width: 100vw;
  position: relative;
}

.layout {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

.sidebar {
  width: 300px;
  min-width: 180px;
  padding: 48px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-end;
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.nav-second {
  margin-top: 36px;
}

.nav-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-decoration: none;
  color: #414141;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: normal;
  transition: color 0.2s;
  text-align: right;
}

.nav-link:hover,
.nav-link.active {
  color: #111111;
  font-weight: 300;
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.nav-controls {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-decoration: none;
  color: #111111;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: normal;
}

.nav-controls:hover {
  color: #999999;
}

.sidebar-logo {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #111111;
  text-align: left;
  position: absolute;
  top: 50%;
  left: 32px;
  transform: translateY(-50%);
  letter-spacing: normal;
  margin: 0;
}

.sidebar-name {
  font-size: 9px;
  font-weight: 700;
  color: #aaaaaa;
  text-transform: lowercase;
  writing-mode: vertical-lr;
}

/* СОЦСЕТИ */
.social-icons {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
}

.social-link {
  color: #aaaaaa;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.social-link:hover {
  color: #111111;
}

/* ГАЛЕРЕЯ */
.gallery {
  flex: 1;
  padding: 48px 40px;
}

.gallery .mobile-hero {
  display: none;
}

.mobile-landing-header {
  display: none;
}

.mobile-landing-nav {
  display: none;
}

.mobile-hero-scroll {
  display: none;
}


.gallery-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-content: start;
}

/* КАРТОЧКА */
.card {
  text-decoration: none;
  color: inherit;
  display: block;
  opacity: 0;
  animation: fadeUp 1.0s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.25s; }
.card:nth-child(3) { animation-delay: 0.4s; }
.card:nth-child(4) { animation-delay: 0.55s; }
.card:nth-child(5) { animation-delay: 0.7s; }
.card:nth-child(6) { animation-delay: 0.85s; }

.card-img-wrap {
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 1 / 1;
  position: relative;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.card:hover .card-img-wrap img,
.card.is-touched .card-img-wrap img {
  filter: blur(6px) brightness(0.4);  /* ← темнее + блюр */
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  text-align: center;
  padding: 16px;
}

.card:hover .card-overlay,
.card.is-touched .card-overlay {
  opacity: 1;
}

.overlay-title {
  position: static;        /* ← убрать absolute */
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.3;
}

.overlay-price {
  position: static;        /* ← убрать absolute */
  color: #aaaaaa;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.card-caption {
  margin-top: 6px;
}

.card-title {
  font-size: 11px;
  font-weight: 400;
  color: #1b1b1b;
  line-height: 1.4;
}

.card-sub {
  font-size: 11px;
  font-weight: 400;
  color: #888;
  margin-top: 2px;
}

/* АНИМАЦИЯ */
@keyframes fadeUp {
  0% { 
    opacity: 0;
    transform: translateY(40px);
  }
  100% { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* БУРГЕР */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #111111;
  padding: 8px;
  line-height: 1;
  position: relative;
  z-index: 100;
}

/* МОБИЛЬНАЯ ШАПКА */
.mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 100;
}

.mobile-logo {
  font-size: 12px;
  font-weight: 700;
  color: #000;
}

.mobile-top-links {
  display: none;
}

/* МОБИЛЬНОЕ МЕНЮ */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  width: 100%;
}

.mobile-menu.open {
  display: none; /* override for desktop, hidden usually anyway inside sidebar */
}

.mobile-menu .nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  align-items: flex-start !important;
}

.mobile-menu-inner {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  width: 100% !important;
  align-items: flex-start !important;
}

.mobile-menu-inner .mobile-col-right.nav {
  align-items: flex-end !important;
}

.mobile-menu .nav-link {
  text-align: left;
  line-height: 2.2;
  font-size: 14px;
  font-weight: 700;
}

.mobile-menu .sidebar-bottom {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* АДАПТИВ 768px — мобильный лендинг */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }

  .sidebar {
    display: none !important;
  }

  .sidebar-top,
  .sidebar-logo,
  .sidebar > .sidebar-bottom {
    display: none !important;
  }

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 12px 22px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-bottom: none;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

  .mobile-bar-logo {
    text-decoration: none;
    color: #111;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.03em;
    flex-shrink: 0;
  }

  .mobile-top-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 24px;
  }

  .mobile-top-link {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 11.5px;
    font-weight: 300;
    color: #999;
    text-decoration: none;
    transition: color 0.2s, font-weight 0.2s;
    letter-spacing: -0.01em;
    transform: scaleY(1.1);
    display: inline-block;
  }

  .mobile-top-link.active {
    color: #111;
    font-weight: 600;
  }

  .mobile-top-link:hover {
    color: #111;
  }

  .burger {
    display: block !important;
  }

  .mobile-menu {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    background: #fff !important;
    z-index: 98 !important;
    padding: 80px 24px 40px 24px !important;
    box-shadow: none !important;
    border-bottom: none !important;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease, visibility 0.6s;
    justify-content: flex-start !important;
    gap: 30px !important;
  }

  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu .nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    align-items: flex-start !important;
  }
  
  .mobile-menu .nav-link,
  .mobile-menu .nav-controls {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #111 !important;
    text-transform: lowercase;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0s;
  }

  .mobile-menu.open .nav-link,
  .mobile-menu.open .nav-controls {
    opacity: 1;
    transform: translateY(0);
  }

  

  /* Staggered animation for links */
  .mobile-menu.open .nav:nth-child(1) .nav-link:nth-child(1) { transition-delay: 0.2s; }
  .mobile-menu.open .nav:nth-child(1) .nav-link:nth-child(2) { transition-delay: 0.25s; }
  .mobile-menu.open .nav:nth-child(1) .nav-link:nth-child(3) { transition-delay: 0.3s; }
  
  .mobile-menu.open .nav:nth-child(2) .nav-link:nth-child(1) { transition-delay: 0.4s; }
  .mobile-menu.open .nav:nth-child(2) .nav-link:nth-child(2) { transition-delay: 0.45s; }
  .mobile-menu.open .nav:nth-child(2) .nav-link:nth-child(3) { transition-delay: 0.5s; }
  
  .mobile-menu.open .sidebar-bottom .nav-controls { transition-delay: 0.6s; }
  
  .mobile-menu .sidebar-bottom {
    margin-top: auto;
    padding-top: 40px;
    border-top: none;
    width: 100%;
  }

  .mobile-top-links {
    display: none !important;
  }

  .gallery {
    padding: 0;
  }

  #view-gallery.view.active {
    display: flex !important;
    flex-direction: column;
    min-height: 100vh;
  }

  .mobile-new-hero {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #fff;
    padding: 32px 24px;
    position: relative;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

  .mobile-new-brand {
    font-size: 34px;
    font-weight: 600;
    color: #000;
    margin-top: 20px;
    margin-bottom: 60px;
    letter-spacing: -0.03em;
    line-height: 1.1;
  }

  .mobile-new-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin-bottom: 80px;
  }

  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .mobile-nav-item {
    font-size: 22px;
    color: #999;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.2s;
    letter-spacing: 0;
  }

  .mobile-nav-item.active {
    color: #000;
    font-weight: 600;
  }

  .mobile-nav-item:hover {
    color: #000;
  }

  .mobile-hero-img-wrap {
    width: 200px;
    height: auto;
  }

  .mobile-hero-img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
  }

  .mobile-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .scroll-line {
    width: 32px;
    height: 1px;
    background: #ccc;
  }

  .mobile-scroll-indicator span {
    font-size: 9px;
    color: #888;
    letter-spacing: 0.05em;
    font-weight: 500;
  }

  .mobile-catalog-header {
    display: block;
    padding: 75px 24px 8px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

  .mobile-catalog-header h2 {
    font-size: 28px;
    font-weight: 300;
    color: #111;
    margin: 0;
    letter-spacing: -0.02em;
  }

  .gallery-catalog.mobile-catalog {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 24px;
    margin-bottom: 40px;
    padding-top: 80px;
  }

  .mobile-catalog .card-title {
    font-size: 12px;
    margin-top: 8px;
  }

  .mobile-catalog .card-sub {
    font-size: 12px;
    margin-top: 4px;
  }

}

/* АДАПТИВ 560px */
@media (max-width: 560px) {
  .gallery-catalog { grid-template-columns: 1fr; }
}
/* TERMS PAGE */

.terms-page {
  flex: 1;
  padding: 100px 24px 40px 24px;
  overflow-y: auto;
  align-self: flex-start;
  box-sizing: border-box;
}

.terms-shell {
  width: 100%;
  max-width: 100%;   /* ← убираем ограничение */
}

.terms-top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 12px;
}

.terms-meta {
  display: flex;
  flex-direction: column;
}

.terms-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 300;
  color: #111;
  margin: 0;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.terms-date {
  display: none;
}

.terms-close {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 34px;
  font-weight: 300;
  color: #aaaaaa;
  text-decoration: none;
  line-height: 1;
  margin-top: -6px;
  transition: color 0.2s;
}

.terms-close:hover {
  color: #2d2d2d;
}

/* ACCORDION */
.terms-section {
  border-top: none;
  border-bottom: none;
}

.terms-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.terms-section-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #474747;
}

.terms-arrow {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 26px;
  color: #999;
  font-weight: 300;
  transition: transform 0.25s ease, color 0.2s;
  line-height: 1;
}

.terms-section.open .terms-arrow {
  transform: rotate(45deg);
  color: #555;
  margin-top: -2px;
}

.terms-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.terms-section.open .terms-text {
  max-height: 400px;  /* ← было 200px */
}


.terms-text p {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0 0 14px 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
}

.terms-text a {
  color: #434343;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-list {
  margin: 6px 0 14px 0;
  padding: 0;
  list-style: none;
}

.terms-list li {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
  padding-left: 0;
}

@media (max-width: 768px) {
  .terms-page {
    padding: 24px 20px 40px;
    padding-top: 80px;
  }
}

/* ABOUT PAGE */
.about-page {
  flex: 1;
  align-self: flex-start;
  padding: 48px 40px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  min-height: 100vh;
  box-sizing: border-box;
}

.about-content {
  width: 100%;
  max-width: 900px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.about-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #111;
  margin-top: 0;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.about-grid {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-photo-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  margin-top: -12px;
}

.about-photo {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}

.about-p {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
  text-align: left;
}

.about-p-strong {
  color: #111;
  font-weight: 500;
}


@media (max-width: 768px) {
  .about-page {
    padding: 120px 24px 40px 24px;
    padding-top: 80px;
  }
  .about-grid {
    flex-direction: column;
    gap: 32px;
  }
  .about-photo-wrap {
    justify-content: center;
    order: -1; /* image on top for mobile */
  }
  .about-title {
    margin-bottom: 24px;
    font-weight: 300;
  }
  .about-photo {
    max-width: 100%;
  }
}

/* CONTACT PAGE */
.contact-page {
  flex: 1;
  align-self: flex-start;
  padding: 48px 40px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  min-height: 100vh;
  box-sizing: border-box;
  display: block; /* Removed center alignment */
}

.contact-content {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #111;
  margin-top: 0;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.contact-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-legend {
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
  padding: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 12px;
  color: #555;
}

.required {
  color: #999;
  margin-left: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 10px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #111;
}

.form-submit-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.form-submit {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover {
  background: #000;
}

@media (max-width: 768px) {
  .contact-page {
    padding: 120px 24px 40px 24px;
    padding-top: 80px;
  }
  .contact-title {
    margin-bottom: 24px;
    font-weight: 300;
  }
}

/* PLACEHOLDER PAGE */
.placeholder-page {
  flex: 1;
  align-self: flex-start;
  padding: 100px 40px 40px 24px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.placeholder-content {
  text-align: left;    
}

.placeholder-content h2 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 300;
  color: #111;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.placeholder-content p {
  font-size: 16px;
  color: #666;
}

@media (max-width: 768px) {
  .placeholder-page {
    padding: 80px 24px 60px 24px;  /* ← такой же отступ как у хедера */
    align-items: left;
  }
}


/* Single-page views: show only active */
.view {
  display: none !important;
}
#view-gallery.view.active {
  display: block !important;
}
#view-terms.view.active {
  display: flex !important;
}
#view-about.view.active {
  display: block !important;
}
#view-contact.view.active {
  display: flex !important;
}
#view-design.view.active,
#view-art.view.active {
  display: flex !important;
}
#view-product.view.active {
  display: flex !important;
}
#view-product-bottom.view.active {
  display: flex !important;
}


/* --- MERGED FROM SAMPLE.CSS --- */
/* =============================
   СТРАНИЦА ТОВАРА — sample.css
   ============================= */

.product-page {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}


/* ── ЛЕВАЯ ЧАСТЬ ── */
.product-left {
  width: 42%;
  height: 100vh;
  position: sticky;
  top: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-back-btn {
  display: none;
}

.cover-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cover-wrap img.main-cover {
  width: 400px;
  height: 400px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cover-thumbs {
  display: flex;
  gap: 6px;
}

.cover-thumbs img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
  border: 1px solid transparent;
}

.cover-thumbs img:hover,
.cover-thumbs img.active {
  opacity: 1;
  border-color: #ddd;
}

/* ── ПРАВАЯ ЧАСТЬ: ИНФО ── */
.product-info {
  width: 58%;
  padding: 0 60px 0 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  height: 100vh;
  position: sticky;
  top: 0;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-title {
  font-size: 24px;
  font-weight: 600;
  color: #111;
}

.product-genres {
  font-size: 13px;
  font-weight: 700;
  color: #888;
}

.product-number {
  font-size: 12px;
  font-weight: 700;
  color: #999;
  margin-top: 2px;
}

.product-desc {
  font-size: 12px;
  font-weight: 400;
  color: #666;
  line-height: 1.75;
  max-width: 440px;
}

.product-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  padding: 4px 8px;
  background: #f5f5f5;
  border: none;
}

.product-purchase-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.option-btn {
  background: transparent;
  border: 1px solid #eee;
  color: #999;
  font-size: 9px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-btn:hover {
  border-color: #111111;
  color: #111111;
}

.option-btn.active {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

/* ── ПЛЕЕР (верхний, в product-info) ── */
.player {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 0 12px 0;
  width: 100%;
  max-width: 420px;
}

.progress-wrap {
  flex: 1;
  height: 1px;
  background: #eee;
  cursor: pointer;
  position: relative;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-label {
  font-size: 9px;
  font-weight: 700;
  color: #999;
}

.player-track {
  font-size: 9px;
  font-weight: 400;
  color: #cccccc;
  letter-spacing: 0.04em;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-wrap {
  flex: 1;
  height: 1px;
  background: #eee;
  cursor: pointer;
  position: relative;
}

.play-btn {
  background: none;
  border: 1px solid #e0e0e0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.play-btn:hover {
  border-color: #111;
}

.progress-bar {
  height: 100%;
  background: #111111;
  width: 0%;
  transition: width 0.1s linear;
}

.player-time {
  font-size: 9px;
  font-weight: 700;
  color: #999;
  min-width: 28px;
  text-align: right;
}

/* ── ЦЕНА И КНОПКА ── */
.product-buy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
}

.product-price {
  font-size: 12px;
  font-weight: 400;
  color: #111;
}

.buy-btn {
  font-family: inherit;
  text-decoration: none;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  padding: 10px 20px;
  transition: background 0.2s;
}

.buy-btn:hover {
  background: #444444;
}

.variant-btn {
  font-family: inherit;
  background: transparent;
  border: 1px solid #eee;
  color: #999;
  font-size: 11px;
  font-weight: 400;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.variant-btn:hover {
  border-color: #111111;
  color: #111111;
}

.variant-btn.active {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}
@media (max-width: 768px) {
  .product-buy {
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .product-variant {
    flex: 1;
    flex-wrap: nowrap;
    margin-top: 0;
    gap: 8px;
  }

  .variant-btn {
    flex: 1;
    text-align: center;
  }
}

/* ── НИЗ СТРАНИЦЫ ── */
.product-bottom {
  display: flex;
  gap: 60px;
  padding: 40px 60px 60px;
  width: 100%;
  box-sizing: border-box;
}

.bottom-left {
  flex: 1;
  max-width: 50vw;
}

.bottom-right {
  flex: 1;
  max-width: 380px;
}

/* ── ПЛЕЙЕР ВНИЗУ ── */
.pack-player {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pack-player-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pack-player-label {
  font-size: 9px;
  font-weight: 700;
  color: #999;
}

.pack-player-current {
  font-size: 10px;
  color: #777777;
  letter-spacing: 0.04em;
}

.pack-player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 4px;
}

.pack-player-controls .play-btn {
  width: 32px;
  height: 32px;
}

.pack-player-controls .progress-wrap {
  flex: 1;
  height: 1px;
  background: #eee;
  cursor: pointer;
  position: relative;
}

.pack-player-controls .progress-bar {
  height: 100%;
  background: #111111;
  width: 0%;
}

.pack-player-controls .player-time {
  font-size: 9px;
  color: #bbbbbb;
  letter-spacing: 0.04em;
  min-width: 28px;
  text-align: right;
}

/* ── ТРЕКЛИСТ ── */
.tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tracklist li {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #666;
  cursor: pointer;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.15s;
  gap: 10px;
}

.tracklist li::before {
  content: attr(data-index);
  font-size: 9px;
  color: #aaa;
  min-width: 18px;
}

.tracklist li:hover {
  color: #111111;
}

.tracklist li:hover::before {
  color: #999999;
}

.tracklist li.active {
  color: #111111;
  font-weight: 700;
}

.tracklist li.active::before {
  content: "▶";
  color: #111111;
  font-size: 7px;
}

/* ── USAGE ── */
.usage-title {
  font-size: 9px;
  font-weight: 700;
  color: #999;
  margin-bottom: 12px;
}

.usage-text {
  font-size: 11px;
  font-weight: 400;
  color: #666;
  line-height: 1.75;
  margin-bottom: 12px;
}
/* ── ИНЛАЙН ПРОГРЕСС В ТРЕКЛИСТЕ ── */
.tracklist li {
  flex-wrap: wrap;
  position: relative;
}

.track-progress-wrap {
  display: none;
  width: 100%;
  height: 1px;
  background: #eee;
  margin-top: 6px;
  flex-basis: 100%;
}

.track-progress {
  height: 100%;
  background: #111111;
  width: 0%;
  transition: width 0.4s linear;
}

.track-time {
  font-size: 9px;
  color: #999;
  margin-left: auto;
  min-width: 28px;
  text-align: right;
}

.tracklist li.active .track-progress-wrap {
  display: block;
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .product-page {
    flex-direction: column;
    min-height: auto;
  }

  .product-left,
  .product-info {
    width: 100% !important;
    height: auto !important;
    position: static !important;
    padding: 24px !important;
    justify-content: flex-start !important;
  }
  
  .product-left {
    padding-top: 30px !important; /* Move photo slightly higher on mobile */
  }

  .product-info {
    padding-top: 0 !important;
  }

  .cover-wrap img.main-cover {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .player {
    max-width: 100% !important;
    width: 100% !important;
  }

  .product-bottom {
    flex-direction: column !important;
    padding: 32px 24px 60px 24px !important;
    gap: 32px !important;
  }

  .bottom-left,
  .bottom-right {
    max-width: 100% !important;
  }

  .product-back-btn {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 24px;
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    letter-spacing: 0.02em;
  }
}

