:root {
  --primary: #0f4c75;
  --accent: #f39c12;
  --light: #f8f9fa;
  --text: #2c3e50;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
.btn { display: inline-block; padding: 14px 28px; background: var(--accent); color: var(--white); border-radius: var(--radius); font-weight: 600; cursor: pointer; border: none; transition: 0.2s; }
.btn:hover { background: #e67e22; transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--primary); }
.section { padding: 60px 0; text-align: center; }
.bg-light { background: var(--light); }
.bg-primary { background: var(--primary); color: var(--white); }
.bg-primary p { color: #cbd5e0; margin-bottom: 30px; }
h1, h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 20px; }
h2 { color: var(--primary); }
.bg-primary h2 { color: var(--white); }

/* Header */
.header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; flex-wrap: wrap; gap: 10px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #1a6fa1 100%); color: var(--white); padding: 100px 0 80px; text-align: center; }
.hero h1 span { color: var(--accent); }
.hero p { max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.card { background: var(--white); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: left; font-weight: 500; }

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.portfolio-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.portfolio-item:hover { transform: translateY(-5px); }
.portfolio-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.portfolio-caption {
  padding: 15px;
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
}

/* Prices */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 30px;
}
.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 500;
}
.price-name { color: var(--text); }
.price-value { 
  color: var(--accent); 
  font-weight: 700; 
  font-size: 1.1rem;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.review-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
}
.review-stars { margin-bottom: 10px; }
.review-text { 
  font-style: italic; 
  margin-bottom: 15px; 
  color: #444;
}
.review-author {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 40px; }
.feature { padding: 20px; background: var(--white); border-radius: var(--radius); font-weight: 500; }

/* Steps */
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 40px; }
.step { flex: 1; min-width: 200px; max-width: 220px; padding: 20px; background: var(--light); border-radius: var(--radius); }
.step span { display: inline-block; width: 40px; height: 40px; background: var(--primary); color: var(--white); border-radius: 50%; line-height: 40px; font-weight: 700; margin-bottom: 10px; }

/* 🔹 Форма — универсальные стили для .form и .sltop__form */
.form,
.sltop__form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.form input,
.form textarea,
.sltop__form input:not([type="hidden"]),
.sltop__form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbd5e0;
  border-radius: var(--radius);
  font-size: 1rem;
  resize: vertical;
}
.form textarea,
.sltop__form textarea {
  min-height: 80px;
}
.form-status {
  margin-top: 10px;
  min-height: 20px;
  font-weight: 500;
}

/* Footer */
.footer { background: #0a2540; color: #cbd5e0; padding: 30px 0; text-align: center; font-size: 0.9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.footer a { color: var(--accent); font-weight: 600; }

/* Адаптив */
@media (max-width: 768px) {
  .nav { display: none; }
  .header__inner { justify-content: center; }
  .hero { padding: 80px 0 60px; }
}
@media (max-width: 480px) {
  .price-item, .review-card, .portfolio-caption {
    padding: 15px;
    font-size: 0.95rem;
  }
  .portfolio-item img { height: 180px; }
  .form, .sltop__form {
    padding: 0 10px;
  }
}