/* ==========================================================================
   ChromoArt — design system
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0a0a0d;
  --bg-alt: #101014;
  --surface: #16161c;
  --surface-2: #1d1d24;
  --border: #2a2a33;
  --text: #f3f3f5;
  --text-dim: #a3a3ad;
  --text-faint: #6d6d78;

  --c-red: #ff4d5e;
  --c-orange: #ff9a3d;
  --c-yellow: #ffd23f;
  --c-green: #35d68a;
  --c-teal: #24c8c0;
  --c-blue: #3d8bff;
  --c-violet: #7c5cff;
  --c-magenta: #ff4dd8;

  --accent: #7c5cff;
  --accent-2: #24c8c0;

  --gradient-brand: linear-gradient(135deg, var(--c-violet), var(--c-blue) 45%, var(--c-teal));
  --gradient-warm: linear-gradient(135deg, var(--c-red), var(--c-orange), var(--c-yellow));

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 80px -10px rgba(124, 92, 255, 0.35);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section--tight {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section--tight { padding: 56px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

h2.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  margin-bottom: 20px;
}

.section-lead {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 640px;
}

.section-head {
  margin-bottom: 56px;
}

.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(124, 92, 255, 0.55);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -10px rgba(124, 92, 255, 0.7);
}

.btn--ghost {
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-3px);
}

.btn--sm {
  padding: 12px 22px;
  font-size: 14px;
}

/* ---------- header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(10, 10, 13, 0.85);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* шапке нужен более широкий контейнер, чем контенту: в 1200px десять
     пунктов меню плюс переключатель языков не помещаются ни на одном языке */
  max-width: 1400px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo__mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 9px 11px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  position: relative;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav a.is-active {
  color: var(--text);
  background: var(--surface-2);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  /* три языка вместо двух — иначе переключатель выдавливает телефон из шапки */
  padding: 6px 9px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-faint);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.lang-btn.active {
  color: var(--bg);
  background: var(--text);
}

.header__phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__phone svg { width: 16px; height: 16px; flex-shrink: 0; }

/* русские и казахские пункты меню заметно длиннее английских, поэтому на
   средних экранах сначала убираем телефон, затем ужимаем сами пункты —
   и только потом уходим в бургер */
@media (max-width: 1460px) {
  .header__phone { display: none; }
}

@media (max-width: 1400px) {
  .nav { gap: 0; }
  .nav a { padding: 9px 8px; font-size: 12.8px; }
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.burger span::before { top: -5px; }
.burger span::after { top: 5px; }

.burger.is-active span { background: transparent; }
.burger.is-active span::before { top: 0; transform: rotate(45deg); }
.burger.is-active span::after { top: 0; transform: rotate(-45deg); }

.nav--mobile {
  display: none;
}

@media (max-width: 1360px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .burger { display: flex; }

  .nav--mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--bg-alt);
    padding: 100px 32px 40px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 150;
  }

  .nav--mobile.is-open {
    transform: translateX(0);
  }

  .nav--mobile a {
    font-size: 22px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}

.hero--page {
  min-height: 56vh;
  padding-top: 160px;
  padding-bottom: 60px;
}

.blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.blob--1 { width: 480px; height: 480px; background: var(--c-violet); top: -120px; left: -80px; }
.blob--2 { width: 420px; height: 420px; background: var(--c-teal); top: 20%; right: -120px; }
.blob--3 { width: 380px; height: 380px; background: var(--c-magenta); bottom: -140px; left: 20%; }
.blob--4 { width: 300px; height: 300px; background: var(--c-orange); bottom: 0; right: 15%; opacity: 0.35; }

.grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.hero__badge span.dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-warm);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px);
  margin-bottom: 24px;
}

.hero h1 .grad {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  z-index: 2;
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--text-faint), transparent);
}

.hero--page .hero__lead { margin-bottom: 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.breadcrumb a:hover { color: var(--accent-2); }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  background: var(--bg-alt);
  padding: 40px 28px;
  text-align: center;
}

.stat__num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 46px);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.stat__label {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- cards / grids ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--surface-2);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: var(--gradient-brand);
}

.card__icon svg { width: 24px; height: 24px; color: #fff; }

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-dim);
  font-size: 15px;
}

/* swatch / product card */

.swatch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}

.swatch-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-2);
}

.swatch-card__top {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.swatch-card__top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.35), transparent 55%);
}

.swatch-card__body {
  padding: 26px 28px 30px;
}

.swatch-card__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
  display: block;
}

.swatch-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.swatch-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.swatch-card__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swatch-card__link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.swatch-card:hover .swatch-card__link svg { transform: translateX(4px); }

/* palette gradients for swatches */
.g-1 { background: linear-gradient(135deg, var(--c-red), var(--c-orange)); }
.g-2 { background: linear-gradient(135deg, var(--c-blue), var(--c-violet)); }
.g-3 { background: linear-gradient(135deg, var(--c-teal), var(--c-green)); }
.g-4 { background: linear-gradient(135deg, var(--c-magenta), var(--c-violet)); }
.g-5 { background: linear-gradient(135deg, var(--c-yellow), var(--c-orange)); }
.g-6 { background: linear-gradient(135deg, var(--c-green), var(--c-teal)); }

/* ---------- split section ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split.reverse .split__media { order: 2; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split__media { order: 0; }
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gradient-brand);
}

.split__media .blob { opacity: 0.7; }

.split__media-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split__list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-dim);
  font-size: 15px;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check svg { width: 12px; height: 12px; }

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.timeline__item {
  position: relative;
  padding-bottom: 48px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: '';
  position: absolute;
  left: -37.5px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline__year {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.timeline__item p {
  color: var(--text-dim);
  max-width: 560px;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  padding-top: 8px;
}

.step__num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 42px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border);
  margin-bottom: 18px;
  display: block;
}

.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.cta-band .blobs { opacity: 0.6; }

.cta-band__inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}

.cta-band h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 18px;
}

.cta-band p {
  color: var(--text-dim);
  margin-bottom: 34px;
  font-size: 17px;
}

.cta-band__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.contact-card:last-child { border-bottom: none; }

.contact-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-2);
}

.contact-card__icon svg { width: 20px; height: 20px; }

.contact-card h4 { font-size: 16px; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--text-dim); font-size: 14.5px; }
.contact-card a:hover { color: var(--accent-2); }

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

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
}

.field textarea { min-height: 130px; resize: vertical; }

.form__note {
  font-size: 13px;
  color: var(--text-faint);
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 60px;
  /* схема нарисована сразу в тёмной палитре — инвертировать, как чужую врезку, не нужно */
  background: var(--bg-alt);
}

.map-frame img { display: block; width: 100%; height: auto; }

.map-routes {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
}

.map-routes a { color: var(--text-dim); }
.map-routes a:hover { color: var(--accent-2); }

/* ---------- статус отправки формы ---------- */

.form__status {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  min-height: 1.2em;          /* держим место, иначе кнопка прыгает при ответе */
}

.form__status.is-ok { color: var(--c-green); }
.form__status.is-err { color: var(--c-red); }

/* ---------- таблица характеристик ---------- */

.spec-wrap {
  /* таблица шире экрана телефона: скроллим её саму, а не всю страницу */
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.spec {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.spec th,
.spec td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.spec thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spec thead tr:first-child th { border-bottom: 1px solid var(--border); }

.spec tbody tr:last-child td { border-bottom: 0; }
.spec tbody tr:hover td { background: var(--surface-2); }

/* название колоранта — единственная колонка с текстом, её выравниваем влево */
.spec td:first-child,
.spec th:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  position: sticky;
  left: 0;
  background: var(--surface);
}

.spec thead th:first-child { background: var(--surface-2); }
.spec tbody tr:hover td:first-child { background: var(--surface-2); }

.spec__swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 10px;
  vertical-align: -1px;
  /* тёмные колоранты (чёрный, синий) на тёмном фоне сливаются — рамка их держит */
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.spec-note {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-faint);
}

.spec-scales {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

@media (max-width: 720px) {
  .spec-scales { grid-template-columns: 1fr; }
}

.spec-scale {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  background: var(--surface);
}

.spec-scale h4 { font-size: 15px; margin-bottom: 6px; }
.spec-scale p { font-size: 13.5px; color: var(--text-dim); }
.spec-scale__range {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-2);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  background: var(--bg-alt);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__brand p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-top: 16px;
  max-width: 280px;
}

.footer h5 {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer a {
  color: var(--text-dim);
  font-size: 14.5px;
  transition: color 0.3s var(--ease);
}

.footer a:hover { color: var(--accent-2); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials a svg { width: 15px; height: 15px; }
.socials a:hover { border-color: var(--accent-2); }

/* ---------- reveal animation base state ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
}

/* ---------- scroll progress bar ---------- */

.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-brand);
  z-index: 300;
}

/* ---------- misc ---------- */

.pill-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.pill-tab {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}

.pill-tab.is-active,
.pill-tab:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface-2);
}

.industry-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* ---------- embed frame (tour / map) ---------- */

.embed-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.embed-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- photo gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__item:hover img { transform: scale(1.06); }

.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--wide { grid-column: span 2; }
}

/* ---------- feature list (business page) ---------- */

.feature-row {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child { border-bottom: none; }

.feature-row__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-2);
}

.feature-row__icon svg { width: 22px; height: 22px; }

.feature-row h3 { font-size: 17px; margin-bottom: 6px; }
.feature-row p { color: var(--text-dim); font-size: 14.5px; }

.stat-inline {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.stat-inline div div:first-child {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--text);
}

.stat-inline div div:last-child {
  font-size: 13px;
  color: var(--text-dim);
}

.industry-icon svg { width: 26px; height: 26px; color: #fff; }

/* ---------- color search ---------- */

.cs-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 28px;
}

.cs-tab {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}

.cs-tab.is-active {
  background: var(--text);
  color: var(--bg);
}

.cs-panel { display: none; }
.cs-panel.is-active { display: block; }

.cs-form-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 24px;
}

.cs-field {
  flex: 1;
  min-width: 220px;
}

.cs-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.cs-field input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.3s var(--ease);
}

.cs-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.cs-lab-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  flex: 2;
  min-width: 280px;
}

.cs-count {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-count-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.cs-count-btn.is-active {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface-2);
}

.cs-results-meta {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 16px;
  min-height: 18px;
}

.cs-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.cs-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: left;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cs-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
}

.cs-card__swatch { height: 72px; }

.cs-card__body { padding: 12px 14px; }

.cs-card__code {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.cs-card__fan {
  font-size: 11.5px;
  color: var(--text-faint);
  display: block;
}

.cs-card__de {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
  margin-top: 4px;
  display: block;
}

.cs-similar {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: none;
  /* переход объявлен здесь, а не на .is-filled: если ввести transition тем же
     классом, что меняет цвет, браузеру не с чего стартовать анимацию и
     background-color застревает на исходном значении */
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.cs-similar.is-open { display: block; }

.cs-similar__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

/* переключатель «Залить фон» — оценка оттенка на большой площади */
.cs-fill-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cs-fill-toggle:hover { color: var(--text); }

.cs-fill-toggle__track {
  width: 38px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  flex: none;
  transition: background 0.25s var(--ease);
}

.cs-fill-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.cs-fill-toggle[aria-checked="true"] { color: var(--text); border-color: var(--accent-2); }
.cs-fill-toggle[aria-checked="true"] .cs-fill-toggle__track { background: var(--accent-2); }
.cs-fill-toggle[aria-checked="true"] .cs-fill-toggle__knob {
  transform: translateX(16px);
  background: #fff;
}

/* когда фон залит, панель окрашивается выбранным цветом:
   карточки и текст должны читаться и на светлом, и на тёмном */
.cs-similar.is-filled {
  padding: 24px;
  border-radius: var(--radius-lg);
}

/* Карточки лежат на залитом фоне произвольного цвета.
   Рамку убираем: близкий оттенок почти сливается с фоном, и от карточки
   остаётся только контур — он режет глаз сильнее, чем сам цвет.
   Разделяет карточки затемнённая подпись снизу, а не обводка. */
.cs-similar.is-filled .cs-card {
  background: transparent;
  border-color: transparent;
}

.cs-similar.is-filled .cs-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

/* подпись — единственная непрозрачная часть карточки, на ней и держится текст */
.cs-similar.is-filled .cs-card__body {
  background: rgba(10, 12, 15, 0.62);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.cs-similar.is-filled .cs-card__swatch {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  height: 96px;
}

.cs-similar.is-filled .cs-card__code { color: #f4f5f7; }
.cs-similar.is-filled .cs-card__fan { color: rgba(244, 245, 247, 0.72); }
.cs-similar.is-filled .cs-card__de { color: #7fe3c4; }
.cs-similar.is-filled .cs-similar__swatch { border-color: rgba(255, 255, 255, 0.5); }

.cs-similar__swatch {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.cs-note {
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.7;
}

.cs-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14.5px;
}

/* ---------- сервис оборудования ---------- */

.offer-band {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 18px 22px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
}

.offer-band__main { font-weight: 700; font-size: 15px; }
.offer-band__rest { color: var(--text-dim); font-size: 14.5px; flex: 1 1 260px; }

.offer-band__tag {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--c-yellow, #ffd23f);
  color: #14161a;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

.equip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Плейсхолдер под фото: подпись берётся из data-equip, чтобы сразу было
   видно, какой снимок сюда нужен. Заменить на <img> с реальным фото. */
.equip__photo {
  aspect-ratio: 4 / 3;
  position: relative;
  background:
    radial-gradient(120% 100% at 30% 0%, rgba(255, 255, 255, 0.07), transparent 60%),
    var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.equip__photo::after {
  content: attr(data-equip) " — добавьте фото";
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.equip__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.equip__photo:has(img)::after { content: none; }
.equip__photo:has(img) { padding: 0; }

.equip__body { padding: 24px 26px 28px; }

.equip__tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.equip__body h3 { font-size: 22px; margin-bottom: 10px; }
.equip__body p { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; }

.equip__list { list-style: none; margin-top: 18px; display: grid; gap: 9px; }

.equip__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-dim);
}

.equip__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}

@media (max-width: 860px) {
  .offer-band { border-radius: var(--radius-lg); }
}
