:root {
  --bg: #090b0f;
  --panel: #11161a;
  --panel-2: #171d22;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f7faf7;
  --muted: #a9b3ad;
  --quiet: #74807a;
  --mint: #36d99f;
  --cyan: #52d3ff;
  --amber: #ffe070;
  --danger: #ff6b6b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(135deg, #090b0f 0%, #121711 48%, #081112 100%);
  background-size: 42px 42px, 42px 42px, auto;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 15, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  direction: ltr;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(54, 217, 159, 0.48);
  border-radius: 8px;
  color: #07100d;
  background: linear-gradient(135deg, var(--mint), var(--amber));
  font-weight: 900;
}

.brand-text {
  font-weight: 900;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.main-nav a,
.mobile-panel a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a {
  padding: 0 14px;
}

.main-nav a.active,
.main-nav a:hover,
.mobile-panel a.active,
.mobile-panel a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.menu-btn {
  display: none;
  gap: 4px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-panel {
  position: fixed;
  inset: 72px 12px auto 12px;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 22, 26, 0.98);
  box-shadow: var(--shadow);
}

.mobile-panel.open {
  display: grid;
}

.mobile-panel a {
  padding: 0 14px;
}

#app {
  min-height: calc(100vh - 150px);
}

.content-wrap,
.home-hero,
.page-head,
.about-page {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 26px;
  align-items: end;
  padding-top: 58px;
  padding-bottom: 26px;
}

.home-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-copy h1,
.page-head h1,
.about-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.3rem, 6.2vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.home-copy p:not(.eyebrow),
.page-head p,
.about-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.85;
}

.home-stats,
.page-stats,
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.stat {
  min-width: 0;
  min-height: 84px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: 1.5rem;
}

.stat span {
  color: var(--quiet);
  font-size: 0.86rem;
}

.home-sections {
  padding-top: 12px;
  padding-bottom: 58px;
}

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

.section-card,
.product-card,
.about-panel,
.feature-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 22, 26, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.section-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

.section-card-media {
  position: relative;
  display: grid;
  min-height: 230px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(54, 217, 159, 0.12), rgba(82, 211, 255, 0.05)),
    #0b0f12;
  text-decoration: none;
}

.section-card-media img {
  width: 100%;
  height: 230px;
  padding: 12px;
  object-fit: contain;
  transition: transform 200ms ease;
}

.section-card:hover .section-card-media img {
  transform: scale(1.04);
}

.section-badge,
.platform-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  min-width: 42px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text);
  background: rgba(8, 10, 12, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 900;
  direction: ltr;
}

.media-placeholder {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--mint);
  font-weight: 900;
}

.section-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.section-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.section-card p:not(.eyebrow) {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  color: var(--quiet);
}

.section-card-meta strong {
  color: var(--mint);
  direction: ltr;
}

.more-link,
.primary-btn,
.secondary-btn,
.order-btn,
.ghost-btn,
.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.more-link {
  width: 100%;
  margin-top: auto;
  color: #06100d;
  background: linear-gradient(135deg, var(--mint), var(--amber));
}

.eye-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-btn {
  padding: 0 18px;
  color: #06100d;
  background: linear-gradient(135deg, var(--mint), var(--amber));
}

.secondary-btn,
.back-link {
  padding: 0 18px;
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.back-link {
  width: max-content;
  margin-bottom: 18px;
}

.page-head {
  padding-top: 44px;
  padding-bottom: 12px;
}

.page-head h1 {
  font-size: clamp(2rem, 5vw, 4.4rem);
}

.content-wrap {
  padding-top: 18px;
  padding-bottom: 58px;
}

.toolbar {
  position: sticky;
  top: 72px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 22, 26, 0.9);
  backdrop-filter: blur(16px);
}

.toolbar.has-offer-filter {
  grid-template-columns: minmax(220px, 1fr) auto auto;
}

.search-field {
  position: relative;
}

.search-field::before {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--quiet);
  border-radius: 999px;
  content: "";
  transform: translateY(-50%);
}

.search-field::after {
  position: absolute;
  top: calc(50% + 8px);
  right: 28px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--quiet);
  content: "";
  transform: rotate(45deg);
}

.search-field input,
.sort-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

.search-field input {
  padding: 0 46px 0 15px;
}

.sort-select {
  min-width: 178px;
  color-scheme: dark;
  padding: 0 14px;
}

.sort-select option {
  color: #f7faf7;
  background: #11161a;
}

.sort-select option:checked {
  color: #ffffff;
  background: #176be8;
}

.offer-filter {
  display: flex;
  gap: 6px;
  min-width: max-content;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  direction: ltr;
}

.offer-filter button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  padding: 0 12px;
}

.offer-filter button.active,
.offer-filter button:hover {
  color: #06100d;
  background: var(--mint);
}

.search-field input:focus,
.sort-select:focus {
  border-color: rgba(54, 217, 159, 0.72);
  box-shadow: 0 0 0 3px rgba(54, 217, 159, 0.16);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 34px 0 16px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.section-head p {
  margin: 7px 0 0;
  color: var(--quiet);
}

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(82, 211, 255, 0.44);
}

.product-media {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(54, 217, 159, 0.08), rgba(82, 211, 255, 0.05)),
    #0b0f12;
}

.product-media img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.product-title {
  min-height: 48px;
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.price-list {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  direction: ltr;
}

.price-row dt,
.price-row dd {
  margin: 0;
}

.price-row dt {
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-row dd {
  color: var(--mint);
  font-size: 0.86rem;
  font-weight: 900;
}

.order-btn {
  width: 100%;
  margin-top: auto;
  color: #06100d;
  background: var(--mint);
}

.empty-state,
.error-state {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
}

.about-page {
  padding-top: 48px;
  padding-bottom: 60px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 26px;
  align-items: center;
}

.about-panel {
  overflow: hidden;
}

.about-panel img {
  width: 100%;
  height: 420px;
  padding: 12px;
  object-fit: contain;
  background: #0b0f12;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-shell.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.order-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #11161a;
  box-shadow: var(--shadow);
}

.close-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-size: 1.5rem;
}

.modal-product {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
}

.modal-product.contact-only {
  grid-template-columns: 1fr;
}

.modal-product img {
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 8px;
  border-radius: 8px;
  background: #0b0f12;
  object-fit: contain;
}

.modal-product h2 {
  margin: 26px 0 8px;
  font-size: 1.7rem;
}

.modal-product p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.contact-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.contact-link.whatsapp {
  background: #1f9d62;
}

.contact-link.telegram {
  background: #1976a7;
}

.contact-link.facebook {
  background: #315aa8;
}

.contact-link.instagram {
  background: linear-gradient(135deg, #f97316, #d9468f 55%, #5b6ee1);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 78px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  background: rgba(9, 11, 15, 0.72);
  text-align: center;
}

.site-footer strong {
  color: var(--text);
}

@media (max-width: 1100px) {
  .site-header {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    order: 1;
  }

  .main-nav {
    order: 2;
    display: flex;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .menu-btn {
    display: none;
  }

  .mobile-panel {
    display: none !important;
  }

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

  .home-hero,
  .about-hero {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .site-header {
    min-height: 98px;
    padding: 0 14px;
    padding-top: 8px;
    padding-bottom: 8px;
    align-content: center;
  }

  .mobile-panel {
    top: 98px;
  }

  .brand-text {
    display: inline;
    font-size: 0.86rem;
  }

  .content-wrap,
  .home-hero,
  .page-head,
  .about-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-right: 14px;
    padding-left: 14px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 112px);
    gap: 10px;
    align-items: start;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .page-head {
    padding-top: 18px;
    padding-bottom: 0;
  }

  .page-head .eyebrow {
    margin: 0 0 6px;
    font-size: 0.78rem;
  }

  .back-link {
    min-height: 40px;
    margin-bottom: 12px;
    padding: 0 14px;
  }

  .home-copy h1,
  .page-head h1,
  .about-hero h1 {
    max-width: 100%;
    font-size: clamp(1.55rem, 8.2vw, 2.18rem);
    line-height: 1.08;
  }

  .home-copy p:not(.eyebrow),
  .page-head p:not(.eyebrow),
  .about-hero p {
    margin-top: 10px;
    font-size: 0.86rem;
    line-height: 1.68;
  }

  .home-stats,
  .page-stats,
  .about-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .stat {
    min-height: 58px;
    padding: 9px;
  }

  .stat strong {
    font-size: 1.08rem;
  }

  .stat span {
    font-size: 0.72rem;
  }

  .toolbar {
    position: static;
    top: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .toolbar.has-offer-filter {
    grid-template-columns: 1fr;
  }

  .content-wrap {
    padding-top: 10px;
    padding-bottom: 42px;
  }

  .sort-select {
    min-width: 0;
  }

  .offer-filter {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .offer-filter::-webkit-scrollbar {
    display: none;
  }

  .product-grid,
  .home-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .section-card-media {
    min-height: 96px;
  }

  .section-card-media img {
    height: 96px;
    padding: 6px;
  }

  .section-card h2 {
    font-size: 0.72rem;
    line-height: 1.22;
  }

  .section-card p:not(.eyebrow) {
    display: none;
  }

  .section-card-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    font-size: 0.62rem;
  }

  .section-card-body,
  .product-body {
    gap: 7px;
    padding: 7px;
  }

  .more-link,
  .order-btn {
    min-height: 32px;
    gap: 4px;
    font-size: 0.66rem;
  }

  .eye-icon {
    width: 13px;
    height: 13px;
  }

  .product-media img {
    padding: 5px;
  }

  .product-title {
    min-height: 32px;
    margin-bottom: 7px;
    font-size: 0.64rem;
    line-height: 1.22;
  }

  .price-list {
    gap: 4px;
    margin-bottom: 7px;
  }

  .price-row {
    min-height: 24px;
    gap: 3px;
    padding: 4px 5px;
  }

  .price-row dt {
    font-size: 0.48rem;
  }

  .price-row dd {
    font-size: 0.55rem;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

  .modal-product img {
    max-height: 360px;
  }

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

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .home-card-grid,
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .primary-btn,
  .secondary-btn,
  .more-link {
    width: 100%;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(90px, 104px);
  }
}

@media (max-width: 350px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }

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

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