/*
Theme Name: BAUFER
Version: 10.0.1 - НОВЫЙ ПРОФЕССИОНАЛЬНЫЙ ДИЗАЙН
Description: Современный строгий дизайн для строительной компании
Author: Baufer Team
*/

/* ========================================
   CSS VARIABLES - DESIGN SYSTEM
   ======================================== */

:root {
  /* Primary Colors - темные, серьезные */
  --primary-black: #0a0a0a;
  --primary-dark: #1a1a1a;
  --primary-gray: #2d2d2d;

  /* Secondary Colors - нейтральные */
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-600: #737373;
  --gray-800: #404040;

  /* Accent Colors - строительная тематика */
  --accent-orange: #ff6b35;
  --accent-orange-dark: #e5501a;
  --accent-blue: #0066cc;
  --accent-blue-dark: #0052a3;
  --accent-yellow: #fbbf24;

  /* Backgrounds */
  --bg-white: #ffffff;
  --bg-light: #fafafa;
  --bg-dark: #1a1a1a;

  /* Semantic Colors */
  --success: #059669;
  --warning: #fbbf24;
  --error: #dc2626;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

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

  /* Typography */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--bg-white);
  overflow-x: hidden;
}

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

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent-orange-dark);
}

ul, ol {
  list-style-position: inside;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: var(--space-6);
  font-family: 'Inter', sans-serif;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--space-4);
  max-width: 65ch;
}

strong, b {
  font-weight: 600;
}

small {
  font-size: var(--text-sm);
}

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

.text-large {
  font-size: var(--text-lg);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.section {
  padding: var(--space-20) 0;
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-col {
  flex-direction: column;
}

.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-4) 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.brand {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--primary-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color var(--transition-base);
}

.brand:hover {
  color: var(--accent-orange);
  text-decoration: none;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  transition: all var(--transition-base);
}

/* Navigation */
.site-nav ul {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}

.site-nav a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--gray-800);
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
}

.site-nav a:hover,
.site-nav a.current-menu-item {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
  text-decoration: none;
}

/* Header Contacts */
.header-contacts {
  display: flex;
  gap: var(--space-6);
  margin: var(--space-4) 0;
}

.header-phone,
.header-email {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gray-800);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-base);
}

.header-phone:hover,
.header-email:hover {
  color: var(--accent-orange);
}

.header-phone svg,
.header-email svg {
  width: 18px;
  height: 18px;
}

/* City Switcher */
.city-switcher {
  position: relative;
}

.city-switcher summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-800);
  list-style: none;
  padding: var(--space-2) 0;
  transition: color var(--transition-base);
}

.city-switcher summary:hover {
  color: var(--accent-orange);
}

.city-switcher ul {
  list-style: none;
  margin-top: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  position: absolute;
  min-width: 150px;
  box-shadow: var(--shadow-md);
}

.city-switcher li {
  margin: var(--space-2) 0;
}

.city-switcher a {
  color: var(--gray-800);
  font-size: var(--text-sm);
  display: block;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.city-switcher a:hover {
  color: var(--accent-orange);
  background: var(--gray-100);
  text-decoration: none;
}

.header-cta {
  margin-left: var(--space-4);
}

/* ========================================
   BUTTONS & CTAs
   ======================================== */

.btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: inherit;
  line-height: 1;
}

.btn-primary {
  background: var(--accent-orange);
  color: white;
  box-shadow: 0 4px 6px rgba(255, 107, 53, 0.2);
}

.btn-primary:hover {
  background: var(--accent-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 107, 53, 0.3);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-orange);
  border: 2px solid var(--accent-orange);
}

.btn-secondary:hover {
  background: var(--accent-orange);
  color: white;
  text-decoration: none;
}

.btn-large {
  padding: var(--space-5) var(--space-12);
  font-size: var(--text-lg);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.baufer-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: var(--space-24) 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: var(--space-20);
}

.baufer-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0.45) 100%);
  z-index: 1;
}

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

.baufer-hero h1 {
  color: white;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.baufer-hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--text-xl);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ========================================
   CALCULATOR
   ======================================== */

.baufer-calculator {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-16);
  margin: var(--space-20) 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.calculator-header {
  text-align: center;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 2px solid var(--gray-200);
}

.calculator-header h2 {
  color: var(--primary-dark);
  margin-bottom: var(--space-4);
}

.calculator-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Calculator Progress */
.calculator-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
  position: relative;
}

.progress-step {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-xl);
  transition: all var(--transition-base);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.progress-step.active {
  background: var(--accent-orange);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.progress-step.completed {
  background: var(--success);
  color: white;
}

.progress-step.completed::before {
  content: '✓';
  font-size: var(--text-lg);
}

/* Calculator Steps */
.calculator-step {
  display: none;
}

.calculator-step.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.calculator-step h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-8);
  color: var(--primary-dark);
}

/* Calculator Options */
.calculator-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.calc-option {
  position: relative;
}

.calc-option input {
  display: none;
}

.option-card {
  min-height: 200px;
  padding: var(--space-8);
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.option-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.calc-option input:checked + .option-card {
  background: white;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.option-card span {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
  margin-bottom: var(--space-2);
}

.option-card small {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.option-card svg,
.option-card img {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  opacity: 0.8;
}

/* Calculator Input Groups */
.calc-input-group {
  margin: var(--space-8) 0;
}

.calc-input-group label {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--primary-dark);
}

.calc-input-group input[type="number"] {
  width: 100%;
  padding: var(--space-5);
  font-size: var(--text-3xl);
  font-weight: 700;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  color: var(--primary-dark);
  transition: all var(--transition-base);
}

.calc-input-group input[type="number"]:focus {
  outline: none;
  border-color: var(--accent-orange);
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

/* Calculator Checkboxes */
.calculator-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.calc-checkbox {
  position: relative;
}

.calc-checkbox input {
  display: none;
}

.checkbox-card {
  padding: var(--space-6);
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.checkbox-card:hover {
  border-color: var(--accent-orange);
}

.calc-checkbox input:checked + .checkbox-card {
  background: white;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.checkbox-title {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
  color: var(--primary-dark);
}

.checkbox-price {
  color: var(--accent-orange);
  font-weight: 600;
  font-size: var(--text-sm);
}

/* Calculator Result */
.calculator-result {
  background: var(--primary-dark);
  color: white;
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  margin: var(--space-12) 0;
}

.calculator-result h3 {
  color: white;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.result-breakdown {
  margin: var(--space-6) 0;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-row:last-child {
  border: none;
  padding-top: var(--space-6);
  margin-top: var(--space-4);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.result-label {
  font-size: var(--text-base);
  opacity: 0.9;
}

.result-value {
  font-size: var(--text-xl);
  font-weight: 700;
}

#calc-total {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--accent-yellow);
}

/* Calculator Actions */
.calculator-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.calc-btn-prev,
.calc-btn-next,
.calc-btn-submit {
  flex: 1;
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-lg);
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  font-family: inherit;
}

.calc-btn-next,
.calc-btn-submit {
  background: var(--accent-orange);
  color: white;
}

.calc-btn-next:hover,
.calc-btn-submit:hover {
  background: var(--accent-orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.calc-btn-prev {
  background: transparent;
  border: 2px solid var(--accent-orange);
  color: var(--accent-orange);
}

.calc-btn-prev:hover {
  background: var(--accent-orange);
  color: white;
}

#calculator-success {
  background: var(--success);
  color: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: var(--space-6);
}

/* ========================================
   REVIEWS
   ======================================== */

.baufer-reviews,
.baufer-reviews-enhanced {
  background: var(--bg-light);
  padding: var(--space-20) var(--space-8);
  margin: var(--space-20) 0;
  border-radius: var(--radius-2xl);
}

.baufer-reviews h2,
.baufer-reviews-enhanced h2 {
  text-align: center;
  margin-bottom: var(--space-12);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.review-card {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.review-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid var(--accent-orange);
  flex-shrink: 0;
  background: var(--gray-200);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-info h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.review-info p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin: 0;
}

.review-rating {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.review-rating .star {
  color: var(--accent-yellow);
  font-size: var(--text-lg);
}

.review-text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-800);
}

/* ========================================
   SERVICES & ADVANTAGES
   ======================================== */

.baufer-advantages,
.baufer-services {
  padding: var(--space-20) 0;
  margin: var(--space-20) 0;
}

.baufer-advantages h2,
.baufer-services h2 {
  text-align: center;
  margin-bottom: var(--space-12);
}

.advantages-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.advantage-card,
.service-card {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
}

.advantage-card:hover,
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.advantage-card svg,
.advantage-card img,
.service-card svg,
.service-card img {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  color: var(--accent-orange);
}

.advantage-card h3,
.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.advantage-card p,
.service-card p {
  font-size: var(--text-base);
  color: var(--gray-600);
  max-width: 100%;
}

.advantage-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--accent-orange);
  margin-bottom: var(--space-4);
  display: block;
}

/* ========================================
   PROCESS / TIMELINE
   ======================================== */

.baufer-process {
  padding: var(--space-20) 0;
  margin: var(--space-20) 0;
}

.baufer-process h2 {
  text-align: center;
  margin-bottom: var(--space-12);
}

.process-steps {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  padding: var(--space-4) 0;
}

.process-step {
  position: relative;
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  min-width: 280px;
  flex: 1;
  transition: all var(--transition-base);
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.process-step-number {
  position: absolute;
  top: -12px;
  left: var(--space-8);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.process-step svg,
.process-step img {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-6);
  color: var(--accent-orange);
}

.process-step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.process-step p {
  font-size: var(--text-base);
  color: var(--gray-600);
  max-width: 100%;
}

.process-duration {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent-orange-dark);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--space-4);
}

/* ========================================
   GALLERY
   ======================================== */

.baufer-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin: var(--space-12) 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.gallery-overlay h3 {
  color: white;
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
  margin: 0;
}

/* ========================================
   GUARANTEES & URGENCY
   ======================================== */

.baufer-guarantees,
.baufer-urgency {
  padding: var(--space-20) var(--space-8);
  margin: var(--space-20) 0;
}

.baufer-guarantees h2,
.baufer-urgency h2 {
  text-align: center;
  margin-bottom: var(--space-12);
}

.guarantees-grid,
.urgency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.guarantee-card,
.urgency-card {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.guarantee-card:hover,
.urgency-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.urgency-card {
  border: 2px solid var(--accent-orange);
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
}

.urgency-timer {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--accent-orange);
  margin: var(--space-4) 0;
}

/* ========================================
   AUTHOR / CTA BLOCKS
   ======================================== */

.baufer-author {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  background: var(--bg-light);
  padding: var(--space-12);
  border-radius: var(--radius-xl);
  margin: var(--space-20) 0;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid var(--accent-orange);
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-content h3 {
  margin-bottom: var(--space-3);
}

.author-content p {
  color: var(--gray-600);
}

.baufer-calculator-cta {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
  color: white;
  padding: var(--space-16) var(--space-8);
  border-radius: var(--radius-2xl);
  text-align: center;
  margin: var(--space-20) 0;
}

.baufer-calculator-cta h2 {
  color: white;
  margin-bottom: var(--space-6);
}

.baufer-calculator-cta p {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--text-lg);
  margin: 0 auto var(--space-8);
  max-width: 600px;
}

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

.baufer-faq {
  margin: var(--space-20) 0;
}

.baufer-faq h2 {
  text-align: center;
  margin-bottom: var(--space-12);
}

.faq-item {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-6);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-lg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-base);
}

.faq-item summary:hover {
  background: var(--gray-100);
}

.faq-item summary::after {
  content: '+';
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--accent-orange);
  transition: transform var(--transition-base);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-content {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--gray-600);
  line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-section h3 {
  color: white;
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--space-3);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  font-size: var(--text-base);
  transition: color var(--transition-base);
}

.footer-section a:hover {
  color: var(--accent-orange);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
}

/* ========================================
   WORDPRESS BLOCKS SUPPORT
   ======================================== */

/* Gutenberg Columns */
.wp-block-columns {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-8);
}

.wp-block-column {
  flex: 1;
  min-width: min(100%, 300px);
}

/* Gutenberg Buttons */
.wp-block-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin: var(--space-6) 0;
}

.wp-block-button__link {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  background: var(--accent-orange);
  color: white !important;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-base);
}

.wp-block-button__link:hover {
  background: var(--accent-orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* Gutenberg Images */
.wp-block-image {
  margin: var(--space-8) 0;
}

.wp-block-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.wp-block-image figcaption {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-top: var(--space-3);
}

/* Gutenberg Quote */
.wp-block-quote {
  border-left: 4px solid var(--accent-orange);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--gray-800);
}

.wp-block-quote cite {
  display: block;
  margin-top: var(--space-4);
  font-size: var(--text-base);
  font-style: normal;
  color: var(--gray-600);
}

/* Gutenberg Gallery */
.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Apply animations */
.fade-in {
  animation: fadeIn 0.6s ease;
}

.slide-in {
  animation: slideIn 0.6s ease;
}

/* ========================================
   RESPONSIVE - MOBILE FIRST
   ======================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-6);
  }

  .baufer-calculator {
    padding: var(--space-12) var(--space-8);
  }
}

@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: clamp(1.875rem, 5vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.5rem, 4vw, 1.875rem);
  }

  /* Layout */
  .container {
    padding: 0 var(--space-4);
  }

  .section {
    padding: var(--space-16) 0;
  }

  /* Header */
  .menu-toggle {
    display: flex;
  }

  .site-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
  }

  .site-nav-wrap.active {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: var(--space-4);
  }

  .header-contacts {
    flex-direction: column;
    gap: var(--space-3);
  }

  /* Calculator */
  .baufer-calculator {
    padding: var(--space-10) var(--space-6);
    margin: var(--space-12) 0;
  }

  .calculator-options {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .option-card {
    min-height: 160px;
  }

  .calculator-progress {
    gap: var(--space-4);
  }

  .progress-step {
    width: 44px;
    height: 44px;
    font-size: var(--text-lg);
  }

  .calculator-actions {
    flex-direction: column;
  }

  .calc-btn-prev,
  .calc-btn-next,
  .calc-btn-submit {
    width: 100%;
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4,
  .reviews-grid,
  .advantages-grid,
  .services-grid,
  .guarantees-grid,
  .urgency-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Process */
  .process-steps {
    flex-direction: column;
  }

  .process-step {
    min-width: 100%;
  }

  /* Gallery */
  .baufer-gallery {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Hero */
  .baufer-hero {
    min-height: 500px;
    padding: var(--space-16) 0;
  }

  /* Author */
  .baufer-author {
    flex-direction: column;
    text-align: center;
  }

  /* WordPress Columns */
  .wp-block-columns {
    flex-direction: column;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }

  .baufer-calculator {
    padding: var(--space-8) var(--space-4);
  }

  .progress-step {
    width: 36px;
    height: 36px;
    font-size: var(--text-base);
  }

  .option-card {
    padding: var(--space-6);
    min-height: 140px;
  }

  .review-card,
  .service-card,
  .advantage-card {
    padding: var(--space-6);
  }
}

/* ========================================
   UTILITIES
   ======================================== */

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mt-20 { margin-top: var(--space-20); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mb-20 { margin-bottom: var(--space-20); }

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}


/* ========================================

/* ========================================

/* ========================================

/* ========================================
   CLEAN ONE-ROW DESKTOP HEADER
   Structure: brand | site-nav | CTA
   Mobile drawer @media (max-width: 768px) lives above.
   ======================================== */
@media (min-width: 769px) {
  .site-header-row {
    display: flex;
    align-items: center;
    gap: var(--space-6);
  }
  .menu-toggle {
    display: none;
  }
  .site-nav-wrap {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: var(--space-6);
  }
  .site-nav {
    margin-right: auto;
  }
  .site-nav ul {
    gap: var(--space-6);
    flex-wrap: nowrap;
  }
  .site-nav a {
    white-space: nowrap;
  }
  .header-cta {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
@media (max-width: 768px) {
  /* Mobile drawer: brand + toggle visible; nav-wrap collapses into overlay */
  .site-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .site-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: var(--space-4);
  }
  .site-nav-wrap.active {
    display: flex;
  }
  .site-nav ul {
    flex-direction: column;
    gap: var(--space-4);
  }
}
