/* ==========================================================================
   Karkas splav — Primary Stylesheet
   Modern Scandinavian Timber Architecture & Clean High-Performance UI
   ========================================================================== */

:root {
  --primary: #596e5d;
  --primary-rgb: 89, 110, 93;
  --primary-hover: #455849;
  --primary-light: #f0f4f1;
  --primary-dark: #313e34;
  --accent: #d97706;
  --hero-accent: #a7f3d0;
  --header-bg: rgba(24, 33, 26, 0.88);
  --header-scrolled-bg: rgba(18, 25, 20, 0.96);
  --hero-overlay: linear-gradient(135deg, rgba(16, 24, 18, 0.88) 0%, rgba(24, 34, 27, 0.72) 60%, rgba(32, 45, 36, 0.5) 100%);
  --footer-bg: #141c15;
  --text-main: #19201a;
  --text-muted: #5f6b61;
  --text-light: #8e9a90;
  --bg-main: #ffffff;
  --bg-secondary: #f7f8f5;
  --bg-card: #ffffff;
  --border: #e2e6e3;
  --border-focus: var(--primary);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 48px rgba(var(--primary-rgb), 0.16);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 78px;
}

/* ==========================================================================
   10 Handcrafted Premium Architectural Themes
   ========================================================================== */
[data-theme="scandi_pine"] {
  --primary: #596e5d;
  --primary-rgb: 89, 110, 93;
  --primary-hover: #455849;
  --primary-light: #f0f4f1;
  --primary-dark: #313e34;
  --accent: #d97706;
  --hero-accent: #a7f3d0;
  --header-bg: rgba(24, 33, 26, 0.88);
  --header-scrolled-bg: rgba(18, 25, 20, 0.96);
  --hero-overlay: linear-gradient(135deg, rgba(16, 24, 18, 0.88) 0%, rgba(24, 34, 27, 0.72) 60%, rgba(32, 45, 36, 0.5) 100%);
  --footer-bg: #141c15;
}

[data-theme="nordic_fjord"] {
  --primary: #2b5366;
  --primary-rgb: 43, 83, 102;
  --primary-hover: #1e3d4d;
  --primary-light: #edf4f8;
  --primary-dark: #142934;
  --accent: #0284c7;
  --hero-accent: #7dd3fc;
  --header-bg: rgba(16, 29, 38, 0.88);
  --header-scrolled-bg: rgba(11, 20, 27, 0.96);
  --hero-overlay: linear-gradient(135deg, rgba(12, 22, 30, 0.88) 0%, rgba(18, 35, 46, 0.72) 60%, rgba(28, 52, 68, 0.5) 100%);
  --footer-bg: #0d1820;
}

[data-theme="graphite_minimal"] {
  --primary: #2d3134;
  --primary-rgb: 45, 49, 52;
  --primary-hover: #1f2224;
  --primary-light: #f1f3f4;
  --primary-dark: #151718;
  --accent: #f59e0b;
  --hero-accent: #e2e8f0;
  --header-bg: rgba(24, 26, 28, 0.9);
  --header-scrolled-bg: rgba(16, 17, 18, 0.96);
  --hero-overlay: linear-gradient(135deg, rgba(15, 17, 18, 0.9) 0%, rgba(26, 29, 31, 0.75) 60%, rgba(42, 46, 49, 0.5) 100%);
  --footer-bg: #121314;
}

[data-theme="warm_cedar"] {
  --primary: #854d27;
  --primary-rgb: 133, 77, 39;
  --primary-hover: #6e3e1e;
  --primary-light: #fbf5f0;
  --primary-dark: #4f2b13;
  --accent: #ea580c;
  --hero-accent: #fcd34d;
  --header-bg: rgba(34, 22, 16, 0.88);
  --header-scrolled-bg: rgba(24, 15, 10, 0.96);
  --hero-overlay: linear-gradient(135deg, rgba(22, 14, 9, 0.9) 0%, rgba(38, 22, 14, 0.75) 60%, rgba(68, 38, 20, 0.5) 100%);
  --footer-bg: #180e07;
}

[data-theme="forest_emerald"] {
  --primary: #235738;
  --primary-rgb: 35, 87, 56;
  --primary-hover: #194129;
  --primary-light: #ecf6f0;
  --primary-dark: #102b1b;
  --accent: #059669;
  --hero-accent: #86efac;
  --header-bg: rgba(16, 32, 22, 0.88);
  --header-scrolled-bg: rgba(10, 22, 14, 0.96);
  --hero-overlay: linear-gradient(135deg, rgba(10, 22, 14, 0.9) 0%, rgba(18, 42, 28, 0.75) 60%, rgba(30, 68, 45, 0.5) 100%);
  --footer-bg: #0a160f;
}

[data-theme="baltic_amber"] {
  --primary: #a35112;
  --primary-rgb: 163, 81, 18;
  --primary-hover: #85400c;
  --primary-light: #fff7ed;
  --primary-dark: #5c2a07;
  --accent: #d97706;
  --hero-accent: #fde047;
  --header-bg: rgba(38, 22, 12, 0.88);
  --header-scrolled-bg: rgba(26, 14, 7, 0.96);
  --hero-overlay: linear-gradient(135deg, rgba(24, 13, 6, 0.9) 0%, rgba(42, 22, 10, 0.75) 60%, rgba(78, 40, 16, 0.5) 100%);
  --footer-bg: #180c05;
}

[data-theme="alpine_slate"] {
  --primary: #475569;
  --primary-rgb: 71, 85, 105;
  --primary-hover: #334155;
  --primary-light: #f1f5f9;
  --primary-dark: #1e293b;
  --accent: #38bdf8;
  --hero-accent: #93c5fd;
  --header-bg: rgba(24, 30, 39, 0.88);
  --header-scrolled-bg: rgba(16, 21, 28, 0.96);
  --hero-overlay: linear-gradient(135deg, rgba(15, 20, 27, 0.9) 0%, rgba(27, 35, 47, 0.75) 60%, rgba(45, 59, 78, 0.5) 100%);
  --footer-bg: #11161d;
}

[data-theme="dark_walnut"] {
  --primary: #453326;
  --primary-rgb: 69, 51, 38;
  --primary-hover: #34251b;
  --primary-light: #f7f3ee;
  --primary-dark: #211812;
  --accent: #d97706;
  --hero-accent: #fed7aa;
  --header-bg: rgba(28, 20, 16, 0.88);
  --header-scrolled-bg: rgba(18, 12, 9, 0.96);
  --hero-overlay: linear-gradient(135deg, rgba(16, 11, 8, 0.9) 0%, rgba(30, 21, 16, 0.75) 60%, rgba(56, 38, 28, 0.5) 100%);
  --footer-bg: #120b07;
}

[data-theme="falu_red"] {
  --primary: #8a2e2e;
  --primary-rgb: 138, 46, 46;
  --primary-hover: #712222;
  --primary-light: #fdf2f2;
  --primary-dark: #4a1414;
  --accent: #e11d48;
  --hero-accent: #fca5a5;
  --header-bg: rgba(36, 16, 16, 0.88);
  --header-scrolled-bg: rgba(24, 10, 10, 0.96);
  --hero-overlay: linear-gradient(135deg, rgba(22, 9, 9, 0.9) 0%, rgba(42, 17, 17, 0.75) 60%, rgba(76, 26, 26, 0.5) 100%);
  --footer-bg: #160808;
}

[data-theme="midnight_indigo"] {
  --primary: #1e3a5f;
  --primary-rgb: 30, 58, 95;
  --primary-hover: #152943;
  --primary-light: #f0f5fc;
  --primary-dark: #0d1a2b;
  --accent: #3b82f6;
  --hero-accent: #60a5fa;
  --header-bg: rgba(14, 24, 38, 0.88);
  --header-scrolled-bg: rgba(8, 14, 24, 0.96);
  --hero-overlay: linear-gradient(135deg, rgba(9, 15, 25, 0.9) 0%, rgba(17, 31, 51, 0.75) 60%, rgba(29, 54, 88, 0.5) 100%);
  --footer-bg: #070c14;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-rgb), 0.35) transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   Ultra-Modern Custom Scrollbar (Cross-browser, Windows/Mac/Linux)
   Removes ugly default OS grey bars and triangular arrows everywhere
   ========================================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-rgb), 0.35) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(var(--primary-rgb), 0.32);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(var(--primary-rgb), 0.65);
}

::-webkit-scrollbar-thumb:active {
  background-color: var(--primary-dark);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Slimmer, elegant scrollbars for modals, drawers and tables */
.modal-container::-webkit-scrollbar,
.mobile-drawer::-webkit-scrollbar,
.materials-public-wrap::-webkit-scrollbar,
.materials-table-wrap::-webkit-scrollbar,
.proj-gallery-thumbs::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.modal-container::-webkit-scrollbar-thumb,
.mobile-drawer::-webkit-scrollbar-thumb,
.materials-public-wrap::-webkit-scrollbar-thumb,
.materials-table-wrap::-webkit-scrollbar-thumb,
.proj-gallery-thumbs::-webkit-scrollbar-thumb {
  background-color: rgba(var(--primary-rgb), 0.35);
  border-radius: 9999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.modal-container::-webkit-scrollbar-thumb:hover,
.mobile-drawer::-webkit-scrollbar-thumb:hover,
.materials-public-wrap::-webkit-scrollbar-thumb:hover,
.materials-table-wrap::-webkit-scrollbar-thumb:hover,
.proj-gallery-thumbs::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ==========================================================================
   Scroll Progress Bar (Inspired by задомом.рф)
   ========================================================================== */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.04);
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover), var(--primary-light));
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
  transition: width 0.1s linear;
}

/* ==========================================================================
   Header & Navigation (Premium Frosted Glass)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 990;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled {
  height: 68px;
  background: var(--header-scrolled-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
  flex-wrap: nowrap;
}

.logo-wrapper {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.logo-wrapper:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.brand-logo-svg {
  height: 48px;
  width: auto;
  display: block;
  transition: height 0.25s ease, color 0.25s ease;
}

.header.scrolled .brand-logo-svg {
  height: 42px;
}

.brand-logo-svg--footer {
  height: 54px;
}

.brand-logo-svg--mobile {
  height: 40px;
}

/* Adaptive colors: dark surfaces (header, footer) vs light surfaces (mobile drawer) */
.logo-wrapper--dark .logo-word-primary {
  fill: #ffffff;
}

.logo-wrapper--dark .logo-word-accent {
  fill: var(--hero-accent);
}

.logo-wrapper--dark .logo-emblem {
  color: var(--hero-accent);
}

.logo-wrapper--light .logo-word-primary {
  fill: var(--text-main);
}

.logo-wrapper--light .logo-word-accent {
  fill: var(--primary);
}

.logo-wrapper--light .logo-emblem {
  color: var(--primary);
}

.desktop-nav {
  display: flex;
  align-items: center;
  flex-shrink: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--hero-accent);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-phone-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.25;
}

.header-extra-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.header-extra-phone-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-extra-phone-link:hover {
  color: var(--hero-accent);
}

.mobile-extra-phones,
.contacts-extra-phones,
.footer-extra-phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-extra-phones {
  margin-bottom: 12px;
  margin-top: -6px;
}

.mobile-extra-phones a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.contacts-extra-phones {
  margin-top: 4px;
}

.contacts-extra-phones a {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
}

.contacts-extra-phones a:hover {
  color: var(--primary);
}

.footer-phones-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-extra-phones a {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.footer-extra-phones a:hover {
  color: var(--hero-accent);
}

.header-phone-link {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-phone-link:hover {
  color: var(--hero-accent);
}

.phone-svg {
  color: var(--hero-accent);
  flex-shrink: 0;
}

.btn-header-call {
  background: #ffffff;
  color: var(--primary-dark);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-header-call:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 1001;
}

.burger-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.burger-btn span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(88vh, 700px);
  min-height: min(88dvh, 700px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 24px + env(safe-area-inset-top, 0px));
  padding-bottom: 40px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-badge-top::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hero-accent);
  box-shadow: 0 0 10px var(--hero-accent);
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--hero-accent);
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  max-width: 680px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.5);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-feature-item {
  display: flex;
  flex-direction: column;
}

.hero-feature-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--hero-accent);
  line-height: 1.2;
}

.hero-feature-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Section Common
   ========================================================================== */
.section {
  padding: 56px 0;
}

.section-secondary {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Catalog (Проекты каркасных домов)
   ========================================================================== */
.catalog-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.25);
}

/* ==========================================================================
   Catalog Lookbook Carousel (Inspired by fashion / minimalist lookbooks)
   ========================================================================== */
.catalog-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 4px 0 12px 0;
}

.projects-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: safe center;
  padding: 8px 6px 20px 6px;
}

.projects-carousel-track::-webkit-scrollbar {
  display: none;
}

.project-editorial-card {
  position: relative;
  flex: 0 0 480px;
  width: 480px;
  height: 330px;
  border-radius: 12px;
  overflow: hidden;
  background: #1e293b;
  cursor: pointer;
  scroll-snap-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.project-editorial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.project-editorial-media {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-editorial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-editorial-card:hover .project-editorial-img {
  transform: scale(1.06);
}

.project-editorial-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 3px;
  z-index: 2;
}

.project-editorial-area {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 5px 12px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.project-editorial-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px 22px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 20, 0.5) 30%, rgba(10, 15, 20, 0.94) 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
  color: #ffffff;
}

.project-editorial-mainline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.project-editorial-title {
  color: #ffffff;
}

.project-editorial-divider {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.project-editorial-price {
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
}

.project-editorial-subline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.3px;
}

.project-editorial-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hero-accent, #86efac);
  letter-spacing: 0.4px;
  opacity: 0.95;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.25s ease;
}

.project-editorial-card:hover .project-editorial-hint {
  transform: translateX(4px);
}

/* Floating Navigation Arrows */
.catalog-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 300;
  color: #0f172a;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  user-select: none;
}

.catalog-carousel-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  color: var(--primary);
}

.catalog-carousel-arrow.disabled {
  opacity: 0.22 !important;
  pointer-events: none !important;
  cursor: default !important;
  transform: translateY(-50%) scale(0.92);
}

.catalog-arrow-prev {
  left: -20px;
}

.catalog-arrow-next {
  right: -20px;
}

/* Dots Wrapper */
.catalog-dots-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}

/* Responsive */
/* Responsive */
@media (max-width: 1080px) {
  .project-editorial-card {
    flex: 0 0 420px;
    width: 420px;
    height: 295px;
  }
  .projects-carousel-track {
    gap: 20px;
  }
  .catalog-carousel-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }
  .catalog-arrow-prev {
    left: -10px;
  }
  .catalog-arrow-next {
    right: -10px;
  }
}

@media (max-width: 768px) {
  .catalog-carousel-wrapper {
    padding: 4px 0 16px 0;
  }
  .projects-carousel-track {
    gap: 16px;
    padding: 6px 4px 16px 4px;
    justify-content: flex-start;
  }
  .project-editorial-card {
    flex: 0 0 calc(86vw - 20px);
    width: calc(86vw - 20px);
    max-width: 380px;
    height: 255px;
  }
  .catalog-carousel-arrow {
    display: none !important;
  }
  .project-editorial-mainline {
    font-size: 0.95rem;
  }
  .project-editorial-subline {
    font-size: 0.76rem;
  }
}

@media (max-width: 420px) {
  .project-editorial-card {
    flex: 0 0 calc(90vw - 16px);
    width: calc(90vw - 16px);
    height: 235px;
  }
  .projects-carousel-track {
    gap: 12px;
  }
}

/* ==========================================================================
   Wall Constructive ("Пирог стены")
   ========================================================================== */
.constructive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.constructive-layers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.layer-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.layer-card:hover {
  border-color: var(--primary);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.layer-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.layer-info {
  display: flex;
  flex-direction: column;
}

.layer-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.layer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.constructive-visual {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.constructive-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.constructive-badge-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.constructive-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.constructive-badge-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.constructive-badge-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Photo Gallery (Живая галерея 190+ фото)
   ========================================================================== */
.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #e5e7eb;
  box-shadow: var(--shadow-sm);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(25, 32, 26, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-title {
  transform: translateY(0);
}

.gallery-zoom-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Gallery Expand Button & Wrapper */
.gallery-expand-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
}

.btn-gallery-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  padding: 14px 32px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px;
}

.btn-gallery-toggle:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
  transform: translateY(-2px);
}

.btn-gallery-toggle:active {
  transform: translateY(0);
}

.btn-gallery-icon {
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}

.btn-gallery-toggle.is-expanded .btn-gallery-icon {
  transform: rotate(180deg);
}

.btn-gallery-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.btn-gallery-toggle:hover .btn-gallery-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

@media (max-width: 640px) {
  .gallery-expand-wrapper {
    margin-top: 22px;
  }
  .btn-gallery-toggle {
    width: 100%;
    padding: 13px 18px;
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   Dynamic Dots & Pill Pagination Indicator (Inspired by iOS / Instagram)
   ========================================================================== */
.dynamic-dots-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  pointer-events: auto;
  transition: all 0.25s ease;
  user-select: none;
  min-height: 24px;
  box-sizing: border-box;
}

.dynamic-dots-indicator.theme-light {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dynamic-dot {
  display: inline-block;
  height: 6px;
  width: 6px;
  border-radius: 9999px;
  background: #ffffff;
  opacity: 0.35;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              background-color 0.25s ease, 
              opacity 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
}

.dynamic-dots-indicator.theme-light .dynamic-dot {
  background: var(--text-main);
  opacity: 0.28;
}

.dynamic-dot:hover {
  opacity: 0.75;
  transform: scale(1.15);
}

.dynamic-dot.active {
  width: 26px;
  height: 6px;
  border-radius: 9999px;
  opacity: 1;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: default;
  transform: none;
}

.dynamic-dots-indicator.theme-light .dynamic-dot.active {
  background: var(--primary);
  opacity: 1;
  box-shadow: 0 1px 6px rgba(var(--primary-rgb), 0.35);
}

/* ==========================================================================
   Stages of Work — "Как проходит работа" (Transparent Process)
   ========================================================================== */
.process-carousel-wrapper {
  position: relative;
  margin: 16px 0 10px 0;
  display: flex;
  align-items: center;
}

.process-track-container {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 14px 4px;
  scroll-padding: 0 16px;
  scrollbar-width: none;
}

.process-track-container::-webkit-scrollbar {
  display: none;
}

.process-steps-track {
  display: flex;
  gap: 20px;
  min-width: max-content;
}

.process-step-card {
  width: 290px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  scroll-snap-align: start;
  position: relative;
}

.process-step-card:last-child {
  scroll-snap-align: end;
}

.process-step-card.active-step,
.process-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-hover);
}

.process-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.process-step-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.5px;
}

.process-step-arrow {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.7;
}

.process-step-img-wrap {
  width: 100%;
  height: 170px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #f1f5f9;
}

.process-step-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.process-step-card:hover .process-step-img-wrap img {
  transform: scale(1.05);
}

.process-step-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.process-step-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.process-step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.process-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.process-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.process-nav-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.process-nav-btn.disabled {
  opacity: 0.28 !important;
  pointer-events: none !important;
  cursor: default !important;
  transform: translateY(-50%) scale(0.92);
}

.process-nav-prev {
  left: -20px;
}

.process-nav-next {
  right: -20px;
}

.process-dots-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* Modal Dynamic Dots */
.modal-dynamic-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: auto;
}

/* ==========================================================================
   Reviews (Отзывы)
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--bg-card);
  padding: 22px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.review-rating {
  color: #f59e0b;
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: flex;
  gap: 4px;
}

.review-text {
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.55;
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.review-author-info h4 {
  font-size: 1rem;
  font-weight: 700;
}

.review-author-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 14px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.faq-item.active .faq-answer {
  padding-bottom: 18px;
}

/* ==========================================================================
   Contacts & Lead Form
   ========================================================================== */
.contact-section-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  background: var(--bg-card);
  padding: 36px 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-item-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.contact-item-val:hover {
  color: var(--primary);
}

.contact-messengers {
  display: flex;
  gap: 14px;
  margin-top: auto;
}

.btn-messenger {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

.btn-telegram {
  background: #0088cc;
  color: #ffffff;
}

.btn-telegram:hover {
  background: #0077b5;
  transform: translateY(-2px);
}

.btn-max {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #ffffff;
}

.btn-max:hover {
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
  transform: translateY(-2px);
}

/* Form Styles */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-main);
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-agree {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.btn-submit-lead {
  background: var(--primary);
  color: #ffffff;
  padding: 16px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-submit-lead:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.4);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--footer-bg);
  color: #ffffff;
  padding: 38px 0 20px 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-admin-link {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.footer-admin-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   Modals & Lightbox
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 18, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-card);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 10;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.modal-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
  transform: rotate(90deg) scale(1.08);
}

.modal-close-btn svg,
.lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(10, 14, 11, 0.96);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.15s ease, filter 0.18s ease;
  will-change: opacity, filter;
}

.lightbox-img.loading {
  filter: blur(3px);
  opacity: 0.9;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav-btn:hover {
  background: var(--primary);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-header {
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-counter {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.lightbox-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--primary);
}

/* Floating WhatsApp / Action Button */
.floating-actions {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.floating-tg {
  background: #229ed9;
}

.floating-max {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.floating-wa {
  background: #25d366;
}

.floating-totop {
  background: var(--primary);
  opacity: 0;
  visibility: hidden;
}

.floating-totop.visible {
  opacity: 1;
  visibility: visible;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #19201a;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--primary);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100%;
  height: 100dvh;
  background: #ffffff;
  z-index: 1050;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-close {
  align-self: flex-end;
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  padding: 0;
}

.mobile-drawer-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 36px 0;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.mobile-drawer-phone {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ==========================================================================
   About Company Section Component
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.about-stat-card {
  background: var(--bg-card);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.about-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.about-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-img-wrap {
  width: 100%;
}

.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 500px;
  object-fit: cover;
}

/* ==========================================================================
   Footer Nav Links & Details
   ========================================================================== */
.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.footer-nav-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
  padding: 4px 0;
}

.footer-nav-links a:hover {
  color: #ffffff;
}

.footer-phone {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hero-accent);
  transition: color 0.2s ease;
}

.footer-phone:hover {
  color: #ffffff;
}

/* ==========================================================================
   Callback Modal & Lead Form Box
   ========================================================================== */
.modal-callback-container {
  max-width: 500px;
  padding: 40px 32px;
}

.modal-callback-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-callback-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.modal-callback-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 6px;
  color: var(--text-main);
}

.modal-callback-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.modal-lead-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  margin-top: 24px;
}

.modal-lead-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.modal-lead-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.modal-lead-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 12px;
}

.modal-lead-btn {
  padding: 14px;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
}


/* ==========================================================================
   Project Modal Tabs, Materials Specification & Gallery Thumbs
   ========================================================================== */
.proj-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.proj-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

.proj-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(89, 110, 93, 0.25);
}

/* Modal Thumbnail Gallery */
.proj-modal-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.proj-thumb-btn {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.proj-thumb-btn:hover, .proj-thumb-btn.active {
  border-color: var(--primary);
  transform: scale(1.05);
}

/* Public Materials Specification Table */
.materials-header-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.materials-public-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.materials-public-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
}

.materials-public-table th {
  background: var(--bg-secondary);
  padding: 14px 18px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.materials-public-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.92rem;
  color: var(--text-main);
}

.materials-public-table tr:last-child td {
  border-bottom: none;
}

.materials-public-table tr:hover td {
  background: #f9fafb;
}

.mat-qty-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Gallery items render eagerly without WebKit content-visibility paint deferral */
.project-card, .gallery-item {
  contain: layout style;
}

/* ==========================================================================
   Project Details Modal — Ultra-Premium Showcase & Multi-Photo Gallery
   ========================================================================== */
.modal-container {
  background: var(--bg-card);
  width: 100%;
  max-width: 1060px;
  max-height: 92vh;
  max-height: 92dvh;
  border-radius: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

#projectModal .modal-container {
  max-width: min(1360px, 95vw);
}

#projectModal .modal-close-btn {
  position: sticky;
  top: 14px;
  float: right;
  margin: 14px 14px -58px 0;
  z-index: 40;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.proj-overview-grid > *,
.proj-desc-layout > *,
.about-grid > *,
.contact-section-inner > * {
  min-width: 0;
}

.proj-modal-inner {
  padding: 36px 44px;
}

.proj-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-right: 60px;
  gap: 20px;
  flex-wrap: wrap;
}

.proj-modal-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.8px;
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.proj-modal-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.proj-modal-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 4px;
}

.proj-modal-price-box {
  text-align: right;
  flex-shrink: 0;
}

.proj-modal-price-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
}

.proj-modal-price-val .price-prefix {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
}

.proj-modal-price-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Modern Segmented Navigation Tabs */
.proj-segmented-nav {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 14px;
  margin-bottom: 28px;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
}

.proj-seg-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.proj-seg-btn:hover {
  color: #0f172a;
}

.proj-seg-btn.active {
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Interactive Photo Gallery */
.proj-gallery-hero {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 500px;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.proj-gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.22s ease, transform 0.3s ease;
}

.gallery-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0;
  user-select: none;
}

.gallery-nav-arrow:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.gallery-nav-prev { left: 14px; }
.gallery-nav-next { right: 14px; }

.gallery-counter-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 5;
}

.gallery-fullscreen-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gallery-fullscreen-btn:hover {
  background: var(--primary);
  transform: scale(1.05);
}

.proj-modal-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.proj-thumb-card {
  width: 96px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: #e2e8f0;
}

.proj-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proj-thumb-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.proj-thumb-card.active {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.4);
}

/* Metric Cards */
.proj-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.proj-metric-card {
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.proj-metric-icon {
  font-size: 1.5rem;
}

.proj-metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.proj-metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Features List */
.proj-features-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.proj-features-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.4;
}

.proj-checklist-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Conversion Action Buttons in Modal */
.proj-modal-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cta-telegram {
  flex: 1;
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #229ed9;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.35);
  transition: all 0.2s ease;
}

.btn-cta-telegram:hover {
  background: #1b89bd;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.45);
  color: #ffffff;
}

.btn-cta-whatsapp {
  flex: 1;
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-cta-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

.btn-cta-calculate {
  flex: 1;
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
  transition: all 0.2s ease;
}

.btn-cta-calculate:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.45);
}

/* Modal Internal Responsive Grids */
.proj-overview-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.proj-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.proj-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* ==========================================================================
   Comprehensive Mobile-First & Multi-Breakpoint Responsive Engine
   Breakpoints:
   - <= 1180px: Small Desktop / Large Tablet
   - <= 1024px: Tablet Landscape (lg)
   - <= 768px:  Tablet Portrait (md)
   - <= 640px:  Mobile Standard (sm)
   - <= 420px:  Mobile Compact (xs)
   - <= 360px:  Ultra-Compact (iPhone SE, Galaxy Fold/Mini)
   ========================================================================== */

/* Global Anti-Overflow & Mobile Touch Engine (clip avoids breaking sticky/IntersectionObserver) */
html, body {
  overflow-x: hidden;
  overflow-x: clip !important;
  width: 100%;
  max-width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* iOS Safari: Prevent automatic zooming on form focus by enforcing 16px minimum */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
textarea,
select,
.form-input,
.form-textarea {
  font-size: 16px !important;
}

/* Fluid Typography Base */
.hero-title {
  font-size: clamp(1.85rem, 5.2vw, 3.4rem);
  line-height: 1.15;
}

.section-title {
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 1.8vw, 1.2rem);
}

.section-subtitle {
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
}

.project-title {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
}

.proj-modal-title {
  font-size: clamp(1.4rem, 3.6vw, 2.3rem);
}

/* Touch Target Standards (Minimum 44x44px for Finger Usability) */
.burger-btn,
.mobile-drawer-close,
.modal-close-btn,
.lightbox-close,
.lightbox-nav-btn {
  min-width: 44px;
  min-height: 44px;
}

.filter-btn,
.proj-seg-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary,
.btn-outline-white,
.btn-header-call,
.btn-project-details,
.btn-submit-lead,
.btn-cta-whatsapp,
.btn-cta-telegram,
.btn-cta-calculate,
.modal-lead-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* Breakpoint 0: Compact 6-Link Desktop Navigation (<= 1260px) */
@media (max-width: 1260px) {
  .header-inner {
    gap: 12px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-link {
    font-size: 0.88rem;
  }
}

/* Breakpoint 1: Large Tablets / Small Laptops (<= 1180px) */
@media (max-width: 1180px) {
  .desktop-nav,
  .header-phone-box,
  .btn-header-call {
    display: none !important;
  }

  .burger-btn {
    display: flex !important;
  }

  .constructive-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .proj-overview-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Breakpoint 2: Tablet Devices (<= 1024px) */
@media (max-width: 1024px) {
  .section {
    padding: 44px 0;
  }

  .contact-section-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px;
  }

  .footer-top {
    gap: 28px;
  }
}

/* Breakpoint 3: Phablets and Landscape Phones (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 38px 0;
  }

  .section-subtitle {
    margin-bottom: 20px;
  }

  /* Header */
  .header {
    height: 68px;
  }

  .header.scrolled {
    height: 60px;
  }

  .brand-logo-svg {
    height: 38px;
  }

  .header.scrolled .brand-logo-svg {
    height: 34px;
  }

  /* Mobile Drawer Menu */
  .mobile-drawer {
    width: min(85vw, 340px);
    padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-drawer-close {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .mobile-nav-links {
    margin: 24px 0;
    gap: 12px;
  }

  .mobile-nav-link {
    font-size: 1.15rem;
    padding: 10px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .mobile-drawer-phone {
    font-size: 1.15rem;
    margin-bottom: 12px;
    display: block;
  }

  /* Hero Section */
  .hero {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 56px;
    min-height: auto;
  }

  .hero-badge-top {
    font-size: 0.78rem;
    padding: 6px 14px;
    margin-bottom: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-primary,
  .btn-outline-white {
    width: 100%;
    padding: 14px 20px;
  }

  .hero-features {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 24px;
  }

  .hero-feature-item {
    padding: 14px 12px;
    border-radius: var(--radius-sm);
  }

  .hero-feature-number {
    font-size: 1.45rem;
  }

  .hero-feature-desc {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  /* Catalog & Filter Pills */
  .catalog-filters,
  .gallery-nav {
    gap: 8px;
    margin-bottom: 24px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .catalog-filters::-webkit-scrollbar,
  .gallery-nav::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.88rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-body {
    padding: 20px 16px;
  }

  /* Constructive Section ("Пирог стены") */
  .constructive-visual {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .constructive-badges {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
  }

  /* Process Steps Carousel */
  .process-carousel-wrapper {
    margin: 24px 0 16px 0;
  }

  .process-track-container {
    padding: 8px 2px 18px 2px;
  }

  .process-step-card {
    width: min(290px, 82vw);
  }

  .process-nav-btn {
    display: none !important;
  }

  /* About Section */
  .about-grid {
    gap: 28px;
  }

  .about-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .about-stats-grid {
    gap: 14px;
    margin-top: 18px;
  }

  .about-stat-card {
    padding: 14px 16px;
  }

  .about-stat-num {
    font-size: 1.55rem;
  }

  .about-stat-label {
    font-size: 0.8rem;
  }

  .about-img {
    max-height: 340px;
  }

  /* Contacts Section */
  .contact-section-inner {
    padding: 24px 16px;
    border-radius: var(--radius-md);
    gap: 28px;
  }

  .contact-info-list {
    margin: 20px 0;
    gap: 14px;
  }

  .contact-messengers {
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn-messenger {
    flex: 1;
    min-width: 130px;
    padding: 12px 16px;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px 0;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding-bottom: 30px;
  }

  .footer-phones-wrap {
    align-items: flex-start;
  }

  .footer-extra-phones {
    align-items: flex-start;
  }

  .footer-nav-links {
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.9rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding-top: 20px;
  }

  /* Modals Common */
  .modal-overlay {
    padding: max(10px, env(safe-area-inset-top, 0px)) 8px max(10px, env(safe-area-inset-bottom, 0px));
  }

  .modal-container {
    max-height: 94vh;
    max-height: calc(100dvh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
    margin: auto;
    width: 100%;
    max-width: 100%;
  }

  #projectModal .modal-close-btn {
    top: 10px;
    margin: 10px 10px -54px 0;
  }

  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .modal-callback-container {
    padding: 32px 18px 24px 18px;
  }

  /* Project Details Modal Specific */
  .proj-modal-inner {
    padding: 20px 14px;
  }

  .proj-modal-header {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 48px;
    margin-bottom: 16px;
    gap: 8px;
  }

  .proj-modal-price-box {
    text-align: left;
    margin-top: 6px;
  }

  .proj-modal-price-val {
    justify-content: flex-start;
    font-size: 1.7rem;
  }

  .proj-segmented-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 18px;
    gap: 6px;
    padding: 4px;
  }

  .proj-segmented-nav::-webkit-scrollbar {
    display: none;
  }

  .proj-seg-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .proj-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .proj-metric-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .proj-metric-val {
    font-size: 1rem;
  }

  .proj-plans-grid,
  .proj-packages-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .materials-public-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .materials-public-table th,
  .materials-public-table td {
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  .modal-lead-box {
    padding: 18px 14px;
    margin-top: 18px;
    border-radius: 14px;
  }

  .modal-lead-title {
    font-size: 1.1rem;
  }

  .modal-lead-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .proj-modal-cta-row {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .btn-cta-whatsapp,
  .btn-cta-telegram,
  .btn-cta-calculate {
    width: 100%;
    min-width: 100%;
    padding: 14px 18px;
  }

  /* Lightbox */
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-header {
    top: max(10px, env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
  }

  /* Floating Actions */
  .floating-actions {
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    right: 14px;
    gap: 8px;
    z-index: 850;
  }

  .floating-btn {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }
}

/* Breakpoint 4: Standard Mobile Smartphones (<= 640px) */
@media (max-width: 640px) {
  .section {
    padding: 32px 0;
  }

  .section-tag {
    font-size: 0.76rem;
    padding: 4px 12px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .layer-card {
    padding: 14px 12px;
    gap: 12px;
  }

  .layer-number {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .layer-title {
    font-size: 0.94rem;
  }

  .layer-desc {
    font-size: 0.8rem;
    line-height: 1.45;
  }
}

/* Breakpoint 5: Compact Smartphones (<= 420px) */
@media (max-width: 420px) {
  .section {
    padding: 26px 0;
  }

  .container {
    padding: 0 12px;
  }

  .hero-features {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 18px;
  }

  .hero-feature-item {
    padding: 10px 8px;
  }

  .hero-feature-number {
    font-size: 1.25rem;
  }

  .hero-feature-desc {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-item {
    border-radius: 8px;
  }

  .gallery-title {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .gallery-overlay {
    padding: 8px;
  }

  .process-nav-btn {
    display: none !important;
  }

  .process-step-card {
    width: calc(100vw - 44px);
    padding: 14px;
  }

  .process-step-img-wrap {
    height: 140px;
  }

  .process-step-title {
    font-size: 1rem;
  }

  .process-step-desc {
    font-size: 0.82rem;
  }

  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .about-stat-card {
    padding: 12px 10px;
  }

  .about-stat-num {
    font-size: 1.4rem;
  }

  .about-stat-label {
    font-size: 0.72rem;
  }

  .contact-section-inner {
    padding: 20px 12px;
  }

  .btn-messenger {
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  .proj-metrics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .proj-metric-card {
    padding: 10px 12px;
  }

  .proj-modal-inner {
    padding: 16px 10px;
  }

  .gallery-nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .gallery-fullscreen-btn span:last-child {
    display: none;
  }
}

/* Breakpoint 6: Ultra-Compact Screens (<= 360px, e.g. iPhone SE 1st gen, Galaxy Fold closed) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-messengers {
    flex-direction: column;
  }

  .btn-messenger {
    width: 100%;
  }

  .proj-modal-price-val {
    font-size: 1.45rem;
  }
}

/* ==========================================================================
   Rich Text Formatting & Integrated About/Technology Styles
   ========================================================================== */
.text-accent {
  color: var(--primary);
  font-weight: inherit;
}

.hero .text-accent,
.footer .text-accent {
  color: var(--hero-accent);
}

.about-rich-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.about-rich-text p {
  margin: 0;
}

.about-rich-text ul,
.about-rich-text ol {
  padding-left: 20px;
  margin: 4px 0;
}

.about-technology-block {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 64px;
}

.about-technology-block .section-header {
  margin-top: 16px !important;
}

/* ==========================================================================
   Live Admin Preview Mode (inside Admin iframe)
   ========================================================================== */
body.ks-preview-mode [data-edit-section] {
  position: relative;
  transition: outline 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

body.ks-preview-mode [data-edit-section]:hover {
  outline: 2px dashed rgba(var(--primary-rgb), 0.55);
  outline-offset: -3px;
}

body.ks-preview-mode [data-edit-section].ks-preview-active {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
  box-shadow: inset 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}

body.ks-preview-mode .floating-actions {
  display: none;
}

/* ==========================================================================
   Widescreen Architectural Project Showcase Modal
   ========================================================================== */
.proj-jump-nav {
  position: sticky;
  top: -1px;
  z-index: 20;
  display: flex;
  gap: 8px;
  background: rgba(241, 245, 249, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 7px;
  border-radius: 14px;
  margin-bottom: 28px;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.proj-jump-nav::-webkit-scrollbar,
.proj-modal-thumbs::-webkit-scrollbar {
  display: none;
}

.proj-pkg-quick-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.proj-pkg-quick-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.proj-pkg-quick-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.proj-pkg-pill {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proj-pkg-pill:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.proj-pkg-pill.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.16);
}

.proj-pkg-pill-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.proj-pkg-pill-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.proj-showcase-section {
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.proj-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.proj-section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 4px;
}

.proj-section-heading {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.proj-desc-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
}

.proj-description-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 28px;
}

.proj-description-rich {
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--text-main);
}

.proj-description-rich p + p {
  margin-top: 12px;
}

.proj-description-rich ul,
.proj-description-rich ol {
  padding-left: 20px;
  margin: 10px 0;
}

.proj-features-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.proj-features-box h4 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.proj-specs-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.proj-spec-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.proj-spec-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-md);
}

.proj-spec-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.proj-spec-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.proj-spec-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.proj-spec-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.proj-package-card {
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  background: var(--bg-card);
  position: relative;
  transition: all 0.22s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.proj-package-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.proj-package-card.is-selected {
  border: 2px solid var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow-hover);
}

.proj-package-select-hint {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
}

@media (max-width: 1024px) {
  .proj-desc-layout {
    grid-template-columns: 1fr;
  }
  .proj-specs-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #projectModal .modal-container {
    max-width: 100%;
    border-radius: 16px;
  }
  .proj-pkg-quick-pills,
  .proj-specs-cards-grid {
    grid-template-columns: 1fr;
  }
  .proj-modal-inner {
    padding: 20px 16px;
  }
}

/* ==========================================================================
   B2B Partnership Section
   ========================================================================== */
.b2b-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.b2b-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.b2b-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-hover);
}

.b2b-card.is-accent-card {
  background: linear-gradient(145deg, var(--primary-dark), var(--footer-bg));
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.b2b-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.b2b-card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: var(--shadow-sm);
}

.b2b-card.is-accent-card .b2b-card-icon-wrap {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.b2b-card-num {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: rgba(var(--primary-rgb), 0.22);
}

.b2b-card.is-accent-card .b2b-card-num {
  color: rgba(255, 255, 255, 0.22);
}

.b2b-card-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.b2b-card.is-accent-card .b2b-card-title {
  color: #ffffff;
}

.b2b-card-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.b2b-card.is-accent-card .b2b-card-desc {
  color: rgba(255, 255, 255, 0.8);
}

.b2b-card-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.b2b-card.is-accent-card .b2b-card-badge {
  background: rgba(255, 255, 255, 0.14);
  color: var(--hero-accent);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.b2b-partner-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--footer-bg) 100%);
  border-radius: 24px;
  padding: 36px 42px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-lg);
}

.b2b-banner-left {
  max-width: 720px;
}

.b2b-banner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.b2b-banner-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--hero-accent);
}

.b2b-banner-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #ffffff;
}

.b2b-banner-text {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.b2b-banner-action {
  flex-shrink: 0;
}

.b2b-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 800;
  padding: 16px 30px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.b2b-cta-btn:hover {
  background: var(--hero-accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

@media (max-width: 960px) {
  .b2b-grid {
    grid-template-columns: 1fr;
  }
  .b2b-partner-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
  .b2b-cta-btn {
    width: 100%;
    justify-content: center;
  }
}




