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

body {
  font-family: "Manrope", sans-serif;
  color: #11131a;
  background: #f7f7f8;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  z-index: 10;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 20px 0;
  gap: 20px;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.logo img {
  height: 84px;
  width: 340px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 44px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  transform: translateX(-36px);
}

.nav a {
  color: #545760;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  color: #11131a;
  transform: translateY(-2px);
}

.nav a.active {
  color: #11131a;
}

.nav a.nav-cart {
  display: none;
}

.nav.open {
  display: grid;
  grid-template-columns: 1fr;
  position: absolute;
  top: 72px;
  right: 4%;
  background: #fff;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: none;
  gap: 0;
}

.nav.open a {
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  padding: 10px 12px;
  border-bottom: 1px solid #ececec;
}

.nav.open a:last-child {
  border-bottom: none;
}

.nav.open .nav-cart {
  display: inline-flex;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 32px;
  height: 32px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #11131a;
  border-radius: 999px;
}

.nav-toggle span + span {
  margin-top: 0;
}

.primary-button,
.secondary-button,
.ghost-button {
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-button {
  background: #11131a;
  color: #fff;
}

.secondary-button {
  background: #f1f1f2;
  color: #11131a;
}

.ghost-button {
  background: transparent;
  border: 1px solid #d9d9db;
  color: #11131a;
}

.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.eyebrow {
  color: #6b6f7a;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.hero-metrics h3 {
  font-size: 1.4rem;
}

.hero-card {
  background: #ffffff;
  color: #11131a;
  padding: 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}

.hero-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.8;
}

.trust {
  background: #fff;
  padding: 28px 0;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.section {
  padding: 70px 0;
}

.soft-panel {
  background: #ffffff;
}

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

.section-header a {
  color: #5a5d66;
  font-weight: 600;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.category-grid article,
.stack-card,
.value-card,
.info-card,
.page-hero-card,
.bundle-card,
.cart-summary,
.contact-form,
.cart-item,
.empty-state {
  background: #ffffff;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(17, 19, 26, 0.08);
}

.category-grid a {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 600;
  color: #11131a;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.product-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(17, 19, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.product-image-card {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f1f2;
}

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

.product-badge {
  background: #eef2ff;
  color: #2f3ad9;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  width: fit-content;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  color: #5a5d66;
  font-size: 0.9rem;
}

.product-actions-row {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.category-overview-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(17, 19, 26, 0.08);
  display: flex;
  flex-direction: column;
}

.category-card-image {
  height: 180px;
  background: #f1f1f2;
}

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

.category-card-content {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.category-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-card-tags span,
.category-tags span {
  background: #f1f1f2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.admin-panel {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(17, 19, 26, 0.08);
  padding: 24px;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field label {
  font-weight: 600;
}

.admin-field input,
.admin-field select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e3e3e5;
  background: #fff;
}

.admin-span-2 {
  grid-column: span 2;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.muted-text {
  color: #6b6f7a;
  font-weight: 500;
}

.category-header {
  align-items: center;
}

.category-header p {
  color: #6b6f7a;
  margin-top: 6px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.stacks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.newsletter {
  padding-top: 0;
}

.newsletter-card {
  background: #11131a;
  color: #fff;
  padding: 40px;
  border-radius: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  min-width: 240px;
}

.site-footer {
  background: #11131a;
  color: #fff;
  padding: 50px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.footer-grid a,
.footer-grid span {
  color: #cdd0d6;
  margin-top: 8px;
  display: block;
}

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 12px;
}

.page-hero {
  background: #ffffff;
  padding: 70px 0 50px;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: center;
}

.page-hero-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pill-button {
  border: 1px solid #d9d9db;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.pill-button.active {
  background: #11131a;
  color: #fff;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.bundle-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bundle-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bundle-tags span,
.product-badges span {
  background: #f1f1f2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.bundle-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: start;
}

.product-image {
  background: #f1f1f2;
  border-radius: 20px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #8a8d95;
}

.product-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #f1f1f2;
  border: 2px solid transparent;
}

.thumb.active {
  border-color: #11131a;
}

.price {
  font-size: 1.6rem;
  font-weight: 700;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.product-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #f1f1f2;
  padding: 10px 14px;
  border-radius: 999px;
}

.qty-selector button {
  border: none;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
}

.qty-selector.small {
  padding: 6px 10px;
}

.product-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.info-list {
  display: grid;
  gap: 18px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: center;
}

.cta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #11131a;
  color: #fff;
  padding: 30px;
  border-radius: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.contact-info {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.contact-link {
  color: #11131a;
  font-weight: 600;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e3e3e5;
  background: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: start;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item-media {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f1f2;
  flex-shrink: 0;
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-info span {
  color: #6b6f7a;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.summary-line.total {
  font-weight: 700;
  font-size: 1.1rem;
}

.promo-box {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.promo-box input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e3e3e5;
}

.fine-print {
  font-size: 0.8rem;
  color: #7e828b;
  margin-top: 12px;
}

.empty-state {
  text-align: center;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 19, 26, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.search-overlay.active {
  display: flex;
}

.search-card {
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-card input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e3e3e5;
}

.search-results {
  display: grid;
  gap: 10px;
}

.search-result {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f7f8;
}

.telegram-bubble {
  position: fixed;
  left: 24px;
  top: 85%;
  transform: translateY(-60%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #24a3e1;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(36, 163, 225, 0.3);
  z-index: 20;
}

.telegram-bubble svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.telegram-bubble span {
  display: none;
}

@media (max-width: 700px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    justify-self: start;
  }
  .header-actions {
    display: none;
  }
  .logo img {
    width: 440px;
    height: 72px;
  }
  .logo {
    justify-self: center;
  }
  .nav.open {
    position: fixed;
    top: 84px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(280px, 90vw);
    padding: 14px;
  }
  .hero {
    padding: 60px 0 40px;
  }
  .page-hero {
    padding: 60px 0 40px;
  }
  .hero-card {
    min-height: auto;
  }
  .cart-grid {
    grid-template-columns: 1fr;
  }
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .cart-item-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 700px) {
  .logo img {
    width: 400px;
    height: 68px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 50px;
  }
  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .newsletter-card {
    padding: 28px;
  }
  .header-inner {
    grid-template-columns: auto 1fr;
  }
  .logo {
    width: auto;
    justify-content: center;
    justify-self: center;
  }
  .nav.open {
    top: 76px;
    width: min(260px, 90vw);
  }
  .telegram-bubble {
    left: 16px;
    bottom: 18px;
    padding: 10px 12px;
  }
  .header-inner {
    padding: 16px 0;
  }
  .logo img {
    width: 260px;
    height: 64px;
  }
  .footer-logo {
    height: 56px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
