:root {
  --bg: #0d0d0f;
  --surface: #17181b;
  --surface-2: #1e2024;
  --text: #f5f6f8;
  --muted: #afb4bf;
  --accent: #ffd028;
  --accent-dark: #f0bb00;
  --stroke: rgba(255, 255, 255, 0.1);
  --soft-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 208, 40, 0.08), transparent 26%),
    radial-gradient(circle at 90% 22%, rgba(255, 208, 40, 0.06), transparent 20%),
    var(--bg);
}

body > main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 13, 15, 0.84);
  backdrop-filter: blur(10px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.brand {
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: 0.7px;
  color: var(--accent);
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  gap: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px;
}

.top-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.top-nav a.active,
.top-nav a:hover {
  color: #111;
  background: var(--accent);
}

.phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) 0;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 208, 40, 0.13), transparent 30%),
    linear-gradient(135deg, #101114 0%, #17191d 52%, #0d0e10 100%);
  border-bottom: 1px solid var(--stroke);
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -210px;
  bottom: -250px;
  border: 1px solid rgba(255, 208, 40, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 208, 40, 0.025),
    0 0 0 140px rgba(255, 208, 40, 0.018);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(500px, 1.18fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.hero-copy {
  max-width: 560px;
  padding-right: clamp(40px, 4vw, 72px);
}

.hero-content h1 {
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 4.2vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-content p {
  margin: 0 0 30px;
  color: #c8ccd3;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.65;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px !important;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 208, 40, 0.45);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics div {
  min-width: 0;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 1.3rem;
}

.hero-metrics span {
  display: block;
  color: #d3d6dc;
  font-size: 0.76rem;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 760px;
  justify-self: end;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.48);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 714;
  object-fit: cover;
  border-radius: 19px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 19px;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.58) 100%);
  pointer-events: none;
}

.hero-photo-label {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 26px;
  max-width: 180px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cta-button {
  position: absolute;
  z-index: 3;
  left: clamp(26px, 4vw, 44px);
  bottom: clamp(26px, 4vw, 44px);
  width: clamp(210px, 24vw, 300px);
  min-height: clamp(138px, 15vw, 184px);
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 20px;
  border-radius: 18px;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.82)),
    url("../images/home-rezcy-card.png");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 208, 40, 0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.58);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.cta-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
  transform: translateX(-150%);
  transition: transform 0.7s ease;
}

.cta-button span {
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 900;
  color: #fff;
  z-index: 1;
}

.cta-button small {
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.86rem;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.48);
  border-color: var(--accent);
}

.cta-button:hover::after {
  transform: translateX(150%);
}

.quick-cards {
  padding: 64px 0 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: linear-gradient(160deg, var(--surface-2), #121316);
  border: 1px solid rgba(255, 208, 40, 0.22);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
  position: relative;
}

.card-index {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 208, 40, 0.64);
  font-weight: 700;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 208, 40, 0.58);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--accent);
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.about {
  padding: 24px 0 76px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.about h2 {
  color: var(--accent);
}

.about p {
  max-width: 940px;
  color: #d7dae0;
  line-height: 1.72;
  font-size: 1.04rem;
}

.foundation-title {
  margin: 34px 0 18px;
  color: var(--accent);
  font-size: 1.25rem;
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 940px;
}

.foundation-card {
  background: linear-gradient(180deg, #1e2024, #15171a);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 18px 20px;
}

.foundation-card h4 {
  margin: 0 0 8px;
  color: var(--accent);
}

.foundation-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

.info-page {
  padding: 34px 0 58px;
}

.info-page h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.info-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 760px;
}

.info-block {
  margin-bottom: 28px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1e2024, #15171a);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.info-block h2 {
  margin: 0 0 12px;
  color: var(--accent);
}

.info-block p {
  margin: 0;
  color: #d7dae0;
  line-height: 1.7;
  max-width: 900px;
}

.order-section {
  margin-top: 34px;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1e2024, #15171a);
  border: 1px solid rgba(255, 208, 40, 0.22);
}

.order-section h2,
.order-form-title {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 1.2rem;
}

.order-section-note {
  margin: 0 0 18px;
  color: var(--muted);
}

.order-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
}

.product-order-form {
  margin: 18px 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: none;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e4ea;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: #121317;
  color: #f7f7f8;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(255, 208, 40, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 208, 40, 0.15);
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-status-error {
  color: #ffb4b4;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 120, 120, 0.35);
}

.order-form button[type="submit"]:disabled {
  opacity: 0.72;
  cursor: wait;
}

.success-card {
  margin-top: 40px;
  padding: 32px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1e2024, #15171a);
  border: 1px solid rgba(255, 208, 40, 0.28);
  max-width: 640px;
}

.success-card h1 {
  margin-top: 0;
  color: var(--accent);
}

.success-card p {
  color: #d7dae0;
  line-height: 1.6;
}

.about-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #ffd741, #f0bb00);
  color: #1a1404;
  box-shadow: 0 8px 20px rgba(240, 187, 0, 0.28);
}

.btn-secondary {
  background: #17191d;
  border-color: rgba(255, 255, 255, 0.18);
  color: #f0f2f5;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.trust-strip {
  margin: 14px 0 10px;
}

.trust-strip-inner {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  color: #d9dce2;
  font-size: 0.92rem;
  line-height: 1.35;
  align-items: center;
}

.trust-strip-inner span {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  text-align: center;
  margin: 0 auto;
}

.trust-strip-inner span::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 208, 40, 0.16);
  transform: translateY(-0.5px);
}

.products-layout {
  padding: 34px 0 58px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

.filters {
  background: linear-gradient(180deg, #1e2024, #15171a);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 22px;
  height: fit-content;
  position: sticky;
  top: 92px;
  align-self: start;
  box-shadow: var(--card-shadow);
}

.filters-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.filters h2 {
  margin-top: 0;
  color: var(--accent);
}

.filter-label {
  margin: 16px 0 8px;
  display: block;
  color: #e2e4ea;
  font-weight: 600;
  font-size: 0.92rem;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  width: 100%;
  background: #121317;
  color: #f7f7f8;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 42px 12px 14px;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.custom-select-trigger:hover {
  border-color: rgba(255, 208, 40, 0.48);
  background: #15171c;
}

.custom-select-trigger:focus-visible {
  outline: none;
  border-color: rgba(255, 208, 40, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 208, 40, 0.18);
}

.custom-select::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 13px;
  color: var(--accent);
  pointer-events: none;
  font-size: 1.03rem;
  transition: transform 0.2s ease;
}

.custom-select.is-open::after {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #0f1116;
  border: 1px solid rgba(255, 208, 40, 0.4);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.52);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 30;
  max-height: 260px;
  overflow-y: auto;
}

.custom-select.is-open .custom-options {
  display: flex;
}

.custom-option {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: #f3f4f6;
  padding: 10px 11px;
  border-radius: 9px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.custom-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.custom-option.is-active {
  background: rgba(255, 208, 40, 0.16);
  border-color: rgba(255, 208, 40, 0.45);
  color: #ffe38a;
}

.filters-note {
  margin-top: 16px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 208, 40, 0.08);
  border: 1px solid rgba(255, 208, 40, 0.28);
  color: #fff1bb;
  font-size: 0.85rem;
  line-height: 1.4;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 20px;
  background: linear-gradient(160deg, #1f2126, #17181b);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  position: sticky;
  top: 92px;
  z-index: 15;
}

.catalog h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.catalog-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

#itemsCount {
  color: #121212;
  background: var(--accent);
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  align-content: start;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1d1f23, #15161a);
  border: 1px dashed rgba(255, 208, 40, 0.45);
  color: #ece4c2;
}

.product {
  background: linear-gradient(180deg, #1d1f24, #131418);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  display: flex;
  flex-direction: column;
}

.product:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 208, 40, 0.56);
  box-shadow: var(--card-shadow);
}

.product-image {
  aspect-ratio: 1.1 / 1;
  background: #1a1b1f;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 12px;
  text-align: center;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 208, 40, 0.18);
  border: 1px solid rgba(255, 208, 40, 0.38);
  color: var(--accent);
  font-weight: 700;
}

.product h3 {
  margin: 12px 0 8px;
  min-height: 48px;
  font-size: 1.02rem;
  line-height: 1.4;
}

.product p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.price {
  margin-top: 10px;
  color: #fff;
  font-weight: 900;
  font-size: 1.08rem;
}

.product-link {
  color: inherit;
  text-decoration: none;
}

.product-page {
  padding: 28px 0 58px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: #dce0e8;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.product-kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.product-gallery-main {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #303339, #1a1b1f);
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-main.is-placeholder::before {
  content: attr(data-placeholder);
  color: #f9f9fa;
  font-size: 1.4rem;
  font-weight: 800;
  padding: 20px;
  text-align: center;
}

.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb {
  width: 92px;
  height: 72px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #1a1b1f;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
}

.gallery-thumb.is-active {
  border-color: var(--accent);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.product-buybox {
  background: linear-gradient(180deg, #1e2024, #15171a);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 92px;
}

.product-buybox h1 {
  margin: 12px 0 8px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
}

.product-buybox-brand {
  margin: 0 0 16px;
  color: var(--muted);
}

.product-price {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 900;
  color: #fff;
}

.product-stock {
  margin: 0 0 20px;
  color: #b8e6b8;
  font-weight: 600;
}

.product-about {
  margin-top: 34px;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1e2024, #15171a);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.product-about h2 {
  margin: 0 0 14px;
  color: var(--accent);
}

.product-about-text {
  margin: 0 0 22px;
  color: #e2e4ea;
  line-height: 1.55;
  max-width: 900px;
}

.product-specs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.spec-row dd {
  margin: 0;
  color: #f3f4f6;
  font-weight: 600;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--stroke);
  background: #0b0b0d;
}

.footer-grid {
  padding: 40px 0;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.footer-grid h4 {
  margin-top: 0;
  color: var(--accent);
}

.footer-grid a {
  display: block;
  margin-top: 8px;
  color: #fff;
}

.account-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 208, 40, 0.34);
  border-radius: 999px;
  color: #f5f6f8;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 208, 40, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.account-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: rgba(255, 208, 40, 0.12);
}

.account-link-icon {
  color: var(--accent);
  font-size: 0.62rem;
}

.account-link.is-admin {
  background: var(--accent);
  color: #151107;
}

.account-link.is-admin .account-link-icon {
  color: #151107;
}

.auth-invite {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  width: min(380px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgba(255, 208, 40, 0.42);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(31, 33, 38, 0.98), rgba(15, 16, 19, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.auth-invite.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-invite-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.auth-invite-kicker,
.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-invite strong {
  display: block;
  padding-right: 22px;
  font-size: 1.18rem;
}

.auth-invite p {
  margin: 9px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-invite-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-invite-login {
  color: #eceef2;
  font-weight: 700;
}

.auth-page {
  padding: clamp(48px, 8vw, 100px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: center;
  gap: clamp(40px, 8vw, 110px);
}

.auth-intro h1,
.dashboard-heading h1,
.admin-login h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.auth-intro > p {
  max-width: 640px;
  color: #c9cdd4;
  font-size: 1.08rem;
  line-height: 1.7;
}

.auth-benefits {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
  color: #e5e7eb;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-benefits li::before {
  content: "✓";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 50%;
  color: #161104;
  background: var(--accent);
  font-weight: 900;
}

.auth-card,
.dashboard-panel {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(32, 34, 39, 0.98), rgba(18, 19, 23, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.auth-tabs,
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 24px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: #111216;
}

.auth-tab,
.admin-tab {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.is-active,
.admin-tab.is-active {
  color: #171307;
  background: var(--accent);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.form-field select,
.admin-search,
.admin-filter,
.admin-order-status {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #f7f7f8;
  background: #121317;
  font: inherit;
}

.form-field select:focus,
.admin-search:focus,
.admin-filter:focus,
.admin-order-status:focus {
  outline: none;
  border-color: rgba(255, 208, 40, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 208, 40, 0.14);
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-privacy {
  margin: 18px 0 0;
  color: #8f949e;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.auth-status,
.setup-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-status.is-error,
.setup-notice {
  color: #ffc4c4;
  border: 1px solid rgba(255, 120, 120, 0.34);
  background: rgba(255, 80, 80, 0.1);
}

.auth-status.is-success {
  color: #c8f8c8;
  border: 1px solid rgba(100, 220, 120, 0.35);
  background: rgba(70, 180, 90, 0.1);
}

.setup-notice.is-local {
  color: #fff0b5;
  border-color: rgba(255, 208, 40, 0.34);
  background: rgba(255, 208, 40, 0.08);
}

.btn-quiet,
.dialog-close {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #eceef2;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  cursor: pointer;
}

.btn-quiet {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
}

.dashboard-page,
.admin-page {
  padding: 40px 0 70px;
}

.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.dashboard-heading h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.dashboard-heading p {
  margin: 0;
  color: var(--muted);
}

.panel-heading,
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading {
  margin-bottom: 22px;
}

.panel-heading h2 {
  margin: 0 0 5px;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
}

.btn-small {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.86rem;
}

.orders-list,
.admin-products-list,
.admin-orders-list {
  display: grid;
  gap: 12px;
}

.order-card,
.admin-order-row,
.admin-product-row {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.order-card {
  padding: 20px;
}

.order-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.order-card h3,
.admin-order-row h3,
.admin-product-row h3 {
  margin: 5px 0 0;
}

.order-number {
  color: #949aa5;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-status,
.visibility-badge {
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 800;
}

.order-status.is-new {
  color: #171307;
  background: var(--accent);
}

.order-status.is-processing {
  color: #bfe3ff;
  background: rgba(70, 150, 230, 0.2);
}

.order-status.is-completed {
  color: #c7f6ce;
  background: rgba(70, 180, 90, 0.2);
}

.order-status.is-cancelled {
  color: #ffc3c3;
  background: rgba(220, 70, 70, 0.18);
}

.order-meta {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
}

.order-meta div {
  display: grid;
  gap: 3px;
}

.order-meta dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.order-meta dd {
  margin: 0;
  font-weight: 700;
}

.order-message {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #cdd1d8;
  line-height: 1.5;
}

.loading-card {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.account-empty {
  text-align: center;
}

.account-empty strong {
  display: block;
  font-size: 1.15rem;
}

.account-empty p {
  color: var(--muted);
}

.admin-login {
  max-width: 480px;
  margin: 40px auto;
}

.admin-login h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.admin-login .setup-notice {
  margin-bottom: 18px;
}

.admin-tabs {
  max-width: 420px;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-toolbar {
  margin-bottom: 18px;
}

.admin-search {
  max-width: 480px;
}

.admin-filter {
  max-width: 260px;
}

.admin-product-row {
  padding: 12px;
  display: grid;
  grid-template-columns: 74px minmax(170px, 1.5fr) minmax(95px, 0.6fr) minmax(110px, 0.7fr) auto auto;
  align-items: center;
  gap: 16px;
}

.admin-product-thumb {
  width: 74px;
  height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  color: var(--muted);
  background: #111216;
  font-size: 0.7rem;
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-main h3 {
  font-size: 1rem;
}

.admin-product-main p,
.admin-order-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.admin-product-stat {
  display: grid;
  gap: 4px;
}

.admin-product-stat span {
  color: var(--muted);
  font-size: 0.75rem;
}

.visibility-badge {
  color: #c5cad2;
  background: rgba(255, 255, 255, 0.07);
}

.visibility-badge.is-visible {
  color: #c7f6ce;
  background: rgba(70, 180, 90, 0.17);
}

.admin-row-actions {
  display: flex;
  gap: 8px;
}

.btn-danger {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 100, 100, 0.32);
  border-radius: 12px;
  color: #ffc2c2;
  background: rgba(220, 60, 60, 0.1);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-order-row {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 190px;
  align-items: center;
  gap: 22px;
}

.admin-order-row .order-message {
  margin-top: 10px;
}

.admin-dialog {
  width: min(760px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  border: 1px solid rgba(255, 208, 40, 0.32);
  border-radius: 22px;
  color: var(--text);
  background: #181a1f;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

.admin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(5px);
}

.admin-product-form {
  padding: clamp(22px, 4vw, 34px);
  display: grid;
  gap: 18px;
}

.dialog-heading,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dialog-heading h2 {
  margin: 0;
}

.dialog-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dialog-actions {
  justify-content: flex-end;
  padding-top: 8px;
}

@media (max-width: 1360px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    max-width: 780px;
    padding-right: 0;
  }

  .hero-content h1 {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 820px;
    justify-self: center;
  }
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .phones {
    text-align: left;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-content h1 {
    max-width: 720px;
  }

  .hero-visual {
    max-width: 760px;
    justify-self: center;
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .catalog-head {
    flex-direction: column;
    align-items: flex-start;
    position: static;
  }

  .product-detail-top {
    grid-template-columns: 1fr;
  }

  .product-buybox {
    position: static;
  }

  .foundation-grid {
    grid-template-columns: 1fr;
  }

  .product-specs {
    grid-template-columns: 1fr;
  }

  .trust-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    max-width: 760px;
  }

  .auth-card {
    max-width: 620px;
    width: 100%;
  }

  .admin-product-row {
    grid-template-columns: 74px minmax(150px, 1fr) repeat(2, minmax(90px, 0.5fr));
  }

  .admin-product-row .visibility-badge {
    justify-self: start;
  }

  .admin-row-actions {
    grid-column: 2 / -1;
  }
}

@media (max-width: 640px) {
  .top-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .account-link {
    margin-left: auto;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .hero-content {
    gap: 30px;
  }

  .hero-content h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 8px;
  }

  .hero-metrics strong {
    margin: 0;
  }

  .hero-visual {
    padding: 6px;
    border-radius: 20px;
  }

  .hero-image {
    border-radius: 14px;
  }

  .hero-visual::after {
    inset: 6px;
    border-radius: 14px;
  }

  .cta-button {
    left: 18px;
    bottom: 18px;
    width: min(58%, 240px);
    min-height: 126px;
    padding: 16px;
  }

  .hero-photo-label {
    display: none;
  }

  .about-actions {
    flex-direction: column;
  }

  .products-layout,
  .product-page,
  .info-page,
  .dashboard-page,
  .admin-page {
    padding-top: 22px;
  }

  .filters {
    padding: 18px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
  }

  .product-gallery-thumbs {
    padding-bottom: 5px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .gallery-thumb {
    flex: 0 0 82px;
    width: 82px;
    height: 64px;
    scroll-snap-align: start;
  }

  .dashboard-heading,
  .panel-heading,
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-heading .btn-primary,
  .panel-heading .btn-secondary,
  .admin-toolbar .btn-secondary,
  .admin-search,
  .admin-filter {
    width: 100%;
    max-width: none;
  }

  .order-card-top {
    flex-direction: column;
  }

  .admin-product-row {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }

  .admin-product-thumb {
    width: 64px;
    height: 58px;
  }

  .admin-product-stat,
  .admin-product-row .visibility-badge,
  .admin-row-actions {
    grid-column: 2;
  }

  .admin-row-actions {
    flex-wrap: wrap;
  }

  .admin-order-row {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .auth-invite {
    right: 16px;
    bottom: 16px;
  }

  .trust-strip-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trust-strip-inner span {
    white-space: normal;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .brand {
    font-size: 1.05rem;
  }

  .phones {
    display: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    aspect-ratio: 4 / 3;
  }

  .auth-card,
  .dashboard-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .auth-page {
    padding: 36px 0 52px;
    gap: 30px;
  }

  .auth-intro h1 {
    font-size: 2.35rem;
  }

  .auth-invite-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .auth-invite-login {
    min-height: 42px;
    display: grid;
    place-items: center;
  }
}
