:root {
  --bg: #ffffff;
  --surface: #f8fff8;
  --card: #ffffff;
  --text: #2d5a2d;
  --muted: #6b7c6b;
  --primary: #22c55e;
  --primary-600: #16a34a;
  --accent: #16a34a;
  --danger: #dc3545;
  --pill: #f0f9f0;
  --border: #d1fae5;
  --shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Fix for currency symbols - ensure proper font rendering */
.price-unit, .currency, [data-currency] {
  font-family: "Segoe UI Symbol", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-variant-numeric: tabular-nums;
}

/* Ensure ruble symbol displays correctly */
.price-unit::before {
  content: "₽";
  font-family: "Segoe UI Symbol", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* Prevent horizontal overflow on all elements */
* {
  max-width: 100%;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Text overflow prevention */
h1, h2, h3, h4, h5, h6 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

p, span, div {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Prevent text from overflowing containers */
.text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Desktop styles - restore normal heading sizes */
@media (min-width: 769px) {
  h1 { font-size: 5rem; line-height: 1.2; }
  h2 { font-size: 2rem; line-height: 1.3; }
  h3 { font-size: 1.5rem; line-height: 1.3; }
  h4 { font-size: 1.25rem; line-height: 1.4; }
  h5 { font-size: 1.125rem; line-height: 1.4; }
  h6 { font-size: 1rem; line-height: 1.4; }
}

/* Mobile-specific text improvements */
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; line-height: 1.2; }
  h2 { font-size: 1.25rem; line-height: 1.3; }
  h3 { font-size: 1.125rem; line-height: 1.3; }
  h4 { font-size: 1rem; line-height: 1.4; }
  h5 { font-size: 0.875rem; line-height: 1.4; }
  h6 { font-size: 0.75rem; line-height: 1.4; }
  
  p {
    font-size: 16px;
    line-height: 1.5;
  }
  
  .btn {
    font-size: 16px;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.25rem; line-height: 1.1; }
  h2 { font-size: 1.125rem; line-height: 1.2; }
  h3 { font-size: 1rem; line-height: 1.2; }
  h4 { font-size: 0.875rem; line-height: 1.3; }
  h5 { font-size: 0.75rem; line-height: 1.3; }
  h6 { font-size: 0.625rem; line-height: 1.3; }
  
  p {
    font-size: 14px;
    line-height: 1.4;
  }
  
  .btn {
    font-size: 14px;
    padding: 10px 16px;
  }
}

.container { width: min(1120px, 92%); margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.projects-grid { display: flex; flex-direction: column; gap: 32px; }
.section-tabs { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.view-controls { display: flex; gap: 8px; }
.view-btn { padding: 8px 16px; border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 6px; cursor: pointer; transition: all 0.3s ease; }
.view-btn.active, .view-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.project-status { position: absolute; top: 12px; left: 12px; background: var(--primary); color: white; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.project-prices { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.project-prices .price { font-size: 18px; font-weight: 700; color: var(--primary); }
.project-prices .rooms { font-size: 14px; color: var(--muted); background: var(--pill); padding: 4px 8px; border-radius: 12px; }
.project-features { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.project-features .feature { font-size: 12px; color: var(--muted); }
.project-features .discount { font-size: 12px; color: var(--accent); font-weight: 600; }
.project-features .status { font-size: 12px; color: var(--primary); font-weight: 600; }
.project-actions { margin-top: 16px; }
.promos-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 32px; 
  margin-top: 20px;
}

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 12px; top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 16px 20px; 
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.phone { color: var(--text); text-decoration: none; font-weight: 600; }
.logo { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 32px; background: var(--primary); color: #fff; border-radius: 6px; font-weight: 800; }
.logo-text { 
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav { 
  display: flex; 
  gap: 8px; 
  align-items: center;
}

.nav-link {
  color: var(--muted) !important; 
  text-decoration: none !important; 
  padding: 12px 20px !important; 
  border-radius: 12px !important; 
  transition: all 0.3s ease !important;
  position: relative !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid transparent !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05)) !important;
}

.nav-link:hover { 
  color: var(--primary) !important;
  background: linear-gradient(135deg, rgba(79,124,255,0.1), rgba(79,124,255,0.2)) !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px) !important;
}

.nav-link.active {
  color: var(--primary) !important;
  background: linear-gradient(135deg, rgba(79,124,255,0.15), rgba(79,124,255,0.25)) !important;
  border-color: var(--primary) !important;
}
.nav-toggle { 
  display: none; 
  width: 42px; 
  height: 42px; 
  border-radius: 8px; 
  border: 1px solid var(--border); 
  background: transparent; 
  color: var(--text);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle-bar { display: block; width: 18px; height: 2px; background: currentColor; position: relative; margin: 0 auto; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-list { 
  display: flex; 
  gap: 4px; 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 8px;
  border: 1px solid var(--border);
}
.nav a { 
  color: var(--muted) !important; 
  text-decoration: none !important; 
  padding: 12px 20px !important; 
  border-radius: 12px !important; 
  transition: all 0.3s ease !important;
  position: relative !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid transparent !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05)) !important;
}
.nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}
.nav a:hover { 
  color: var(--primary) !important;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.08), rgba(96, 165, 250, 0.12)) !important;
  border-color: rgba(79, 124, 255, 0.3) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(79, 124, 255, 0.15) !important;
}
.nav a:hover::before {
  width: 80%;
}
.nav a:active {
  transform: translateY(-1px);
}
.nav a.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary), #60a5fa) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 8px 24px rgba(79, 124, 255, 0.4) !important;
  font-weight: 600 !important;
}
.nav a.active::before {
  width: 80%;
  background: #fff;
}
.nav a.active:hover {
  background: linear-gradient(135deg, var(--primary-600), #4f7cff);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 124, 255, 0.5);
}
.nav-phone a { color: var(--text); font-weight: 600; }

.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  padding: 12px 24px; 
  border-radius: 10px; 
  border: none; 
  cursor: pointer; 
  font-weight: 600; 
  transition: all 0.3s ease; 
  font-size: 14px;
  min-height: 44px;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { 
  background: linear-gradient(135deg, var(--primary), var(--primary-600)); 
  color: #fff; 
  box-shadow: var(--shadow); 
  border: 1px solid var(--primary);
}
.btn-primary:hover { 
  background: linear-gradient(135deg, var(--primary-600), var(--primary));
  box-shadow: 0 8px 25px rgba(79, 124, 255, 0.3);
}
.btn-secondary { 
  background: var(--primary); 
  color: white; 
  border: 2px solid var(--primary); 
}
.btn-secondary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: white;
}
.btn-outline { 
  background: transparent; 
  color: var(--primary); 
  border: 1px solid var(--primary); 
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}
.btn-link { background: transparent; color: var(--primary); border: none; padding: 0; }
.btn-large { padding: 16px 32px; font-size: 16px; }

.section { padding: 56px 0; }
.section h2 { margin: 0 0 18px; font-size: 28px; letter-spacing: .2px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }

.hero { 
  position: relative; 
  padding: 80px 0 60px; 
  min-height: 50vh; 
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-inner { 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 800px;
}
.hero-content { 
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero h1 { margin: 0 0 20px; font-size: 96px; line-height: 1.1; font-weight: 700; }
.hero p { margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.hero-cta { 
  display: flex; 
  gap: 16px; 
  margin-bottom: 20px; 
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hero-cta .btn { 
  padding: 16px 32px; 
  font-size: 16px; 
  font-weight: 600;
}
.booking-section { margin-top: 24px; }

/* Booking form styles */
.booking-form { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-top: 20px; }
.booking-header { margin-bottom: 20px; }
.booking-header h3 { margin: 0 0 8px; font-size: 20px; }
.booking-header p { margin: 0; color: var(--muted); font-size: 14px; }
.booking-content { 
  padding: 0;
}
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.calendar-section { 
  padding: 0;
}
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calendar-header h4 { margin: 0; font-size: 16px; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 8px; }
.weekday { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.time-section { 
  padding: 0;
}
.time-section h4 { margin: 0 0 12px; font-size: 16px; }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.booking-form-fields { display: grid; gap: 12px; }

/* Calendar and time slot styles */
.calendar-cell { 
  display: grid; place-items: center; padding: 8px 0; border: 1px solid var(--border); 
  border-radius: 10px; background: #0f1320; color: var(--text); cursor: pointer; 
  user-select: none; min-height: 36px; transition: all 0.15s ease; 
}
.calendar-cell:hover { background: #1b2236; }
.calendar-cell.selected { outline: 2px solid var(--primary); background: rgba(79, 124, 255, 0.1); }
.calendar-cell.disabled { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }
.calendar-cell.booked { 
  background: #ff6b6b; 
  color: #fff; 
  text-decoration: line-through; 
  cursor: not-allowed; 
  opacity: 0.7;
  position: relative;
}
.calendar-cell.booked::after {
  content: '❌';
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
}
.calendar-cell.partially-booked { 
  background: linear-gradient(135deg, #ff6b6b 0%, #4f7cff 100%);
  color: #fff; 
  border: 2px solid #4f7cff;
  position: relative;
}
.calendar-cell.partially-booked:hover {
  background: linear-gradient(135deg, #ff5252 0%, #3b5bdb 100%);
}

.time-slot { 
  padding: 10px; text-align: center; border: 1px solid var(--border); border-radius: 10px; 
  background: #0f1320; color: var(--text); cursor: pointer; transition: all 0.15s ease; 
}
.time-slot:hover { background: #1b2236; }
.time-slot.selected { outline: 2px solid var(--primary); background: rgba(79, 124, 255, 0.1); }
.time-slot.disabled { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }
.time-slot.booked { 
  background: #ff6b6b; 
  color: #fff; 
  text-decoration: line-through; 
  cursor: not-allowed; 
  opacity: 0.7;
  position: relative;
}
.time-slot.booked::after {
  content: '❌';
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
}

.inline-form { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px; align-items: start; background: rgba(255,255,255,.03); padding: 12px; border-radius: 12px; border: 1px solid var(--border); }
.inline-form input[type="text"], .inline-form input[type="tel"], .cta-form input[type="text"], .cta-form input[type="tel"], .modal-form input[type="text"], .modal-form input[type="tel"], .form-input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: #0f1320; color: var(--text);
}
.checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--muted); }
.checkbox input { margin-top: 3px; }
.form-success { display: none; margin: 6px 0 0; font-size: 13px; color: var(--accent); }

.cards { display: grid; gap: 20px; }
.card, .project-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card:hover, .project-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.5); border-color: var(--primary); }

.military-card {
  position: relative;
  background: linear-gradient(135deg, #1a233a 0%, #2d3748 100%);
  border: 2px solid #4a5568;
}

.military-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(79, 124, 255, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
  border-radius: 12px;
  z-index: 1;
}

.military-card .card-icon {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
  z-index: 2;
  position: relative;
}

.military-card h3 {
  color: #fff;
  z-index: 2;
  position: relative;
}

.military-card p {
  color: #e2e8f0;
  z-index: 2;
  position: relative;
}

.military-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(79, 124, 255, 0.4);
  border-color: #4f7cff;
}

.military-info {
  z-index: 2;
  position: relative;
}

.military-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-label {
  font-size: 11px;
  color: #a0aec0;
  margin-bottom: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-value {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #4f7cff, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card-badge { display: inline-block; background: var(--pill); color: var(--muted); font-size: 12px; padding: 4px 8px; border-radius: 999px; margin-bottom: 8px; }
.project-meta { display: flex; gap: 8px; margin-bottom: 10px; }
.pill { background: var(--pill); color: var(--muted); padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.pill-sale { color: #fca5a5; }
.pill-available { color: #86efac; }
.project-location { color: var(--muted); margin-top: -4px; }
.project-prices { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 6px; }

.tabs { 
  display: flex; 
  gap: 8px; 
  background: #f8f9fa; 
  padding: 4px; 
  border-radius: 12px; 
}
.tabs .tab { 
  background: transparent; 
  border: none; 
  padding: 15px 20px !important; 
  border-radius: 10px; 
  font-size: 14px; 
  font-weight: 600; 
  color: var(--muted); 
  cursor: pointer; 
  transition: all 0.3s ease; 
}
.tabs .tab.active { 
  background: white; 
  color: var(--primary); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}
.tabs .tab:hover:not(.active) { 
  color: var(--text); 
}
.tab-panels { margin-top: 20px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.map-placeholder { height: 360px; border-radius: 14px; border: 1px dashed var(--border); display: grid; place-items: center; color: var(--muted); background: #0f1320; }

.about-media { min-height: 260px; border-radius: 16px; background:
  radial-gradient(400px 200px at 20% 20%, rgba(79,124,255,.35) 0%, transparent 60%),
  radial-gradient(500px 240px at 120% 120%, rgba(34,197,94,.25) 0%, transparent 60%),
  #0f1320;
  border: 1px solid var(--border);
}

.cta-content { text-align: center; }
.cta-box { background: linear-gradient(180deg, #122038, #0f162a); border: 1px solid var(--border); padding: 18px; border-radius: 16px; box-shadow: var(--shadow); }
.cta-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: start; }

.site-footer { border-top: 1px solid var(--border); background: rgba(11,13,18,.6); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; padding: 20px; max-width: 1200px; margin: 0 auto; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; animation: fadeIn 0.3s ease; }
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop { animation: fadeIn 0.3s ease; }
.modal-dialog { animation: slideIn 0.3s ease; }
.modal-backdrop { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background: rgba(0,0,0,0.8); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 1000; 
  backdrop-filter: blur(4px);
}
.modal-dialog { 
  position: relative; 
  width: min(520px, 92%); 
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 32px; 
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); 
  z-index: 1001; 
}
.modal-close { 
  position: absolute; 
  top: 16px; 
  right: 16px; 
  background: transparent; 
  border: 1px solid var(--border); 
  color: var(--muted); 
  width: 36px; 
  height: 36px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.modal-close:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.modal-form { display: grid; gap: 10px; margin-top: 10px; }


.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.scroll-top:active {
  transform: translateY(0);
}

/* Секции */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.05) 100%);
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  justify-content: center;
}

.project-hero .hero-cta {
  justify-content: flex-start;
}

.project-hero .btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.project-hero .btn:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.projects {
  padding: 80px 0;
  background: var(--bg);
}

.projects h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2.5rem;
}

.project-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  min-height: 300px;
}

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

.project-image {
  position: relative;
  width: 50%;
  height: 300px;
  overflow: hidden;
  flex-shrink: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.project-badges .badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 40px;
  height: 24px;
  line-height: 1;
}

.project-badges .badge-discount {
  background: var(--primary);
  color: white;
  width: 74px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 12px;
  font-size: 12px;
  height: 18px !important;
}

.project-badges .badge-primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.project-status-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.project-content {
  padding: 32px;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.project-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.project-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--primary-600);
}

.project-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.location-icon {
  color: var(--primary);
  font-size: 16px;
}

.project-apartments {
  margin-top: 16px;
}

.project-apartments h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.apartment-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  position: relative;
}

.apartment-type::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-bottom: 1px dotted #ccc;
}

/* Убираем скрытие линии для последнего элемента */
/* .apartment-type:last-child::after {
  display: none;
} */

.apartment-rooms {
  font-weight: 400;
  color: var(--text);
  font-size: 14px;
}

.apartment-price {
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}

.promos {
  padding: 80px 0;
  background: var(--surface);
}

.promos h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2.5rem;
}

.promo-card {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
  position: relative;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}
.promo-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}
.promo-details {
  margin: 16px 0;
  padding: 12px;
  background: var(--surface);
  border-radius: 8px;
}
.promo-period, .promo-feature {
  font-size: 14px;
  color: var(--muted);
  display: block;
}

.promo-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.promo-content {
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.promo-card:hover {
  transform: translateY(-4px);
}

.mortgage {
  padding: 80px 0;
}

.mortgage-intro {
  text-align: center;
  margin-bottom: 48px;
}

.mortgage-intro h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.mortgage-intro p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.mortgage-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.highlight-item {
  text-align: center;
  padding: 24px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.highlight-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.highlight-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.highlight-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.mortgage-programs {
  margin-bottom: 48px;
}

.mortgage-programs h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 32px;
  color: var(--text);
}

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

.mortgage-card {
  background: var(--card);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow);
}

.mortgage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.mortgage-header h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.mortgage-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.detail-label {
  font-size: 14px;
  color: var(--muted);
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.mortgage-application {
  text-align: center;
  padding: 48px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.mortgage-application h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--text);
}

.mortgage-application p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.mortgage h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2.5rem;
}

/* Адаптивность для секции ипотеки */
@media (max-width: 1200px) {
  .mortgage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .mortgage-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .mortgage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mortgage-highlights {
    grid-template-columns: 1fr;
  }
  .mortgage-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .mortgage-application {
    padding: 32px 24px;
  }
}

.consultation {
  padding: 80px 0;
  background: var(--surface);
}
.consultation-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.consultation-text h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text);
}
.consultation-text p {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 0;
}
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.form-row input {
  flex: 1;
}

.consultation h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2.5rem;
}

.consultation-form {
  max-width: 500px;
  margin: 0 auto;
}

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

.form-group input {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.site-footer {
  padding: 60px 20px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.footer-section p {
  color: var(--muted);
  margin: 8px 0;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li {
  margin: 8px 0;
}
.footer-section ul li a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-section ul li a:hover {
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  color: var(--muted);
  margin: 0;
}

/* Project Pages Styles */
.breadcrumbs {
  margin-bottom: 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  position: relative;
  z-index: 3;
}
.breadcrumbs a {
  color: white;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs span {
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.project-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.project-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}
.project-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -1;
  opacity: 0.3;
}

/* Specific backgrounds for each project */
body.dom-101 .project-hero::before {
  background-image: url('../img/dom-101.jpg.webp');
}
body.narodnye-kvartaly .project-hero::before {
  background-image: url('../img/narodnye-kvartaly.jpg.webp');
}

/* Народные кварталы - белые заголовки */
body.narodnye-kvartaly .project-hero h1 {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

body.narodnye-kvartaly .project-subtitle {
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.01em;
}

body.narodnye-kvartaly .project-date {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

body.narodnye-kvartaly .hero-cta .btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

body.narodnye-kvartaly .hero-cta .btn:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Народные кварталы - менее яркие плашки */
body.narodnye-kvartaly .feature-highlight {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
}

body.narodnye-kvartaly .feature-highlight:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
body.istoriya-2 .project-hero::before {
  background-image: url('../img/istoriya-2.jpg.webp');
}

/* История 2 - белые заголовки */
body.istoriya-2 .project-hero h1 {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

body.istoriya-2 .project-subtitle {
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.01em;
}

body.istoriya-2 .project-date {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

body.istoriya-2 .hero-cta .btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

body.istoriya-2 .hero-cta .btn:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* История 2 - менее яркие плашки */
body.istoriya-2 .feature-highlight {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
}

body.istoriya-2 .feature-highlight:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.project-hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  padding: 80px 0;
  color: white;
}

.personal-selection {
  background: rgba(255, 255, 255, 0.95);
  padding: 60px 0;
  margin-top: 0;
  backdrop-filter: blur(10px);
}
.personal-selection h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text);
  text-align: center;
}

/* Project Sections Grid */
.project-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.project-section-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-section-card .section-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-section-card .section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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


.project-section-card .section-content {
  padding: 20px;
}

.project-section-card .section-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.project-section-card .section-content p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Responsive for project sections */
@media (max-width: 768px) {
  .project-sections-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .project-section-card .section-image {
    height: 160px;
  }
}

/* Layout Options Grid */
.layout-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: 40px 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.layout-card {
  background: white;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  aspect-ratio: 0.85;
  min-height: 280px;
  max-width: 280px;
  margin: 0 auto;
}

.layout-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.layout-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  padding: 16px 16px 8px 16px;
  text-align: center;
  flex-shrink: 0;
}

.layout-plan {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  padding: 12px;
  margin: 0 0 12px 0;
  flex-shrink: 0;
}

.layout-plan img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
  border-radius: 8px;
}

.layout-info {
  padding: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  justify-content: flex-start;
}

.layout-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex-shrink: 0;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.metric-unit {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.layout-btn--green {
  background: #21a453;
  color: #fff;
  border: none;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.layout-btn--green:hover {
  background: #1b8c46;
  transform: translateY(-2px);
}

/* Responsive for layout options */
@media (max-width: 1200px) {
  .layout-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .layout-options-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 320px;
    padding: 0 12px;
  }
  
  .layout-card {
    aspect-ratio: 0.85;
    min-height: 260px;
    max-width: 300px;
  }
  
  .layout-plan {
    height: 100px;
  }
  
  .layout-info {
    padding: 0 12px 12px 12px;
  }
  
  .layout-title {
    font-size: 1.1rem;
    padding: 12px 12px 6px 12px;
  }
  
  .layout-metrics {
    gap: 10px;
  }
  
  .metric-value {
    font-size: 14px;
  }
  
  .metric-label {
    font-size: 10px;
  }
  
  .metric-unit {
    font-size: 10px;
  }
}

.layout-btn:hover {
  background: var(--primary-dark);
}

/* Purchase Options Section */
.purchase-options {
  margin: 60px 0;
}

.purchase-options h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 40px;
  text-align: left;
}

.purchase-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.purchase-card {
  background: linear-gradient(135deg, #21a453 0%, #2bc565 100%);
  border-radius: 16px;
  padding: 24px;
  color: white;
  position: relative;
  box-shadow: 0 4px 20px rgba(33, 164, 83, 0.2);
  transition: all 0.3s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.purchase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(33, 164, 83, 0.3);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.card-button {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.card-button:hover {
  background: white;
  color: #21a453;
}

.card-badge {
  background: #4ade80;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
  margin-top: 8px;
}

.mortgage-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mortgage-row {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mortgage-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.mortgage-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
}

.mortgage-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.spec-item {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.spec-item strong {
  color: var(--text);
  font-weight: 600;
}

/* Responsive for purchase options */
@media (max-width: 1200px) {
  .purchase-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .mortgage-specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .purchase-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .purchase-card {
    min-height: 120px;
    padding: 20px;
  }
  
  .mortgage-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .mortgage-specs {
    grid-template-columns: 1fr;
  }
}

/* Finish Types Section */
.finish-types-section {
  margin: 60px 0;
}

.finish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.finish-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.finish-tabs {
  display: flex;
  gap: 8px;
  background: #f8f9fa;
  padding: 4px;
  border-radius: 12px;
}

.finish-tab {
  background: transparent;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.finish-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.finish-tab:hover:not(.active) {
  color: var(--text);
}

.finish-content {
  position: relative;
}

.finish-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.finish-panel.active {
  display: grid;
}

.finish-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.finish-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.finish-info {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.finish-info p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}

.finish-info p:last-of-type {
  margin-bottom: 32px;
}

.finish-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.feature-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: #f0f2f5;
  transform: translateY(-2px);
}

.feature-icon {
  background: #21a453;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.feature-content p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}


/* Responsive for finish types */
@media (max-width: 1200px) {
  .finish-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .finish-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .finish-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .finish-tabs {
    width: 100%;
    justify-content: space-between;
  }
  
  .finish-tab {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .finish-image img {
    height: 250px;
  }
  
  .finish-info {
    padding: 0;
    height: auto;
  }
}

/* Apartments Page Styles */
.apartments-hero {
  background: #f8f9fa;
  padding: 40px 0;
  border-bottom: 1px solid #e9ecef;
}

.apartments-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 0 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(33, 164, 83, 0.1);
  border: 1px solid rgba(33, 164, 83, 0.2);
}

.breadcrumbs a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 164, 83, 0.3);
}

.breadcrumbs span {
  color: var(--muted);
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(108, 117, 125, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(108, 117, 125, 0.2);
}

.apartments-section {
  padding: 60px 0;
}

.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.apartment-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  display: block;
}

.apartment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  text-decoration: none;
  color: inherit;
}

.apartment-card:visited {
  color: inherit;
  text-decoration: none;
}

.apartment-card:focus {
  outline: none;
  text-decoration: none;
  color: inherit;
}


.apartment-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.apartment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apartment-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100% - 200px);
}

.badge {
  background: #ffffff;
  color: #333333;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.badge.floors {
  background: #e8f5e8;
  color: #2d7a4a;
  border: 1px solid #b8d4b8;
  box-shadow: 0 2px 6px rgba(45, 122, 74, 0.2);
}

.badge.finish {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
  box-shadow: 0 2px 6px rgba(230, 81, 0, 0.2);
}

.sales-button {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: #21a453;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sales-button:hover {
  background: #1b8c46;
  transform: translateY(-2px);
}

.apartment-info {
  padding: 24px;
}

.apartment-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 8px 0;
}

.apartment-info h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
}

.apartment-info .location {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 8px 0;
}

.apartment-info .completion {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 20px 0;
}

.apartment-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.apartments-link {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
}

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

.total-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.price-per-m2 {
  font-size: 12px;
  color: var(--muted);
}

/* Responsive for apartments */
@media (max-width: 1200px) {
  .apartments-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .apartments-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .apartment-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .apartment-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .pricing {
    align-items: flex-start;
  }
}

/* Floor Plans Page Styles */
.floor-plans-hero {
  background: #f8f9fa;
  padding: 40px 0;
  border-bottom: 1px solid #e9ecef;
}

.floor-plans-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 0 0;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 8px 0 0 0;
}

.floor-plans-section {
  padding: 60px 0;
}

.floor-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.floor-plan-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.floor-plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.floor-plan-header {
  padding: 16px 20px 12px;
  position: relative;
}

.floor-plan-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px 0;
}

.floor-plan-header .location {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.room-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  background: #f8f9fa;
  color: #6c757d;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e9ecef;
}

.floor-plan-image {
  position: relative;
  height: 200px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.floor-plan-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.area-details {
  position: absolute;
  top: 20px;
  right: 20px;
}

.area-box {
  background: white;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.area-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.floor-plan-info {
  padding: 16px 20px 20px;
}

.price-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.total-area {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.navigation-arrows {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.nav-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e9ecef;
  background: white;
  color: #6c757d;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-arrow:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.rooms-button {
  width: 100%;
  background: white;
  border: 1px solid #e9ecef;
  color: #6c757d;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rooms-button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Responsive for floor plans */
@media (max-width: 768px) {
  .floor-plans-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .floor-plan-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .area-details {
    top: 10px;
    right: 10px;
  }
  
  .area-box {
    padding: 6px 8px;
  }
  
  .area-value {
    font-size: 10px;
  }
}

/* Apartments Panel Styles */
.apartments-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.apartments-panel.show {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.panel-title h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px 0;
}

.panel-title p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.panel-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.panel-close:hover {
  background: #e9ecef;
  color: var(--text);
}

.panel-content {
  padding: 20px;
}

.panel-floor-plan {
  margin-bottom: 20px;
  text-align: center;
}

.panel-floor-plan img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.panel-summary {
  margin-bottom: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.room-info {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 8px 0;
  font-weight: 500;
}

.found-info {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.apartments-list {
  max-height: 400px;
  overflow-y: auto;
}

.apartment-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}

.apartment-item:last-child {
  border-bottom: none;
}


.apartment-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.apartment-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.apartment-price-per-m2 {
  font-size: 12px;
  color: var(--muted);
}

.status-button {
  background: #21a453;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}

.status-button.available {
  background: #21a453;
}

.apartment-floor {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}

.renovation-banner {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ff9800;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive for apartments panel */
@media (max-width: 768px) {
  .apartment-badges {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 160px);
  }
  
  .renovation-banner {
    top: 12px;
    right: 12px;
    font-size: 11px;
    padding: 4px 8px;
    max-width: 140px;
  }
  
  .apartments-panel {
    width: 100%;
    height: 100vh;
  }
  
  .panel-header {
    padding: 16px;
  }
  
  .panel-content {
    padding: 16px;
  }
  
  .apartments-list {
    max-height: 300px;
  }
}

/* Responsive for layout options */
@media (max-width: 1200px) {
  .layout-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .layout-options-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .layout-plan {
    height: 250px;
  }
  
  .layout-title {
    font-size: 1.2rem;
    padding: 20px 20px 0 20px;
  }
  
  .layout-plan {
    padding: 0 20px;
  }
  
  .layout-details {
    padding: 0 20px;
  }
  
  .layout-btn {
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
  }
}
.selection-form {
  max-width: 600px;
  margin: 0 auto;
}
.selection-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.selection-form .form-row input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
}
.selection-form .form-row input:focus {
  outline: none;
  border-color: var(--primary);
}
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
.form-checkbox label {
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.selection-form .btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}
.project-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.project-subtitle {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.01em;
}

.project-info h1 {
  color: white;
  text-shadow: 0 4px 8px rgba(0,0,0,0.8), 0 2px 4px rgba(0,0,0,0.6);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.1;
}

.project-info h2 {
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.project-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-highlight {
  background: rgba(255, 255, 255, 0.75);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
}
.feature-highlight h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-highlight:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.feature-highlight p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.project-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}
.project-location {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.project-status-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}
.badge-primary {
  background: var(--primary);
  color: white;
  border: none;
}
.badge-discount {
  background: var(--accent);
  color: white;
  border: none;
}
.badge-available {
  background: var(--pill);
  color: var(--text);
  border: 1px solid var(--border);
}
.project-prices-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.price-item {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.price-item .price {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.price-item .rooms {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

.project-details {
  padding: 80px 0;
}
.details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}
.details-main h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--text);
}
.details-main h3 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  color: var(--text);
}

.project-sections {
  display: grid;
  gap: 40px;
  margin: 40px 0;
}
.project-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.project-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}
.project-section p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.section-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.section-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.image-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.location-section {
  margin: 40px 0;
  padding: 24px;
  background: var(--surface);
  border-radius: 8px;
}
.location-section h3 {
  margin-bottom: 8px;
}
.location-section p {
  color: var(--muted);
  margin-bottom: 16px;
}
.virtual-tour {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tour-label {
  font-size: 14px;
  color: var(--text);
}
.tour-duration {
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.purchase-options {
  margin: 40px 0;
}
.options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.option-item {
  background: var(--surface);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
}
.option-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.option-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.section-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.section-tabs .tab {
  background: transparent;
  border: none;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.section-tabs .tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.features-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text);
}
.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.floor-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.plan-item {
  background: var(--surface);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.plan-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.plan-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}
.plan-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.advantage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.advantage-icon {
  font-size: 20px;
}

.infrastructure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.infra-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.infra-icon {
  font-size: 24px;
}

.details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.booking-card, .contact-card {
  background: var(--card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.booking-card h3, .contact-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.booking-card p {
  color: var(--muted);
  margin-bottom: 20px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-label {
  font-weight: 600;
  color: var(--text);
}
.contact-item a {
  color: var(--primary);
  text-decoration: none;
}
.contact-item a:hover {
  text-decoration: underline;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Большие планшеты и маленькие ноутбуки */
@media (max-width: 1200px) {
  .container { width: min(1000px, 95%); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { flex-direction: column; }
  .promos-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Планшеты */
@media (max-width: 1024px) {
  .container { width: min(960px, 95%); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { flex-direction: column; }
  .promos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
  .inline-form { grid-template-columns: 1fr; }
  .cta-form { grid-template-columns: 1fr; }
  
  /* Адаптивная навигация */
  .nav { 
    display: flex; 
    gap: 8px;
    align-items: center;
  }
  
  .nav-toggle { display: inline-flex; }
}

/* Мобильные устройства */
@media (max-width: 760px) {
  .container { width: min(100%, 95%); padding: 0 16px; }
  
  /* Сетки в одну колонку */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  
  /* Header improvements */
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .header-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    order: 3;
  }
  
  .phone {
    font-size: 14px;
    text-align: center;
  }
  
  .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  /* Navigation improvements */
  .nav {
    width: 100%;
    order: 2;
    justify-content: center;
  }
  
  .nav-link {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  /* Hero section improvements */
  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  /* Modal improvements for mobile */
  .modal {
    padding: 20px;
  }
  
  .modal-content {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Project tabs improvements */
  .tabs {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    width: 100%;
  }
  
  .tab {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }
  
  .grid-4 { grid-template-columns: 1fr; }
  .projects-grid { flex-direction: column; }
  .promos-grid { grid-template-columns: 1fr; }
  
  /* Заголовки */
  h1 { font-size: 1.25rem; line-height: 1.2; }
  h2 { font-size: 1.125rem; line-height: 1.3; }
  h3 { font-size: 1rem; }
  
  /* Заголовки в секциях проектов */
  .project-section h2 { font-size: 1.25rem; }
  .project-section h3 { font-size: 1.125rem; }
  .section-title { font-size: 1.25rem; }
  .section h2 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  /* Заголовки в секциях проектов для очень маленьких экранов */
  .project-section h2 { font-size: 0.875rem; }
  .project-section h3 { font-size: 0.75rem; }
  .section-title { font-size: 0.875rem; }
  .section h2 { font-size: 0.875rem; }
  
  /* Header */
  .header-inner { 
    flex-direction: column; 
    gap: 12px; 
    padding: 12px 0;
  }
  .logo { font-size: 1.125rem; }
  
  /* Hero секция */
  .hero { 
    padding: 40px 0; 
    min-height: 40vh;
  }
  .hero h1 { 
    font-size: 56px; 
    line-height: 1.2; 
  }
  .hero-content { text-align: center; }
  .hero-cta { 
    flex-direction: column; 
    gap: 12px; 
    align-items: center; 
  }
  
  /* Карточки */
  .project-card { 
    margin-bottom: 24px; 
  }
  .project-image img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
  }
  
  /* Кнопки */
  .btn { 
    width: 100%; 
    padding: 16px 24px; 
    font-size: 16px; 
  }
  
  /* Формы */
  .form-group input { 
    width: 100%; 
    padding: 16px; 
    font-size: 16px; 
  }
  
  /* Модальные окна */
  .modal-dialog { 
    width: 95%; 
    max-width: none; 
    margin: 20px; 
  }
  
  /* Навигация */
  .nav-toggle { 
    display: none; 
    position: relative;
    z-index: 1001;
  }
  
  .nav { 
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  
  .nav.show {
    display: flex;
  }
  
  .nav-link {
    padding: 16px 24px !important;
    font-size: 18px !important;
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease !important;
  }
  
  .nav-link:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px) !important;
  }
  
  .nav-link.active {
    background: var(--primary) !important;
    color: white !important;
  }
  
  /* Mobile menu close button */
  .nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }
  
  /* Mobile menu overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }
  
  .nav-overlay.show {
    display: block;
  }
  .nav-list { 
    position: absolute; 
    right: 16px; 
    top: 60px; 
    flex-direction: column; 
    background: var(--surface); 
    border: 1px solid var(--border); 
    padding: 16px; 
    border-radius: 12px; 
    display: none; 
    width: calc(100% - 32px); 
    box-shadow: var(--shadow);
    z-index: 1000;
    gap: 8px;
  }
  .nav[aria-expanded="true"] .nav-list { display: flex; }
  .nav-list a {
    padding: 12px 16px;
    margin: 0;
    text-align: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
  }
  .nav-list a.active {
    background: var(--primary);
    color: var(--text);
  }
  
  /* Floor plans grid improvements */
  .floor-plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .floor-plan-card {
    max-width: none;
    margin: 0;
    padding: 16px;
  }
  
  .floor-plan-header {
    padding: 16px 18px 12px;
  }
  
  .floor-plan-header h3 {
    font-size: 16px;
    margin: 0;
  }
  
  .floor-plan-header .location {
    font-size: 14px;
    margin: 6px 0;
  }
  
  .floor-plan-image {
    height: 140px;
  }
  
  .floor-plan-info {
    padding: 16px 18px 18px;
  }
  
  .rooms-button {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  /* Apartments grid improvements */
  .apartments-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .apartment-card {
    max-width: none;
    margin: 0;
    padding: 16px;
  }
  
  /* Filter improvements */
  .filter-section {
    padding: 20px 0;
  }
  
  .filter-tabs {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  
  .filter-tab {
    width: 100%;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 14px;
  }
  
  .filter-button {
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .filter-dropdown {
    width: 100%;
    left: 0;
    right: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  }
  
  .filter-option {
    padding: 12px;
    font-size: 14px;
  }
  
  /* Apartments panel improvements */
  .apartments-panel {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 0;
  }
  
  .panel-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    padding: 20px;
  }
  
  .panel-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .panel-title h3 {
    font-size: 18px;
  }
  
  .panel-title p {
    font-size: 14px;
  }
  
  .panel-close {
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  .panel-floor-plan {
    margin: 16px 0;
  }
  
  .panel-floor-plan img {
    max-width: 100%;
    height: auto;
  }
  
  .panel-summary {
    margin: 16px 0;
  }
  
  .apartments-list {
    max-height: 60vh;
    overflow-y: auto;
  }
  
  .apartment-item {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }
  
  .apartment-details {
    width: 100%;
  }
  
  .apartment-floor {
    font-size: 14px;
  }
  
  .apartment-price {
    font-size: 14px;
  }
  
  .status-button {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  
  /* Header for very small screens */
  .header-inner {
    padding: 4px 0;
  }
  
  .logo {
    font-size: 16px;
  }
  
  .nav-link {
    font-size: 10px;
    padding: 4px 6px;
  }
  
  .phone {
    font-size: 10px;
  }
  
  .btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  /* Hero section for very small screens */
  h1 { 
    font-size: 1.25rem; 
    line-height: 1.1;
    margin-bottom: 6px;
  }
  h2 { font-size: 1.125rem; }
  h3 { font-size: 1rem; }
  
  /* Project cards for very small screens */
  .project-card {
    margin-bottom: 8px;
  }
  
  .project-image {
    height: 120px;
  }
  
  .project-info {
    padding: 8px;
  }
  
  .project-title {
    font-size: 12px;
  }
  
  .project-title h3 {
    font-size: 14px;
  }
  
  .project-title h4 {
    font-size: 12px;
  }
  
  .apartment-type {
    font-size: 8px;
    padding: 4px 6px;
  }
  
  /* Заголовки в карточках для очень маленьких экранов */
  .project-title {
    font-size: 10px;
  }
  
  .project-title h3 {
    font-size: 12px;
  }
  
  .project-title h4 {
    font-size: 10px;
  }
  
  /* Modal improvements for very small screens */
  .modal {
    padding: 8px;
  }
  
  .modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: 95vh;
    overflow-y: auto;
    border-radius: 8px;
  }
  
  .form-group {
    margin-bottom: 8px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 8px;
    font-size: 14px; /* Prevents zoom on iOS */
    border-radius: 6px;
    border: 1px solid #ddd;
  }
  
  .form-group label {
    font-size: 12px;
    margin-bottom: 4px;
    display: block;
  }
  
  .btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
  }
  
  /* Form improvements */
  .form-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .form-row .form-group {
    width: 100%;
  }
  
  /* Table improvements for mobile */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    min-width: 100%;
    font-size: 10px;
  }
  
  th, td {
    padding: 4px 2px;
    white-space: nowrap;
  }
  
  /* List improvements */
  ul, ol {
    padding-left: 12px;
  }
  
  li {
    margin-bottom: 2px;
    font-size: 12px;
  }
  
  /* Card improvements */
  .card {
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
  }
  
  .card-header {
    padding: 8px;
    font-size: 12px;
  }
  
  .card-body {
    padding: 8px;
  }
  
  .card-footer {
    padding: 6px 8px;
  }
  
  /* Toast notifications for mobile */
  .toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 280px;
    padding: 12px 16px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 1.4;
  }
  
  /* Loading spinner for mobile */
  .spinner {
    width: 16px;
    height: 16px;
    border: 1px solid #f3f3f3;
    border-top: 1px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Mobile-specific utilities */
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
  
  .text-center-mobile {
    text-align: center;
  }
  
  .full-width-mobile {
    width: 100%;
  }
}

/* Desktop-specific styles */
@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .nav {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
  
  .nav-link {
    padding: 12px 20px !important;
    font-size: 14px !important;
    color: var(--muted) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    width: auto;
    text-align: left;
    transition: all 0.3s ease !important;
  }
  
  .nav-link:hover {
    color: var(--primary) !important;
    background: linear-gradient(135deg, rgba(79,124,255,0.1), rgba(79,124,255,0.2)) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px) !important;
  }
  
  .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary), #60a5fa) !important;
    border-color: var(--primary) !important;
  }
}
  
  .hero { 
    padding: 24px 0; 
    min-height: 35vh;
  }
  
  .hero h1 {
    font-size: 40px;
    line-height: 1.2;
    margin: 0 0 12px 0;
  }
  
  .hero p {
    font-size: 0.875rem;
    margin-bottom: 16px;
  }
  
  .btn { 
    padding: 10px 16px; 
    font-size: 14px; 
  }
  
  .modal-dialog { 
    width: 95%; 
    margin: 20px; 
  }
  
  /* Floor plan cards for very small screens */
  .floor-plan-card {
    margin-bottom: 12px;
    padding: 12px;
  }
  
  .floor-plan-header {
    padding: 12px 14px 8px;
  }
  
  .floor-plan-header h3 {
    font-size: 14px;
    margin: 0;
  }
  
  .floor-plan-header .location {
    font-size: 12px;
    margin: 4px 0;
  }
  
  .floor-plan-image {
    height: 100px;
  }
  
  .floor-plan-info {
    padding: 12px 14px 14px;
  }
  
  .rooms-button {
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
  }
  
  /* Apartment cards for very small screens */
  .apartment-card {
    margin-bottom: 12px;
    padding: 12px;
  }
  
  .apartment-card .project-image {
    height: 120px;
  }
  
  .apartment-card .project-content {
    padding: 12px;
  }
  
  /* Filter improvements for very small screens */
  .filter-section {
    padding: 16px 0;
  }
  
  .filter-tabs {
    padding: 12px;
    gap: 12px;
  }
  
  .filter-tab {
    padding: 12px 14px;
    font-size: 12px;
  }
  
  .filter-button {
    padding: 12px 14px;
    font-size: 12px;
  }
  
  .filter-dropdown {
    max-width: 98vw;
    max-height: 90vh;
    padding: 12px;
  }
  
  .filter-option {
    padding: 8px;
    font-size: 11px;
  }
  
  /* Apartments panel for very small screens */
  .apartments-panel {
    padding: 12px;
  }
  
  .panel-content {
    padding: 12px;
  }
  
  .panel-title h3 {
    font-size: 14px;
  }
  
  .panel-title p {
    font-size: 11px;
  }
  
  .panel-close {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  
  .panel-floor-plan {
    margin: 8px 0;
  }
  
  .panel-summary {
    margin: 8px 0;
  }
  
  .apartments-list {
    max-height: 45vh;
  }
  
  .apartment-item {
    padding: 6px;
    gap: 4px;
  }
  
  .apartment-floor {
    font-size: 11px;
  }
  
  .apartment-price {
    font-size: 11px;
  }
  
  .status-button {
    padding: 4px 8px;
    font-size: 9px;
  }
  
  /* Grid improvements for very small screens */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .projects-grid {
    gap: 12px;
  }
  
  .promos-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .floor-plans-grid {
    gap: 12px;
  }
  
  .apartments-grid {
    gap: 12px;
  }
  
  /* Mobile navigation for very small screens */
  .nav {
    gap: 12px;
  }
  
  .nav-link {
    font-size: 14px;
    padding: 10px 16px;
    width: 160px;
  }
  
  .nav-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

/* Booking Section Styles */
.booking-section {
  padding: 80px 0;
  background: var(--bg);
}

.booking-header {
  text-align: center;
  margin-bottom: 48px;
}

.booking-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.booking-header h2 {
  font-size: 2.5rem;
  margin: 0;
  color: var(--text);
  flex: 1;
}

.btn-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-close:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
  transform: scale(1.05);
}

.booking-header p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.booking-content {
  max-width: 800px;
  margin: 0 auto;
}

.booking-form {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.1);
}

.form-input::placeholder {
  color: var(--muted);
}

/* Compact Calendar Styles */
.calendar-section {
  margin: 32px 0;
}

.calendar-compact h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text);
}

.calendar-week {
  background: var(--bg);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid var(--border);
  min-height: 80px;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
}

.weekday-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.day-number {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.slots-count {
  font-size: 10px;
  color: #22c55e;
  font-weight: 600;
  margin-top: 4px;
  text-align: center;
}

.booked-indicator {
  font-size: 12px;
  color: #ef4444;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--card);
  color: var(--text);
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  animation: slideInUp 0.3s ease-out;
  max-width: 400px;
  word-wrap: break-word;
}

.toast.success {
  background: white;
  border-color: #22c55e;
  color: #22c55e;
}

.toast.error {
  background: white;
  border-color: #ef4444;
  color: #ef4444;
}

.toast .toast-close { 
  position: absolute; 
  top: 8px; 
  right: 8px; 
  background: transparent; 
  border: none; 
  color: #6b7280;
  width: 20px; 
  height: 20px; 
  border-radius: 50%; 
  cursor: pointer; 
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.toast .toast-close:hover { 
  background: #f3f4f6; 
  color: #374151; 
}

.week-day.past {
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.week-day.weekend {
  background: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.4);
  color: #ffc107;
}

.week-day.weekend .weekday-name,
.week-day.weekend .day-number,
.week-day.weekend .slots-count {
  color: #ffc107;
}

.week-day.today {
  border: 2px solid var(--primary);
  background: rgba(79, 124, 255, 0.1);
}

.week-day.today .day-number {
  color: var(--primary);
}

.week-day.available {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

.week-day.available:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.week-day.has-bookings {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.week-day.has-bookings .weekday-name,
.week-day.has-bookings .day-number,
.week-day.has-bookings .slots-count {
  color: #ef4444;
}

.week-day.selected {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(79, 124, 255, 0.3);
}

.week-day.selected .weekday-name,
.week-day.selected .day-number,
.week-day.selected .slots-count {
  color: white;
}

.calendar-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendar-navigation button {
  padding: 8px 16px;
  font-size: 14px;
}

#currentWeekRange {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

/* Calendar Legend */
.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.legend-color.available {
  background: rgba(34, 197, 94, 0.2);
}

.legend-color.partially-booked {
  background: linear-gradient(45deg, rgba(34, 197, 94, 0.2), rgba(239, 68, 68, 0.2));
}

.legend-color.booked {
  background: rgba(239, 68, 68, 0.2);
}

/* Time Section */
.time-section {
  margin: 32px 0;
}

.time-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.time-slot {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg);
  position: relative;
}

.time-slot:hover {
  border-color: var(--primary);
  background: rgba(79, 124, 255, 0.05);
}

.time-slot.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 124, 255, 0.3);
}

.time-slot.disabled {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  cursor: not-allowed;
  opacity: 0.6;
  text-decoration: line-through;
  border-color: #6b7280;
}

.time-slot.disabled:hover {
  background: rgba(107, 114, 128, 0.1);
  border-color: #6b7280;
}

.time-text {
  font-weight: 600;
  font-size: 14px;
}

.available-info {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}

/* Booking Form Fields */
.booking-form-fields {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.booking-form-fields textarea {
  resize: vertical;
  min-height: 80px;
}

/* Mobile Project Cards */
@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
    min-height: auto;
    margin-bottom: 20px;
  }
  
  .project-image {
    height: 200px;
    width: 100%;
  }
  
  .project-info {
    padding: 16px;
  }
  
  .project-title {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .project-location {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .apartments-list {
    gap: 8px;
  }
  
  .apartment-type {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .project-image {
    width: 100%;
    height: 200px;
  }
  
  .project-content {
    width: 100%;
    padding: 20px;
  }
  
  .feature-highlight {
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
  }
  
  .feature-highlight h3 {
    font-size: 15px;
  }
  
  .feature-highlight p {
    font-size: 13px;
  }
  
  .header-inner {
    padding: 16px 12px;
  }
  
  .site-footer {
    padding: 40px 12px 20px;
  }
}

/* Responsive Booking */
@media (max-width: 768px) {
  .booking-form {
    padding: 20px;
  }
  
  .booking-header-top {
    flex-direction: column;
    gap: 16px;
  }
  
  .booking-header h2 {
    font-size: 2rem;
  }
  
  .btn-close {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .calendar-week {
    padding: 16px;
  }
  
  .week-days {
    gap: 8px;
  }
  
  .week-day {
    min-height: 60px;
    padding: 12px 4px;
  }
  
  .weekday-name {
    font-size: 10px;
  }
  
  .day-number {
    font-size: 16px;
  }
  
  .slots-count {
    font-size: 9px;
  }
  
  .calendar-navigation {
    flex-direction: column;
    gap: 12px;
  }
  
  .calendar-navigation button {
    width: 100%;
    padding: 10px 16px;
  }
  
  .time-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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


@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* История - специфичные стили */
body.istoriya .project-hero h1 {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

body.istoriya .project-subtitle {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
}

body.istoriya .project-date {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.istoriya .hero-cta .btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

body.istoriya .feature-highlight {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

body.istoriya .feature-highlight:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Новые сезоны стили */
body.novye-sezony .project-hero h1 {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

body.novye-sezony .project-subtitle {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
}

body.novye-sezony .project-date {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.novye-sezony .hero-cta .btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

body.novye-sezony .feature-highlight {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

body.novye-sezony .feature-highlight:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Advantages Section */
.advantages-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.advantage-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

.advantage-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

.gallery-overlay h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

.contact-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-label {
    font-weight: 600;
    color: var(--text);
    min-width: 80px;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.consultation-form .form-group {
    display: flex;
    flex-direction: column;
}

.consultation-form input,
.consultation-form textarea {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.consultation-form input:focus,
.consultation-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
}

.form-checkbox label {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
}

/* Project Banner Full Width */
.project-banner-full {
    width: 100vw;
    margin: 40px calc(-50vw + 50%);
    overflow: hidden;
}

.banner-image-full {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .advantage-item,
    .contact-card {
        padding: 20px;
    }
    
    .advantage-icon {
        font-size: 36px;
    }
    
    .project-banner-full {
        margin: 30px calc(-50vw + 50%);
    }
}

/* Filter Section Styles */
.filter-section {
    background: #f8f9fa;
    padding: 20px 0;
    position: relative;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f8fffe 0%, #f0fdf4 100%);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e5f3e5;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.08);
}

.filter-tab {
    background: white;
    border: 2px solid #e5f3e5;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.15);
}

.filter-tab.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
}

.clear-filters-btn {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.clear-filters-btn:hover {
    border-color: #dc2626;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.25);
}

.clear-icon {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
    color: #999;
    margin-left: 4px;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: white;
    border: 2px solid #e5f3e5;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.12);
    z-index: 1000;
    display: none;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dropdown-content {
    padding: 20px;
    background: linear-gradient(135deg, #f8fffe 0%, #f0fdf4 100%);
}

.filter-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    text-align: center;
    padding: 8px 0;
    border-bottom: 2px solid #e5f3e5;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    padding: 12px 16px;
    border-radius: 10px;
    background: white;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.filter-option:hover {
    color: var(--primary);
    background: #f0fdf4;
    border-color: #e5f3e5;
    transform: translateX(4px);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #007bff;
}

.price-type-tabs,
.area-type-tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e5f3e5;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.price-tab,
.area-tab {
    flex: 1;
    padding: 12px 16px;
    background: white;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.price-tab:hover,
.area-tab:hover {
    color: var(--primary);
    background: #f0fdf4;
}

.price-tab.active,
.area-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.price-range,
.area-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.price-range input,
.area-range input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5f3e5;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    background: white;
    color: #374151;
}

.price-range input:focus,
.area-range input:focus {
    outline: none;
    border-color: var(--primary);
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.price-unit,
.area-unit {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    min-width: 30px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5f3e5;
}

.apply-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
}

.apply-btn:hover {
    background: linear-gradient(135deg, var(--primary-600), #15803d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.filter-results {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.apartment-card[style*="display: none"] {
    display: none !important;
}

/* Filter Mobile Responsive */
@media (max-width: 768px) {
    .filter-tabs {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .filter-section {
        width: 100%;
        margin-bottom: 12px;
    }
    
  .filter-button {
    width: 100%;
    justify-content: space-between;
    padding: 16px 20px;
    }
    
    .filter-dropdown {
        width: 100%;
        left: 0;
        right: 0;
        position: relative;
        margin-top: 8px;
    }
    
    .price-range,
    .area-range {
        flex-direction: column;
        gap: 12px;
    }
    
    .price-range input,
    .area-range input {
        width: 100%;
    }
    
    .filter-tab {
        width: 100%;
        justify-content: space-between;
        padding: 16px 20px;
    }
    
    .clear-filters-btn {
        margin-left: 0;
        justify-content: center;
        padding: 16px 20px;
    }
    
    .filter-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 20px;
    }
    
    .dropdown-content {
        padding: 24px;
    }
    
    .price-type-tabs,
    .area-type-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .price-tab,
    .area-tab {
        border-radius: 8px;
    }
    
    .price-range,
    .area-range {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-option {
        padding: 16px;
        font-size: 15px;
    }
}


