﻿:root {
  --bg: #111214;
  --panel: #18191b;
  --panel-soft: #1d1f21;
  --panel-strong: #0b0c0d;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f2f2f2;
  --muted: #969696;
  --accent: #ff4d28;
  --accent-soft: #ff7a5d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, transparent 0, transparent calc(16.66% - 1px), var(--line) calc(16.66% - 1px), var(--line) 16.66%),
    linear-gradient(to bottom, transparent 0, transparent 143px, var(--line) 143px, var(--line) 144px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  padding-top: 18px;
}

.top-frame,
.hero-band,
.feature-panel,
.order-box {
  border: 1px solid var(--line);
}

.top-frame {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  min-height: 76px;
  background: rgba(10, 11, 12, 0.92);
}

.brand,
.main-nav,
.cart-trigger,
.hero-band-left,
.hero-band-center,
.hero-band-right {
  min-height: 76px;
  display: flex;
  align-items: center;
}

.brand,
.hero-band-left,
.hero-band-center {
  border-right: 1px solid var(--line);
}

.brand {
  gap: 12px;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-name {
  text-transform: uppercase;
  font-size: 1rem;
}

.main-nav {
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.main-nav a,
.cart-trigger,
.hero-code,
.hero-wordmark,
.section-header a,
.filter-chip,
.submit-button,
.feature-button,
.mini-label,
.selector-label {
  text-transform: uppercase;
}

.main-nav a,
.cart-trigger {
  font-size: 1rem;
}

.main-nav a:hover,
.section-header a:hover {
  color: var(--accent-soft);
}

.cart-trigger {
  justify-content: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

.hero-band {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  min-height: 86px;
  background: rgba(10, 11, 12, 0.82);
  border-top: none;
}

.hero-band-left,
.hero-band-center,
.hero-band-right {
  justify-content: center;
}

.hero-code,
.hero-wordmark {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.08em;
}

.hero-code {
  color: var(--muted);
}

.hero-wordmark {
  font-size: 2.2rem;
  color: var(--accent);
}

.hero-band-right {
  gap: 10px;
  flex-direction: column;
}

.hero-band-right span {
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
}

.products-section,
.feature-section,
.about-section,
.order-section {
  padding-top: 42px;
  padding-bottom: 22px;
}

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

.section-header h1,
.section-header h2,
.feature-topline h2,
.order-heading h2,
.modal-details h2,
.cart-panel-header h2 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-header h1,
.section-header h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.section-header h1 span,
.section-header h2 span,
.feature-topline h2 span {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 10px;
  border-left: 10px solid transparent;
  border-bottom: 10px solid var(--accent);
}

.section-header a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  padding: 10px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--text);
  border-color: rgba(255, 77, 40, 0.45);
  background: rgba(255, 77, 40, 0.08);
}

.catalog-summary {
  margin: 0;
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.product-card {
  background: transparent;
  border: none;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.45s ease forwards;
}

.product-card-link {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
}

.product-card-link:focus-visible {
  outline: none;
}

.product-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: #1b1c1e;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.product-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.04), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
}

.product-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

.product-image-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.product-badge,
.product-type {
  display: none;
}

.product-card-body {
  padding: 14px 4px 0;
}

.product-card-body h3 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}

.product-card-body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  min-height: 3em;
}

.product-card-footer {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
  margin-top: 10px;
}

.product-pricing strong,
.feature-price {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
}

.product-pricing span,
.feature-price span {
  color: var(--accent);
}

.feature-button,
.submit-button {
  position: relative;
  border: none;
  background: #020202;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.product-card-link:hover .product-visual,
.product-card-link:focus-visible .product-visual {
  border-color: rgba(255, 77, 40, 0.4);
  transform: translateY(-2px);
}

.product-card-link:hover .product-card-body h3,
.product-card-link:focus-visible .product-card-body h3 {
  color: var(--accent-soft);
}

.feature-panel {
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-topline {
  min-height: 108px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
}

.feature-topline h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.feature-stage {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  min-height: 620px;
}

.feature-art,
.feature-copy {
  position: relative;
}

.feature-art {
  border-right: 1px solid var(--line);
  background:
    linear-gradient(to right, transparent 0, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent 0, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.feature-art img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 72%;
  max-height: 82%;
  object-fit: contain;
}

.feature-copy {
  display: grid;
  grid-template-rows: 1fr auto;
}

.feature-copy > div:first-child {
  padding: 28px 26px;
  border-bottom: 1px solid var(--line);
}

.feature-copy h3 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
}

.feature-price {
  margin: 8px 0 18px;
}

.feature-text {
  max-width: 36ch;
  color: #d2d2d2;
  line-height: 1.7;
}

.feature-actions {
  display: grid;
  gap: 22px;
  padding: 26px;
}

.feature-button,
.submit-button {
  align-self: start;
  justify-self: start;
  padding: 14px 26px 14px 32px;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.feature-button::before,
.submit-button::before {
  content: '//';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
}

.feature-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.feature-meta div {
  min-height: 88px;
  padding: 18px;
  border-right: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 8px;
}

.feature-meta div:last-child {
  border-right: none;
}

.feature-meta span,
.order-heading p,
.mini-label,
.selector-label {
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.08em;
}

.feature-meta strong {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

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

.about-grid article,
.order-box,
.cart-panel,
.product-modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
}

.about-grid article {
  padding: 22px;
}

.about-grid h3 {
  margin: 0 0 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.about-grid p,
.form-hint,
.modal-description,
.modal-meta span,
.cart-empty,
.cart-item-row,
.cart-item small,
.cart-item-meta {
  color: var(--muted);
  line-height: 1.7;
}

.order-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.order-heading {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.order-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.order-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.order-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #111214;
  color: var(--text);
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: rgba(255, 77, 40, 0.8);
}

.cart-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  width: min(410px, calc(100% - 24px));
  height: calc(100vh - 36px);
  padding: 22px;
  transform: translateX(calc(100% + 30px));
  transition: transform 0.22s ease;
  z-index: 20;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  box-shadow: var(--shadow);
}

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

.cart-panel-header,
.cart-total-row,
.cart-item-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cart-panel-header h2 {
  font-size: 2rem;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.6rem;
}

.cart-items {
  overflow: auto;
  display: grid;
  gap: 12px;
}

.cart-empty,
.cart-item {
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255, 255, 255, 0.01);
}

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

.qty-button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.cart-footer {
  display: grid;
  gap: 14px;
}

.product-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
  z-index: 25;
}

.product-modal.open {
  opacity: 1;
  visibility: visible;
}

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

.product-modal-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
}

.modal-visual {
  min-height: 560px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(to right, transparent 0, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent 0, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    #17181a;
}

.modal-visual .product-art {
  background: none;
}

.modal-thumbs {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.modal-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(17, 18, 20, 0.88);
}

.modal-thumb.is-active {
  border-color: var(--accent);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.modal-details {
  padding: 28px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.modal-details h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.modal-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
}

.size-chip.is-selected {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.modal-action {
  justify-self: start;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .feature-stage,
  .order-box,
  .product-modal-card {
    grid-template-columns: 1fr;
  }

  .feature-art,
  .order-heading,
  .modal-visual {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .top-frame,
  .hero-band {
    grid-template-columns: 1fr;
  }

  .brand,
  .main-nav,
  .cart-trigger,
  .hero-band-left,
  .hero-band-center,
  .hero-band-right {
    min-height: 62px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .hero-band-right {
    border-bottom: none;
    flex-direction: row;
  }

  .main-nav {
    gap: 18px;
    padding: 8px 12px;
  }

  .products-grid,
  .about-grid,
  .feature-meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100%, calc(100% - 20px));
  }

  .main-nav {
    justify-content: flex-start;
    gap: 10px;
  }

  .main-nav a {
    flex: 1 1 calc(50% - 5px);
    text-align: center;
    font-size: 0.92rem;
  }

  .catalog-toolbar,
  .section-header,
  .cart-panel-header,
  .cart-total-row,
  .cart-item-header,
  .modal-meta {
    flex-direction: column;
    align-items: start;
  }

  .products-grid,
  .about-grid,
  .feature-meta {
    grid-template-columns: 1fr;
  }

  .feature-art {
    min-height: 360px;
  }

  .feature-art img {
    max-width: 84%;
  }

  .product-modal-card,
  .cart-panel {
    width: 100%;
  }
}
