:root {
  --primary: #2563eb;
  --dark: #1f2937;
  --gray: #6b7280;
  --light: #f3f4f6;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 24px;
  height: 2px;
  background: var(--dark);
}

/* Hero */
.hero {
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Общие секции */
section { padding: 60px 0; }
.section-title {
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center;
}

/* About */
.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.about-section img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Услуги */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-info { padding: 20px; }
.service-title { margin-bottom: 8px; font-size: 1.1rem; }
.service-desc { color: var(--gray); font-size: 0.95rem; }

/* Портфолио */
.filters button {
  background: none;
  border: 1px solid var(--gray);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 8px;
  margin-bottom: 24px;
  transition: all 0.2s;
}

.filters button.active,
.filters button:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-info { padding: 16px; }
.project-title { font-weight: 700; margin-bottom: 4px; }
.project-type {
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.project-desc { font-size: 0.9rem; color: var(--gray); }

/* Преимущества */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.advantages-grid h4 { margin-bottom: 8px; }
.advantages-grid p { color: var(--gray); }

/* Отзывы */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.review-card p { margin-bottom: 12px; }
.review-card footer { color: var(--gray); font-style: italic; }

/* Контакты */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover { background: #1d4ed8; }

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 40px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer-col h4 { margin-bottom: 16px; color: var(--white); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--gray); text-decoration: none; }
.footer-col a:hover { color: var(--white); }

/* Мобильная адаптация */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }
  .nav-links.active { display: flex; }
  .burger { display: flex; }
  .hero h1 { font-size: 1.75rem; }
  .contacts-grid, .about-section { grid-template-columns: 1fr; }
}