/* Остаток главной — popular / fabric / footer */
.page-below {
  position: relative;
  z-index: 2;
  background: #141414;
  color: #f5f5f5;
}

.page-below a { color: inherit; }

.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-kicker {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(245, 245, 245, 0.62);
  max-width: 28ch;
}

/* —— Popular —— */
.popular {
  padding: 72px 0 64px;
  background: #141414;
}

.popular-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.product-card {
  position: relative;
  border-radius: 14px;
  background: #1c1c1c;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* hover → css/hover.css */

.product-card-img {
  display: block;
  overflow: hidden;
  background: #161616;
  aspect-ratio: 3 / 4;
  width: 100%;
  flex: 0 0 auto;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 18px;
  margin-top: auto;
  min-height: 76px;
  box-sizing: border-box;
}

.product-card-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.product-card-price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.product-card-tone {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.55);
}

.product-card-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #f5f5f5;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.product-card-btn:hover {
  background: #fff;
  color: #1a1a1a;
  transform: scale(1.03);
}

.product-card-btn:active { transform: scale(0.98); }

/* —— Fabric —— */
.fabric {
  padding: 0;
  background: #ece8e2;
  color: #1f1f1f;
}

.fabric-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: min(72vh, 640px);
}

.fabric-media {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.fabric-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}

.fabric-copy {
  padding: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.fabric-copy h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.fabric-copy p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: rgba(31, 31, 31, 0.78);
  max-width: 34ch;
}

.fabric-facts {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.fabric-fact {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}

.fabric-fact-mark {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #1a1a1a;
}

.fabric-fact strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.fabric-fact span {
  font-size: 0.9rem;
  color: rgba(31, 31, 31, 0.68);
  line-height: 1.4;
}

.fabric-ruler {
  margin-top: 10px;
  display: flex;
  gap: 0;
  border: 1px solid rgba(26, 26, 26, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.fabric-ruler span {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border-right: 1px solid rgba(26, 26, 26, 0.15);
  background: rgba(255, 255, 255, 0.35);
}

.fabric-ruler span:last-child { border-right: 0; }
.fabric-ruler span.is-hot {
  background: #1a1a1a;
  color: #f5f5f5;
}

/* —— Footer —— */
.site-footer {
  background: #0f0f0f;
  color: #f5f5f5;
  padding: 64px 0 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px 28px;
}

.footer-brand .logo {
  color: #f5f5f5;
  --hdr-fg: #f5f5f5;
  --hdr-mark-fg: #1a1a1a;
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0;
  color: rgba(245, 245, 245, 0.6);
  max-width: 28ch;
  line-height: 1.45;
  font-size: 0.95rem;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.45);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 1.05rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.footer-col a:hover { opacity: 0.7; text-decoration: underline; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.4);
}

/* —— Back to top —— */
.to-top {
  position: fixed;
  right: 18px;
  bottom: max(88px, calc(72px + env(safe-area-inset-bottom)));
  z-index: 30;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.to-top.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover { transform: scale(1.05); }
.to-top:focus-visible {
  outline: 2px solid #b05010;
  outline-offset: 3px;
}

/* grain */
.page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card-img img,
  .to-top {
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .popular-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fabric-layout {
    grid-template-columns: 1fr;
  }
  .fabric-media {
    min-height: 280px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .popular {
    padding: 48px 0 40px;
  }
  /* горизонтальный лист — см. css/mobile.css */
  .product-card:hover {
    transform: translateY(-3px);
  }
  .fabric-copy {
    padding: 32px 20px 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer {
    padding: 48px 0 120px;
  }
}
