:root {
  --beton-orange: #f2b544 !important;
  --beton-orange-dark: #d58b14 !important;
  --beton-orange-soft: rgba(242, 181, 68, 0.14) !important;
  --beton-orange-glow: rgba(242, 181, 68, 0.28) !important;
  --beton-dark: #07111f !important;
  --beton-surface: #0c1b2a !important;
  --beton-card: #13273a !important;
  --beton-card-hover: #193149 !important;
  --beton-light-bg: #f3f6f8 !important;
  --beton-light-border: #d9e1e8 !important;
  --beton-green: #49a9c6 !important;
}

a[href*="wa.me"],
a[href*="t.me"],
a[href*="telegram.me"],
#topbar-right {
  display: none !important;
}

header#main-header {
  background: rgba(7, 17, 31, 0.96) !important;
  border-bottom-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 12px 32px rgba(7, 17, 31, 0.18);
  backdrop-filter: blur(18px);
}

/* Главная: промышленный тёмный экран с золотыми акцентами. */
html.brand-home #main-content > section:first-child {
  min-height: min(880px, 90vh) !important;
  background: #07111f !important;
  isolation: isolate;
}

html.brand-home #main-content > section:first-child picture img {
  opacity: 0.76 !important;
  filter: saturate(0.82) contrast(1.04) brightness(0.76);
}

html.brand-home #main-content > section:first-child picture + .absolute.inset-0 {
  background: linear-gradient(90deg, rgba(7,17,31,0.99) 0%, rgba(7,17,31,0.94) 35%, rgba(7,17,31,0.62) 62%, rgba(7,17,31,0.12) 100%) !important;
}

html.brand-home #main-content > section:first-child h1,
html.brand-home #main-content > section:first-child h2 {
  color: #f8fafc !important;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

html.brand-home #main-content > section:first-child .hero-description,
html.brand-home #main-content > section:first-child p[data-speakable] {
  color: #cbd5e1 !important;
  max-width: 760px;
}

html.brand-home #main-content > section:first-child .hero-d4 > div {
  background: rgba(12, 27, 42, 0.78) !important;
  border-color: rgba(203, 213, 225, 0.18) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(14px);
}

html.brand-home #main-content > section:first-child .hero-d4 > div span:last-child {
  color: #f8fafc !important;
}

html.brand-home #main-content > section:first-child .hero-d5 > a[href="/prajs"] {
  color: #f8fafc !important;
  background: rgba(12, 27, 42, 0.72) !important;
  border-color: rgba(203, 213, 225, 0.28) !important;
  backdrop-filter: blur(12px);
}

html.brand-home #main-content > section:first-child .hero-d6 span {
  color: #cbd5e1 !important;
  background: rgba(12, 27, 42, 0.64) !important;
  border-color: rgba(242, 181, 68, 0.25) !important;
}

html.brand-home #main-content > section:first-child #order-form {
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.34)) !important;
}

/* Внутренние страницы: тот же характер, что у главной. */
html.brand-inner #main-content {
  background:
    radial-gradient(circle at 82% 8%, rgba(242,181,68,0.08), transparent 24rem),
    #f3f6f8;
}

html.brand-inner #main-content > :first-child:has(h1) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(242, 181, 68, 0.34) !important;
  background-color: #07111f !important;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04);
}

html.brand-inner #main-content > :first-child:has(h1):not(:has(picture)) {
  background-image:
    linear-gradient(90deg, rgba(7,17,31,0.985) 0%, rgba(7,17,31,0.93) 48%, rgba(7,17,31,0.70) 100%),
    url('/images/hero-concrete.avif?v=20260820hero') !important;
  background-size: cover !important;
  background-position: center 46% !important;
}

html.brand-inner #main-content > :first-child:has(h1) picture img {
  opacity: 0.34 !important;
  filter: saturate(0.72) contrast(1.06) brightness(0.62) !important;
}

html.brand-inner #main-content > :first-child:has(h1) picture + .absolute.inset-0 {
  background: linear-gradient(90deg, rgba(7,17,31,0.98) 0%, rgba(7,17,31,0.88) 52%, rgba(7,17,31,0.54) 100%) !important;
}

html.brand-inner #main-content > :first-child:has(h1) h1 {
  color: #f8fafc !important;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

html.brand-inner #main-content > :first-child:has(h1) p,
html.brand-inner #main-content > :first-child:has(h1) nav,
html.brand-inner #main-content > :first-child:has(h1) nav a,
html.brand-inner #main-content > :first-child:has(h1) [class*="breadcrumb"] {
  color: #cbd5e1 !important;
}

html.brand-inner #main-content > :first-child:has(h1) a:last-child,
html.brand-inner #main-content > :first-child:has(h1) [aria-current="page"] {
  color: #f2b544 !important;
}

html.brand-inner #main-content > :first-child:has(h1)::after {
  content: "";
  position: absolute;
  left: max(1rem, calc((100% - 80rem) / 2));
  bottom: 0;
  z-index: 3;
  width: clamp(72px, 10vw, 150px);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2b544, rgba(242,181,68,0));
}

/* Белые карточки становятся частью одной системы: графитовая тень и золотая кромка. */
html.brand-inner #main-content :is(.rounded-2xl,.rounded-xl)[style*="background:#fff"],
html.brand-inner #main-content :is(.rounded-2xl,.rounded-xl)[style*="background: #fff"],
html.brand-inner #main-content .bg-white.rounded-2xl,
html.brand-inner #main-content .bg-white.rounded-xl {
  border-color: rgba(15, 35, 52, 0.14) !important;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow: 0 18px 46px rgba(7, 17, 31, 0.08), inset 0 3px 0 rgba(242, 181, 68, 0.72) !important;
}

html.brand-inner #main-content :is(.rounded-2xl,.rounded-xl)[style*="background:#fff"]:hover,
html.brand-inner #main-content :is(.rounded-2xl,.rounded-xl)[style*="background: #fff"]:hover,
html.brand-inner #main-content .bg-white.rounded-2xl:hover,
html.brand-inner #main-content .bg-white.rounded-xl:hover {
  border-color: rgba(213, 139, 20, 0.34) !important;
  box-shadow: 0 22px 54px rgba(7, 17, 31, 0.12), inset 0 3px 0 #f2b544 !important;
}

/* Разноцветные старые иконки унифицированы. */
html.brand-inner #main-content :is(.w-12.h-12,.w-10.h-10,.w-9.h-9)[style*="background"] {
  background: rgba(242, 181, 68, 0.14) !important;
  border: 1px solid rgba(242, 181, 68, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.48);
}

html.brand-inner #main-content :is(.w-12.h-12,.w-10.h-10,.w-9.h-9)[style*="background"] svg {
  stroke: #d58b14 !important;
}

html.brand-inner #main-content h2,
html.brand-inner #main-content h3 {
  color: #0b1a2a;
  letter-spacing: -0.02em;
}

html.brand-inner #main-content h2::selection,
html.brand-inner #main-content h3::selection {
  background: rgba(242,181,68,0.28);
}

html.brand-inner #main-content table {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(7,17,31,0.07);
}

html.brand-inner #main-content table thead,
html.brand-inner #main-content table thead tr,
html.brand-inner #main-content table thead th {
  background: #0c1b2a !important;
  color: #f8fafc !important;
  border-color: rgba(242,181,68,0.18) !important;
}

html.brand-inner #main-content table tbody tr:hover {
  background: rgba(242,181,68,0.08) !important;
}

html.brand-inner #main-content :is(button,a)[class*="bg-orange"],
html.brand-inner #main-content :is(button,a)[style*="background:var(--beton-orange)"],
html.brand-inner #main-content :is(button,a)[style*="background: var(--beton-orange)"] {
  color: #07111f !important;
  background: linear-gradient(135deg, #f6ca67 0%, #e5a42c 100%) !important;
  border-color: rgba(213,139,20,0.72) !important;
  box-shadow: 0 12px 28px rgba(213,139,20,0.22) !important;
}

html.brand-inner #main-content input:focus,
html.brand-inner #main-content textarea:focus,
html.brand-inner #main-content select:focus {
  border-color: #d58b14 !important;
  box-shadow: 0 0 0 3px rgba(242,181,68,0.16) !important;
  outline: none !important;
}

html.brand-inner footer {
  border-top: 1px solid rgba(242,181,68,0.22);
}

@media (max-width: 900px) {
  html.brand-home #main-content > section:first-child {
    min-height: auto !important;
  }

  html.brand-home #main-content > section:first-child picture img {
    opacity: 0.28 !important;
  }

  html.brand-home #main-content > section:first-child picture + .absolute.inset-0 {
    background: linear-gradient(180deg, rgba(7,17,31,0.9) 0%, rgba(7,17,31,0.98) 60%, #07111f 100%) !important;
  }

  html.brand-inner #main-content > :first-child:has(h1):not(:has(picture)) {
    background-image:
      linear-gradient(180deg, rgba(7,17,31,0.92) 0%, rgba(7,17,31,0.98) 100%),
      url('/images/hero-concrete-mobile.avif?v=20260820hero') !important;
    background-position: center 42% !important;
  }

  html.brand-inner #main-content > :first-child:has(h1)::after {
    left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.brand-inner #main-content * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
