:root {
  /* Modern Loft / Industrial Palette */
  --primary-default: #C88264;
  /* Terracotta / Warm Orange - keeping as brand accent */
  --primary-hover: #A05238;

  --secondary-default: #2A3036;
  /* Dark Slate / Charcoal - Stronger Industrial Dark */

  --bg-default: #FFFFFF;
  /* Stark White for "Gallery" feel */
  --bg2-default: #F5F5F3;
  /* Concrete / Light Grey for sections */

  --text-default: #1A1A1A;
  /* Near Black for high contrast */
  --muted-default: #757575;
  /* Industrial Grey */

  --border-default: #2A3036;
  /* High Contrast Border */
  --border-light: #E0E0E0;

  /* Re-mapping for Telegram Web App / Unified Variables */
  --primary: var(--primary-default);
  --primary2: var(--primary-hover);

  --bg: var(--bg-default);
  --bg2: var(--bg2-default);

  --text: var(--text-default);
  --muted: var(--muted-default);

  --link: #C88264;

  --success: #6B8E23;
  --danger: #D32F2F;

  /* LOFT TOKENS */
  --radius: 0px;
  /* Sharp Corners */
  --radius2: 4px;
  /* Very slight rounding for some containers */

  --stroke: 1px solid var(--border-default);
  /* Visible structural borders */

  --shadow: none;
  /* Flat design */
  --shadow-hover: 4px 4px 0px var(--secondary-default);
  /* Hard Edge "Pop" shadow for hover */

  --maxw: 1240px;
  /* Slightly wider for gallery feel */

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  /* Tech/Industrial accent */
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg2);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-enter {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-default);
  border-left: 1px solid var(--border-light);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-default);
  border: 2px solid var(--bg-default);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: var(--stroke);
  margin-bottom: 40px;
}

.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 180px;
  text-transform: uppercase;
}

.logo {
  display: none;
  /* Remove black square */
}

.brand__name {
  font-weight: 900;
  font-size: 28px;
  /* Larger text */
  letter-spacing: -1px;
  color: var(--secondary-default);
  line-height: 1;
  text-transform: uppercase;
  border-bottom: 2px solid var(--primary);
  /* Optional accent under text */
  padding-bottom: 2px;
}

.brand__tag {
  display: none;
  /* Simplify header as requested or keep? User said just "POLZA". Let's keep tag for now but make logo text dominant */
}

/* Currency Widget */
.currency-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--secondary-default);
  border: 2px solid var(--secondary-default);
  font-family: var(--font-mono);
  transition: all 0.2s ease;
}

.currency-widget:hover {
  background: transparent;
}

.currency-widget:hover .currency-widget__label {
  color: var(--muted);
}

.currency-widget:hover .currency-widget__value {
  color: var(--secondary-default);
}

.currency-widget__label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.currency-widget__value {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-default);
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .currency-widget {
    padding: 6px 10px;
  }

  .currency-widget__label {
    font-size: 9px;
  }

  .currency-widget__value {
    font-size: 14px;
  }
}

/* Navigation Button Override */
.btn--header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background-color: var(--primary-default);
  color: var(--secondary-default);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  /* Sharp corners as requested */
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  font-family: var(--font-mono);
}

.btn--header:hover {
  background-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* Main Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
  cursor: pointer;
}

.btn--primary {
  background-color: var(--primary-default);
  color: var(--secondary-default);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  padding: 16px 32px;
  border: none;
}

.btn--primary:hover {
  background-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--secondary-default);
  /* Thinner, cleaner border */
  color: var(--secondary-default);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  padding: 15px 31px;
}

.btn--ghost:hover {
  background: var(--secondary-default);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ... Navigation ... */

/* Hero Section - Strict Layout */
.hero {
  padding: 40px 0 60px;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  /* Main banner wider */
  gap: 24px;
  align-items: stretch;
  /* Stretch to match height */
}

@media (max-width: 980px) {
  .heroGrid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.heroMain {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--secondary-default);
  position: relative;
  height: 100%;
  /* Fill grid cell */
}

/* Industrial "Screws" */
.heroMain:after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--border-light);
  box-shadow: -10px 0 var(--border-light), 0 10px var(--border-light);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--secondary-default);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 24px;
  align-self: flex-start;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  display: inline-block;
}

h1 {
  margin: 0 0 24px;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--secondary-default);
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  h1 {
    font-size: 36px;
  }
}

.lead {
  margin: 0 0 40px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  max-width: 90%;
  font-weight: 500;
  border-left: 4px solid var(--primary-default);
  padding-left: 20px;
}

.lead strong {
  color: var(--secondary-default);
  font-weight: 700;
}

.text-primary {
  color: var(--primary-default);
}

.heroActions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  margin-bottom: 32px;
}

/* Trust Section - Clean Industrial Text Only */
.trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-default);
  width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  color: var(--secondary-default);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: transparent;
  font-family: var(--font-mono);
}

.chip::before {
  content: "■";
  color: var(--primary-default);
  font-size: 10px;
  line-height: 1;
}

.heroSide {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  border: none;
  background: transparent;
}

.box {
  background: #FFFFFF;
  border: var(--stroke);
  padding: 32px;
  transition: transform .2s ease;
  position: relative;
  flex: 1;
  /* Distribute height equally */
  display: flex;
  flex-direction: column;
}

.box:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--secondary-default);
  z-index: 2;
}

.boxTitle {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 900;
  color: var(--secondary-default);
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  display: inline-block;
  align-self: flex-start;
}

.list {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  list-style: none;
  /* Custom bullets */
  font-family: var(--font-mono);
}

.list li {
  margin: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.list li:before {
  content: "■";
  /* Square bullet */
  color: var(--secondary-default);
  font-size: 10px;
  margin-top: 5px;
}

/* Sections */
section {
  margin-top: 100px;
  scroll-margin-top: 120px;
}

.sectionHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 40px;
  border-bottom: 4px solid var(--secondary-default);
  padding-bottom: 20px;
}

h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -1px;
  color: var(--secondary-default);
  font-weight: 900;
  text-transform: uppercase;
}

.sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 650px;
  font-family: var(--font-mono);
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  /* Removing gap for Grid Look */
  border-top: 1px solid var(--secondary-default);
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    border-left: 1px solid var(--secondary-default);
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
    border-left: 1px solid var(--secondary-default);
  }
}

/* Loft Card Style: Borders everywhere */
.card {
  background: #FFFFFF;
  border-bottom: 1px solid var(--secondary-default);
  border-right: 1px solid var(--secondary-default);
  /* Left border handled by grid container or nth-child logic if needed, 
     simplest is right/bottom + container top/left logic or just gap=1px with bg color */
  overflow: visible;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Fix grid borders: using outline strategy or gap strategy */
.grid {
  gap: 1px;
  background: var(--secondary-default);
  border: 1px solid var(--secondary-default);
}

.card {
  border: none;
  /* Handled by gap */
}


.card:hover {
  background: #FEFEFE;
}

.card:hover .cardTitle {
  color: var(--primary);
}

.card:hover .btn--ghost {
  background: var(--secondary-default);
  color: white;
}

.card__body {
  padding: 32px;
  flex: 1;
}

.cardTitle {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary-default);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.cardMeta {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  font-family: var(--font-mono);
}

.shopRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.shopTag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary-default);
  white-space: nowrap;
  transition: .15s ease;
  text-transform: uppercase;
}

.shopTag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.card__footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FCFCFC;
  font-size: 13px;
}

.link {
  font-weight: 700;
  color: var(--secondary-default);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: all 0.2s;
}

.link:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

/* Search */
.searchBar {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 24px;
  border: 2px solid var(--secondary-default);
}

.input {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: #FFFFFF;
  border: none;
  border-right: 2px solid var(--secondary-default);
}

.input:focus-within {
  background: #FAFAFA;
}

.input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-mono);
}

.searchBar .btn {
  border: none;
  border-radius: 0;
  margin: 0;
  height: auto;
}

/* Navigation */
.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-default);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav a:hover {
  color: var(--primary);
}

.nav .btn {
  padding: 10px 24px;
}

/* ... */

/* Marquee - "The Strip" */
.marquee {
  background: #FFFFFF;
  border-top: 2px solid var(--secondary-default);
  border-bottom: 2px solid var(--secondary-default);
  overflow: hidden;
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  width: 100%;
  /* Fix width */
}

.marqueeTrack {
  display: flex;
  gap: 0;
  padding: 0;
  width: max-content;
  /* Allow growing */
  min-width: 200%;
  /* Ensure it's long enough */
  animation: scroll 60s linear infinite;
  align-items: stretch;
  height: 100%;
  flex-wrap: nowrap;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  height: 100%;
  border-right: 1px solid var(--secondary-default);
  /* Structural dividers */
  font-size: 18px;
  font-weight: 900;
  color: var(--secondary-default);
  white-space: nowrap;
  transition: .2s ease;
  text-transform: uppercase;
  background: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.pill:hover {
  background: var(--secondary-default);
  color: #fff;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Brands Marquee */
.brands {
  background: var(--secondary-default);
  color: #fff;
  overflow: hidden;
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  border-bottom: 1px solid var(--secondary-default);
  width: 100%;
  /* Fix width */
}

.brandsTrack {
  display: flex;
  gap: 0;
  padding: 0;
  width: max-content;
  min-width: 200%;
  animation: scroll 40s linear infinite;
  align-items: center;
  height: 100%;
  flex-wrap: nowrap;
}

.brandItem {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  height: 100%;
  font-size: 20px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  /* Muted initial state */
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: .2s ease;
  font-family: var(--font-mono);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.brandItem:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.popularRow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 32px;
  justify-content: space-between;
  /* Spread out */
}

.catChip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Center text */
  gap: 10px;
  padding: 12px 20px;
  /* Bigger padding */
  background: #FFFFFF;
  border: 1px solid var(--secondary-default);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--secondary-default);
  user-select: none;
  transition: .15s ease;
  text-transform: uppercase;
  flex: 1 0 auto;
  /* Grow to fill space */
  text-align: center;
}

.catChip:hover {
  background: var(--secondary-default);
  color: white;
}

.countBadge {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.7;
}

/* Accordion */
details {
  background: #FFFFFF;
  border: 1px solid var(--secondary-default);
  /* Hard border */
  border-radius: 0;
  overflow: hidden;
  margin-bottom: -1px;
  /* Collapse borders */
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
  color: var(--secondary-default);
  font-size: 18px;
  text-transform: uppercase;
  background: #fff;
  transition: background 0.2s;
}

summary:hover {
  background: #FAFAFA;
}

details[open] summary {
  background: var(--bg2-default);
  border-bottom: 1px solid var(--secondary-default);
}

.sumMeta {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  font-family: var(--font-mono);
}

.accBody {
  padding: 32px;
  background: #FCFCFC;
}

.shopItem {
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  padding: 24px;
  transition: all 0.2s;
}

.shopItem:hover {
  border-color: var(--secondary-default);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--secondary-default);
}

/* Form */
.formCard {
  background: #fff;
  border: 2px solid var(--secondary-default);
  overflow: hidden;
  padding: 0;
}

.formCard .card__body {
  padding: 0;
}

.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 2px solid var(--secondary-default);
}

/* Form fields as grid cells */
.field {
  padding: 24px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}

.field.span2 {
  grid-column: 1 / -1;
  border-right: none;
}

input,
select,
textarea {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 12px;
  border: 1px solid var(--secondary-default);
  background: #FFFFFF;
  color: var(--text);
  width: 100%;
  border-radius: 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: #FFF8F0;
  /* Pale warm tint */
  border-color: var(--primary);
  box-shadow: 4px 4px 0 rgba(200, 130, 100, 0.2);
}

.formCard button {
  width: auto;
  margin: 24px;
  padding: 16px 32px;
  justify-content: center;
  border: none;
  font-size: 16px;
  letter-spacing: 1px;
  display: flex;
  width: calc(100% - 48px);
  /* Full width minus margins */
}

/* Limits / Restrictions */
.warnGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .warnGrid {
    grid-template-columns: 1fr;
  }
}

.warn {
  background: #FFFFFF;
  border: 1px solid var(--secondary-default);
  /* Strict border */
  padding: 32px;
}

.warnTitle {
  font-size: 16px;
  font-weight: 900;
  color: var(--secondary-default);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 12px;
}

.warnText {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
  font-family: var(--font-mono);
}

.check {
  padding: 24px;
  background: var(--bg2-default);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid var(--secondary-default);
  flex-shrink: 0;
}

.check label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted-default);
}

/* Footer & Spacing */
footer {
  border-top: 2px solid var(--secondary-default);
  padding: 40px 24px;
  background: #fff;
  margin-top: 80px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .topbar__inner {
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px;
  }

  .nav {
    justify-content: center;
    width: 100%;
  }

  .formGrid {
    grid-template-columns: 1fr;
  }

  .field {
    border-right: none;
  }

  .heroMain {
    padding: 32px 20px;
  }

  h1 {
    font-size: 32px;
  }
}