:root {
  --bg: #f4f9ff;
  --surface: #ffffff;
  --surface-soft: #e6f3ff;
  --ink: #071a33;
  --muted: #5c6f88;
  --line: #cbdff5;
  --blue: #006dff;
  --blue-dark: #062653;
  --blue-deep: #020b1f;
  --sky: #7ec7ff;
  --orange: #ff970f;
  --orange-2: #ffb13d;
  --graphite: #061321;
  --shadow: 0 22px 60px rgba(6, 19, 33, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(126, 199, 255, 0.3), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(255, 151, 15, 0.15), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #eef7ff 48%, #dceeff 100%),
    var(--bg);
  color: var(--ink);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(244, 249, 255, 0.92);
  border-bottom: 1px solid rgba(203, 223, 245, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  color: var(--graphite);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--graphite);
}

.nav a {
  white-space: nowrap;
}

.nav a:not(.nav-button):hover {
  color: var(--blue);
}

.auth-greeting {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.cart-link {
  display: inline-flex;
  align-items: center;
}

.cart-count {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.nav button.nav-button {
  font-family: inherit;
}

.nav-button,
.button.primary {
  background: linear-gradient(135deg, var(--blue), #0088ff);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 109, 255, 0.28);
}

.button.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--graphite);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 109, 255, 0.24);
  color: var(--blue-dark);
  box-shadow: none;
}

.nav-button:hover,
.button.primary:hover {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.button.secondary:hover {
  border-color: var(--orange);
  color: var(--blue-dark);
}

.nav-logout {
  background: #ffffff;
  border-color: var(--line);
  color: var(--graphite);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 76px);
  padding: clamp(40px, 7vw, 92px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(230, 243, 255, 0.62)),
    radial-gradient(circle at 72% 18%, rgba(0, 109, 255, 0.13), transparent 30%);
}

.hero-copy {
  max-width: 640px;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 5.25vw, 64px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--graphite);
  overflow-wrap: break-word;
}

.hero p {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.42;
  color: var(--muted);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  min-width: 0;
}

.media-stage {
  position: relative;
  aspect-ratio: 1.18;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, #ffffff, #d8efff),
    radial-gradient(circle at 70% 18%, rgba(255, 151, 15, 0.18), transparent 24%);
  box-shadow: var(--shadow);
}

.media-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(6, 19, 33, 0.28));
  pointer-events: none;
}

.media-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-product-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(6, 19, 33, 0.78);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.hero-product-note strong {
  font-size: 16px;
}

.hero-product-note span {
  color: #dbeafe;
  font-size: 13px;
  font-weight: 800;
}

.media-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.media-thumb {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1.35;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.media-thumb.active {
  border-color: var(--orange);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tools,
.products,
.quote,
.commercial-strip,
.business-band {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
  scroll-margin-top: 88px;
}

.anchor-target {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  scroll-margin-top: 88px;
}

.tools {
  background: #ffffff;
}

.products {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
}

.commercial-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: var(--blue-deep);
  color: #ffffff;
}

.commercial-strip article {
  min-height: 154px;
  padding: 20px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  border: 1px solid rgba(126, 199, 255, 0.2);
  border-top: 4px solid var(--orange);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.commercial-strip strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.commercial-strip span {
  color: #cde4ff;
  font-size: 0.95rem;
  line-height: 1.45;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-heading h2,
.quote h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--graphite);
}

.business-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background:
    linear-gradient(135deg, #061321 0%, #062653 64%, #0a4fa5 100%);
  color: #ffffff;
}

.business-band h2 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1;
}

.business-band p {
  max-width: 640px;
  margin: 18px 0 0;
  color: #d5e8ff;
  font-size: 17px;
  line-height: 1.6;
}

.business-band img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.section-heading p,
.quote p {
  margin: 14px 0 0;
  max-width: 690px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

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

.tool-card,
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(16, 32, 27, 0.08);
}

.tool-card {
  min-height: 236px;
  padding: clamp(24px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tool-card h3,
.product-card h3 {
  margin: 0;
  color: var(--graphite);
}

.tool-card h3 {
  font-size: 28px;
}

.tool-card p {
  margin: 14px 0 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.tool-card a {
  margin-top: auto;
  font-weight: 900;
  color: var(--blue);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.catalog-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.catalog-type-card {
  min-height: 154px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(6, 19, 33, 0.08);
}

.catalog-type-card span,
.product-tag {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 151, 15, 0.14);
  color: #9a5700;
  font-size: 12px;
  font-weight: 900;
}

.catalog-type-card span {
  padding: 7px 10px;
}

.catalog-type-card strong {
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.25;
}

.catalog-type-card small {
  color: var(--blue);
  font-weight: 900;
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f8fbff;
}

.product-card h3 {
  padding: 18px 18px 0;
  font-size: 19px;
  line-height: 1.2;
}

.product-tag {
  display: inline-flex;
  margin: 16px 18px 0;
  padding: 6px 10px;
}

.product-card p {
  margin: 8px 0 0;
  padding: 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.product-card-media {
  display: block;
}

.product-price {
  display: block;
  padding: 14px 18px 0;
  color: var(--blue);
  font-size: 19px;
  font-weight: 900;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 18px 18px;
}

.product-actions.single-action {
  grid-template-columns: 1fr;
}

.product-actions a,
.product-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.product-actions a {
  border: 1px solid var(--line);
  color: var(--graphite);
  background: #ffffff;
}

.product-actions button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #0088ff);
}

.shop-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--blue-dark);
  font-weight: 900;
}

.quote {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 109, 255, 0.22), transparent 32%),
    linear-gradient(135deg, var(--blue-deep), var(--blue-dark) 62%, #073b80);
  color: #ffffff;
}

.quote h2,
.quote p {
  color: #ffffff;
}

.quote p {
  color: #c6d4ce;
}

.contact-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quote-form {
  padding: 24px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 900;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: 3px solid rgba(0, 109, 255, 0.18);
  border-color: var(--blue);
}

.quote-form .button {
  width: 100%;
  border: none;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
}

.footer {
  padding: 28px clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  color: var(--graphite);
}

.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 76px;
    right: clamp(18px, 4vw, 56px);
    left: clamp(18px, 4vw, 56px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px;
  }

  .nav-button {
    margin-top: 4px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 720px;
  }

  .tool-grid,
  .quote,
  .business-band {
    grid-template-columns: 1fr;
  }

  .catalog-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commercial-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav {
    top: 68px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .hero-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .catalog-type-grid {
    grid-template-columns: 1fr;
  }

  .commercial-strip {
    grid-template-columns: 1fr;
  }

  .media-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .media-thumb {
    aspect-ratio: 1.18;
  }
}
