/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
  --bg-primary: #0b0c0f;
  --bg-secondary: #111318;
  --bg-card: #161922;
  --bg-elevated: #1d2230;

  /* Brand */
  --color-brand-1: #33AAA8;
  --color-brand-1-rgb: 51, 170, 168;
  --color-brand-2: #20606A;
  --color-brand-2-rgb: 32, 96, 106;

  /* Legacy token names (used across components) */
  --color-orange: var(--color-brand-1);
  --color-orange-light: #6fd1cf;
  --color-amber: var(--color-brand-1);
  --color-amber-soft: var(--color-brand-2);
  --color-viber: #7360F2;
  --color-viber-hover: #5a48d6;
  --color-tg: #229ed9;

  --color-white: #ffffff;
  --color-text: #e5e7eb;
  --color-muted: #9ca3af;
  --color-dim: #6b7280;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.14);

  --grad-cta: linear-gradient(135deg, var(--color-brand-1) 0%, var(--color-brand-2) 100%);
  --grad-accent-text: linear-gradient(135deg, #6fd1cf 0%, var(--color-brand-1) 45%, var(--color-brand-2) 100%);
  --grad-hero-radial: radial-gradient(ellipse at 20% 30%, rgba(var(--color-brand-1-rgb), 0.26), transparent 55%),
                      radial-gradient(ellipse at 80% 70%, rgba(var(--color-brand-2-rgb), 0.18), transparent 55%);

  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-gilroy: 'Gilroy', system-ui, sans-serif;
  --font-gilroy-light: 'Gilroy', system-ui, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-hero: clamp(2.2rem, 5vw, 3.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow-orange: 0 0 60px rgba(var(--color-brand-1-rgb), 0.32);
  --shadow-cta: 0 10px 30px rgba(var(--color-brand-2-rgb), 0.35);

  --header-h: 72px;
}

/* Gilroy — заголовок на фото в раскрытой карточке */
@font-face {
  font-family: 'Gilroy';
  src: url('https://fonts.cdnfonts.com/s/16219/Gilroy-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('https://fonts.cdnfonts.com/s/16219/Gilroy-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================================
   RESET / BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
img, svg { display: block; max-width: 100%; }
iconify-icon { display: inline-flex; }

/* =========================================
   LAYOUT HELPERS
   ========================================= */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* =========================================
   STICKY HEADER
   ========================================= */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  padding: 0 var(--space-6);
  background: rgba(11, 12, 15, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.navbar.scrolled {
  background: rgba(11, 12, 15, 0.92);
  border-bottom-color: var(--color-border-strong);
}

.nav-inner {
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-white);
  transition: transform 0.2s ease;
}
.logo:hover { transform: translateY(-1px); }
.logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(200px, 46vw);
  object-fit: contain;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: var(--space-4);
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--color-white); background: rgba(255, 255, 255, 0.04); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-cta);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

/* Phone + CTA (right cluster) */
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-shrink: 0;
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.65rem 1.15rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--color-white);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nav-phone:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(var(--color-brand-1-rgb), 0.45);
  transform: translateY(-1px);
}
.nav-phone iconify-icon { color: var(--color-brand-1); flex-shrink: 0; }

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.65rem 1.15rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-white);
  background: var(--grad-cta);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-cta);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 36px rgba(32, 96, 106, 0.55);
}
.nav-cta:active { transform: scale(0.98); }

/* Burger (mobile) */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + var(--space-12)) var(--space-6) var(--space-12);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Background: photo + blobs + тонкий тон (::before) + виньетка (::after) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg-primary);
  pointer-events: none;
}

/* Tint overlay over the scene (без размытия) */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.09) 0%,
      rgba(255, 255, 255, 0.03) 35%,
      rgba(11, 12, 15, 0.06) 70%,
      rgba(11, 12, 15, 0.02) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(11, 12, 15, 0.95) 0%,
      rgba(11, 12, 15, 0.72) 22%,
      rgba(11, 12, 15, 0.35) 45%,
      rgba(11, 12, 15, 0) 68%
    ),
    linear-gradient(
      105deg,
      rgba(11, 12, 15, 0.72) 0%,
      rgba(11, 12, 15, 0.55) 38%,
      rgba(11, 12, 15, 0.28) 72%,
      rgba(11, 12, 15, 0.12) 100%
    ),
    var(--grad-hero-radial);
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("img/hero-bg.png") center / cover no-repeat;
  pointer-events: none;
}
.blob {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.blob-1 {
  width: 520px; height: 520px;
  left: -120px; top: -80px;
  background: radial-gradient(circle, var(--color-brand-1) 0%, transparent 70%);
  animation: float-slow 14s ease-in-out infinite;
}
.blob-2 {
  width: 460px; height: 460px;
  right: -100px; bottom: -120px;
  background: radial-gradient(circle, var(--color-brand-2) 0%, transparent 70%);
  animation: float-slow 18s ease-in-out infinite reverse;
}
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -25px) scale(1.05); }
}
/* Hero layout */
.hero-grid {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

/* Left column: content */
.hero-content {
  container-type: inline-size;
  container-name: hero;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.85rem;
  background: rgba(var(--color-brand-1-rgb), 0.10);
  border: 1px solid rgba(var(--color-brand-1-rgb), 0.32);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9be7e5;
}
.hero-eyebrow-geo {
  flex-shrink: 0;
  color: #dc2626;
  filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.4));
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.hero-heading {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--color-white);
}
.hero-heading .accent {
  display: block;
  margin-top: 0.25em;
  white-space: nowrap;
  background: var(--grad-accent-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: var(--fs-lg);
  color: var(--color-muted);
  max-width: 540px;
  line-height: 1.6;
}

/* CTA buttons */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.hero-contact {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-muted);
  font-size: var(--fs-sm);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.hero-contact:hover {
  color: var(--color-white);
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}
.hero-contact iconify-icon { color: var(--color-amber); }

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.95rem 1.6rem;
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  color: var(--color-white);
  background: var(--grad-cta);
  box-shadow: 0 10px 30px rgba(var(--color-brand-1-rgb), 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06);
  box-shadow: 0 14px 36px rgba(var(--color-brand-1-rgb), 0.42);
}
.btn-primary:active { transform: scale(0.98); }

/* Telegram brand variant for primary button */
.btn-primary.btn-telegram {
  background: var(--color-tg);
  box-shadow: 0 10px 30px rgba(34, 158, 217, 0.35);
}
.btn-primary.btn-telegram:hover {
  filter: none;
  background: #1b8fc6;
  box-shadow: 0 14px 36px rgba(34, 158, 217, 0.5);
}

/* Viber (hero secondary CTA) — brand purple */
.btn-secondary {
  color: var(--color-white);
  background: var(--color-viber);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(115, 96, 242, 0.38);
}
.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--color-viber-hover);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 36px rgba(115, 96, 242, 0.52);
}
.btn-secondary:active { transform: scale(0.98); }

/* Trust list: в ряд на широких экранах, перенос / колонка на узких */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-2);
  max-width: 100%;
  justify-content: flex-start;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex: 0 1 auto;
  min-width: 0;
  font-size: var(--fs-sm);
  letter-spacing: -0.02em;
  color: var(--color-muted);
}
.hero-trust iconify-icon {
  color: var(--color-amber);
  width: 1.1em !important;
  height: 1.1em !important;
  flex-shrink: 0;
}

/* =========================================
   SERVICES
   ========================================= */
.services {
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-white);
}

.section-sub {
  max-width: 680px;
  font-size: var(--fs-base);
  color: var(--color-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
}

/* Якоря на карточки услуг: отступ под липкую шапку при переходе по #service-… */
.services-grid .service-card[id],
.services-grid article.service-card[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.service-card {
  grid-column: span 4;
  background: rgba(22, 25, 34, 0.75);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--color-brand-1-rgb), 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(var(--color-brand-1-rgb), 0.15);
}

.service-card-feature {
  grid-column: span 8;
  border-color: rgba(220, 180, 90, 0.45);
  background:
    linear-gradient(
      155deg,
      rgba(235, 190, 95, 0.14) 0%,
      rgba(165, 115, 45, 0.08) 52%,
      rgba(90, 58, 28, 0.07) 100%
    ),
    rgba(22, 25, 34, 0.82);
  box-shadow:
    0 0 0 1px rgba(220, 180, 90, 0.14),
    0 10px 28px rgba(0, 0, 0, 0.35);
}
.service-card-feature:hover {
  border-color: rgba(245, 200, 110, 0.7);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(235, 190, 95, 0.28);
}

.service-card-feature .service-media {
  background: linear-gradient(
    135deg,
    rgba(235, 190, 95, 0.28) 0%,
    rgba(165, 115, 45, 0.14) 55%,
    rgba(90, 58, 28, 0.1) 100%
  );
}

#service-panels .service-media {
  height: 220px;
  background: #0a0b0e;
}

#service-panels .service-img {
  object-fit: contain;
  object-position: center center;
  transform: none;
  filter: saturate(1.04) contrast(1.03);
}

#service-panels:hover .service-img {
  transform: scale(1.02);
}

.service-card-feature .service-feature-pill {
  background: rgba(220, 180, 90, 0.12);
  border-color: rgba(220, 180, 90, 0.45);
  color: rgba(255, 245, 210, 0.95);
}
.service-card-feature .service-feature-pill iconify-icon {
  color: rgba(245, 200, 110, 0.96);
}

.service-card-feature .service-tags li {
  border-color: rgba(220, 180, 90, 0.28);
  background: rgba(235, 190, 95, 0.06);
}

.service-media {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, rgba(var(--color-brand-1-rgb), 0.22), rgba(var(--color-brand-2-rgb), 0.18));
  overflow: hidden;
}
.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.06) contrast(1.02);
  opacity: 0;
  transition: opacity 300ms ease, transform 600ms ease;
}
.service-card:hover .service-img {
  transform: scale(1.06);
}
.service-img.is-loaded { opacity: 1; }

.service-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.38) 78%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
}

.service-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.service-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(115, 96, 242, 0.16);
  border: 1px solid rgba(115, 96, 242, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.service-feature-pill iconify-icon { color: #a897ff; }

.service-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.service-desc {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: 1.65;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: var(--space-1);
}
.service-tags li {
  padding: 0.38rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-xs);
}

/* Service extras (video + price table) */
/* Video preview inside service-media */
.service-video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  filter: saturate(1.06) contrast(1.02);
  transition: transform 600ms ease;
}
.service-card:hover .service-video-preview { transform: scale(1.06); }

/* Modal for laser table */
.service-modal[hidden] { display: none; }
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
}
.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.service-modal-dialog {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(96vw, 1080px);
  max-height: min(88vh, 820px);
  overflow: auto;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
  background: rgba(22, 25, 34, 0.92);
}
.service-modal-head {
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(135deg, rgba(var(--color-brand-1-rgb), 0.18), rgba(var(--color-brand-2-rgb), 0.12));
}
.service-modal-title {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-white);
}
.service-modal-sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-sm);
}
.service-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 12, 15, 0.55);
  color: var(--color-white);
}
.service-modal-close:hover {
  border-color: rgba(var(--color-brand-1-rgb), 0.35);
  background: rgba(11, 12, 15, 0.7);
}
.service-modal-note {
  padding: var(--space-4) var(--space-6) var(--space-6);
  color: var(--color-muted);
  font-size: var(--fs-xs);
}

.service-modal-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-6) var(--space-4);
}

.service-modal-block-title {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-base);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.service-modal-block-sub {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.72);
}

.service-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.25);
}

.service-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.service-table.service-table--mill {
  min-width: 1580px;
}

.service-table th,
.service-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

.service-table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, rgba(var(--color-brand-1-rgb), 0.18), rgba(var(--color-brand-2-rgb), 0.12));
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.service-table thead th:not(:first-child),
.service-table tbody td:not(:first-child) {
  text-align: center;
}

.service-table tbody td:first-child {
  text-align: left;
}

.service-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.service-table tbody td:first-child,
.service-table tbody th:first-child,
.service-table thead th:first-child {
  position: sticky;
  left: 0;
  background: rgba(11, 12, 15, 0.88);
  z-index: 1;
}

.service-table thead th:first-child {
  z-index: 2;
}

.service-table tbody tr:hover :is(td, th) {
  background: rgba(255, 255, 255, 0.03);
}

.service-table tbody tr:hover :is(td, th):first-child {
  background: rgba(11, 12, 15, 0.92);
}

/* =========================================
   HERO VISUAL (CSS billboard)
   ========================================= */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}
.visual-stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  perspective: 900px;
}

.billboard {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8%;
  transform: rotateX(6deg) rotateY(-8deg);
  animation: tilt 8s ease-in-out infinite;
}
@keyframes tilt {
  0%, 100% { transform: rotateX(6deg) rotateY(-8deg) translateY(0); }
  50%      { transform: rotateX(4deg) rotateY(-6deg) translateY(-10px); }
}

.billboard-frame {
  position: relative;
  width: 78%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #2a2f3d, #1a1d27);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-card), var(--shadow-glow-orange);
  padding: 8px;
}
.billboard-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f1115 0%, #1c1f2a 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
}
.light-1 {
  width: 60%; height: 60%;
  left: -10%; top: -10%;
  background: radial-gradient(circle, var(--color-brand-1), transparent 70%);
}
.light-2 {
  width: 70%; height: 70%;
  right: -15%; bottom: -15%;
  background: radial-gradient(circle, var(--color-brand-2), transparent 70%);
}
.screen-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.screen-line-1, .screen-line-3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.screen-line-2 {
  font-size: clamp(2rem, 4vw, 3rem);
  background: var(--grad-accent-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin: 0.15em 0;
}
.screen-led {
  position: absolute;
  right: 10px; top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 1.6s ease-in-out infinite;
}
.billboard-bracket {
  width: 14px;
  height: 22px;
  background: linear-gradient(180deg, #2a2f3d, #11141b);
  margin-top: -2px;
}
.billboard-pole {
  width: 8px;
  height: 38%;
  background: linear-gradient(180deg, #2a2f3d, #0f1218);
  border-radius: 2px;
  margin-top: -2px;
}
.billboard-base {
  width: 36%;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, #1a1d27, #0a0c12);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.55);
  margin-top: -2px;
}

/* Floating cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.65rem 0.9rem;
  background: rgba(22, 25, 34, 0.85);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: float-slow 6s ease-in-out infinite;
}
.card-led {
  top: 12%;
  right: -4%;
  animation-delay: -2s;
}
.card-install {
  bottom: 18%;
  left: -6%;
  animation-delay: -4s;
}
.card-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.2;
}
.card-meta {
  font-size: var(--fs-xs);
  color: var(--color-muted);
}

.visual-spark {
  position: absolute;
  top: 4%;
  left: 14%;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 14px rgba(var(--color-brand-1-rgb), 0.55));
  animation: pulse 2.4s ease-in-out infinite;
}

/* =========================================
   CALC / QUIZ
   ========================================= */
.calc {
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
}

.quiz {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.quiz-steps {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.quiz-step {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-sm);
  background: rgba(255, 255, 255, 0.03);
}

.quiz-step.is-active {
  color: var(--color-white);
  border-color: rgba(var(--color-brand-1-rgb), 0.45);
  background: rgba(var(--color-brand-1-rgb), 0.12);
  box-shadow: 0 0 0 1px rgba(var(--color-brand-1-rgb), 0.12);
}

.quiz-progress {
  flex: 1;
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.quiz-progress-bar {
  display: block;
  height: 100%;
  width: 33%;
  background: var(--grad-cta);
  border-radius: var(--radius-pill);
  transition: width 220ms ease;
}

.quiz-card {
  position: relative;
  background: rgba(22, 25, 34, 0.75);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* Honeypot для FormSubmit (антиспам) */
.quiz-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.quiz-screen {
  display: none;
  padding: var(--space-8);
}

.quiz-screen.is-active { display: block; }

.quiz-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-white);
  line-height: 1.15;
}

.quiz-hint {
  margin-top: 0;
  color: var(--color-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 780px;
}

.quiz-options {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
}

.quiz-option {
  grid-column: span 6;
  position: relative;
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.quiz-option:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--color-brand-1-rgb), 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.quiz-option input {
  margin-top: 3px;
  accent-color: var(--color-brand-1);
}

.quiz-option-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quiz-option-title { font-weight: 800; color: var(--color-white); }
.quiz-option-meta { font-size: var(--fs-xs); color: var(--color-muted); letter-spacing: 0.02em; }

.quiz-nav {
  margin-top: var(--space-8);
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: flex-end;
}

.quiz-nav--submit-only {
  justify-content: center;
}

.quiz-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quiz-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--color-brand-1-rgb), 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.quiz-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.quiz-btn-primary {
  border-color: rgba(var(--color-brand-1-rgb), 0.35);
  background: rgba(var(--color-brand-1-rgb), 0.12);
}

.quiz-upload { margin-top: var(--space-6); }

.upload-card {
  display: block;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.02);
  padding: var(--space-6);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-card:hover {
  border-color: rgba(var(--color-brand-1-rgb), 0.45);
  background: rgba(255, 255, 255, 0.03);
}

.upload-card.is-invalid {
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(248, 113, 113, 0.08);
}

.upload-input { display: none; }

.upload-body {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.upload-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-brand-1-rgb), 0.10);
  border: 1px solid rgba(var(--color-brand-1-rgb), 0.30);
}

.upload-icon iconify-icon { color: var(--color-brand-1); }
.upload-title { display: block; font-weight: 900; color: var(--color-white); }
.upload-optional { font-weight: 500; color: var(--color-muted); text-transform: none; letter-spacing: 0; }
.upload-meta { display: block; font-size: var(--fs-xs); color: var(--color-muted); margin-top: 4px; }

.quiz-fields {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
}

.quiz-fields-inline {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.quiz-fields-inline .field {
  grid-column: auto;
  min-width: 0;
}

.field { grid-column: span 6; display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: span 12; }
.field-label { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.75); letter-spacing: 0.08em; text-transform: uppercase; }

.field-hint {
  font-size: var(--fs-xs);
  color: var(--color-muted);
  line-height: 1.5;
}

.field-hint-full {
  grid-column: span 12;
  margin-top: calc(-1 * var(--space-2));
}

.field-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-white);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field-input:focus {
  border-color: rgba(var(--color-brand-1-rgb), 0.45);
  background: rgba(255, 255, 255, 0.05);
}

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

.estimate-block {
  margin-top: var(--space-8);
}

.estimate-block .quiz-title {
  margin-bottom: var(--space-4);
}

.estimate-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
}

.estimate-card {
  grid-column: span 3;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  padding: var(--space-5);
}

/* Карточки сметы — выбор одного варианта (radio внутри label) */
.estimate-card-option {
  display: block;
  margin: 0;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.estimate-card-option:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

.estimate-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.estimate-option-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.estimate-card-option:focus-within {
  outline: 2px solid rgba(var(--color-brand-1-rgb), 0.55);
  outline-offset: 3px;
}

.estimate-card-option:has(.estimate-radio:checked) {
  border-color: rgba(var(--color-brand-1-rgb), 0.85);
  background:
    linear-gradient(
      155deg,
      rgba(var(--color-brand-1-rgb), 0.38) 0%,
      rgba(var(--color-brand-2-rgb), 0.26) 48%,
      rgba(var(--color-brand-1-rgb), 0.14) 100%
    ),
    rgba(var(--color-brand-2-rgb), 0.22);
  box-shadow:
    0 0 0 2px rgba(var(--color-brand-1-rgb), 0.5),
    0 14px 42px rgba(0, 0, 0, 0.42);
}

.estimate-card-option.estimate-card-feature:has(.estimate-radio:checked) {
  border-color: rgba(var(--color-brand-1-rgb), 0.95);
  background:
    linear-gradient(
      155deg,
      rgba(var(--color-brand-1-rgb), 0.48) 0%,
      rgba(var(--color-brand-2-rgb), 0.34) 45%,
      rgba(var(--color-brand-1-rgb), 0.22) 100%
    ),
    rgba(var(--color-brand-2-rgb), 0.28);
  box-shadow:
    0 0 0 2px rgba(var(--color-brand-1-rgb), 0.62),
    0 16px 48px rgba(0, 0, 0, 0.48);
}

.estimate-card-option.estimate-card-urgent:has(.estimate-radio:checked) {
  border-color: rgba(245, 200, 110, 0.95);
  background:
    linear-gradient(
      155deg,
      rgba(235, 190, 95, 0.42) 0%,
      rgba(165, 115, 45, 0.28) 50%,
      rgba(90, 58, 28, 0.22) 100%
    ),
    rgba(220, 160, 55, 0.2);
  box-shadow:
    0 0 0 2px rgba(235, 190, 95, 0.55),
    0 14px 42px rgba(0, 0, 0, 0.42);
}

.estimate-card-feature {
  border-color: rgba(var(--color-brand-1-rgb), 0.35);
  box-shadow: 0 0 0 1px rgba(var(--color-brand-1-rgb), 0.12);
}

.estimate-card-urgent {
  border-color: rgba(220, 180, 90, 0.45);
  box-shadow: 0 0 0 1px rgba(220, 180, 90, 0.14);
}

.estimate-pill-urgent {
  border-color: rgba(220, 180, 90, 0.45);
  background: rgba(220, 180, 90, 0.12);
  color: rgba(255, 245, 210, 0.95);
}

.estimate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.estimate-title { font-weight: 900; color: var(--color-white); letter-spacing: -0.02em; }

.estimate-pill {
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(11, 12, 15, 0.35);
}

.estimate-pill-accent {
  border-color: rgba(var(--color-brand-1-rgb), 0.35);
  background: rgba(var(--color-brand-1-rgb), 0.12);
}

.estimate-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.estimate-points li {
  position: relative;
  padding-left: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
}

.estimate-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-cta);
  opacity: 0.85;
}

.quiz-feedback {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.quiz-feedback[data-variant="success"] {
  border: 1px solid rgba(var(--color-brand-1-rgb), 0.4);
  background: rgba(var(--color-brand-1-rgb), 0.14);
  color: rgba(255, 255, 255, 0.94);
}

.quiz-feedback[data-variant="error"] {
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.1);
  color: rgba(254, 226, 226, 0.96);
}

.quiz-note {
  margin-top: var(--space-4);
  color: var(--color-dim);
  font-size: var(--fs-xs);
  line-height: 1.7;
}

/* =========================================
   PORTFOLIO
   ========================================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portfolio {
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
}

.portfolio-page {
  padding-top: calc(var(--header-h) + var(--space-12));
}

.portfolio-page .subpage-breadcrumb {
  margin-bottom: var(--space-5);
}

.portfolio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.portfolio-controls .filter-btn {
  gap: 6px;
  padding: 0.38rem 0.65rem;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--color-brand-1-rgb), 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.filter-btn.is-active {
  border-color: rgba(var(--color-brand-1-rgb), 0.45);
  background: rgba(var(--color-brand-1-rgb), 0.12);
}

.filter-btn iconify-icon { color: var(--color-brand-1); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
}

.work-tile {
  grid-column: span 4;
  border-radius: var(--radius-xl);
  background: rgba(22, 25, 34, 0.75);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
  display: flex;
  flex-direction: column;
}

.work-tile.is-expanded {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 1160px;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.work-tile.is-expanded .work-media {
  display: none;
}

.work-tile.is-expanded:hover,
.work-tile.is-expanded:active {
  transform: none;
  border-color: var(--color-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

@media (hover: hover) {
  .work-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--color-brand-1-rgb), 0.35);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(var(--color-brand-1-rgb), 0.15);
  }

  .work-tile:hover .work-img {
    transform: scale(1.06);
  }
}

.work-tile.is-hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
}

.work-tile-wide { grid-column: span 8; }

.work-media {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, rgba(var(--color-brand-1-rgb), 0.22), rgba(var(--color-brand-2-rgb), 0.18));
  overflow: hidden;
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.06) contrast(1.02);
  opacity: 0;
  transition: opacity 300ms ease, transform 600ms ease;
}

.work-img.is-loaded { opacity: 1; }

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.42) 78%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
}

.work-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-badge {
  padding: 0.32rem 0.55rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(11, 12, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.work-badge-accent {
  border-color: rgba(var(--color-brand-1-rgb), 0.35);
  color: #d8ffff;
}

.work-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.work-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-white);
  line-height: 1.2;
}

.work-desc {
  color: var(--color-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* Portfolio expanded tiles (no lightbox) */
.work-tile {
  cursor: pointer;
}

.work-tile:focus-within {
  outline: 2px solid rgba(var(--color-brand-1-rgb), 0.25);
  outline-offset: 2px;
}

.work-tile.is-expanded:focus-within {
  outline: none;
}

.work-tile.is-expanded ::selection {
  background: transparent;
}

.work-expanded {
  padding: 0 var(--space-6) var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

.work-tile.is-expanded .work-expanded {
  display: block;
}

.work-expanded-slider {
  position: relative;
  margin-bottom: var(--space-4);
}

.work-expanded-slider-viewport {
  position: relative;
  width: 100%;
  height: min(50vh, 420px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(11, 12, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.work-expanded-slider-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.work-expanded-slider-img.is-loaded {
  opacity: 1;
}

.work-expanded-slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
}

.work-expanded-slider-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

.work-expanded-slider-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.work-expanded-slider-btn[hidden] {
  display: none;
}

.work-expanded-slider-prev {
  left: var(--space-3);
}

.work-expanded-slider-next {
  right: var(--space-3);
}

.work-expanded-slider-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-3);
  padding: 0 var(--space-2);
}

.work-expanded-slider-dots[hidden] {
  display: none;
}

.work-expanded-slider-dot {
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
}

.work-expanded-slider-dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.work-expanded-slider-dot[aria-current='true'] {
  background: rgba(var(--color-brand-1-rgb), 0.95);
  transform: scale(1.15);
}

.work-expanded-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: 0;
}

.work-thumb {
  grid-column: span 4;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(11, 12, 15, 0.35);
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.work-thumb.is-active {
  border-color: rgba(var(--color-brand-1-rgb), 0.75);
  box-shadow: 0 0 0 1px rgba(var(--color-brand-1-rgb), 0.35);
}

.work-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .work-thumb:hover img {
    transform: scale(1.06);
  }
}

/* Portfolio fullscreen lightbox (thumb click) */
.work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: none;
}

.work-lightbox.is-open {
  display: block;
}

.work-lightbox[hidden] {
  display: none !important;
}

body.work-lightbox-active {
  overflow: hidden;
}

.work-lightbox-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.work-lightbox-dialog {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + var(--space-4)) var(--space-4) var(--space-4);
  pointer-events: none;
}

.work-lightbox-img {
  display: block;
  max-width: min(96vw, 1200px);
  max-height: min(86vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
  background: rgba(11, 12, 15, 0.35);
  pointer-events: auto;
}

.work-lightbox-close {
  position: absolute;
  top: calc(var(--header-h) + var(--space-2));
  right: var(--space-4);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

.work-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

.work-lightbox-nav[hidden],
.work-lightbox-close[hidden] {
  display: none;
}

.work-lightbox-prev {
  left: var(--space-3);
}

.work-lightbox-next {
  right: var(--space-3);
}

@media (max-width: 980px) {
  .work-thumb { grid-column: span 6; }
  .work-thumb img { height: 150px; }
}

@media (max-width: 720px) {
  .work-expanded { padding: 0 var(--space-5) var(--space-5); }
  .work-thumb { grid-column: span 12; }
  .work-thumb img { height: 180px; }
}

/* =========================================
   CONTACTS + FOOTER
   ========================================= */
.contacts {
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
}

.contacts-card {
  grid-column: span 5;
  background: rgba(22, 25, 34, 0.75);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: 0.75rem 0.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-row:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--color-brand-1-rgb), 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.contact-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 12, 15, 0.35);
}

.contact-ico iconify-icon { color: var(--color-brand-1); }
.contact-main { font-weight: 800; color: var(--color-white); }
.contact-meta { font-size: var(--fs-xs); color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.contacts-note-title {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contacts-note {
  color: var(--color-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.map-card {
  grid-column: span 7;
  background: rgba(22, 25, 34, 0.75);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.map-head {
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 12, 15, 0.25);
}

.map-title { font-weight: 900; color: var(--color-white); letter-spacing: -0.02em; }
.map-sub { font-size: var(--fs-sm); color: var(--color-muted); margin-top: 2px; }

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(var(--color-brand-1-rgb), 0.35);
  background: rgba(var(--color-brand-1-rgb), 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.map-link iconify-icon { color: var(--color-brand-1); }

.map-embed {
  position: relative;
  flex: 1;
  min-height: 280px;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(1.05) contrast(1.02);
}

.footer {
  padding: var(--space-12) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 12, 15, 0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-3);
}
.footer-logo .logo-img {
  height: 36px;
  max-width: 180px;
}

.footer-desc {
  color: var(--color-muted);
  font-size: var(--fs-sm);
  line-height: 1.75;
  max-width: 420px;
}

.footer-title {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  font-weight: 900;
}

.footer-link {
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-sm);
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--color-white); }

.footer-legal {
  color: var(--color-muted);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.legal-address-line {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .calc { padding: var(--space-12) 0 var(--space-10); }
  .estimate-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .estimate-card { grid-column: span 6; }
  .portfolio { padding: var(--space-12) 0 var(--space-10); }
  .work-tile { grid-column: span 6; }
  .work-tile-wide { grid-column: span 6; }
  .work-media { height: 220px; }
  .contacts { padding: var(--space-12) 0 var(--space-10); }
  .contacts-card { grid-column: span 12; }
  .map-card { grid-column: span 12; min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .quiz-screen { padding: var(--space-6); }
  .quiz-fields-inline {
    grid-template-columns: 1fr;
  }
  .quiz-fields-inline .field {
    grid-column: auto;
  }
  .field { grid-column: span 12; }
  .estimate-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .estimate-card { grid-column: span 1; }
  .work-tile { grid-column: span 12; }
  .work-media { height: 200px; }

  .work-expanded-slider-viewport {
    height: min(42vh, 320px);
  }

  .work-expanded-slider-btn {
    width: 44px;
    height: 44px;
  }

  .work-thumb {
    grid-column: span 6;
  }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .map-head { flex-direction: column; align-items: flex-start; }
}

/* Anchor stub sections (placeholders until next iteration) */

#calc {
  height: auto;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

#portfolio {
  height: auto;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

#contacts {
  height: auto;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* =========================================
   PANELS SUBPAGE (panels.html)
   ========================================= */
.panels-hero {
  position: relative;
  min-height: min(58vh, 680px);
  padding: calc(var(--header-h) + var(--space-10)) 0 var(--space-6);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.panels-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg-primary);
  pointer-events: none;
}

.panels-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.09) 0%,
      rgba(255, 255, 255, 0.03) 35%,
      rgba(11, 12, 15, 0.06) 70%,
      rgba(11, 12, 15, 0.02) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.panels-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(11, 12, 15, 0.95) 0%,
      rgba(11, 12, 15, 0.72) 22%,
      rgba(11, 12, 15, 0.35) 45%,
      rgba(11, 12, 15, 0) 68%
    ),
    linear-gradient(
      105deg,
      rgba(11, 12, 15, 0.72) 0%,
      rgba(11, 12, 15, 0.55) 38%,
      rgba(11, 12, 15, 0.28) 72%,
      rgba(11, 12, 15, 0.12) 100%
    ),
    var(--grad-hero-radial);
}

.panels-hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("img/panels-hero-bg.webp") center 38% / cover no-repeat;
  pointer-events: none;
}

.panels-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.panels-hero-head {
  max-width: 640px;
}

.panels-hero .subpage-breadcrumb {
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.panels-hero .subpage-breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
}

.panels-hero .subpage-breadcrumb a:hover {
  color: #fff;
}

.panels-hero .subpage-breadcrumb-current {
  color: #fff;
}

.panels-hero .section-title {
  color: var(--color-white);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.panels-hero .section-sub {
  color: rgba(229, 231, 235, 0.95);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
}

.panels-hero .panels-subpage-tags li {
  border-color: rgba(220, 180, 90, 0.35);
  background: rgba(11, 12, 15, 0.42);
  color: rgba(255, 245, 210, 0.95);
  backdrop-filter: blur(4px);
}

/* 4 карточки в «Примеры работ» — золото как у .service-card-feature */
.panels-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.panels-product-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(220, 180, 90, 0.45);
  background:
    linear-gradient(
      155deg,
      rgba(235, 190, 95, 0.14) 0%,
      rgba(165, 115, 45, 0.08) 52%,
      rgba(90, 58, 28, 0.07) 100%
    ),
    rgba(22, 25, 34, 0.82);
  box-shadow:
    0 0 0 1px rgba(220, 180, 90, 0.14),
    0 10px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) {
  .panels-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 200, 110, 0.7);
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(235, 190, 95, 0.28);
  }
}

.panels-product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(235, 190, 95, 0.28) 0%,
    rgba(165, 115, 45, 0.14) 55%,
    rgba(90, 58, 28, 0.1) 100%
  );
}

.panels-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.panels-product-card:hover .panels-product-img {
  transform: scale(1.04);
}

.panels-product-img.is-loaded {
  opacity: 1;
}

.panels-product-media-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 12, 15, 0.55) 0%, transparent 55%);
}

.panels-product-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
}

.panels-product-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-white);
  line-height: 1.25;
}

.panels-product-desc {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--color-muted);
}

/* Раскрытие карточки по клику (panels.html) */
.panels-expand[hidden] {
  display: none;
}

.panels-expand {
  position: fixed;
  inset: 0;
  z-index: 240;
  pointer-events: none;
}

.panels-expand:not([hidden]) {
  pointer-events: auto;
}

.panels-expand-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0);
  transition: background 0.28s ease;
}

.panels-expand.is-open .panels-expand-backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panels-expand-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(96vw, 900px);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(220, 180, 90, 0.55);
  background:
    linear-gradient(
      155deg,
      rgba(235, 190, 95, 0.16) 0%,
      rgba(165, 115, 45, 0.1) 52%,
      rgba(90, 58, 28, 0.08) 100%
    ),
    rgba(22, 25, 34, 0.96);
  box-shadow:
    0 0 0 1px rgba(220, 180, 90, 0.2),
    0 28px 80px rgba(0, 0, 0, 0.75);
  transform: translate(-50%, -50%) translate(var(--panels-tx, 0px), var(--panels-ty, 0px)) scale(var(--panels-scale, 0.35));
  opacity: 0;
  transition:
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease,
    box-shadow 0.3s ease;
  will-change: transform, opacity;
}

.panels-expand.is-open .panels-expand-card {
  transform: translate(-50%, -50%) translate(0, 0) scale(1);
  opacity: 1;
}

.panels-expand-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.panels-expand-close::before,
.panels-expand-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  margin: -1px 0 0 -10px;
  border-radius: 1px;
  background: #fff;
  transition: opacity 0.2s ease;
}

.panels-expand-close::before {
  transform: rotate(45deg);
}

.panels-expand-close::after {
  transform: rotate(-45deg);
}

.panels-expand-close:hover::before,
.panels-expand-close:hover::after {
  opacity: 0.75;
}

.panels-expand-stack {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.panels-expand-panel {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  border-radius: var(--radius-lg);
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.panels-expand-card > .panels-expand-media {
  position: relative;
  flex: 0 0 auto;
  flex-shrink: 0;
  order: -1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 2.75rem 0 0;
  background: rgba(11, 12, 15, 0.35);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
}

.panels-expand-media .panels-product-media-overlay {
  display: none;
}

.panels-expand-gallery-viewport {
  width: 100%;
  padding-top: var(--space-2);
}

.panels-expand-card > .panels-expand-media .panels-expand-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(52vh, 480px);
  object-fit: contain;
  object-position: center top;
  background: transparent;
  vertical-align: top;
}

.panels-expand-gallery-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.panels-expand-gallery-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

.panels-expand-gallery-btn[hidden] {
  display: none;
}

.panels-expand-card > .panels-expand-media .panels-expand-gallery-btn {
  top: calc(50% + 1.35rem);
}

.panels-expand-gallery-prev {
  left: var(--space-3);
}

.panels-expand-gallery-next {
  right: var(--space-3);
}

.panels-expand-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--space-3) var(--space-3) var(--space-2);
}

.panels-expand-gallery-dots[hidden] {
  display: none;
}

.panels-expand-gallery-dot {
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.panels-expand-gallery-dot[aria-current='true'] {
  background: var(--color-accent, #c8f542);
  transform: scale(1.15);
}

.panels-expand-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  padding: var(--space-4) var(--space-6) var(--space-6);
  overflow-x: hidden;
  overflow-y: auto;
}

.panels-expand-card > .panels-expand-media .panels-expand-title {
  position: absolute;
  top: var(--space-3);
  left: var(--space-4);
  z-index: 3;
  margin: 0;
  width: max-content;
  max-width: calc(100% - 56px);
  padding: 0;
  font-family: var(--font-gilroy);
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-white);
  text-align: left;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  background: none;
  pointer-events: none;
}

.panels-expand-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.panels-expand-note {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-gilroy-light);
  font-size: var(--fs-sm);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
}

.panels-expand-contact {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-2);
}

.panels-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.panels-expand-btn:active {
  transform: scale(0.98);
}

.panels-expand-btn--telegram {
  background: var(--color-tg);
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.35);
}

.panels-expand-btn--telegram:hover {
  background: #1b8fc6;
  box-shadow: 0 8px 22px rgba(34, 158, 217, 0.45);
}

.panels-expand-btn--viber {
  background: var(--color-viber);
  box-shadow: 0 6px 18px rgba(115, 96, 242, 0.35);
}

.panels-expand-btn--viber:hover {
  background: var(--color-viber-hover);
  box-shadow: 0 8px 22px rgba(115, 96, 242, 0.45);
}

@media (max-width: 520px) {
  .panels-expand-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .panels-expand-contact {
    justify-content: flex-end;
  }
}

/* Таблица цен — clean design */
.panels-expand-panel.panels-price-card {
  border: none;
  background: transparent;
  box-shadow: none;
}

.panels-price-card {
  flex: 0 0 auto;
  flex-shrink: 0;
  padding: 0;
}

.panels-price-table-wrap {
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  border: 1px solid rgba(220, 180, 90, 0.45);
  border-radius: var(--radius-lg);
}

.panels-price-table {
  width: 100%;
  min-width: 26rem;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  font-family: var(--font-gilroy-light);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.panels-price-table .col-label {
  width: 2.25rem;
}

.panels-price-table .col-dim {
  width: 6.75rem;
}

.panels-price-table .col-price {
  width: 3.35rem;
}

.panels-price-table .col-qty,
.panels-price-table .col-bulk-price {
  width: 3.15rem;
}

.panels-price-table th,
.panels-price-table td {
  padding: 0.55rem 0.45rem;
  text-align: center !important;
  vertical-align: middle;
  border: none;
}

.panels-price-table td:nth-child(2) {
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
}

.panels-price-table thead th {
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.panels-price-table-main-head {
  padding: 0.5rem 0.45rem 0.25rem;
  border: none;
  background: transparent;
}

.panels-price-table thead tr:first-child th.panels-price-table-bulk-head {
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
  vertical-align: bottom;
}

.panels-price-table-subhead th {
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding-top: 0.25rem;
  padding-bottom: 0.55rem;
  vertical-align: middle;
}

.panels-price-th-short {
  display: none;
}

.panels-price-table tbody th[scope="row"] {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
}

.panels-price-table tbody td {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.panels-price-table tbody tr:nth-child(even) td:not(.panels-price-table-bulk),
.panels-price-table tbody tr:nth-child(even) th[scope="row"] {
  background: rgba(255, 255, 255, 0.02);
}

.panels-price-table tbody tr:hover td:not(.panels-price-table-bulk),
.panels-price-table tbody tr:hover th[scope="row"] {
  background: rgba(255, 255, 255, 0.05);
}

/* Блок «Выгодная цена» — золотой, с отступом вправо */
.panels-price-table-bulk-head,
.panels-price-table-subhead th.panels-price-table-bulk:first-of-type,
.panels-price-table tbody td.panels-price-table-bulk:first-of-type {
  border-left: 1px solid rgba(220, 180, 90, 0.55);
}

.panels-price-table-bulk-head {
  background: linear-gradient(
    180deg,
    rgba(220, 180, 90, 0.28) 0%,
    rgba(220, 180, 90, 0.12) 100%
  ) !important;
  color: rgba(245, 220, 150, 1) !important;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-align: center !important;
}

.panels-price-table thead .panels-price-table-bulk {
  background: rgba(220, 180, 90, 0.14);
  color: rgba(235, 200, 130, 0.92);
  font-weight: 300;
}

.panels-price-table tbody .panels-price-table-bulk {
  background: rgba(220, 180, 90, 0.1);
  color: rgba(248, 228, 180, 0.98);
  font-weight: 300;
}

.panels-price-table tbody tr:nth-child(even) td.panels-price-table-bulk {
  background: rgba(220, 180, 90, 0.15);
}

.panels-price-table tbody tr:hover td.panels-price-table-bulk {
  background: rgba(220, 180, 90, 0.22);
}

body.panels-expand-active {
  overflow: hidden;
}

body.panels-expand-active .panels-product-card {
  pointer-events: none;
}

body.panels-expand-active .panels-product-card.is-expand-source {
  pointer-events: auto;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .panels-expand-card,
  .panels-expand-backdrop {
    transition: none;
  }
}

.panels-subpage-body {
  padding: 0 0 var(--space-16);
}

.subpage-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  font-size: var(--fs-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

.subpage-breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.subpage-breadcrumb a:hover {
  color: var(--color-white);
}

.subpage-breadcrumb-sep {
  opacity: 0.45;
  user-select: none;
}

.subpage-breadcrumb-current {
  color: var(--color-text);
}

.panels-subpage-head {
  text-align: left;
}

.panels-subpage-head .section-title {
  margin-top: var(--space-2);
}

.panels-subpage-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 245, 210, 0.95);
  background: rgba(220, 180, 90, 0.12);
  border: 1px solid rgba(220, 180, 90, 0.45);
}

.panels-subpage-eyebrow iconify-icon {
  color: rgba(245, 200, 110, 0.96);
}

.panels-hero-cta {
  margin-top: var(--space-6);
}

.panels-showcase {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--space-3));
  padding-top: var(--space-4);
  border-top: none;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-visual { order: -1; min-height: 360px; }
  .visual-stage { max-width: 380px; }
  .hero-content { align-items: center; text-align: center; max-width: none; }
  .hero-sub { margin: 0 auto; }
  .hero-cta-row { justify-content: center; }
  .hero-trust {
    justify-content: center;
    width: 100%;
  }

  .services-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .service-card { grid-column: span 6; min-height: unset; }
  .service-card-feature { grid-column: span 6; }

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

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-phone-text { display: none; }
  .nav-phone { padding: 0.6rem 0.85rem; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 0.6rem 0.85rem; }
  .nav-actions { gap: var(--space-4); }
  .navbar { padding: 0 var(--space-4); }
  .panels-hero {
    min-height: min(52vh, 480px);
    padding: calc(var(--header-h) + var(--space-8)) 0 var(--space-4);
    align-items: flex-end;
  }

  .panels-showcase {
    margin-top: var(--space-2);
    padding-top: var(--space-3);
  }
  .panels-hero-bg-media {
    background-position: center 42%;
  }
  .hero { padding: calc(var(--header-h) + var(--space-8)) var(--space-4) var(--space-10); }
  .hero-cta-row { flex-direction: column; width: 100%; }
  .hero-contacts {
    justify-content: center;
    gap: var(--space-2);
  }
  .hero-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
  }
  .hero-trust li {
    max-width: none;
    width: 100%;
    justify-content: flex-start;
  }
  .btn-primary, .btn-secondary { justify-content: center; width: 100%; }
  .panels-products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .panels-expand-card {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: min(92dvh, 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%) scale(var(--panels-scale, 1));
  }

  .panels-expand.is-open .panels-expand-card {
    transform: translateY(0) scale(1);
  }

  .panels-expand-body {
    padding: var(--space-3) var(--space-4) max(var(--space-5), env(safe-area-inset-bottom));
  }

  .panels-expand-card > .panels-expand-media .panels-expand-title {
    max-width: calc(100% - 3rem);
    font-size: 1.15rem;
  }

  .panels-price-table {
    min-width: 22.5rem;
    font-size: 0.72rem;
  }

  .panels-price-table th,
  .panels-price-table td {
    padding: 0.4rem 0.3rem;
  }

  .panels-price-table td:nth-child(2) {
    font-size: 0.68rem;
  }

  .panels-price-table-subhead th {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
  }

  .panels-price-th-full {
    display: none;
  }

  .panels-price-th-short {
    display: inline;
  }

  .panels-hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .panels-hero-cta .btn-primary,
  .panels-hero-cta .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .floating-card { padding: 0.5rem 0.7rem; }
  .card-led { right: 0; }
  .card-install { left: 0; }

  .container { padding: 0 var(--space-4); }
  .service-media { height: 180px; }
}

@media (max-width: 420px) {
  .hero-heading { font-size: 2rem; }
  .hero-heading .accent {
    font-size: clamp(0.92rem, 3.85vw + 0.65rem, 2rem);
    white-space: normal;
  }
  .hero-trust {
    max-width: none;
    padding-inline: var(--space-1);
  }
  .hero-trust li {
    font-size: var(--fs-xs);
    gap: 0.5rem;
  }
  .logo-img { height: 34px; max-width: min(168px, 50vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
