:root {
  color-scheme: light;
  --bg: #f6f4ff;
  --surface: #ffffff;
  --surface-soft: #f0fffb;
  --text: #151026;
  --muted: #6c6381;
  --line: #e4dcf5;
  --primary: #00e6c3;
  --primary-strong: #00b99f;
  --accent: #b026ff;
  --accent-strong: #8b18dc;
  --ink: #101014;
  --summary-bg:
    linear-gradient(135deg, color-mix(in srgb, var(--swatch) 24%, white), transparent 46%),
    radial-gradient(circle at 12% 14%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 34%),
    radial-gradient(circle at 92% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 32%),
    linear-gradient(135deg, #ffffff, #f5efff);
  --summary-frame: rgba(89, 58, 126, 0.12);
  --summary-text: #151026;
  --summary-muted: #6c6381;
  --summary-tile: rgba(255, 255, 255, 0.72);
  --summary-tile-border: rgba(89, 58, 126, 0.14);
  --summary-shine: rgba(255, 255, 255, 0.42);
  --shadow: 0 18px 44px rgba(78, 26, 128, 0.12);
  --card-shadow: 0 10px 26px rgba(78, 26, 128, 0.08);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08080b;
  --surface: #111018;
  --surface-soft: #161426;
  --text: #f8f7ff;
  --muted: #aaa1bd;
  --line: #2d2541;
  --primary: #08f4cf;
  --primary-strong: #00d7b7;
  --accent: #c12bff;
  --accent-strong: #9b20e6;
  --ink: #050507;
  --summary-bg:
    linear-gradient(135deg, color-mix(in srgb, var(--swatch) 30%, transparent), transparent 42%),
    radial-gradient(circle at 12% 14%, color-mix(in srgb, var(--primary) 24%, transparent), transparent 32%),
    radial-gradient(circle at 92% 20%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 30%),
    linear-gradient(135deg, #111014, #242034);
  --summary-frame: rgba(255, 255, 255, 0.08);
  --summary-text: #ffffff;
  --summary-muted: rgba(255, 255, 255, 0.62);
  --summary-tile: rgba(0, 0, 0, 0.34);
  --summary-tile-border: rgba(255, 255, 255, 0.1);
  --summary-shine: rgba(255, 255, 255, 0.11);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  --card-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 17%, transparent), transparent 34rem),
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 16%, transparent), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 24rem),
    radial-gradient(circle at 76% 22%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 22rem);
  opacity: 0.8;
  pointer-events: none;
  animation: ambientGlow 14s ease-in-out infinite alternate;
}

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

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(14px);
}

.topbar,
.hero,
.service-strip,
.services-section,
.paint-code-section,
.catalog-section,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 6px;
}

.brand-mark {
  overflow: hidden;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--cyan) 58%, transparent);
  border-radius: 9px;
  background: #08070b;
  box-shadow: 0 0 28px color-mix(in srgb, var(--cyan) 28%, transparent);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-title {
  display: block;
  padding: 3px 1px 5px;
  background:
    linear-gradient(100deg, #7056ff 0%, #f20bd6 38%, #08f4cf 72%, #19f099 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.08;
  animation: brandGlow 7s ease-in-out infinite;
}

.brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: color-mix(in srgb, var(--primary) 74%, var(--accent));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 16px;
  text-transform: lowercase;
}

.brand-kicker-static {
  display: block;
  line-height: 16px;
}

@keyframes brandGlow {
  0%,
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 0 transparent);
  }

  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--primary) 32%, transparent));
  }
}

.rotating-tagline {
  position: relative;
  display: inline-block;
  width: 82px;
  height: 16px;
  overflow: hidden;
  color: color-mix(in srgb, var(--primary) 78%, var(--accent));
  line-height: 16px;
  vertical-align: top;
}

.rotating-tagline span {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: translateY(10px);
  color: color-mix(in srgb, var(--primary) 72%, var(--accent));
  font-weight: 800;
  line-height: 16px;
  white-space: nowrap;
  animation: rotateTagline 8s infinite;
}

.rotating-tagline span:nth-child(2) {
  animation-delay: 2s;
}

.rotating-tagline span:nth-child(3) {
  animation-delay: 4s;
}

.rotating-tagline span:nth-child(4) {
  animation-delay: 6s;
}

@keyframes rotateTagline {
  0%,
  8% {
    opacity: 0;
    transform: translateY(10px);
  }

  14%,
  24% {
    opacity: 1;
    transform: translateY(0);
  }

  30%,
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotating-tagline span {
    animation: none;
  }

  .rotating-tagline span:first-child {
    opacity: 1;
    transform: none;
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-link,
.telegram-link,
.theme-toggle,
.button,
.reset-button {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 700;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
}

.theme-toggle,
.reset-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  padding: 34px 0 22px;
}

.hero-copy,
.order-panel,
.toolbar,
.product-card,
.service-strip article,
.material-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 34%),
    radial-gradient(circle at 95% 18%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 32%),
    var(--surface);
}

.hero-copy::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -24%;
  width: 42%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(18deg);
  animation: heroSweep 8s ease-in-out infinite;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 7px 11px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: color-mix(in srgb, var(--primary) 72%, var(--accent));
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 38px);
}

.hero-copy p,
.section-heading p,
.order-row span,
.footer p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy p {
  max-width: 640px;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 17px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #050507;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 24%, transparent);
}

.button,
.phone-link,
.telegram-link,
.theme-toggle,
.reset-button,
.product-card,
.service-strip article,
.material-card {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.button:hover,
.phone-link:hover,
.telegram-link:hover,
.theme-toggle:hover,
.reset-button:hover {
  transform: translateY(-2px);
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--primary-strong), var(--accent-strong));
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
}

.order-panel {
  display: grid;
  align-content: stretch;
  overflow: hidden;
}

.logo-card {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, transparent), color-mix(in srgb, var(--accent) 12%, transparent)),
    var(--surface);
}

.logo-card img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.logo-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.order-row {
  display: grid;
  gap: 8px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.order-row:last-child {
  border-bottom: 0;
}

.order-row span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-row strong {
  font-size: 18px;
  line-height: 1.35;
}

.order-row a {
  color: var(--accent);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 0 34px;
}

.service-strip article {
  min-height: 88px;
  padding: 18px;
}

.service-strip article:hover,
.product-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 34%, var(--line));
  box-shadow: var(--shadow);
}

.service-strip strong,
.service-strip span {
  display: block;
}

.service-strip strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.service-strip span {
  color: var(--muted);
  font-size: 14px;
}

.services-section,
.paint-code-section {
  padding: 8px 0 36px;
}

.service-cards,
.paint-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.paint-step,
.paint-code-help,
.brand-guide {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 34%),
    radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 30%),
    var(--surface);
  box-shadow: var(--card-shadow);
}

.service-card,
.paint-step {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.service-card:hover,
.paint-step:hover,
.paint-code-help:hover,
.brand-guide:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 34%, var(--line));
  box-shadow: var(--shadow);
}

.service-card,
.paint-step,
.paint-code-help,
.brand-guide {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.service-number,
.paint-step span {
  color: color-mix(in srgb, var(--primary) 78%, var(--accent));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-card h3,
.paint-step h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.service-card p,
.paint-step p,
.brand-guide p,
.paint-code-help p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.pill-list span,
.brand-grid span {
  border-radius: 999px;
  padding: 6px 9px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: color-mix(in srgb, var(--primary) 72%, var(--accent));
  font-size: 12px;
  font-weight: 800;
}

.service-card .button {
  align-self: flex-start;
  margin-top: 4px;
}

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

.paint-code-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 20px;
}

.paint-code-help strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.brand-guide {
  margin-top: 14px;
  padding: 18px 20px;
}

.brand-guide summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.brand-guide p {
  margin-top: 12px;
}

.brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.catalog-section {
  padding: 8px 0 36px;
}

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

.section-heading p {
  max-width: 470px;
  margin-bottom: 0;
}

.toolbar,
.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 10px;
  padding: 12px;
}

.search-field,
.select-field {
  display: grid;
  gap: 7px;
}

.search-field span,
.select-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--bg);
  color: var(--text);
  outline: none;
}

.catalog-tools {
  margin: 18px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 15%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 36%),
    var(--surface);
  box-shadow: var(--card-shadow);
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 32%, transparent);
  outline-offset: 2px;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  font-weight: 700;
}

.reset-button {
  padding: 0 14px;
}

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

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

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  min-height: 180px;
  place-items: center;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--text);
  font-size: 20px;
}

.material-card {
  --product-accent: var(--primary);
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.material-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--product-accent) 44%, var(--line));
  box-shadow: var(--shadow);
}

.material-media {
  position: relative;
  display: grid;
  height: 268px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 20%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 34%),
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--product-accent) 14%, var(--surface)), var(--surface-soft));
}

.material-media::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid color-mix(in srgb, var(--product-accent) 24%, var(--line));
  border-radius: 8px;
}

.material-media::after {
  content: "";
  position: absolute;
  inset: auto 18% 18px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, #000 18%, transparent);
  filter: blur(12px);
}

.material-media img {
  position: relative;
  z-index: 1;
  width: min(88%, 300px);
  height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.2));
  transition: transform 300ms ease, filter 300ms ease;
}

.material-media.is-wide img {
  width: min(94%, 340px);
  height: 230px;
}

.material-media.is-boost img {
  width: min(88%, 300px);
  height: 230px;
}

.material-media.is-boost-soft img {
  width: min(88%, 300px);
  height: 230px;
}

.material-card:hover .material-media img {
  transform: translateY(-5px) scale(1.03);
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, 0.24));
}

.material-card:hover .material-media.is-boost img {
  transform: translateY(-5px) scale(1.03);
}

.material-card:hover .material-media.is-boost-soft img {
  transform: translateY(-5px) scale(1.03);
}

.material-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.material-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.material-tags span {
  border-radius: 999px;
  padding: 5px 9px;
  background: color-mix(in srgb, var(--product-accent) 14%, transparent);
  color: color-mix(in srgb, var(--product-accent) 72%, var(--accent));
  font-size: 11px;
  font-weight: 800;
}

.material-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.28;
}

.material-details {
  display: grid;
  gap: 7px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
}

.material-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  padding-bottom: 7px;
}

.material-details dt {
  font-weight: 800;
}

.material-details dd {
  margin: 0;
  text-align: right;
}

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

.material-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.material-footer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-card {
  display: flex;
  min-height: 226px;
  flex-direction: column;
  overflow: hidden;
}

.product-swatch {
  height: 7px;
  background: linear-gradient(90deg, var(--swatch), color-mix(in srgb, var(--swatch) 35%, white));
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  border-radius: 999px;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: color-mix(in srgb, var(--primary) 72%, var(--accent));
  font-size: 11px;
  font-weight: 800;
}

.product-summary {
  position: relative;
  display: flex;
  min-height: 154px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  padding: 16px;
  background: var(--summary-bg);
}

.product-summary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 12%, var(--summary-shine) 34%, transparent 58%);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 260ms ease, transform 520ms ease;
}

.product-card:hover .product-summary::after {
  opacity: 1;
  transform: translateX(42%);
}

.product-summary::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--summary-frame);
  border-radius: 8px;
}

.color-chip,
.summary-grid {
  position: relative;
  z-index: 1;
}

.color-chip {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.color-chip-swatch {
  width: 58px;
  height: 58px;
  border: 3px solid color-mix(in srgb, var(--surface) 80%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 42%),
    var(--swatch);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
}

.color-chip-name {
  color: var(--summary-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 14px color-mix(in srgb, var(--summary-text) 18%, transparent);
}

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

.summary-grid div {
  min-width: 0;
  border: 1px solid var(--summary-tile-border);
  border-radius: 8px;
  padding: 8px;
  background: var(--summary-tile);
  color: var(--summary-text);
}

.summary-grid span,
.summary-grid strong {
  display: block;
}

.summary-grid span {
  margin-bottom: 4px;
  color: var(--summary-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-grid strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.35;
}

.product-details {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.product-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
  padding-bottom: 7px;
}

.product-details dt {
  font-weight: 700;
}

.product-details dd {
  margin: 0;
  text-align: right;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer p {
  max-width: 680px;
  margin: 7px 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 700ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-left {
  transform: translateX(-26px) scale(0.985);
}

.reveal-right {
  transform: translateX(26px) scale(0.985);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  transform: translateX(0) scale(1);
}

@keyframes ambientGlow {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(2%, 1%, 0) scale(1.08);
  }
}

@keyframes heroSweep {
  0%,
  42% {
    transform: translateX(-140%) rotate(18deg);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  72%,
  100% {
    transform: translateX(360%) rotate(18deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 940px) {
  .hero,
  .toolbar,
  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .service-strip,
  .service-cards,
  .paint-steps,
  .material-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .paint-code-help,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar,
  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    padding: 14px 0;
  }

  .brand {
    justify-content: center;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-title {
    font-size: 25px;
  }

  .brand-kicker {
    font-size: 11px;
  }

  .topbar-actions,
  .phone-link,
  .telegram-link,
  .theme-toggle {
    width: 100%;
  }

  .phone-link,
  .telegram-link,
  .theme-toggle {
    justify-content: center;
  }

  .hero {
    padding-top: 20px;
  }

  h1 {
    font-size: 34px;
  }

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

  .service-strip,
  .service-cards,
  .paint-steps,
  .material-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .service-card .button,
  .help-actions,
  .help-actions .button {
    width: 100%;
  }

  .material-media {
    height: 238px;
  }
}
