:root {
  --bg: #090b10;
  --bg-alt: #11131a;
  --panel: #161925;
  --panel-soft: #1f2332;
  --border: #2c3143;
  --fg: #f4f5f8;
  --muted: #9ca0b3;
  --accent: #33b29b;
  --accent-soft: rgba(51, 178, 155, 0.12);
  --danger: #e05d5d;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-light: 0 8px 22px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #141826 0, #05070b 52%, #05060a 100%);
  color: var(--fg);
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1160px, 100% - 32px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(40, 44, 61, 0.9);
  background: linear-gradient(to bottom, rgba(5, 6, 11, 0.96), rgba(5, 6, 11, 0.88));
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 0;
  border: 1px solid #3b425a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  background: radial-gradient(circle at top, #2b3246, #131623);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
}

.nav a {
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.15s ease;
}

.nav a:hover {
  color: var(--fg);
}

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

.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #080a11;
  color: var(--fg);
  font-size: 13px;
}

.cart-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #020308;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

main {
  padding-bottom: 64px;
}

.section {
  padding: 40px 0;
}

.section-alt {
  background: radial-gradient(circle at top right, #171b27, #080a12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 36px;
  padding: 32px 0 16px;
  align-items: start;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-main h1 {
  font-size: clamp(28px, 3vw, 34px);
  margin: 0 0 10px;
}

.hero-text {
  color: var(--muted);
  max-width: 36rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 10px;
}

.pill {
  border-radius: 999px;
  border: 1px solid #272c3e;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 10px;
}

.hero-note {
  font-size: 12px;
  color: var(--muted);
  max-width: 34rem;
}

.hero-side {
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
}

.hero-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, #2c3246, #101320);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.hero-card img {
  border-radius: var(--radius-md);
}

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

.hero-mini {
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px 12px;
}

.hero-mini h2 {
  font-size: 14px;
  margin: 0 0 4px;
}

.hero-mini p {
  font-size: 13px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

.btn-primary {
  background: var(--accent);
  color: #020308;
  font-weight: 600;
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: #0c0f18;
  color: var(--fg);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #141825;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-outline:hover {
  background: #101423;
}

.btn-ghost {
  background: rgba(9, 11, 16, 0.85);
  color: var(--fg);
  border-color: #272c3e;
}

.btn-ghost:hover {
  background: #141826;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 28px;
}

.list {
  padding-left: 18px;
  font-size: 14px;
}

.list.number {
  list-style: decimal;
}

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

.small-note {
  font-size: 12px;
}

.section-header {
  max-width: 720px;
  margin-bottom: 18px;
}

.section-header h2 {
  margin-bottom: 4px;
}

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

.item-card {
  background: var(--panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.item-card img {
  height: 170px;
  object-fit: cover;
}

.item-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-body h3 {
  margin: 0;
  font-size: 15px;
}

.item-body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.item-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-weight: 600;
  font-size: 14px;
}

.blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  background: var(--panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 12px 14px;
}

.blog-card h3 {
  margin-top: 0;
  font-size: 15px;
}

.blog-card p {
  font-size: 13px;
  color: var(--muted);
}

.lead-form {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px 16px 14px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.form-field-full {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font-size: 12px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 7px 10px;
  font-size: 13px;
  background: #060711;
  color: var(--fg);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.form-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr);
  gap: 28px;
}

.catalog-aside {
  position: sticky;
  top: 72px;
  align-self: flex-start;
}

.catalog-aside h1 {
  margin-top: 0;
}

.catalog-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.item-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  background: var(--panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 10px 12px;
}

.item-row img {
  border-radius: var(--radius-sm);
  height: 140px;
  object-fit: cover;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 26px;
  align-items: flex-start;
}

.product-media {
  background: radial-gradient(circle at top, #202538, #090c16);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.product-media img {
  border-radius: var(--radius-md);
}

.product-main h1 {
  margin-top: 0;
}

.price-line {
  font-weight: 600;
}

.product-sections {
  margin-top: 12px;
  border-top: 1px solid #252a3a;
  padding-top: 10px;
}

.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 22px;
}

.cart-panel h1 {
  margin-top: 0;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
}

.cart-table th,
.cart-table td {
  font-size: 13px;
  padding: 8px 10px;
  text-align: left;
}

.cart-table thead {
  background: #191d2b;
}

.cart-table tbody tr:nth-child(even) {
  background: #131724;
}

.cart-table input[type="number"] {
  width: 60px;
  text-align: center;
}

.cart-empty {
  margin-top: 10px;
  font-size: 13px;
}

.cart-summary {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 14px 16px;
}

.cart-total {
  margin-top: 0;
  font-weight: 600;
}

.order-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer {
  border-top: 1px solid #22263a;
  padding: 20px 0 16px;
  background: #05070d;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1.1fr;
  gap: 20px;
  font-size: 13px;
}

.footer-col h4 {
  margin: 0 0 6px;
}

.footer-col p,
.footer-col a {
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-bottom {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #151929;
  font-size: 12px;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 26px;
}

.contact-list {
  padding-left: 18px;
  font-size: 14px;
}

.narrow {
  max-width: 760px;
}

@media (max-width: 900px) {
  .hero,
  .story-grid,
  .catalog-strip,
  .catalog-layout,
  .product-layout,
  .cart-grid,
  .blog-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .catalog-aside {
    position: static;
  }

  .item-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 28px 0;
  }

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

  .hero {
    padding-top: 20px;
  }
}
