/* ===== CSS Variables ===== */
:root {
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-primary: #1e3a5f;
  --color-primary-light: #2d5a8e;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-text: #1a1a2e;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-star: #fbbf24;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-height: 72px;
  --container-max: 1200px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.3; color: var(--color-primary); }

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

main { flex: 1; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3.5rem 0; }
.section--alt { background: var(--color-surface); }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.nav-desktop { display: none; }

.nav-desktop ul {
  display: flex;
  gap: 0.25rem;
}

.nav-desktop a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 99;
}

.nav-mobile.open { display: block; }

.nav-mobile ul { display: flex; flex-direction: column; gap: 0.25rem; }

.nav-mobile a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--color-accent);
  color: white;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--color-primary);
  color: white;
}

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

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

.btn--outline:hover {
  background: var(--color-accent);
  color: white;
}

.btn--ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn--ghost:hover {
  background: white;
  color: var(--color-primary);
}

.btn--sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn--lg { padding: 0.85rem 1.75rem; font-size: 1.05rem; }

/* ===== Cards ===== */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__body { padding: 1.25rem; }

.card__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.card__text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* ===== Badges & Tags ===== */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  background: var(--color-bg);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  margin: 0.15rem;
}

/* ===== Stars ===== */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-star);
  font-size: 0.95rem;
}

.stars .empty { color: var(--color-border); }

/* ===== Forms ===== */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

select.form-control { cursor: pointer; }

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ===== Search Bar ===== */
.search-bar {
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar .form-control { flex: 1; }

/* ===== Hero Slider ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: 420px;
  background: var(--color-primary);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-slide__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,58,95,0.85) 0%, rgba(30,58,95,0.5) 100%);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 3.5rem 3.5rem 5rem;
  max-width: min(580px, calc(100% - 5.5rem));
  color: white;
}

.hero-slide__content h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hero-slide__content p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  font-size: 1.05rem;
}

.slider-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.slider-dot.active { background: white; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.slider-arrow:hover { background: rgba(255,255,255,0.35); }
.slider-arrow--prev { left: 0.75rem; }
.slider-arrow--next { right: 0.75rem; }

/* ===== Category Cards ===== */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}

.category-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.category-card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.category-card p { font-size: 0.85rem; color: var(--color-text-muted); }

/* ===== Service Cards ===== */
.service-card {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.service-card__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--color-text-muted); font-size: 0.9rem; }

/* ===== Company Card ===== */
.company-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.company-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.company-card__logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.company-card__info { flex: 1; min-width: 0; }

.company-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.company-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.company-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.company-card__tags { margin-bottom: 0.5rem; }

.company-card__price {
  font-weight: 600;
  color: var(--color-accent);
}

/* ===== Filters Sidebar ===== */
.page-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.filters-panel {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.filters-panel h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.filter-group { margin-bottom: 1.25rem; }

.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.results-count { color: var(--color-text-muted); font-size: 0.9rem; }

/* ===== Chips / Tabs ===== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chip {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}

.chip:hover,
.chip.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.tab-btn:hover { color: var(--color-accent); }

.tab-btn.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs span { color: var(--color-text); }

/* ===== Page Hero ===== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 0;
}

.page-hero h1 { color: white; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.85; max-width: 600px; }

/* ===== Company Profile ===== */
.company-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.company-hero__logo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.company-hero__info h1 { margin-bottom: 0.5rem; }

.company-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===== Price Table ===== */
.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.price-table th {
  background: var(--color-bg);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.price-table tr:hover td { background: rgba(59, 130, 246, 0.03); }

/* ===== Reviews ===== */
.review {
  padding: 1.25rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.review__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.review__author { font-weight: 600; }
.review__date { font-size: 0.8rem; color: var(--color-text-muted); }
.review__text { color: var(--color-text-muted); font-size: 0.95rem; }

/* ===== Portfolio Grid ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

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

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

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

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

.gallery-item__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-item__info { padding: 1rem; }
.gallery-item__title { font-weight: 600; margin-bottom: 0.35rem; color: var(--color-primary); }
.gallery-item__meta { font-size: 0.85rem; color: var(--color-text-muted); }

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox__caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  max-width: 600px;
}

/* ===== Calculator ===== */
.calculator-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.calculator-form {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.calculator-result {
  background: var(--color-primary);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  display: none;
}

.calculator-result.visible { display: block; }

.calculator-result__total {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
}

.calculator-result__breakdown {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  margin-top: 1rem;
}

.calculator-result__row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== Blog ===== */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.article-card__image { height: 180px; object-fit: cover; width: 100%; }
.article-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.article-card__category { margin-bottom: 0.5rem; }
.article-card__title { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.article-card__excerpt { font-size: 0.9rem; color: var(--color-text-muted); flex: 1; }
.article-card__date { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.75rem; }

.article-content { max-width: 760px; margin: 0 auto; }
.article-content__hero { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 2rem; }
.article-content p { margin-bottom: 1.25rem; color: var(--color-text); }
.article-content h2 { margin: 2rem 0 1rem; }

/* ===== FAQ Accordion ===== */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition);
}

.accordion-trigger:hover { background: var(--color-bg); }

.accordion-trigger::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.accordion-item.open .accordion-trigger::after {
  content: '−';
}

.accordion-content {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.accordion-item.open .accordion-content { display: block; }

/* ===== Constructor (static) ===== */
.constructor-steps {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.constructor-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.constructor-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.before-after {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.before-after__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.before-after__item img { width: 100%; height: 280px; object-fit: cover; }

.before-after__label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-primary);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== Contacts ===== */
.contacts-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.contact-info-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 { margin-bottom: 1rem; }

.contact-info-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-info-item__icon { font-size: 1.25rem; }

.map-placeholder {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
}

.modal h2 { margin-bottom: 1.25rem; font-size: 1.35rem; }

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 1rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
}

.toast--success { background: var(--color-success); }

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

/* ===== Footer ===== */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

.footer-brand .logo { color: white; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; opacity: 0.8; }

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: white; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}

.empty-state__icon { font-size: 3rem; margin-bottom: 1rem; }

/* ===== Utilities ===== */
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ===== Responsive ===== */
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }

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

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

  .page-layout { grid-template-columns: 280px 1fr; }

  .calculator-layout { grid-template-columns: 1fr 1fr; }

  .contacts-layout { grid-template-columns: 1fr 1fr; }

  .before-after { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

  .constructor-steps { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }

  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .hero-slide__content {
    padding: 3rem 4rem 3.5rem 5.5rem;
    max-width: 620px;
  }

  .hero-slide__content h2 { font-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
