/* ==========================================================================
   Невский Каркас — Global Master Stylesheet (Zero Framework, Pure CSS)
   ========================================================================== */

:root {
  /* Brand Palette */
  --color-primary: #404040;
  --color-graphite: #404040;
  --color-dark-bg: #404040;
  --color-dark-surface: #404040;
  --color-red: #9B2226;
  --color-red-hover: #7D1A1E;
  --color-red-light: #FDE8E8;
  --color-surface: #F9F9FA;
  --color-surface-card: #FFFFFF;
  --color-surface-subtle: #F3F4F6;
  --color-surface-high: #EAEBED;
  --color-text-main: #404040;
  --color-text-muted: #5A5F63;
  --color-text-light: #90969C;
  --color-text-white: #FFFFFF;
  --color-border: #E2E4E8;
  --color-border-dark: #404040;
  
  /* Typography */
  --font-main: 'Google Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Layout & Geometry */
  --container-width: 1280px;
  --header-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-surface);
  color: var(--color-text-main);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography & Badges */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-red);
  background-color: var(--color-red-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-badge.light {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.section-title {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 680px;
}

.text-center {
  text-align: center;
}

.section-intro {
  margin-bottom: 48px;
}
.section-intro .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-red);
  color: #FFFFFF;
  border-color: var(--color-red);
}
.btn-primary:hover {
  background-color: var(--color-red-hover);
  border-color: var(--color-red-hover);
  box-shadow: 0 4px 12px rgba(155, 34, 38, 0.25);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-outline:hover {
  background-color: var(--color-surface-subtle);
  border-color: var(--color-primary);
}

.btn-white {
  background-color: #FFFFFF;
  color: var(--color-primary);
}
.btn-white:hover {
  background-color: #F0F0F0;
}

.btn-ghost {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
}

.btn-ghost-white {
  background-color: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.btn-outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline-white:hover {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-topline {
  background-color: var(--color-dark-bg);
  color: var(--color-text-light);
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-topline-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topline-left, .topline-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.region-badge, .work-time, .topline-link, .topline-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topline-link:hover, .topline-phone:hover {
  color: #FFFFFF;
}

.topline-phone {
  color: #FFFFFF;
  font-weight: 600;
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-image {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-navigation a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 8px 0;
}

.main-navigation a:hover,
.main-navigation a.active {
  color: var(--color-primary);
}

.main-navigation a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-red);
}

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

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer.open {
  visibility: visible;
  opacity: 1;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background-color: #FFFFFF;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.drawer-logo {
  height: 36px;
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
}

.drawer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-nav a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-main);
  display: block;
}

.drawer-nav a.active {
  color: var(--color-red);
  font-weight: 700;
}

.drawer-contacts {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.drawer-phone {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.drawer-info {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 820px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}

.tag-dot {
  width: 8px;
  height: 8px;
  background-color: #FF5A5F;
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-size: 3.25rem;
  color: #FFFFFF;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

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

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-features-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.feature-text strong {
  display: block;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.feature-text span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Metrics Section
   ========================================================================== */

.section-metrics {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}

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

.metric-card {
  border-left: 2px solid var(--color-red);
  padding-left: 18px;
}

.metric-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */

.section-projects {
  padding: 96px 0;
  background-color: var(--color-surface);
}

.projects-filter-nav {
  display: flex;
  background-color: var(--color-surface-subtle);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background-color: #FFFFFF;
  color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
  background-color: var(--color-graphite);
  color: #FFFFFF;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-visual {
  position: relative;
  height: 240px;
  background-color: var(--color-surface-subtle);
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(23, 24, 24, 0.85);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.card-overlay-actions {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover .card-overlay-actions {
  opacity: 1;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.35rem;
}

.card-area {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.card-specs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-main);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.card-specs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-specs-list svg {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.card-prices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.price-box {
  background-color: var(--color-surface-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.price-box.highlighted {
  background-color: #FFF5F5;
  border-color: #F8D7DA;
}

.price-type {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.price-val {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-mono);
}

.price-box.highlighted .price-val {
  color: var(--color-red);
}

.card-footer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.projects-bottom-cta {
  margin-top: 56px;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.projects-bottom-cta p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ==========================================================================
   Calculator Section
   ========================================================================== */

.section-calculator {
  padding: 96px 0;
  background-color: #FFFFFF;
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: flex-start;
}

.calc-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.c-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.c-benefit-icon {
  width: 28px;
  height: 28px;
  background-color: var(--color-red-light);
  color: var(--color-red);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.c-benefit strong {
  display: block;
  font-size: 1rem;
  color: var(--color-primary);
}

.c-benefit span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.quiz-form {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.quiz-progress-bar {
  height: 4px;
  background-color: var(--color-surface-high);
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background-color: var(--color-red);
  transition: width 0.3s ease;
}

.quiz-step-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.quiz-step-title {
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.quiz-final-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.quiz-radio-card {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quiz-radio-card:hover {
  border-color: var(--color-graphite);
}

.quiz-radio-card input {
  margin-right: 14px;
  accent-color: var(--color-red);
  width: 18px;
  height: 18px;
}

.quiz-radio-card:has(input:checked) {
  border-color: var(--color-red);
  background-color: #FFFDFD;
  box-shadow: 0 0 0 1px var(--color-red);
}

.radio-card-content {
  display: flex;
  flex-direction: column;
}

.radio-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
}

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

.quiz-nav-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.form-group-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.input-wrap label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(155, 34, 38, 0.1);
}

.form-privacy-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 14px;
  line-height: 1.4;
}

.form-privacy-note a {
  color: var(--color-text-main);
  text-decoration: underline;
}

/* ==========================================================================
   Packages Comparison Section
   ========================================================================== */

.section-packages {
  padding: 96px 0;
  background-color: var(--color-surface);
}

.packages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.package-card {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.package-card.featured {
  border-color: var(--color-red);
  box-shadow: var(--shadow-card);
}

.package-badge-top {
  position: absolute;
  top: -13px;
  right: 32px;
  background-color: var(--color-red);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.package-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.package-title {
  font-size: 1.85rem;
  margin-bottom: 12px;
}

.package-summary {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.package-body {
  flex-grow: 1;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  margin-bottom: 32px;
}

.package-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.package-features-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.package-features-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: -2px;
  font-size: 1.3rem;
  color: var(--color-red);
}

.options-strip {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
}

.options-strip-title {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.options-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-pill {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Technology Section
   ========================================================================== */

.section-technology {
  padding: 96px 0;
  background-color: #FFFFFF;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tech-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition-fast);
}

.tech-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-graphite);
}

.tech-icon-box {
  width: 48px;
  height: 48px;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-red);
  margin-bottom: 20px;
}

.tech-card-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.tech-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Workflow Section
   ========================================================================== */

.section-workflow {
  padding: 96px 0;
  background-color: var(--color-surface);
}

.workflow-steps-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.wf-step-item {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.wf-step-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
  margin-bottom: 16px;
}

.wf-step-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.wf-step-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.wf-step-time {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background-color: var(--color-surface-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-weight: 500;
}

/* ==========================================================================
   Custom Banner Section
   ========================================================================== */

.section-custom-banner {
  padding: 48px 0;
}

.custom-banner-card {
  background-color: var(--color-dark-bg);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at right top, rgba(155, 34, 38, 0.35) 0%, transparent 60%);
}

.custom-banner-content {
  max-width: 720px;
}

.custom-banner-title {
  font-size: 2.25rem;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.custom-banner-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  line-height: 1.6;
}

.custom-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.section-about {
  padding: 96px 0;
  background-color: #FFFFFF;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: rgba(23, 24, 24, 0.9);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
}

.exp-number {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-red);
  line-height: 1;
}

.exp-text {
  font-size: 0.8rem;
  line-height: 1.3;
}

.about-paragraph {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

.about-guarantees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.about-g-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 18px;
  border-radius: var(--radius-md);
}

.g-card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.g-card-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.section-faq {
  padding: 96px 0;
  background-color: var(--color-surface);
}

.faq-accordion-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-red);
}

.faq-icon {
  font-size: 1.5rem;
  line-height: 1;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-red);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 240px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Lead Form Section
   ========================================================================== */

.section-leadform {
  padding: 96px 0;
  background-color: #FFFFFF;
}

.leadform-box {
  background-color: var(--color-dark-bg);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding: 64px;
  color: #FFFFFF;
  background-image: radial-gradient(circle at left bottom, rgba(155, 34, 38, 0.25) 0%, transparent 60%);
}

.leadform-title {
  font-size: 2.25rem;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.leadform-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  line-height: 1.6;
}

.leadform-contacts-direct {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}

.c-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 2px;
}

.c-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.c-val-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.leadform-form-wrapper {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--color-text-main);
}

.form-inner-title {
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 80px 0 40px;
  border-top: 1px solid var(--color-border-dark);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-logo-img {
  height: 38px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.f-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: #FFFFFF;
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links-list a {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.footer-links-list a:hover {
  color: #FFFFFF;
}

.footer-contact-item {
  margin-bottom: 14px;
}

.f-contact-label {
  display: block;
  font-size: 0.75rem;
  color: #888;
}

.f-contact-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.f-contact-val-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.footer-action-wrap {
  margin-top: 20px;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  font-size: 0.8rem;
}

.footer-disclaimer {
  max-width: 540px;
  color: #777;
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */

.modal-dialog-wrapper {
  position: fixed;
  top: var(--modal-viewport-top, 0px);
  left: var(--modal-viewport-left, 0px);
  width: var(--modal-viewport-width, 100%);
  height: var(--modal-viewport-height, 100vh);
  height: var(--modal-viewport-height, 100dvh);
  box-sizing: border-box;
  padding: 16px;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-dialog-wrapper.open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop-layer {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.modal-dialog-box {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-elevated);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 36px;
}

.modal-inner-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-dialog-wrapper.open .modal-dialog-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* Webform blocks are rendered inside the visual modal shell. */
.modal-inner-content > .region,
.modal-inner-content .block-webform {
  display: contents;
}

.modal-webform .form-actions {
  margin: 0;
}

.modal-webform .form-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid var(--color-red);
  border-radius: var(--radius-md);
  background: var(--color-red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.modal-webform .form-actions .button:hover,
.modal-webform .form-actions .button:focus-visible {
  border-color: var(--color-red-hover);
  background: var(--color-red-hover);
}

.modal-webform .form-actions .button:active {
  transform: translateY(1px);
}

.modal-webform .form-actions .button[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.modal-webform .form-privacy-note {
  margin: 14px 0 0;
}

.modal-webform .webform-confirmation {
  padding: 16px;
  border-radius: var(--radius-md);
  background: #eef8f0;
  color: #174f2a;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-primary);
  color: #FFFFFF;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 4000;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 32px;
  height: 32px;
  background-color: #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.toast-text strong {
  display: block;
  font-size: 0.95rem;
}

.toast-text span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2500;
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-top: 1px solid var(--color-border-dark);
  padding: 16px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: none;
}

.cookie-banner.active {
  display: block;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text {
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-text a {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .main-navigation {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-steps-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .leadform-box {
    grid-template-columns: 1fr;
    padding: 40px 32px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-topline {
    display: none;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .packages-grid {
    grid-template-columns: 1fr;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .workflow-steps-timeline {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .about-guarantees-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .projects-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .custom-banner-card {
    padding: 40px 24px;
  }
  .custom-banner-title {
    font-size: 1.75rem;
  }
}

/* Visual editor additions: source CSS above is preserved. */
@media (max-width: 1440px) {
  #ikok8 {
    width: 147px;
    height: 58px;
  }
}

#ikok8 {
  width: 147px;
  height: 58px;
}

/*start_css_for_header*/
#header {
  position: sticky;
  top: 0;
  z-index: 400;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

/* Keep Drupal's administration toolbar above the sticky public header. */
body.toolbar-fixed #header {
  top: var(--drupal-displace-offset-top, 39px);
}

/* Keep menu section links visible below the sticky header. */
#main-content :is(#engineering-works, #earthworks, #fences-and-gates, #faq) {
  scroll-margin-top: 132px;
}
body.toolbar-fixed #main-content :is(#engineering-works, #earthworks, #fences-and-gates, #faq) {
  scroll-margin-top: calc(132px + var(--drupal-displace-offset-top, 39px));
}
@media (max-width: 900px) {
  #main-content :is(#engineering-works, #earthworks, #fences-and-gates, #faq) {
    scroll-margin-top: 78px;
  }
  body.toolbar-fixed #main-content :is(#engineering-works, #earthworks, #fences-and-gates, #faq) {
    scroll-margin-top: calc(78px + var(--drupal-displace-offset-top, 39px));
  }
}

body.toolbar-fixed #toolbar-administration {
  position: relative;
  z-index: 5000;
}

#header .header-topline {
  background-color: #404040;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#header .header-topline-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

#header .topline-left,
#header .topline-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Align phone and email anchors with the messenger buttons, not the paragraph baseline. */
#header .topline-right p {
  display: flex;
  align-items: center;
}

#header .region-badge,
#header .work-time,
#header .topline-link,
#header .topline-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  line-height: 1.2;
  transition: color 0.2s ease;
}

#header .region-badge svg,
#header .work-time svg,
#header .topline-link svg,
#header .topline-phone svg {
  color: #9b2226;
  flex-shrink: 0;
}

#header .topline-link:hover {
  color: #ffffff;
}

#header .topline-messengers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#header .messenger-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

#header .messenger-link:hover {
  transform: translateY(-1px) scale(1.1);
  opacity: 0.95;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

#header .messenger-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

#header .topline-phone {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

#header .topline-phone:hover {
  color: #e5383b;
}

#header .header-main {
  background-color: #ffffff;
  position: relative;
}

#header .header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

#header .brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

#header .brand-logo:hover {
  opacity: 0.9;
}

#header .logo-image {
  height: 48px;
  width: auto;
  object-fit: contain;
}

#header .main-navigation {
  display: block;
  height: 100%;
}

#header .nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

#header .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

#header .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2b2d42;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

#header .dropdown-icon {
  transition: transform 0.25s ease;
  color: #8d99ae;
  flex-shrink: 0;
}

#header .nav-item:hover > .nav-link .dropdown-icon {
  transform: rotate(180deg);
  color: #9b2226;
}

#header .nav-link::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #9b2226;
  transition: width 0.25s ease;
}

#header .nav-link:hover,
#header .nav-link.active {
  color: #9b2226;
}

#header .nav-link:hover::after,
#header .nav-link.active::after {
  width: 100%;
}

#header .dropdown-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  min-width: 290px;
  background-color: #ffffff;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
}

#header .has-dropdown:hover > .dropdown-menu,
#header .has-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#header .dropdown-menu li {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

#header .dropdown-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #4a4e69;
  line-height: 1.4;
  white-space: nowrap;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

#header .dropdown-link:hover {
  background-color: #f8f9fa;
  color: #9b2226;
  padding-left: 24px;
}

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

#header .header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 9px 18px;
  border-radius: 6px;
  background-color: #9b2226;
  color: #ffffff;
  border: 1px solid #9b2226;
  box-shadow: 0 4px 12px rgba(155, 34, 38, 0.18);
  transition: all 0.25s ease;
  white-space: nowrap;
}

#header .header-cta-btn:hover {
  background-color: #b72f33;
  border-color: #b72f33;
  box-shadow: 0 6px 16px rgba(155, 34, 38, 0.28);
  transform: translateY(-1px);
}

#header .mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

#header .mobile-menu-toggle:hover {
  background-color: #f1f3f5;
}

#header .mobile-menu-toggle .bar {
  width: 22px;
  height: 2px;
  background-color: #1a1c23;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  display: block;
}

@media (max-width: 1100px) {
  #header .nav-list {
    gap: 18px;
  }

  #header .nav-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  #header .header-topline {
    display: none;
  }

  #header .main-navigation {
    display: none;
  }

  #header .mobile-menu-toggle {
    display: flex;
  }

  #header .header-main-inner {
    height: 68px;
  }

  #header .logo-image {
    height: 42px;
  }
}

@media (max-width: 480px) {
  #header .header-main-inner {
    height: 62px;
  }

  #header .logo-image {
    height: 38px;
  }

  #header .header-cta-btn {
    display: none;
  }
}
/*end_css_for_header*/

#header .header-mobile-messengers {
  display: none;
}

@media (max-width: 900px) {
  #header .header-main-inner {
    gap: 6px;
  }

  #header .header-mobile-messengers {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex: 0 0 auto;
  }

  #header .mobile-messenger-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
  }

  #header .mobile-messenger-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/*start_css_for_i7xpb*/
#i7xpb {
  position: relative;
  background-color: #404040;
  background-image: linear-gradient(180deg, rgba(64, 64, 64, 0.76) 0%, rgba(45, 45, 45, 0.90) 100%), url('../images/nevsky/section-ai-i7xpb-1-a3c0e34e.png');
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  padding: 120px 0 90px;
  overflow: hidden;
}

#i7xpb .hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

#i7xpb .hero-content {
  max-width: 1140px;
  width: 100%;
}

#i7xpb .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#i7xpb .tag-dot {
  width: 8px;
  height: 8px;
  background-color: #FF5A5F;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #FF5A5F;
}

#i7xpb .hero-title {
  font-size: 3.25rem;
  color: #FFFFFF;
  line-height: 1.18;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

#i7xpb .hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 960px;
}

#i7xpb .hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

#i7xpb .hero-cta-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

#i7xpb .hero-cta-group .btn-primary {
  background-color: #9b2226;
  color: #FFFFFF;
  border: 1px solid #9b2226;
}

#i7xpb .hero-cta-group .btn-primary:hover {
  background-color: #b72f33;
  border-color: #b72f33;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 34, 38, 0.4);
}

#i7xpb .hero-cta-group .btn-ghost {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

#i7xpb .hero-cta-group .btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

#i7xpb .hero-features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
}

#i7xpb .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

#i7xpb .feature-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF5A5F;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

#i7xpb .feature-item:hover .feature-icon {
  background-color: #FF5A5F;
  color: #FFFFFF;
  border-color: #FF5A5F;
  transform: scale(1.05);
}

#i7xpb .feature-text strong {
  display: block;
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 4px;
  font-weight: 600;
}

#i7xpb .feature-text span {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  #i7xpb .hero-title {
    font-size: 2.85rem;
  }

  #i7xpb .hero-features-strip {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  #i7xpb {
    padding: 100px 0 70px;
  }

  #i7xpb .hero-title {
    font-size: 2.4rem;
  }

  #i7xpb .hero-features-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-top: 32px;
  }
}

@media (max-width: 480px) {
  #i7xpb {
    padding: 80px 0 60px;
  }

  #i7xpb .hero-title {
    font-size: 2rem;
  }

  #i7xpb .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  #i7xpb .hero-cta-group {
    flex-direction: column;
    width: 100%;
    margin-bottom: 36px;
  }

  #i7xpb .hero-cta-group .btn {
    width: 100%;
  }

  #i7xpb .hero-features-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
/*end_css_for_i7xpb*/

/*start_css_for_i7ay8c*/
#i7ay8c {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border, #E5E7EB);
  padding: 40px 0;
}

#i7ay8c .container {
  width: 100%;
  max-width: var(--container-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

#i7ay8c .metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

#i7ay8c .metric-card {
  border-left: 2px solid var(--color-red, #E63946);
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#i7ay8c .metric-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary, #1D3557);
  line-height: 1.15;
  font-family: var(--font-mono, monospace);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

#i7ay8c .metric-label {
  font-size: 0.9rem;
  color: var(--color-text-muted, #64748B);
  line-height: 1.45;
}

@media (max-width: 991px) {
  #i7ay8c .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
    column-gap: 20px;
  }
}

@media (max-width: 575px) {
  #i7ay8c {
    padding: 32px 0;
  }

  #i7ay8c .metrics-grid {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  #i7ay8c .metric-num {
    font-size: 1.95rem;
  }
}
/*end_css_for_i7ay8c*/

/* View of standalone package nodes plus an editable heading block. */
.fixed-estimate.nevsky-region {
  position: relative;
  padding: 72px 0;
  background-color: #f8fafc;
  color: #404040;
  font-family: inherit;
}

.fixed-estimate .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Секция: Заголовок */
.fixed-estimate .section-intro {
  margin-bottom: 44px;
  text-align: center;
}

.fixed-estimate .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9b2226;
  background-color: #fdf2f2;
  border: 1px solid #f8d7da;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.fixed-estimate .section-badge svg {
  flex-shrink: 0;
  color: #9b2226;
}

.fixed-estimate .section-title {
  font-size: 2.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.25;
}

.fixed-estimate .section-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Сетка карточек */
.fixed-estimate .packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  margin-bottom: 0;
}

/* Базовый стиль карточки */
.fixed-estimate .package-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fixed-estimate .package-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* Keep feature-list headings aligned even when editors change card summaries. */
@media (min-width: 992px) {
  .fixed-estimate .package-card-header {
    min-height: 180px;
  }
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 992px) {
    .fixed-estimate .packages-grid {
      grid-template-rows: auto 1fr auto;
    }

    .fixed-estimate .package-card {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
    }

    .fixed-estimate .package-card-header {
      min-height: 0;
    }
  }
}

/* Выделенная карточка */
.fixed-estimate .package-card.featured {
  border: 1.5px solid #9b2226;
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(155, 34, 38, 0.06);
}

.fixed-estimate .package-card.featured:hover {
  border-color: #801b1e;
  box-shadow: 0 6px 20px rgba(155, 34, 38, 0.1);
}

.fixed-estimate .package-badge-top {
  position: absolute;
  top: -12px;
  right: 28px;
  background-color: #9b2226;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 9999px;
  border: none;
}

/* Мета-информация */
.fixed-estimate .package-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.fixed-estimate .package-category-pill {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 3px 10px;
  border-radius: 6px;
}

.fixed-estimate .package-category-pill.featured {
  color: #9b2226;
  background-color: #fdf2f2;
}

.fixed-estimate .package-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
}

.fixed-estimate .package-time-badge.featured {
  color: #9b2226;
  font-weight: 600;
}

.fixed-estimate .package-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.25;
}

.fixed-estimate .package-title a {
  color: inherit;
  text-decoration: none;
}

.fixed-estimate .package-title a:hover {
  color: #9b2226;
}

.fixed-estimate .package-title a:focus-visible {
  outline: 2px solid #9b2226;
  outline-offset: 3px;
  border-radius: 2px;
}

.fixed-estimate .package-summary {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Тело карточки и список */
.fixed-estimate .package-body {
  flex-grow: 1;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
  margin-bottom: 24px;
}

.fixed-estimate .package-specs-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 14px;
}

.fixed-estimate .package-specs-title.featured {
  color: #9b2226;
}

.fixed-estimate .package-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
}

/* Сброс глобальных точек перед галочками */
.fixed-estimate .package-features-list li {
  position: static !important;
  padding-left: 0 !important;
  font-size: inherit;
  line-height: inherit;
}

.fixed-estimate .package-features-list li::before {
  content: none !important;
  display: none !important;
}

.fixed-estimate .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.fixed-estimate .feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.fixed-estimate .feature-icon.basic {
  background-color: #f1f5f9;
  color: #475569;
}

.fixed-estimate .feature-icon.turnkey {
  background-color: #fdf2f2;
  color: #9b2226;
}

.fixed-estimate .feature-content {
  flex: 1;
}

.fixed-estimate .feature-content strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1px;
}

.fixed-estimate .feature-content span {
  display: block;
  color: #64748b;
  font-size: 0.83rem;
  line-height: 1.4;
}

/* Итоговые плашки */
.fixed-estimate .package-outcome {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.fixed-estimate .outcome-basic {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.fixed-estimate .outcome-basic .outcome-icon {
  color: #64748b;
  flex-shrink: 0;
  margin-top: 1px;
}

.fixed-estimate .outcome-turnkey {
  background-color: #fcf6f6;
  border: 1px solid #f5dcdc;
  color: #475569;
}

.fixed-estimate .outcome-turnkey .outcome-icon {
  color: #9b2226;
  flex-shrink: 0;
  margin-top: 1px;
}

.fixed-estimate .outcome-text strong {
  color: #0f172a;
  font-weight: 600;
}

/* Кнопки */
.fixed-estimate .package-footer {
  margin-top: auto;
}

.fixed-estimate .package-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  box-sizing: border-box;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fixed-estimate .package-btn-icon {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.fixed-estimate .package-btn:hover .package-btn-icon {
  transform: translateX(3px);
}

.fixed-estimate .package-btn-warm {
  background-color: #404040;
  color: #ffffff;
  border-color: #0f172a;
}

.fixed-estimate .package-btn-warm:hover {
  background-color: #1e293b;
  border-color: #1e293b;
}

.fixed-estimate .package-btn-primary {
  background-color: #9b2226;
  color: #ffffff;
  border-color: #9b2226;
}

.fixed-estimate .package-btn-primary:hover {
  background-color: #801b1e;
  border-color: #801b1e;
}

/* Адаптивность */
@media (max-width: 991px) {
  .fixed-estimate.nevsky-region {
    padding: 56px 0;
  }

  .fixed-estimate .packages-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fixed-estimate .section-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 640px) {
  .fixed-estimate.nevsky-region {
    padding: 44px 0;
  }

  .fixed-estimate .section-intro {
    margin-bottom: 32px;
  }

  .fixed-estimate .section-title {
    font-size: 1.55rem;
  }

  .fixed-estimate .section-subtitle {
    font-size: 0.95rem;
  }

  .fixed-estimate .package-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .fixed-estimate .package-badge-top {
    top: -10px;
    right: 18px;
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .fixed-estimate .package-title {
    font-size: 1.45rem;
  }

  .fixed-estimate .package-btn {
    padding: 13px 16px;
    font-size: 0.9rem;
  }
}
/* End of structured estimate styles. */

/* Individual package pages retain their own structured content and CTA. */
.construction-package-full {
  max-width: 900px;
  margin-inline: auto;
  padding: 12px 0 48px;
}
.construction-package-full .section-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fdf2f2;
  color: #9b2226;
  font-weight: 700;
}
.construction-package-full__summary {
  max-width: 780px;
  margin: 0 0 28px;
  font-size: 1.1rem;
  line-height: 1.6;
}
.construction-package-full__detail { margin-bottom: 28px; line-height: 1.7; }
.construction-package-full h2 { margin-bottom: 24px; font-size: 1.5rem; }
.construction-package-full .package-features-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}
.construction-package-full .package-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  font-size: 1rem;
}
.construction-package-full .package-features-list li::before { content: none; }
.construction-package-full .feature-icon {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fdf2f2;
  color: #9b2226;
  font-weight: 700;
}
.construction-package-full .feature-content strong,
.construction-package-full .feature-content span { display: block; }
.construction-package-full .feature-content span { color: #64748b; font-size: .9rem; line-height: 1.5; }
@media (max-width: 640px) {
  .construction-package-full .package-features-list { grid-template-columns: 1fr; }
}

/*start_css_for_projects*/
#projects {
  padding: 80px 0 96px;
  background-color: #f7f7f8;
  position: relative;
}

#projects .container {
  width: 100%;
  max-width: var(--container-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

#projects .projects-header-wrapper {
  display: block;
  width: 100%;
  margin-bottom: 36px;
}

#projects .projects-header-info {
  width: 100%;
  max-width: 100%;
}

#projects .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #404040;
  background-color: rgba(64, 64, 64, 0.08);
  border: 1px solid rgba(64, 64, 64, 0.2);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

#projects .section-badge svg {
  color: #404040;
  flex-shrink: 0;
}

#projects .section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #1f2022;
  line-height: 1.2;
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
}

#projects .section-subtitle {
  font-size: 1.05rem;
  color: #55585c;
  line-height: 1.6;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

#projects .projects-categories-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

#projects .category-nav-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e4e8;
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(64, 64, 64, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

#projects .category-nav-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: transparent;
  transition: background-color 0.25s ease;
}

#projects .category-nav-card:hover {
  transform: translateY(-4px);
  border-color: #b8bcc2;
  box-shadow: 0 12px 24px rgba(64, 64, 64, 0.1);
  background-color: #ffffff;
}

#projects .category-nav-card.active {
  border-color: rgba(64, 64, 64, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
}

#projects .category-nav-card.active::before,
#projects .category-nav-card:hover::before {
  background-color: #404040;
}

#projects .cat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #eeeeef;
  color: #404040;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

#projects .category-nav-card.active .cat-card-icon,
#projects .category-nav-card:hover .cat-card-icon {
  background-color: #404040;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(64, 64, 64, 0.28);
}

#projects .cat-card-content {
  flex-grow: 1;
  min-width: 0;
}

#projects .cat-card-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #242528;
  line-height: 1.3;
  margin-bottom: 2px;
  transition: color 0.2s ease;
}

#projects .category-nav-card:hover .cat-card-title {
  color: #404040;
}

#projects .cat-card-desc {
  display: block;
  font-size: 0.8rem;
  color: #6a6e73;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#projects .cat-card-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

#projects .cat-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  background-color: #eeeeef;
  color: #404040;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

#projects .category-nav-card.active .cat-badge {
  background-color: rgba(64, 64, 64, 0.12);
  color: #2b2b2b;
}

#projects .cat-arrow {
  color: #9da1a7;
  transition: transform 0.25s ease, color 0.25s ease;
}

#projects .category-nav-card:hover .cat-arrow {
  color: #404040;
  transform: translateX(4px);
}

#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

#projects .project-card {
  background-color: #ffffff;
  border: 1px solid #e2e4e8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(64, 64, 64, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

#projects .project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(64, 64, 64, 0.14);
  border-color: #b8bcc2;
}

#projects .card-visual {
  position: relative;
  height: 250px;
  background-color: #2a2a2b;
  overflow: hidden;
}

#projects .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

#projects .card-badges-group {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  z-index: 4;
  pointer-events: none;
}

#projects .card-badge {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  box-sizing: border-box;
  white-space: nowrap;
}

#projects .card-badge.badge-dark {
  background-color: rgba(40, 40, 40, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

#projects .card-overlay-actions {
  position: absolute;
  inset: 0;
  background-color: rgba(35, 35, 35, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}

#projects .project-card:hover .card-overlay-actions {
  opacity: 1;
}

#projects .card-overlay-actions .btn {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 6px;
  background-color: #ffffff;
  color: #2b2b2b;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

#projects .card-overlay-actions .btn:hover {
  background-color: #f1f2f4;
  color: #1a1a1a;
}

#projects .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#projects .card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 12px;
}

#projects .card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #242528;
  margin: 0;
  line-height: 1.25;
}

#projects .card-area {
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  font-size: 1.05rem;
  color: #404040;
  white-space: nowrap;
}

#projects .card-desc {
  font-size: 0.88rem;
  color: #62666c;
  margin-bottom: 16px;
  line-height: 1.5;
  min-height: 42px;
}

#projects .card-specs-list {
  list-style: none;
  padding: 12px 0 0;
  margin: 0 0 16px 0;
  border-top: 1px solid #ebecee;
  display: flex;
  align-items: center;
}

#projects .card-specs-list li {
  font-size: 0.88rem;
  font-weight: 600;
  color: #3b3d42;
  line-height: 1.4;
  position: relative;
  padding-left: 14px;
}

#projects .card-specs-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  color: #404040;
  font-weight: 800;
  font-size: 1.05rem;
}

#projects .card-prices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

#projects .price-box {
  background-color: #f7f7f9;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e1e3e7;
}

#projects .price-box.highlighted {
  background-color: #eeeeef;
  border-color: #cfd2d6;
}

#projects .price-type {
  display: block;
  font-size: 0.7rem;
  color: #6e7278;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

#projects .price-val {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: #242528;
  font-family: var(--font-mono, monospace);
  line-height: 1.2;
}

#projects .price-box.highlighted .price-val {
  color: #404040;
}

#projects .card-footer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

#projects .card-footer-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

#projects .card-footer-buttons .btn-primary {
  background-color: #404040;
  border-color: #404040;
  color: #ffffff;
}

#projects .card-footer-buttons .btn-primary:hover {
  background-color: #282828;
  border-color: #282828;
  box-shadow: 0 4px 12px rgba(64, 64, 64, 0.25);
}

#projects .card-footer-buttons .btn-outline {
  border-color: #cbd0d8;
  color: #404040;
  background: transparent;
}

#projects .card-footer-buttons .btn-outline:hover {
  background-color: #eeeeef;
  color: #1f2022;
  border-color: #a4aab4;
}

#projects .projects-bottom-banner {
  margin-top: 56px;
  background: linear-gradient(135deg, #404040 0%, #292929 100%);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(40, 40, 40, 0.22);
}

#projects .banner-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

#projects .banner-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#projects .banner-text h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

#projects .banner-text p {
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.5;
  margin: 0;
  max-width: 100%;
}

#projects .banner-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  min-width: 280px;
}

#projects .banner-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  font-size: 0.95rem;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  box-sizing: border-box;
}

#projects .banner-actions .btn-primary {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #404040;
}

#projects .banner-actions .btn-primary:hover {
  background-color: #f1f2f4;
  border-color: #f1f2f4;
  color: #1f2022;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#projects .banner-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

#projects .banner-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
}

@media (max-width: 992px) {
  #projects .projects-categories-nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #projects .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  #projects .projects-bottom-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
  }

  #projects .banner-actions {
    width: 100%;
    flex-direction: row;
  }

  #projects .banner-actions .btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  #projects {
    padding: 60px 0;
  }

  #projects .section-title {
    font-size: 1.85rem;
  }

  #projects .category-nav-card {
    padding: 14px 16px;
    gap: 12px;
  }

  #projects .cat-card-icon {
    width: 42px;
    height: 42px;
  }

  #projects .cat-card-title {
    font-size: 0.98rem;
  }

  #projects .cat-card-desc {
    font-size: 0.76rem;
  }

  #projects .cat-card-action {
    display: none;
  }

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

  #projects .banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  #projects .banner-actions {
    flex-direction: column;
    width: 100%;
  }

  #projects .banner-actions .btn {
    width: 100%;
  }
}
/*end_css_for_projects*/

/*start_css_for_custom-design*/
#custom-design {
  padding: 48px 0;
  position: relative;
}

#custom-design .container {
  width: 100%;
  max-width: var(--container-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

#custom-design .custom-design-wrap {
  position: relative;
  border-radius: var(--radius-xl, 24px);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: #404040;
}

#custom-design .custom-design-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#custom-design .custom-design-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s ease;
}

#custom-design .custom-design-wrap:hover .custom-design-bg-img {
  transform: scale(1.05);
}

#custom-design .custom-design-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(64, 64, 64, 0.98) 0%,
    rgba(64, 64, 64, 0.94) 42%,
    rgba(64, 64, 64, 0.72) 70%,
    rgba(64, 64, 64, 0.45) 100%
  );
  backdrop-filter: blur(1px);
}

#custom-design .custom-design-content {
  position: relative;
  z-index: 2;
  padding: 64px 56px;
  max-width: 820px;
  box-sizing: border-box;
}

#custom-design .custom-design-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

#custom-design .custom-badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: linear-gradient(135deg, #9b2226 0%, #b72f33 100%);
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(155, 34, 38, 0.4);
}

#custom-design .custom-badge-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f1f5f9;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

#custom-design .custom-design-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

#custom-design .custom-design-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
  max-width: 680px;
}

#custom-design .custom-design-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

#custom-design .custom-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 14px;
  border-radius: var(--radius-md, 12px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

#custom-design .custom-feature-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

#custom-design .custom-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(155, 34, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

#custom-design .custom-feature-body {
  display: flex;
  flex-direction: column;
}

#custom-design .custom-feature-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.3;
}

#custom-design .custom-feature-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  line-height: 1.4;
}

#custom-design .custom-design-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

#custom-design .custom-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 32px;
  border-radius: var(--radius-md, 10px);
  background-color: #ffffff;
  color: #404040;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

#custom-design .custom-action-btn:hover {
  background-color: #f8fafc;
  color: #9b2226;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

#custom-design .custom-action-btn svg {
  transition: transform 0.2s ease;
}

#custom-design .custom-action-btn:hover svg {
  transform: translateX(4px);
}

#custom-design .custom-design-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

#custom-design .custom-hint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  flex-shrink: 0;
}

#custom-design .custom-design-hint strong {
  color: #ffffff;
}

@media (max-width: 991px) {
  #custom-design .custom-design-content {
    max-width: 100%;
    padding: 48px 36px;
  }

  #custom-design .custom-design-overlay {
    background: linear-gradient(
      135deg,
      rgba(64, 64, 64, 0.97) 0%,
      rgba(64, 64, 64, 0.9) 60%,
      rgba(64, 64, 64, 0.72) 100%
    );
  }

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

@media (max-width: 767px) {
  #custom-design {
    padding: 32px 0;
  }

  #custom-design .custom-design-content {
    padding: 36px 20px;
  }

  #custom-design .custom-design-title {
    font-size: 1.65rem;
    line-height: 1.3;
  }

  #custom-design .custom-design-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  #custom-design .custom-design-features {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }

  #custom-feature-item {
    padding: 14px;
  }

  #custom-design .custom-feature-item {
    padding: 14px;
  }

  #custom-design .custom-design-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  #custom-design .custom-action-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    font-size: 0.92rem;
  }

  #custom-design .custom-design-hint {
    justify-content: center;
    font-size: 0.82rem;
  }
}
/*end_css_for_custom-design*/

/*start_css_for_idwlcn-add*/
#idwlcn-add {
  padding: 80px 0;
  background-color: var(--color-surface, #f8fafc);
  position: relative;
  box-sizing: border-box;
}

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

#idwlcn-add .container-add {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#idwlcn-add .add-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px;
}

#idwlcn-add .add-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(64, 64, 64, 0.08);
  color: #404040;
  border: 1px solid rgba(64, 64, 64, 0.16);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

#idwlcn-add .add-title {
  font-size: 2rem;
  font-weight: 700;
  color: #404040;
  margin: 0 0 12px;
  line-height: 1.25;
}

#idwlcn-add .add-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted, #64748b);
  line-height: 1.6;
  margin: 0;
}

#idwlcn-add .add-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  align-items: stretch;
}

#idwlcn-add .add-visual-card {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 380px;
}

#idwlcn-add .add-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px -4px rgba(64, 64, 64, 0.16);
  background-color: #2b2b2b;
}

#idwlcn-add .add-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#idwlcn-add .add-image-wrapper:hover .add-image {
  transform: scale(1.03);
}

#idwlcn-add .add-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0) 45%, rgba(30, 30, 30, 0.78) 100%);
  pointer-events: none;
}

#idwlcn-add .add-visual-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

#idwlcn-add .add-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #404040;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#idwlcn-add .add-badge-text strong {
  display: block;
  font-size: 0.92rem;
  color: #1f2937;
  font-weight: 700;
  line-height: 1.3;
}

#idwlcn-add .add-badge-text span {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
  margin-top: 2px;
}

#idwlcn-add .add-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

#idwlcn-add .add-card {
  background: #ffffff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(64, 64, 64, 0.04);
}

#idwlcn-add .add-card:hover {
  transform: translateY(-2px);
  border-color: #404040;
  box-shadow: 0 8px 20px rgba(64, 64, 64, 0.12);
}

#idwlcn-add .add-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(64, 64, 64, 0.08);
  color: #404040;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}

#idwlcn-add .add-card:hover .add-card-icon {
  background: #404040;
  color: #ffffff;
}

#idwlcn-add .add-card-info {
  flex: 1;
}

#idwlcn-add .add-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #262626;
  margin: 0 0 5px;
  line-height: 1.3;
}

#idwlcn-add .add-card-desc {
  font-size: 0.83rem;
  color: var(--color-text-muted, #64748b);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 992px) {
  #idwlcn-add {
    padding: 60px 0;
  }

  #idwlcn-add .add-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #idwlcn-add .add-visual-card {
    min-height: 300px;
    height: 300px;
  }

  #idwlcn-add .add-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 640px) {
  #idwlcn-add {
    padding: 44px 0;
  }

  #idwlcn-add .add-header {
    margin-bottom: 28px;
  }

  #idwlcn-add .add-title {
    font-size: 1.35rem;
  }

  #idwlcn-add .add-subtitle {
    font-size: 0.88rem;
  }

  #idwlcn-add .add-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #idwlcn-add .add-visual-card {
    min-height: 240px;
    height: 240px;
  }

  #idwlcn-add .add-visual-badge {
    bottom: 14px;
    left: 14px;
    right: 14px;
    padding: 10px 14px;
  }

  #idwlcn-add .add-card {
    padding: 16px;
  }
}
/*end_css_for_idwlcn-add*/

/* Visual editor additions: source CSS above is preserved. */
@media (max-width: 1440px) {
  #contacts {
    padding: 60px 0px 60px 0px;
  }
}

#contacts {
  padding: 60px 0px 60px 0px;
}

/*start_css_for_contacts*/
#contacts {
  padding: 80px 0;
  background-color: #ffffff;
}

#contacts .container {
  width: 100%;
  max-width: var(--container-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

#contacts .leadform-box {
  background-color: var(--color-dark-bg, #111827);
  border-radius: var(--radius-xl, 24px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  padding: 56px;
  color: #ffffff;
  background-image: radial-gradient(circle at left bottom, rgba(155, 34, 38, 0.28) 0%, transparent 65%);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
  align-items: center;
  box-sizing: border-box;
}

#contacts .leadform-content {
  display: flex;
  flex-direction: column;
}

#contacts .section-badge.light {
  align-self: flex-start;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

#contacts .leadform-title,
#contacts .leadform-content > h2 {
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 16px 0;
}

#contacts .leadform-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px 0;
  line-height: 1.6;
}

#contacts .leadform-contacts-direct {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}

#contacts .c-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#contacts .c-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

#contacts .c-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

#contacts a.c-val:hover {
  color: #f87171;
}

#contacts .c-val-text {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

#contacts .c-item-messengers {
  margin-top: 4px;
}

#contacts .leadform-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

#contacts .messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

#contacts .messenger-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

#contacts .messenger-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

#contacts .leadform-form-wrapper {
  background-color: #ffffff;
  border-radius: var(--radius-lg, 16px);
  padding: 36px;
  color: #0f172a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

#contacts .form-inner-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px 0;
}

#contacts .form-group {
  margin-bottom: 16px;
}

#contacts .form-group label:not(.agreement-checkbox-label) {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

#contacts .form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #0f172a;
  font-size: 0.95rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#contacts .form-control:focus {
  background-color: #ffffff;
  border-color: #9b2226;
  box-shadow: 0 0 0 3px rgba(155, 34, 38, 0.12);
}

#contacts textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

#contacts .form-group-agreement {
  margin-top: 16px;
  margin-bottom: 22px;
}

#contacts .agreement-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  user-select: none;
}

#contacts .agreement-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background-color: #f8fafc;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all 0.2s ease;
}

#contacts .agreement-checkbox:checked {
  background-color: #9b2226;
  border-color: #9b2226;
}

#contacts .agreement-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#contacts .agreement-checkbox:focus-visible {
  outline: 2px solid #9b2226;
  outline-offset: 2px;
}

#contacts .agreement-text a {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

#contacts .agreement-text a:hover {
  color: #9b2226;
}

#contacts .btn-block {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  #contacts {
    padding: 50px 0;
  }

  #contacts .leadform-box {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 36px 24px;
  }

  #contacts .leadform-title,
  #contacts .leadform-content > h2 {
    font-size: 1.75rem;
  }

  #contacts .leadform-form-wrapper {
    padding: 28px 20px;
  }
}

@media (max-width: 576px) {
  #contacts .leadform-messengers {
    flex-direction: column;
  }

  #contacts .messenger-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}
/*end_css_for_contacts*/

/*start_css_for_footer*/
#footer.site-footer {
  background-color: #404040;
  color: #e5e5e5;
  padding: 70px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: inherit;
}

#footer .footer-container {
  width: 100%;
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

#footer .footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
}

#footer .footer-col-brand {
  display: flex;
  flex-direction: column;
}

#footer .footer-logo-link {
  display: inline-block;
  margin-bottom: 18px;
}

#footer .footer-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

#footer .footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #d1d5db;
  margin: 0 0 22px 0;
}

#footer .footer-messengers-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#footer .footer-messengers-label {
  font-size: 0.8rem;
  color: #b8b8b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono, monospace);
}

#footer .footer-messengers-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

#footer .footer-messenger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.25s ease;
  padding: 7px;
  box-sizing: border-box;
}

#footer .footer-messenger-btn:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

#footer .footer-messenger-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#footer .footer-col-title {
  color: #ffffff;
  font-size: 0.95rem;
  margin: 0 0 20px 0;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

#footer .footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .footer-links-list a {
  font-size: 0.9rem;
  color: #d4d4d4;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

#footer .footer-links-list a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

#footer .footer-contact-item {
  margin-bottom: 14px;
}

#footer .f-contact-label {
  display: block;
  font-size: 0.75rem;
  color: #b8b8b8;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#footer .f-contact-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

#footer .f-contact-val:hover {
  color: #ff6b6b;
}

#footer .f-contact-val-text {
  font-size: 0.88rem;
  color: #d4d4d4;
  line-height: 1.45;
  display: block;
}

#footer .footer-action-wrap {
  margin-top: 20px;
}

#footer .footer-action-wrap .btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

#footer .footer-action-wrap .btn-outline-white:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

#footer .footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
  font-size: 0.82rem;
}

#footer .footer-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 680px;
}

#footer .footer-copyright {
  margin: 0;
  color: #e5e5e5;
  font-weight: 500;
}

#footer .footer-disclaimer {
  margin: 0;
  color: #b8b8b8;
  line-height: 1.45;
  font-size: 0.78rem;
}

#footer .footer-developer-col {
  display: flex;
  align-items: center;
}

#footer .footer-developer-link {
  color: #b8b8b8;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  font-family: var(--font-mono, monospace);
  padding: 4px 0;
  position: relative;
}

#footer .footer-developer-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 992px) {
  #footer .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  #footer.site-footer {
    padding: 50px 0 28px;
  }

  #footer .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }

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

  #footer .footer-action-wrap .btn-outline-white {
    width: 100%;
  }
}
/*end_css_for_footer*/


/* Drupal integration and consistent inner-page presentation. */
.nevsky-region,
.nevsky-region > .region,
.nevsky-region .block {
  margin: 0;
  padding: 0;
}

.nevsky-inner-hero {
  --nevsky-inner-hero-image: url('../images/nevsky/section-ai-i7xpb-1-a3c0e34e.png');
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
  color: #fff;
  background-image:
    linear-gradient(135deg, rgba(64, 64, 64, .96), rgba(45, 45, 45, .88)),
    var(--nevsky-inner-hero-image);
  background-position: center, center 52%;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

.nevsky-inner-hero h1 {
  max-width: 900px;
  margin: 8px 0 18px;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -.025em;
}

.nevsky-inner-hero p {
  max-width: 760px;
  color: rgba(255,255,255,.84);
  font-size: 1.125rem;
}

.nevsky-inner-content {
  min-height: 300px;
  padding: 72px 0 88px;
  background: #fff;
}

/* Contacts have no body content: do not reserve an empty 300px region. */
body.body-node--800 .nevsky-inner-content {
  min-height: 0;
  padding: 0;
}

.nevsky-inner-content .block-system-breadcrumb-block {
  margin-bottom: 28px;
  color: var(--color-text-muted);
  font-size: .9rem;
}

.nevsky-breadcrumb .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nevsky-breadcrumb .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nevsky-breadcrumb .breadcrumb-item::marker {
  content: '';
}

.nevsky-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  color: #a3a3a3;
  font-size: 1.15em;
  line-height: 1;
}

.nevsky-breadcrumb a {
  color: var(--color-red);
  text-decoration: none;
}

.nevsky-breadcrumb a:hover {
  text-decoration: underline;
}

.nevsky-breadcrumb [aria-current="page"] {
  color: var(--color-text-muted);
}

.nevsky-inner-content .block-local-tasks-block {
  margin-bottom: 28px;
}

.nevsky-inner-content .tabs-wrapper {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nevsky-inner-content .local-task-list {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nevsky-inner-content .local-task-list > li {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nevsky-inner-content .local-task-list > li::marker {
  content: '';
}

.nevsky-inner-content .local-task-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-main);
  background: #fff;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.nevsky-inner-content .local-task-list a.is-active,
.nevsky-inner-content .local-task-list a.active,
.nevsky-inner-content .local-task-list a:hover {
  border-color: var(--color-red);
  color: #fff;
  background: var(--color-red);
}

.nevsky-inner-content .node__content,
.nevsky-inner-content .field--name-body,
.nevsky-inner-content .view-content,
.nevsky-inner-content .commerce-product {
  font-size: 1.06rem;
  line-height: 1.75;
}

.nevsky-inner-content .node__content > * + *,
.nevsky-inner-content .field--name-body > * + * {
  margin-top: 1.25rem;
}

/* Drupal's text-image alignment floats the image but adds no text clearance. */
.nevsky-inner-content .text-formatted img.align-left { margin-right: 30px; }
.nevsky-inner-content .text-formatted img.align-right { margin-left: 30px; }

.nevsky-inner-content h2 {
  margin: 2rem 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.nevsky-inner-content h3 {
  margin: 1.6rem 0 .8rem;
  font-size: 1.45rem;
}

.nevsky-inner-content ul,
.nevsky-inner-content ol {
  margin: 1rem 0 1rem 1.4rem;
}

.nevsky-inner-content ul { list-style: disc; }
.nevsky-inner-content ol { list-style: decimal; }
.nevsky-inner-content a { color: var(--color-red); }
.nevsky-inner-content a:hover { text-decoration: underline; }

.messages {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius-md);
  background: var(--color-surface-subtle);
}

.nevsky-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.nevsky-form-error {
  margin-top: 12px;
  color: #b42318;
  font-size: .9rem;
}

/* Keep editing affordances visible without changing the public layout. */
.contextual-region { position: relative; }
.contextual .trigger { box-sizing: content-box; }

@media (max-width: 768px) {
  .nevsky-inner-hero { padding: 64px 0 56px; }
  .nevsky-inner-content { padding: 48px 0 64px; }
}

@media (max-width: 480px) {
  .nevsky-inner-hero { padding: 52px 0 46px; }
  .nevsky-inner-hero p { font-size: 1rem; }
  .nevsky-inner-content { padding: 36px 0 52px; }
}

/* House project full view. */
.house-project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 48px;
  align-items: start;
}

.house-project-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.house-project-lead {
  margin: 22px 0 28px;
  color: var(--color-text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.house-project-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.house-project-specs > div {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-subtle);
}

.house-project-specs dt {
  margin-bottom: 5px;
  color: var(--color-text-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.house-project-specs dd {
  margin: 0;
  color: var(--color-primary);
  font-weight: 700;
}

@media (max-width: 768px) {
  .house-project-layout { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .house-project-specs { grid-template-columns: 1fr; }
}

/* Search API project catalog with Facets + Better Exposed Filters. */
.project-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.project-catalog-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-main) !important;
  background: #fff;
  font-weight: 650;
  text-decoration: none !important;
}

.project-catalog-tab:hover,
.project-catalog-tab.active {
  border-color: var(--color-red);
  color: #fff !important;
  background: var(--color-red);
}

.project-catalog-layout {
  display: block;
}

.project-catalog-filters {
  margin-bottom: 36px;
  padding: 28px;
  border: 0;
  border-radius: 24px;
  background: #f6f4f2;
  box-shadow: none;
}

.project-filter-heading {
  margin-bottom: 24px;
  padding: 0;
  border: 0;
}

.project-filter-heading h2 {
  margin: 10px 0 0;
  font-size: 1.5rem;
}

.project-catalog-filters .form--inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.project-catalog-filters .form--inline > fieldset {
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(42, 36, 32, .055);
}

.project-catalog-filters .form--inline > fieldset:first-of-type {
  grid-column: 1 / -1;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.project-catalog-filters legend,
.project-catalog-filters .fieldset-legend {
  display: block;
  margin-bottom: 14px;
  color: var(--color-primary);
  font-size: .96rem;
  font-weight: 750;
}

.project-catalog-filters .bef-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-catalog-filters .bef-checkboxes .form-item {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
}

.project-catalog-filters .bef-checkboxes input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.project-catalog-filters .bef-checkboxes label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--color-text-main);
  background: #fff;
  box-shadow: 0 4px 14px rgba(42, 36, 32, .05);
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.15;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.project-catalog-filters .bef-checkboxes label:hover {
  border-color: rgba(166, 28, 35, .35);
  color: var(--color-red);
  transform: translateY(-1px);
}

.project-catalog-filters .bef-checkboxes input[type="checkbox"]:focus-visible + label {
  outline: 3px solid rgba(166, 28, 35, .2);
  outline-offset: 2px;
}

.project-catalog-filters .bef-checkboxes input[type="checkbox"]:checked + label {
  border-color: var(--color-red);
  color: #fff;
  background: var(--color-red);
  box-shadow: 0 7px 18px rgba(166, 28, 35, .18);
}

.project-catalog-filters .facets-exposed-range-slider {
  display: block;
}

.project-catalog-filters .facets-exposed-range-slider .fieldset-wrapper > .form-item {
  display: none;
}

.project-catalog-filters .facets-exposed-range-slider__slider {
  margin: 42px 12px 18px;
}

.project-catalog-filters .noUi-target {
  height: 6px;
  border: 0;
  border-radius: var(--radius-full);
  background: #ded9d5;
  box-shadow: none;
}

.project-catalog-filters .noUi-connect,
.project-catalog-filters .ui-slider-range {
  background: var(--color-red);
}

.project-catalog-filters .noUi-horizontal .noUi-handle,
.project-catalog-filters .ui-slider-handle {
  top: -8px;
  right: -11px;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 3px 10px rgba(53, 43, 39, .22);
  cursor: grab;
}

.project-catalog-filters .noUi-handle::before,
.project-catalog-filters .noUi-handle::after {
  display: none;
}

.project-catalog-filters .noUi-tooltip {
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  color: var(--color-primary);
  background: #f3efec;
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1;
  white-space: nowrap;
}

.project-catalog-filters .form-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 10px;
  margin: 4px 0 0;
}

.project-catalog-filters .form-actions input,
.project-catalog-filters .form-actions a {
  width: auto;
}

.project-catalog-results .projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.project-catalog-empty {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-subtle);
  text-align: center;
}

.project-catalog-pager {
  margin-top: 32px;
}
.project-catalog-results { scroll-margin-top: 112px; }

.project-catalog-pager .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.project-catalog-pager .page-item {
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-catalog-pager .page-item::before { content: none; }
.project-catalog-pager .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid #d8d1c9;
  border-radius: 50%;
  background: #fff;
  color: #42352f;
  text-decoration: none;
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.project-catalog-pager .page-link:hover,
.project-catalog-pager .page-link:focus-visible {
  border-color: #9b2226;
  color: #9b2226;
  background: #fff8f8;
}
.project-catalog-pager .page-link:focus-visible {
  outline: 2px solid #9b2226;
  outline-offset: 2px;
}
.project-catalog-pager .active .page-link,
.project-catalog-pager .is-active .page-link {
  border-color: var(--color-red);
  background: var(--color-red);
  color: #fff;
  pointer-events: none;
}
.project-catalog-pager .disabled .page-link {
  opacity: .45;
  pointer-events: none;
}
@media (max-width: 1199px) and (min-width: 992px) {
  .fixed-estimate .packages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fixed-estimate .package-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .project-catalog-filters .form--inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-catalog-filters .form--inline > fieldset:first-of-type {
    grid-column: 1 / -1;
  }
  .project-catalog-results .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .nevsky-inner-content .local-task-list { flex-wrap: nowrap; width: max-content; }
  .project-catalog-toolbar { display: grid; grid-template-columns: 1fr; }
  .project-catalog-tab { justify-content: center; }
  .project-catalog-filters { padding: 20px; border-radius: 18px; }
  .project-catalog-filters .form--inline { grid-template-columns: 1fr; }
  .project-catalog-filters .form--inline > fieldset,
  .project-catalog-filters .form--inline > fieldset:first-of-type {
    grid-column: 1;
    padding: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(42, 36, 32, .055);
  }
  .project-catalog-filters .bef-checkboxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-catalog-filters .bef-checkboxes label { justify-content: center; width: 100%; padding-inline: 10px; text-align: center; }
  .project-catalog-results .projects-grid { grid-template-columns: 1fr; }
}

/* Region-driven editable header. */
.nevsky-page--basic .block-system-breadcrumb-block {
  display: none;
}

#header .header-topline .region,
#header .header-topline .block,
#header .header-brand-region .region,
#header .header-brand-region .block,
#header .header-navigation-region .region,
#header .header-navigation-region .block,
#header .header-action-region .region,
#header .header-action-region .block {
  display: contents;
}

#header .header-brand-region {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

#header .header-navigation-region {
  height: 100%;
  margin-left: 0;
}

#header .header-action-region {
  display: flex;
  align-items: center;
  margin-left: 0;
}

#header .header-topline .field--name-body,
#header .header-topline .field__item {
  display: contents;
}

#header .header-topline .field--name-body::after {
  display: none;
  content: none;
}

#header .drawer-header,
#header .mobile-submenu-toggle,
#header .drawer-contacts {
  display: none;
}

#header .nav-item-row {
  display: contents;
}

.drawer-backdrop {
  position: fixed;
  z-index: 398;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(24, 22, 21, .55);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.drawer-backdrop.open {
  visibility: visible;
  opacity: 1;
}

/* Two independently editable blocks in the consultation section. */
.nevsky-region--lead-form .leadform-box,
#contacts .leadform-box {
  display: block;
}

.nevsky-region--lead-form .leadform-box > .region-lead-form {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: none;
}

.nevsky-region--lead-form .leadform-box > .region-lead-form > .block {
  width: 100%;
  min-width: 0;
}

.nevsky-region--lead-form .block-block-content,
.nevsky-region--lead-form .block-webform {
  min-width: 0;
}

#contacts #block-vesta-theme-consultation-webform {
  padding: 36px;
  border: 0;
  border-radius: var(--radius-lg, 16px);
  color: #0f172a;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  backdrop-filter: none;
  box-sizing: border-box;
}

#contacts #block-vesta-theme-consultation-webform .form-inner-title {
  margin: 0 0 20px;
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 700;
}

#contacts #block-vesta-theme-consultation-webform .form-control {
  min-height: 0;
}

#contacts #block-vesta-theme-consultation-webform input.form-control {
  height: 46px;
}

#contacts #block-vesta-theme-consultation-webform .form-type-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #64748b;
  font-size: .82rem;
}

#contacts #block-vesta-theme-consultation-webform .form-type-checkbox .agreement-checkbox-label {
  display: block;
  flex: 1 1 auto;
  margin: 0;
}

#contacts #block-vesta-theme-consultation-webform .form-required::after {
  display: none;
}

#contacts #block-vesta-theme-consultation-webform .form-actions {
  margin: 0;
}

#contacts #block-vesta-theme-consultation-webform .form-submit {
  min-height: 51px;
  height: 51px;
}

.webform-submission-consultation-form .form-item {
  margin: 0 0 14px;
}

.webform-submission-consultation-form input[type="text"],
.webform-submission-consultation-form input[type="tel"] {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  color: var(--color-text-main);
  background: #fff;
  box-shadow: none;
}

.webform-submission-consultation-form .form-type-checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(255, 255, 255, .8);
  font-size: .8rem;
}

.webform-submission-consultation-form .form-type-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-red);
}

.webform-submission-consultation-form .form-type-checkbox label {
  color: inherit;
  line-height: 1.45;
}

.webform-submission-consultation-form .form-type-checkbox a {
  color: #fff;
  text-decoration: underline;
}

.webform-submission-consultation-form .form-actions {
  margin: 18px 0 0;
}

.webform-submission-consultation-form .form-submit {
  width: 100%;
  min-height: 52px;
}

#block-vesta-theme-consultation-webform .webform-confirmation {
  padding: 24px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .11);
}

/* Compact transparent numeric facets and reset at the panel top. */
.project-catalog-filters {
  position: relative;
}

.project-filter-heading {
  padding-right: 190px;
}

.project-catalog-filters .form--inline > .facets-exposed-range-slider {
  padding: 8px 10px 4px;
  background: transparent;
  box-shadow: none;
}

.project-catalog-filters .facets-exposed-range-slider__slider {
  margin-top: 28px;
  margin-bottom: 8px;
}

.project-catalog-filters .form-actions {
  position: absolute;
  top: 25px;
  right: 28px;
  margin: 0;
}

@media (max-width: 900px) {
  #header .header-navigation-region {
    height: auto;
    margin-left: 0;
  }

  #header .main-navigation {
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    overflow-y: auto;
    width: min(340px, calc(100vw - 36px));
    height: 100dvh;
    box-sizing: border-box;
    padding: 0 18px 28px;
    background: #fff;
    box-shadow: -12px 0 36px rgba(0, 0, 0, .18);
    opacity: 0;
    transform: translateX(100%);
    transition: transform .28s ease, opacity .28s ease, visibility .28s ease;
  }

  #header .main-navigation.open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  #header .drawer-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    margin: 0 -18px 12px;
    padding: 0 18px;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
  }

  #header .drawer-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: var(--color-text-main);
    background: var(--color-surface-subtle);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  #header .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    height: auto;
  }

  #header .nav-item,
  #header .nav-item-row {
    display: block;
    width: 100%;
    height: auto;
  }

  #header .nav-item-row {
    position: relative;
  }

  #header .nav-list > .nav-item > .nav-item-row > .nav-link {
    width: 100%;
    min-height: 48px;
    padding: 11px 48px 11px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--color-text-main);
    font-size: 1rem;
    font-weight: 600;
  }

  #header .nav-list > .nav-item > .nav-item-row > .nav-link:hover,
  #header .nav-list > .nav-item > .nav-item-row > .nav-link.active {
    color: var(--color-red);
    background: #f8f4f4;
    border-color: rgba(155, 34, 38, .1);
  }

  #header .nav-list > .nav-item > .nav-item-row > .nav-link::after,
  #header .dropdown-icon--desktop {
    display: none;
  }

  #header .mobile-submenu-toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: var(--color-text-muted);
    background: transparent;
    cursor: pointer;
  }

  #header .mobile-submenu-toggle:hover,
  #header .mobile-submenu-toggle:focus-visible {
    color: var(--color-red);
    background: #f2f3f5;
    outline: 2px solid rgba(155, 34, 38, .24);
    outline-offset: 1px;
  }

  #header .mobile-submenu-toggle .dropdown-icon {
    transition: transform .2s ease;
  }

  #header .mobile-submenu-toggle[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
  }

  #header .dropdown-menu,
  #header .dropdown-menu[hidden] {
    position: static;
    display: none !important;
    visibility: visible;
    min-width: 0;
    margin: 3px 0 8px;
    padding: 4px 0 4px 16px;
    border: 0;
    opacity: 1;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  #header .nav-item.submenu-open > .dropdown-menu {
    display: flex !important;
  }

  #header .dropdown-link {
    padding: 8px 12px;
    border-left: 2px solid #e5e7eb;
    color: var(--color-text-muted);
    font-size: .9rem;
    line-height: 1.35;
    white-space: normal;
  }

  #header .dropdown-link:hover,
  #header .dropdown-link.active {
    padding-left: 12px;
    border-left-color: var(--color-red);
    color: var(--color-red);
    background: transparent;
  }

  #header .drawer-contacts {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: auto;
    padding: 18px 12px 0;
    border-top: 1px solid var(--color-border);
  }

  #header .drawer-contacts-title {
    color: var(--color-text-main);
    font-size: .95rem;
    font-weight: 700;
  }

  #header .drawer-contact-link {
    display: block;
    max-width: 100%;
    padding: 2px 0;
    color: var(--color-text-main);
    font-size: .9rem;
    overflow-wrap: anywhere;
  }

  #header .drawer-contact-phone {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
  }

  #header .drawer-contact-address {
    color: var(--color-text-muted);
    font-size: .85rem;
    line-height: 1.4;
  }

  #header .drawer-contact-messengers {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
  }

  #header .drawer-contact-messengers a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 6px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface-subtle);
    box-sizing: border-box;
  }

  #header .drawer-contact-messengers img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  #header .drawer-contacts a:hover,
  #header .drawer-contacts a:focus-visible {
    color: var(--color-red);
    outline: 2px solid var(--color-red);
    outline-offset: 2px;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  #header .header-action-region {
    margin-left: auto;
  }

  #header .header-cta-btn {
    display: none;
  }
}

@media (max-width: 760px) {
  .nevsky-region--lead-form .leadform-box > .region-lead-form {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #contacts #block-vesta-theme-consultation-webform {
    padding: 28px 20px;
  }

  .project-filter-heading {
    padding-right: 0;
  }

  .project-catalog-filters .form-actions {
    position: static;
    justify-content: stretch;
    margin-top: 6px;
  }

  .project-catalog-filters .form-actions input,
  .project-catalog-filters .form-actions a {
    width: 100%;
  }

  .project-catalog-filters .form--inline > .facets-exposed-range-slider {
    padding: 16px 12px 8px;
    background: transparent;
    box-shadow: none;
  }
}

/* House project components: gallery, specifications and packages. */
.house-project--full {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 72px;
  padding: 8px 0 72px;
}

.house-project__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .85fr);
  gap: 40px;
  align-items: start;
}

.project-gallery {
  min-width: 0;
}

.project-gallery__stage {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #f5f6f7;
  box-shadow: var(--shadow-subtle);
}

.project-gallery__main-link {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 520px;
  place-items: center;
}

.project-gallery__main-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
}

.project-gallery__control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  color: #fff;
  background: rgba(23, 24, 24, .72);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.project-gallery__control:hover,
.project-gallery__control:focus-visible {
  background: var(--color-red);
  transform: translateY(-50%) scale(1.05);
}

.project-gallery__control--prev { left: 18px; }
.project-gallery__control--next { right: 18px; }

.project-gallery__counter {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 24, 24, .78);
  font-family: var(--font-mono);
  font-size: .78rem;
}

.project-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.project-gallery__thumb {
  display: grid;
  height: 104px;
  place-items: center;
  overflow: hidden;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f5f6f7;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-gallery__thumb.is-active,
.project-gallery__thumb:focus-visible {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(202, 34, 42, .12);
}

.project-summary {
  position: sticky;
  top: 124px;
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.project-summary__description {
  margin: 18px 0;
  color: var(--color-text-muted);
}

.project-summary__description .field,
.project-summary__description p:last-child { margin-bottom: 0; }

.project-summary__quick-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 24px 0;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
}

.project-summary__quick-specs > div {
  min-width: 0;
  padding: 15px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.project-summary__quick-specs > div:nth-child(even) { border-right: 0; }
.project-summary__quick-specs > div:nth-last-child(-n + 2) { border-bottom: 0; }
.project-summary__quick-specs dt { color: var(--color-text-muted); font-size: .78rem; }
.project-summary__quick-specs dd { margin: 4px 0 0; color: var(--color-text-main); font-weight: 700; }

.project-summary__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 22px;
}

.project-summary__price span { color: var(--color-text-muted); font-size: .82rem; }
.project-summary__price strong { color: var(--color-red); font-size: clamp(1.45rem, 2.2vw, 2rem); }
.project-summary .btn { width: 100%; }

.project-summary__document {
  display: block;
  margin-top: 15px;
  color: var(--color-text-muted);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-section-heading { max-width: 760px; margin-bottom: 28px; }
.project-section-title { margin: 10px 0 0; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; }

.project-specs,
.project-packages,
.project-options {
  min-width: 0;
  padding: 40px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-subtle);
}

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

.project-specs__item {
  padding: 22px;
  border-radius: 14px;
  background: var(--color-surface-subtle);
}

.project-specs__item dt { color: var(--color-text-muted); font-size: .84rem; }
.project-specs__item dd { margin: 8px 0 0; color: var(--color-text-main); font-size: 1.3rem; font-weight: 700; }

.project-packages__tablist {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 7px;
  border-radius: 14px;
  background: var(--color-surface-subtle);
}

.project-packages__tab {
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  color: var(--color-text-muted);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.project-packages__tab.is-active {
  color: var(--color-text-main);
  background: #fff;
  box-shadow: 0 4px 16px rgba(23, 24, 24, .09);
}

.project-packages__tab:focus-visible { outline: 2px solid var(--color-red); outline-offset: 2px; }
.project-packages__panel { padding-top: 28px; }
.project-packages__panel[hidden] { display: none; }

.project-package__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.project-package__eyebrow { color: var(--color-text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.project-package__top h3 { margin: 5px 0 0; font-size: 1.7rem; }
.project-package__price { display: flex; flex-direction: column; gap: 3px; margin: 0; text-align: right; }
.project-package__price span { color: var(--color-text-muted); font-size: .8rem; }
.project-package__price strong { color: var(--color-red); font-size: 1.45rem; }
.project-package__intro { margin: 0 0 14px; color: var(--color-text-muted); }

.project-package__features,
.project-options ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.project-package__features li,
.project-options li {
  position: relative;
  padding-left: 25px;
  color: var(--color-text-main);
}

.project-package__features li::before,
.project-options li::before {
  position: absolute;
  top: .22em;
  left: 0;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--color-red);
  content: '✓';
  font-size: 10px;
  font-weight: 800;
}

/* House project card v2: one contract for homepage and catalog. */
.house-project-card,
#projects .house-project-card {
  border-radius: 18px;
  box-shadow: 0 5px 22px rgba(23, 24, 24, .07);
}

.house-project-card .house-project-card__media,
#projects .house-project-card .house-project-card__media {
  display: block;
  height: auto;
  aspect-ratio: 4 / 3;
  background: #eef0f2;
}

.house-project-card .house-project-card__image,
#projects .house-project-card .house-project-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.house-project-card:hover .house-project-card__image,
#projects .house-project-card:hover .house-project-card__image {
  transform: none;
}

.house-project-card .house-project-card__body,
#projects .house-project-card .house-project-card__body { padding: 22px; }

.house-project-card__title { margin: 0; }
.house-project-card__title a { color: inherit; text-decoration: none; }
.house-project-card__title a:hover { color: var(--color-red); }

.house-project-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.house-project-card__meta > div {
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--color-surface-subtle);
}

.house-project-card__meta dt { color: var(--color-text-muted); font-size: .72rem; }
.house-project-card__meta dd { margin: 3px 0 0; font-size: .92rem; font-weight: 700; }

.house-project-card .house-project-card__prices,
#projects .house-project-card .house-project-card__prices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 0 0 20px;
}

.house-project-card .price-box,
#projects .house-project-card .price-box {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: #fff;
}

.house-project-card .price-box.highlighted,
#projects .house-project-card .price-box.highlighted { border-color: rgba(202, 34, 42, .25); background: rgba(202, 34, 42, .045); }
.house-project-card .price-type,
#projects .house-project-card .price-type { color: var(--color-text-muted); font-size: .75rem; }
.house-project-card .price-val,
#projects .house-project-card .price-val { color: var(--color-text-main); font-size: .84rem; white-space: nowrap; }

.house-project-card .house-project-card__actions,
#projects .house-project-card .house-project-card__actions { margin-top: auto; }

/* Catalog refinements. */
.project-catalog-category-nav { margin-bottom: 24px; }
.project-catalog-category-link[aria-current='page'] { box-shadow: 0 4px 16px rgba(23, 24, 24, .12); }
.project-filter-heading p { max-width: 640px; margin: 8px 0 0; color: var(--color-text-muted); }
.project-catalog-results__summary { margin: 0 0 18px; color: var(--color-text-muted); font-size: .92rem; }
.project-catalog-results__summary strong { color: var(--color-text-main); }
.project-catalog-view .projects-grid { align-items: stretch; }
.project-catalog-filters .form--inline { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.project-catalog-filters .form--inline > fieldset:has(.bef-checkboxes),
.project-catalog-filters .form--inline > fieldset:first-of-type {
  grid-column: span 2;
  padding: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(42, 36, 32, .055);
}
.project-catalog-filters .form--inline > .facets-exposed-range-slider { grid-column: span 3; }

@media (max-width: 1100px) {
  .project-catalog-filters .form--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-catalog-filters .form--inline > fieldset:has(.bef-checkboxes),
  .project-catalog-filters .form--inline > fieldset:first-of-type,
  .project-catalog-filters .form--inline > .facets-exposed-range-slider { grid-column: span 1; }
}

@media (max-width: 700px) {
  .project-catalog-filters .form--inline { grid-template-columns: 1fr; }
  .project-catalog-filters .form--inline > fieldset:has(.bef-checkboxes),
  .project-catalog-filters .form--inline > fieldset:first-of-type,
  .project-catalog-filters .form--inline > .facets-exposed-range-slider { grid-column: 1; }
}

@media (max-width: 1050px) {
  .house-project__hero { grid-template-columns: 1fr; }
  .project-summary { position: static; }
  .project-specs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .house-project--full { gap: 42px; padding-bottom: 46px; }
  .project-gallery__stage,
  .project-gallery__main-link { min-height: 320px; }
  .project-gallery__control { width: 40px; height: 40px; }
  .project-gallery__control--prev { left: 10px; }
  .project-gallery__control--next { right: 10px; }
  .project-gallery__counter { right: 10px; bottom: 10px; }
  .project-gallery__thumbs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .project-gallery__thumb { flex: 0 0 116px; height: 80px; scroll-snap-align: start; }
  .project-summary,
  .project-specs,
  .project-packages,
  .project-options { padding: 24px 18px; border-radius: 16px; }
  .project-summary__quick-specs { grid-template-columns: 1fr; }
  .project-summary__quick-specs > div,
  .project-summary__quick-specs > div:nth-child(even),
  .project-summary__quick-specs > div:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid var(--color-border); }
  .project-summary__quick-specs > div:last-child { border-bottom: 0; }
  .project-specs__grid { grid-template-columns: 1fr; }
  .project-packages__tablist {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    scroll-snap-type: none;
  }
  .project-packages__tab {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 14px;
    white-space: normal;
  }
  .project-package__top { flex-direction: column; }
  .project-package__price { text-align: left; }
  .project-package__features,
  .project-options ul { grid-template-columns: 1fr; }
  .house-project-card .house-project-card__actions,
  #projects .house-project-card .house-project-card__actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .project-gallery__control,
  .project-gallery__thumb,
  .project-packages__tab,
  .house-project-card,
  .house-project-card__image { transition: none; }
}

/* Card photo browsing, contextual edit controls and file attachments. */
.house-project-card { position: relative; }
.house-project-card > .contextual { z-index: 620; }
.house-project-card__media { position: relative; overflow: hidden; }
.house-project-card__photo-link { display: block; width: 100%; height: 100%; }
.house-project-card__control {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  background: rgba(18,25,31,.66);
  color: #fff;
  font: 32px/1 sans-serif;
  cursor: pointer;
  transition: background-color .2s ease;
}
.house-project-card__control--prev { left: 12px; }
.house-project-card__control--next { right: 12px; }
.house-project-card__control:hover,
.house-project-card__control:focus-visible { background: var(--color-red); }
.house-project-card__control:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.house-project-card__counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(18,25,31,.72);
  color: #fff;
  font-size: .8rem;
}
.house-project-card__frames[hidden] { display: none; }
.form-group-attachment { min-width: 0; }
.form-group-attachment .form-managed-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-group-attachment input[type="file"] { display: block; max-width: 100%; color: inherit; }
.form-group-attachment .description { margin-top: 6px; font-size: .82rem; }
@media (max-width: 760px) {
  .house-project-card__control { width: 40px; height: 40px; }
  .house-project-card__control--prev { left: 8px; }
  .house-project-card__control--next { right: 8px; }
  /* Touch screens cannot reveal Drupal's clipped contextual trigger by hover. */
  .house-project-card > .contextual .trigger { clip: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  .house-project-card__control { transition: none; }
}

.house-project--full { gap: 52px; }

.house-project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.house-project-card__meta > div {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--color-surface-subtle);
  white-space: nowrap;
}

.house-project-card__meta dt,
.house-project-card__meta dd {
  margin: 0;
  font-size: .78rem;
  line-height: 1.15;
}

.house-project-card__meta dt { color: var(--color-text-muted); }
.house-project-card__meta dd { color: var(--color-text-main); font-weight: 750; }

.house-project-card .price-box,
#projects .house-project-card .price-box {
  padding-block: 9px;
}

.house-project-card .price-type,
#projects .house-project-card .price-type,
.house-project-card .price-val,
#projects .house-project-card .price-val {
  line-height: 1.2;
}

.project-summary__quick-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.project-summary__quick-specs > div,
.project-summary__quick-specs > div:nth-child(even),
.project-summary__quick-specs > div:nth-last-child(-n + 2),
.project-summary__quick-specs > div:last-child {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--color-surface-subtle);
  white-space: nowrap;
}

.project-summary__quick-specs dt,
.project-summary__quick-specs dd {
  margin: 0;
  font-size: .82rem;
  line-height: 1.2;
}

.project-summary__quick-specs dt { color: var(--color-text-muted); }
.project-summary__quick-specs dd { color: var(--color-text-main); font-weight: 750; }

.project-package__features,
.project-options ul {
  padding-left: 0 !important;
  list-style: none !important;
}

.project-package__features li,
.project-options li { list-style: none !important; }
.project-package__features li::marker,
.project-options li::marker { content: ''; font-size: 0; }

.project-catalog-filters {
  margin-bottom: 32px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.project-filter-heading {
  margin-bottom: 18px;
}

.project-filter-heading h2 { margin-top: 7px; }
.project-filter-heading p { margin-top: 5px; }

.project-catalog-filters .form--inline {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
}

.project-catalog-filters .form--inline > fieldset,
.project-catalog-filters .form--inline > fieldset:first-of-type,
.project-catalog-filters .form--inline > fieldset:has(.bef-checkboxes) {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.project-catalog-filters .form--inline > fieldset:has(.bef-checkboxes),
.project-catalog-filters .form--inline > fieldset:first-of-type {
  grid-column: span 6;
}

.project-catalog-filters .form--inline > .facets-exposed-range-slider {
  grid-column: span 3;
  padding: 0;
}

.project-catalog-filters legend,
.project-catalog-filters .fieldset-legend {
  margin-bottom: 9px;
  font-size: .88rem;
}

.project-catalog-filters .bef-checkboxes { gap: 7px; }

.project-catalog-filters .bef-checkboxes label {
  min-height: 36px;
  padding: 7px 13px;
  border-color: transparent;
  background: var(--color-surface-subtle);
  box-shadow: none;
  font-size: .82rem;
}

.project-catalog-filters .bef-checkboxes input[type="checkbox"]:checked + label {
  box-shadow: none;
}

.project-catalog-filters .facets-exposed-range-slider__slider {
  margin: 25px 15px 7px;
}

.project-catalog-filters .form-actions {
  right: 0;
}

@media (max-width: 1100px) {
  .project-catalog-filters .form--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-catalog-filters .form--inline > fieldset:has(.bef-checkboxes),
  .project-catalog-filters .form--inline > fieldset:first-of-type,
  .project-catalog-filters .form--inline > .facets-exposed-range-slider { grid-column: span 1; }
}

@media (max-width: 700px) {
  .project-catalog-filters { padding: 0; border-radius: 0; }
  .project-filter-heading { padding-right: 0; }
  .project-catalog-filters .form--inline { grid-template-columns: 1fr; gap: 18px; }
  .project-catalog-filters .form--inline > fieldset,
  .project-catalog-filters .form--inline > fieldset:first-of-type,
  .project-catalog-filters .form--inline > fieldset:has(.bef-checkboxes),
  .project-catalog-filters .form--inline > .facets-exposed-range-slider {
    grid-column: 1;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .project-catalog-filters .bef-checkboxes { display: flex; }
  .project-catalog-filters .bef-checkboxes label { width: auto; }
  .project-summary__quick-specs { gap: 7px; }
  .project-summary__quick-specs > div,
  .project-summary__quick-specs > div:nth-child(even),
  .project-summary__quick-specs > div:nth-last-child(-n + 2),
  .project-summary__quick-specs > div:last-child { padding: 8px 10px; }
}

/* Full-screen project image gallery. */
.project-lightbox {
  position: fixed;
  top: var(--gallery-viewport-top, 0px);
  left: var(--gallery-viewport-left, 0px);
  width: var(--gallery-viewport-width, 100%);
  height: var(--gallery-viewport-height, 100vh);
  height: var(--gallery-viewport-height, 100dvh);
  box-sizing: border-box;
  z-index: 3100;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.project-lightbox.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.project-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 12, .92);
  cursor: zoom-out;
}

.project-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1200px, calc(100vw - 48px));
  max-height: calc(var(--gallery-viewport-height, 100dvh) - 48px);
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  color: #fff;
  background: #111315;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55);
}

.project-lightbox__viewport {
  position: relative;
  display: grid;
  min-height: min(72vh, 720px);
  place-items: center;
  overflow: hidden;
  background: #090a0c;
  touch-action: pan-y;
}

.project-lightbox__image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
}

.project-lightbox__close,
.project-lightbox__control {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  background: rgba(17, 19, 21, .78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.project-lightbox__close:hover,
.project-lightbox__close:focus-visible,
.project-lightbox__control:hover,
.project-lightbox__control:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background: var(--color-red);
}

.project-lightbox__close { top: 16px; right: 16px; }
.project-lightbox__control { top: 50%; transform: translateY(-50%); }
.project-lightbox__control--prev { left: 16px; }
.project-lightbox__control--next { right: 16px; }

.project-lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 13px 20px;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
}

.project-lightbox__counter {
  flex: 0 0 auto;
  font-family: var(--font-mono);
}

html.project-lightbox-open,
body.project-lightbox-open { overflow: hidden; }

/* Keep the project-to-consultation transition compact. */
.page-house-project .nevsky-inner-content { padding-bottom: 24px; }
.page-house-project #contacts { padding-top: 40px; }

@media (max-width: 700px) {
  .project-lightbox { padding: 0; }
  .project-lightbox__dialog {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border: 0;
    border-radius: 0;
  }
  .project-lightbox__viewport { min-height: 0; }
  .project-lightbox__image { max-height: calc(var(--gallery-viewport-height, 100dvh) - 62px); }
  .project-lightbox__close,
  .project-lightbox__control { width: 42px; height: 42px; }
  .project-lightbox__close { top: 12px; right: 12px; }
  .project-lightbox__control--prev { left: 10px; }
  .project-lightbox__control--next { right: 10px; }
  .project-lightbox__footer { min-height: 62px; padding: 12px 14px; font-size: .78rem; }
  .page-house-project .nevsky-inner-content { padding-bottom: 20px; }
  .page-house-project #contacts { padding-top: 28px; }
}

@media (max-width: 640px) {
  /* Allow the project banner to fit narrow phones instead of widening the page. */
  #projects .banner-actions {
    min-width: 0;
    max-width: 100%;
  }
  #projects .banner-actions .btn {
    white-space: normal;
  }
}
