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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f5efe8;
  color: #2e241d;
}

body.lock {
  overflow: hidden;
}

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

.container {
  width: min(1240px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 239, 232, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(60, 35, 18, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-emblem {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #dbb37a, #9a6c39 70%);
  box-shadow: 0 10px 25px rgba(101, 65, 33, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-crown {
  position: relative;
  z-index: 3;
  color: #fff7ea;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
}

.logo-laurel {
  position: absolute;
  width: 22px;
  height: 46px;
  border: 2px solid rgba(255, 246, 224, 0.85);
  border-top: none;
  border-left: none;
  border-radius: 0 0 20px 20px;
  top: 22px;
  z-index: 2;
}

.logo-laurel.left {
  left: 18px;
  transform: rotate(25deg);
}

.logo-laurel.right {
  right: 18px;
  transform: scaleX(-1) rotate(25deg);
}

.logo-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-subtitle {
  font-size: 12px;
  color: #7b6455;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.menu {
  display: flex;
  gap: 24px;
}

.menu a {
  text-decoration: none;
  color: #3b2b20;
  font-weight: 600;
  transition: 0.2s;
}

.menu a:hover {
  color: #9d7045;
}

.cart-open-btn {
  position: fixed;
  right: 60px;
  bottom: 20px;
  z-index: 9999;

  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #c19360, #8d663c);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(95, 61, 31, 0.22);
}

@media (max-width: 600px) {
  .cart-open-btn {
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    font-size: 14px;
  }
}

.hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(37, 22, 13, 0.55), rgba(37, 22, 13, 0.4)),
    url("bamboo/hero-cover.png") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(25, 14, 8, 0.78), rgba(25, 14, 8, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 34px;
}

.hero-left {
  color: #fff;
}

.hero-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #dbc09b;
  margin-bottom: 18px;
}

.hero-left h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  margin-bottom: 20px;
}

.hero-left p {
  max-width: 560px;
  color: #f4e7d9;
  line-height: 1.7;
  font-size: 18px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.25s ease;
  background: linear-gradient(135deg, #c29460, #8b6338);
  color: #fff;
  box-shadow: 0 10px 24px rgba(88, 54, 25, 0.28);
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: min(520px, 100%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.22);
}

.hero-card-label {
  color: #ead6bb;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  margin-bottom: 12px;
}

.hero-card img {
  width: 100%;
  border-radius: 18px;
  height: 430px;
  object-fit: cover;
}

.stats {
  margin-top: -45px;
  position: relative;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(66, 39, 18, 0.1);
}

.stat-card span {
  display: block;
  color: #9f7446;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 34px;
  display: block;
  margin-bottom: 8px;
}

.stat-card p {
  color: #6f5b4c;
  line-height: 1.5;
}

.featured {
  padding: 90px 0 30px;
}

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

.section-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a07449;
  margin-bottom: 10px;
}

.section-top h2,
.about-text h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
}

.featured-card {
  min-height: 300px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(62, 36, 18, 0.12);
}

.featured-card.large {
  min-height: 420px;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 10, 5, 0.68), rgba(20, 10, 5, 0.12));
}

.featured-content {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  color: #fff;
}

.featured-content span {
  display: inline-block;
  margin-bottom: 10px;
  color: #e0c49f;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
}

.featured-content h3 {
  font-size: 28px;
  line-height: 1.12;
  max-width: 280px;
}

.catalog-section {
  padding: 70px 0 90px;
}

.catalog-head {
  align-items: center;
}

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

.catalog-note {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff8f1;
  border: 1px solid #ead8c3;
  color: #614d3e;
  line-height: 1.6;
  box-shadow: 0 10px 24px rgba(79, 50, 26, 0.06);
}

#searchInput {
  width: 320px;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #d7c7b7;
  background: #fff;
  outline: none;
  font-size: 15px;
}

#searchInput:focus {
  border-color: #ab7b48;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: #eaded1;
  color: #4c392d;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #c19360, #8d663c);
  color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.empty-grid {
  grid-column: 1 / -1;
  padding: 36px 20px;
  text-align: center;
  background: #fff;
  border-radius: 24px;
  color: #7a6454;
  box-shadow: 0 14px 35px rgba(70, 42, 22, 0.09);
}

.card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(70, 42, 22, 0.09);
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(70, 42, 22, 0.14);
}

.card-bamboo {
  border: 1px solid rgba(193, 147, 96, 0.24);
}

.card-image-wrap {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #f6f0ea;
}

.card-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-image {
  transform: scale(1.04);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 10, 5, 0.3), transparent);
  opacity: 0;
  transition: 0.25s ease;
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-number,
.card-badge {
  position: absolute;
  top: 14px;
  background: rgba(30, 18, 10, 0.7);
  color: #fff;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: bold;
}

.card-number {
  left: 14px;
}

.card-badge {
  right: 14px;
  background: linear-gradient(135deg, #c19360, #8d663c);
}

.card-body {
  padding: 18px 18px 22px;
}

.card-category {
  font-size: 12px;
  color: #9d754d;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-size {
  color: #756456;
  font-size: 14px;
  line-height: 1.45;
  min-height: 40px;
  margin-bottom: 10px;
}

.card-price {
  color: #6e5a4b;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.add-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(135deg, #c19360, #8d663c);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

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

.add-btn.added {
  background: #4caf50 !important;
}

.about {
  padding: 20px 0 90px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.about-text p {
  margin-top: 16px;
  color: #6f5b4c;
  line-height: 1.7;
  font-size: 17px;
}

.about-panel {
  min-height: 380px;
  border-radius: 30px;
  background:
    linear-gradient(rgba(42, 25, 15, 0.34), rgba(42, 25, 15, 0.34)),
    url("bamboo/about-info.png") center/cover no-repeat;
  padding: 42px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 22px 45px rgba(60, 34, 16, 0.14);
}

.about-mark {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c79b63, #8f6536);
  font-weight: 700;
  margin-bottom: 18px;
}

.about-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.about-subtitle {
  color: #eadcc9;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.active {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal-content {
  position: relative;
  width: min(1050px, 92%);
  margin: 30px auto;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  padding: 20px;
  z-index: 2;
}

.modal-content > img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #f2ece5;
  border-radius: 16px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.modal-meta {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 6px 8px;
}

#modalThumb {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  object-fit: cover;
  background: #f3ece4;
}

.modal-info h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.modal-info p {
  color: #7b6657;
  line-height: 1.6;
}

.modal-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
}

.modal-nav button {
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #c19360, #8d663c);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#modalAddToCart {
  background: linear-gradient(135deg, #a8743f, #7a542f);
}

.cart-panel {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}

.cart-panel.active {
  display: block;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cart-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-panel.active .cart-content {
  transform: translateX(0);
}

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

.cart-header h3 {
  font-size: 24px;
}

.cart-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #f1ece6;
  cursor: pointer;
  font-size: 18px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #faf7f3;
  border-radius: 16px;
  padding: 10px;
}

.cart-item img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.cart-item-size,
.cart-item-price {
  color: #7a6454;
  font-size: 14px;
  line-height: 1.45;
}

.cart-item-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: #d9c2aa;
  color: #3e2d21;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.qty-btn:hover {
  background: #c7a27c;
  color: #fff;
}

.qty-box {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  color: #4e392b;
}

.remove-btn {
  border: none;
  background: #e5d5c6;
  color: #553d2e;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.cart-footer {
  border-top: 1px solid #eee;
  padding: 18px 20px 24px;
}

.cart-total {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}

.checkout-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #c19360, #8d663c);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.empty-cart {
  color: #7d6757;
  text-align: center;
  padding: 18px 10px;
}

.fasteners-section {
  padding: 70px 0 90px;
  background: #fffaf5;
}

.fasteners-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.fastener-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(70, 42, 22, 0.09);
  transition: 0.25s ease;
}

.fastener-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(70, 42, 22, 0.14);
}

.fastener-card img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  background: #f5f5f5;
  padding: 14px;
}

@media (max-width: 1100px) {
  .fasteners-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .fasteners-gallery {
    grid-template-columns: 1fr;
  }
}

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }


@media (max-width: 820px) {
  .nav,
  .menu,
  .stats-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-controls,
  .filters {
    align-items: stretch;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-left h1 {
    font-size: 34px;
  }

  .modal-meta {
    grid-template-columns: 1fr;
  }
}
/* =========================
   АДАПТИВНОСТЬ
========================= */

html, body {
  overflow-x: hidden;
}

.container {
  width: min(1240px, 92%);
  margin: 0 auto;
}

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

.products-grid,
.stats-grid,
.featured-grid,
.about-grid,
.hero-content,
.fasteners-gallery {
  min-width: 0;
}

/* Ноутбук / планшет */
@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-right {
    justify-content: flex-start;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-card.large {
    grid-column: 1 / -1;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Планшет */
@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .catalog-controls {
    align-items: stretch;
    width: 100%;
  }

  #searchInput {
    width: 100%;
  }

  .filters {
    justify-content: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .modal-meta {
    grid-template-columns: 90px 1fr;
  }

  .hero-card img {
    height: 320px;
  }
}

/* Телефон */
@media (max-width: 600px) {
  .container {
    width: 94%;
  }

  .header {
    position: sticky;
    top: 0;
  }

  .nav {
    padding: 12px 0;
  }

  .menu a {
    font-size: 14px;
  }

  

  .hero {
    min-height: auto;
    padding: 60px 0 40px;
  }

  .hero-left h1 {
    font-size: 32px;
  }

  .hero-left p {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
  }

  .hero-card img {
    height: 220px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 240px;
  }

  .modal-content {
    width: 95%;
    margin: 14px auto;
    padding: 14px;
  }

  .modal-meta {
    grid-template-columns: 1fr;
  }

  #modalThumb {
    width: 80px;
    height: 80px;
  }

  .modal-nav {
    grid-template-columns: 1fr;
  }

  .cart-content {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 64px 1fr;
  }

  .cart-item img {
    width: 64px;
    height: 80px;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .about-panel {
    min-height: 260px;
    padding: 24px;
  }
}
/* ===== SEO/mobile fix ===== */
.cart-open-btn.cart-pop {
  transform: scale(1.06);
}

@media (max-width: 1024px) {
  .container {
    width: min(1240px, 94%);
  }

  .nav {
    gap: 14px;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .menu {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
    background-position: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-left {
    text-align: center;
  }

  .hero-left p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-right {
    max-width: 680px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-card.large {
    grid-column: 1 / -1;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .fasteners-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .logo {
    gap: 10px;
  }

  .logo-emblem {
    width: 64px;
    height: 64px;
  }

  .logo-crown {
    font-size: 18px;
  }

  .logo-title {
    font-size: 16px;
  }

  .logo-subtitle {
    font-size: 10px;
  }

  .menu {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .menu a {
    font-size: 13px;
  }

  

  .stats {
    margin-top: -20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-top {
    align-items: start;
  }

  .catalog-controls {
    width: 100%;
    align-items: stretch;
  }

  #searchInput {
    width: 100%;
  }

  .filters {
    justify-content: flex-start;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card-image {
    height: 220px;
  }

  .card-body {
    padding: 12px 12px 14px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-size {
    font-size: 12px;
    min-height: 32px;
    margin-bottom: 8px;
  }

  .card-price {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .add-btn {
    padding: 10px;
    font-size: 13px;
  }

  .fasteners-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .fastener-card img {
    height: 180px;
    padding: 10px;
  }

  .modal-content {
    width: min(100%, 96%);
    margin: 12px auto;
    padding: 12px;
    border-radius: 18px;
  }

  .modal-content > img {
    max-height: 46vh;
  }

  .modal-meta {
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding: 12px 0 6px;
  }

  #modalThumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }

  .modal-info h3 {
    font-size: 18px;
  }

  .modal-info p {
    font-size: 13px;
  }

  .modal-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal-nav button {
    padding: 12px;
    font-size: 14px;
  }

  .cart-content {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 62px 1fr;
    gap: 10px;
  }

  .cart-item img {
    width: 62px;
    height: 78px;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    justify-items: stretch;
  }
}

@media (max-width: 430px) {
  .container {
    width: 92%;
  }

  .nav {
    padding: 10px 0;
  }

  .hero {
    padding: 86px 0 44px;
  }

  .hero-kicker {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .hero-left h1 {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .hero-left p {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
    padding: 12px 18px;
  }

  .hero-card {
    padding: 12px;
    border-radius: 18px;
  }

  .hero-card img {
    height: 220px;
    border-radius: 14px;
  }

  .featured,
  .catalog-section,
  .fasteners-section,
  .about {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-top h2,
  .about-text h2 {
    font-size: 26px;
  }

  .catalog-note {
    padding: 14px;
    font-size: 14px;
  }

  .filter-btn {
    padding: 9px 12px;
    font-size: 12px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card {
    border-radius: 16px;
  }

  .card-image {
    height: 170px;
  }

  .card-number,
  .card-badge {
    top: 8px;
    font-size: 11px;
    padding: 5px 8px;
  }

  .card-number {
    left: 8px;
  }

  .card-badge {
    right: 8px;
  }

  .card-category {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .card-title {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .card-size {
    font-size: 11px;
    min-height: 28px;
  }

  .card-price {
    font-size: 13px;
  }

  .add-btn {
    border-radius: 10px;
    font-size: 12px;
    padding: 9px;
  }

  .fasteners-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fastener-card {
    border-radius: 16px;
  }

  .fastener-card img {
    height: 140px;
  }

  .about-panel {
    min-height: 260px;
    border-radius: 22px;
    padding: 24px;
  }

  .about-title {
    font-size: 28px;
  }
}
.logo-emblem,
.logo-laurel,
.logo-title,
.logo-subtitle {
  display: none !important;
}
.logo {
  height: 80px;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 400%;
  width: auto;
  object-fit: contain;
}
@media (max-width: 600px) {
  .featured-card,
  .featured-card.large {
    min-height: 220px;
  }

  .featured-content {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .featured-content h3 {
    font-size: 18px;
    line-height: 1.2;
    max-width: 100%;
  }

  .featured-content span {
    font-size: 10px;
    margin-bottom: 6px;
  }
}
@media (max-width: 600px) {
  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .menu a {
    font-size: 13px;
    padding: 6px 10px;
    background: #f0e6dc;
    border-radius: 10px;
  }
}
.footer {
  width: 100%;
  text-align: center;
  padding: 20px 0;
}

.insta-link img {
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

.insta-link img:hover {
  transform: scale(1.2);
}
.footer {
  width: 100%;
  background: #f3eee8; /* как у тебя на скрине */
  text-align: center;
  padding: 30px 10px;
}

/* Адрес */
.footer-address {
  font-size: 16px;
  margin-bottom: 15px;
}

/* Иконки под адресом */
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

/* Размер иконок */
.icon {
  width: 35px;
  height: 35px;
  transition: 0.3s;
}

/* Анимация */
.icon:hover {
  transform: scale(1.2);
}

/* Нижний текст */
.footer-extra {
  font-size: 13px;
  color: #555;
}
.footer {
  width: 100%;
  text-align: center;
  padding: 30px 10px;
  background: #f3eee8;
}

/* Адрес */
.footer-address {
  display: block;
  font-size: 16px;
  margin-bottom: 15px;
}

/* Контейнер иконок */
.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* ЖЁСТКО фиксируем размер */
.footer-socials img {
  width: 35px !important;
  height: 35px !important;
  max-width: 35px !important;
  display: inline-block !important;
}
.footer-socials img {
  width: 35px !important;
  height: 35px !important;
  max-width: 35px !important;
}
.footer-socials img {
  width: 35px !important;
  height: 35px !important;
  max-width: 35px !important;
  max-height: 35px !important;
  object-fit: contain !important;
  display: inline-block !important;
}

/* чтобы точно были под адресом */
.footer-socials {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 15px !important;
  margin-top: 10px;
}

.footer-address {
  display: block !important;
  text-align: center;
}
.footer-socials {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 15px !important;
}

/* чтобы ссылки не ломали линию */
.footer-socials a {
  display: inline-flex !important;
}

/* сами иконки */
.footer-socials img {
  width: 35px !important;
  height: 35px !important;
  object-fit: contain;
}
.insta-icon {
  width: 40px !important;
  height: 40px !important;
}
.load-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 40px auto;
  padding: 18px 40px;

  min-width: 260px;
  max-width: 320px;

  border: none;
  border-radius: 18px;

  background: linear-gradient(135deg, #c19360, #7a5634);
  color: #fff;

  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;

  cursor: pointer;

  box-shadow: 0 14px 35px rgba(0,0,0,0.18);

  transition: all 0.25s ease;
}

/* 🔥 ПК эффект */
.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, #d7a66f, #8a6440);
}

/* при нажатии */
.load-more-btn:active {
  transform: scale(0.97);
}

/* скрытие */
.load-more-btn.hidden {
  display: none;
}
button.load-more-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 40px auto !important;
  padding: 16px 34px !important;
  min-width: 260px !important;
  border: none !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #c19360, #8d663c) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 12px 26px rgba(95, 61, 31, 0.22) !important;
  transition: 0.25s ease !important;
}

button.load-more-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 32px rgba(95, 61, 31, 0.28) !important;
}

button.load-more-btn:active {
  transform: scale(0.98) !important;
}

button.load-more-btn.hidden {
  display: none !important;
}
@media (max-width: 768px) {
  #openCartBtn {
    position: fixed !important;
    right: 14px !important;
    bottom: 14px !important;
    left: auto !important;
    top: auto !important;

    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;

    padding: 0 !important;
    margin: 0 !important;

    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: visible !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
  }

  #openCartBtn span:not(#cartCount) {
    font-size: 0 !important;
  }

  #openCartBtn::before {
    content: "🛒";
    font-size: 26px;
    line-height: 1;
  }

  #cartCount {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;

    min-width: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    margin: 0 !important;

    border-radius: 999px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 22px !important;
    text-align: center !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    z-index: 100000 !important;
  }
}

/* ===== FINAL FIX CART BUTTON ===== */
.cart-open-btn {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 9999 !important;

  width: 64px !important;
  height: 64px !important;

  border: none !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #c19360, #8d663c) !important;
  color: #fff !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  cursor: pointer !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;

  padding: 0 !important;
}

#cartCount {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;

  min-width: 22px !important;
  height: 22px !important;
  padding: 0 6px !important;

  border-radius: 999px !important;
  background: #111 !important;
  color: #fff !important;

  font-size: 12px !important;
  font-weight: 700 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 768px) {
  .cart-open-btn {
    right: 14px !important;
    bottom: 14px !important;
    width: 58px !important;
    height: 58px !important;
  }
}


/* ===== HEADER FIX DESKTOP + MOBILE SAFE ===== */

/* desktop */
.header {
  background: rgba(245, 239, 232, 0.96) !important;
}

.nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  padding: 10px 0 !important;
  min-height: 84px !important;
}

.logo {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  height: auto !important;
  margin-right: 20px !important;
}

.logo-img {
  height: 68px !important;
  width: auto !important;
  max-width: 260px !important;
  object-fit: contain !important;
}

.menu {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 28px !important;
  margin-left: auto !important;
  width: auto !important;
}

.menu a {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  position: relative !important;
  white-space: nowrap !important;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #c19360, #8d663c);
  transition: width 0.25s ease;
}

.menu a:hover::after {
  width: 100%;
}

/* tablet */
@media (max-width: 900px) {
  .nav {
    gap: 14px !important;
    padding: 10px 0 12px !important;
  }

  .logo {
    width: 100% !important;
    justify-content: center !important;
    margin-right: 0 !important;
  }

  .logo-img {
    height: 58px !important;
    max-width: 220px !important;
  }

  .menu {
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  .menu a {
    font-size: 14px !important;
  }
}

/* phone */
@media (max-width: 600px) {
  .header {
    border-bottom: 1px solid rgba(60, 35, 18, 0.08) !important;
  }

  .nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 10px !important;
    min-height: auto !important;
    padding: 10px 0 !important;
  }

  .logo {
    width: 100% !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .logo-img {
    height: 50px !important;
    max-width: 200px !important;
  }

  .menu {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
    margin: 0 !important;
  }

  .menu a {
    font-size: 13px !important;
    line-height: 1.1 !important;
    padding: 7px 10px !important;
    background: #f0e6dc !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }

  .menu a::after {
    display: none !important;
  }
}

/* very small phone */
@media (max-width: 430px) {
  .logo-img {
    height: 46px !important;
    max-width: 180px !important;
  }

  .menu {
    gap: 7px 8px !important;
  }

  .menu a {
    font-size: 12px !important;
    padding: 6px 9px !important;
  }
}


.logo {
  height: 80px !important;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 430% !important;
  width: auto !important;
  object-fit: contain;
}

/* телефон */
@media (max-width: 600px) {
  .logo {
    height: 60px !important;
  }
}
.logo-img {
  transform: translateY(8px);
}
.header {
  background: rgba(245, 239, 232, 0.97);
  border-bottom: 1px solid rgba(60, 35, 18, 0.08);
}

.nav {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  column-gap: 40px !important;
  padding: 12px 0 !important;
  min-height: 96px !important;
}

/* логотип не трогаем */
.logo {
  justify-self: start;
}

/* меню собираем ближе и делаем аккуратнее */
.menu {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 30px !important;
  margin: 0 !important;
}

.menu a {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  color: #3b2b20;
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu a:hover {
  color: #9d7045;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #c19360, #8d663c);
  transition: width 0.25s ease;
}

.menu a:hover::after {
  width: 100%;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(95, 61, 31, 0.24);
}

/* планшет */
@media (max-width: 1100px) {
  .nav {
    grid-template-columns: auto 1fr !important;
    row-gap: 12px !important;
  }

  .header-cta {
    display: none;
  }

  .menu {
    justify-content: flex-end !important;
    gap: 18px !important;
  }
}

/* телефон */
@media (max-width: 700px) {
  .nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: auto !important;
  }

  .menu {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .menu a {
    font-size: 13px !important;
    padding: 6px 10px;
    background: #f0e6dc;
    border-radius: 10px;
  }

  .menu a::after {
    display: none;
  }
}
.menu a {
  position: relative;
  top: 7px;
}
@media (max-width: 700px) {
  .nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 0 18px !important;
  }

  .logo {
    margin-bottom: 7px !important;
  }

  .menu {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
  }

  .menu a {
    min-width: 200px !important;
    padding: 12px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 14px !important;
    background: #efe5da !important;
    color: #3b2b20 !important;
    box-shadow: 0 6px 16px rgba(95, 61, 31, 0.08) !important;
  }

  .menu a:hover,
  .menu a:active {
    background: linear-gradient(135deg, #c19360, #8d663c) !important;
    color: #fff !important;
  }

  .menu a::after {
    display: none !important;
  }
}
@media (min-width: 901px) {
  .menu {
    gap: 12px !important;
  }

  .menu a {
    padding: 8px 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;

    background: #f0e6dc !important;
    border-radius: 10px !important;

    color: #3b2b20 !important;
    text-decoration: none !important;

    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
    transition: 0.2s ease !important;
  }

  .menu a:hover {
    background: linear-gradient(135deg, #c19360, #8d663c) !important;
    color: #fff !important;
    transform: translateY(-1px);
  }

  .menu a::after {
    display: none !important;
  }
}
.featured-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 22px !important;
}

.featured-card,
.featured-card.large {
  min-height: 300px !important;
  height: 300px !important;
}

@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr !important;
  }

  .featured-card,
  .featured-card.large {
    min-height: 240px !important;
    height: 240px !important;
  }
}
.featured-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}