:root {
  --bg: #0f1115;
  --surface: #181b21;
  --surface-2: #20242b;
  --text: #e7eaef;
  --muted: #9aa2ad;
  --danger: #e04f4f;
  --danger-2: #b93838;
  --accent: #3ba0e6;
  --border: #2b3038;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html[dir="rtl"] body { direction: rtl; }
html[dir="ltr"] body { direction: ltr; }

body {
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container { max-width: 880px; margin: 0 auto; padding: 0 18px; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 18px;
  box-shadow: var(--shadow);
}

.site-header h1 { margin: 0; font-size: 1.9rem; }
.subtitle { margin: 6px 0 18px; color: var(--muted); font-size: 1.05rem; }

.lang-switcher { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-switcher button {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .95rem;
}
.lang-switcher button:hover { border-color: var(--accent); }
.lang-switcher button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.alert {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border-right: 5px solid var(--danger);
}
[dir="ltr"] .alert { border-right: none; border-left: 5px solid var(--danger); }
.alert h2 { margin: 0 0 8px; font-size: 1.25rem; color: var(--danger); }
.alert p { margin: 0; }

.budget-card {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.budget-card h2 { margin: 0 0 10px; font-size: 1.15rem; color: var(--muted); }
.budget-amount { font-size: 3.2rem; font-weight: 700; letter-spacing: -1px; color: var(--text); }
.budget-card p { margin: 8px 0 0; color: var(--muted); }
.budget-card p:last-child { margin-top: 14px; font-size: .97rem; }

section h2 { font-size: 1.35rem; margin: 30px 0 14px; }

.defects-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.defects-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.reason-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.reason-card h2 { margin-top: 0; }
.reason-steps { display: grid; gap: 14px; }
.reason-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.step-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
}
.reason-step strong { display: block; margin-bottom: 4px; }
.reason-step p { margin: 0; color: var(--muted); font-size: .96rem; }

.future-card, .penalty-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.future-card h2, .penalty-card h2 { margin-top: 0; }
.penalty-card h2 { color: var(--danger); }
.future-list, .penalty-list { padding: 0 18px; margin: 12px 0 0; }
.future-list li, .penalty-list li { margin: 8px 0; color: var(--muted); }
.future-list strong { color: var(--text); display: block; margin-bottom: 4px; }
.future-list p { margin: 0 0 8px; }
.penalty-card > p { color: var(--muted); font-size: .96rem; }

.city-demand-card {
  background: linear-gradient(135deg, #1a1512, var(--surface));
  border: 1px solid #d68a2e;
  border-radius: var(--radius);
  padding: 22px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.city-demand-card h2 { margin-top: 0; color: #f0b35e; }
.city-demand-card > p { color: var(--muted); font-size: .96rem; }
.demand-list { padding: 0 18px; margin: 12px 0 0; }
.demand-list li { margin: 8px 0; color: var(--muted); }
.demand-list strong { color: #f0b35e; }

.defects-list strong { display: block; font-size: 1.1rem; margin-bottom: 6px; color: var(--text); }
.defects-list span { color: var(--muted); }

.docs-section p { color: var(--muted); }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.gallery-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  box-shadow: var(--shadow);
}
.gallery-item:hover { transform: translateY(-3px); border-color: var(--accent); }
.gallery-thumb {
  display: block;
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-meta {
  padding: 12px 14px;
}
.gallery-meta strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
}
.gallery-meta p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
}
.gallery-note {
  background: rgba(59,160,230,.12);
  border: 1px solid rgba(59,160,230,.25);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--muted);
  font-size: .95rem;
  margin: 10px 0 6px;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.active { display: flex; }
.lightbox-stage {
  position: relative;
  max-width: 92vw;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  transform-origin: center;
  transition: transform .15s ease;
  cursor: zoom-in;
}
.lightbox-stage img.zoomed {
  transform: scale(2);
  cursor: zoom-out;
  max-height: none;
}
.lightbox-caption {
  max-width: 720px;
  margin-top: 14px;
  padding: 0 18px;
  color: var(--text);
  text-align: center;
  font-size: .98rem;
  line-height: 1.5;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 1001;
  transition: background .15s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 14px; right: 14px; font-size: 1.8rem; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

.file-list { margin-top: 18px; padding: 0; list-style: none; }
.file-list li { margin: 8px 0; }
.file-list a { color: var(--accent); text-decoration: none; }
.file-list a:hover { text-decoration: underline; }

.cta-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  margin: 34px 0 24px;
}
.cta-section h2 { margin-top: 0; }
.cta-section p { color: var(--muted); max-width: 720px; margin-left: auto; margin-right: auto; }

.roof-help-card {
  background: linear-gradient(135deg, var(--surface), #121c24);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 0 34px;
  box-shadow: var(--shadow);
}
.roof-help-card h2 { margin-top: 0; color: var(--accent); }
.roof-help-card > p { color: var(--muted); font-size: .96rem; }
.roof-help-list { padding: 0 18px; margin: 12px 0 0; }
.roof-help-list li { margin: 10px 0; color: var(--text); line-height: 1.55; }
.roof-help-list strong { color: var(--accent); }

.insurance-card {
  background: linear-gradient(135deg, var(--surface), #221515);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 0 44px;
  box-shadow: var(--shadow);
}
.insurance-card h2 { margin-top: 0; color: var(--danger); }
.insurance-list { padding: 0 18px; margin: 12px 0 0; }
.insurance-list li { margin: 10px 0; color: var(--text); line-height: 1.55; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 34px;
  color: var(--muted);
  text-align: center;
  font-size: .92rem;
}

@media (max-width: 520px) {
  .budget-amount { font-size: 2.4rem; }
  .site-header h1 { font-size: 1.5rem; }
}
