/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: #1e293b;
  background: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.header {
  background: #0f172a;
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #facc15;
}
.logo span {
  color: white;
  font-weight: 300;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: #facc15;
  border-bottom-color: #facc15;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: #f1f5f9;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.adv-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 20px 15px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: 600;
  transition: transform 0.2s;
}
.adv-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.2);
}

/* Форма */
.form-section {
  background: #f8fafc;
  padding: 60px 0;
}

.form-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.form-card h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #0f172a;
}

.form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.form-group input {
  padding: 14px 20px;
  border: 1px solid #cbd5e1;
  border-radius: 40px;
  flex: 1 1 220px;
  font-size: 1rem;
  outline: none;
}

.btn {
  background: #facc15;
  color: #0f172a;
  font-weight: 700;
  padding: 14px 30px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(250,204,21,0.4);
}

.btn:hover {
  background: #eab308;
  transform: scale(1.02);
}

/* Цены */
.prices-section {
  padding: 70px 0;
  background: white;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.price-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.price-block {
  background: #f1f5f9;
  border-radius: 28px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-block h4 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #0f172a;
  border-left: 6px solid #facc15;
  padding-left: 15px;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  flex: 1;
}

.price-item {
  background: white;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.price-item strong {
  font-size: 1.2rem;
}

.price-item span {
  color: #475569;
  font-size: 0.95rem;
}

.price-cost {
  font-weight: 700;
  color: #0f172a;
  font-size: 1.3rem;
  margin-top: auto;
}

/* Слайдеры */
.works-section, .reviews {
  padding: 70px 0;
}

.slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.slider-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 700px;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.work-card, .review-card {
  flex: 0 0 100%;
  padding: 15px;
  box-sizing: border-box;
}

.work-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 15px;
}

.review-card {
  display: flex;
  gap: 20px;
  background: #f8fafc;
  border-radius: 20px;
  padding: 25px;
  align-items: center;
}

.review-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.slider-btn {
  background: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: 0.2s;
}
.slider-btn:hover {
  background: #facc15;
}

/* Калькулятор */
.calc-section {
  background: #0f172a;
  color: white;
  padding: 60px 0;
}

.calculator {
  background: #1e293b;
  border-radius: 28px;
  padding: 35px;
  max-width: 750px;
  margin: 0 auto;
}

.calc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  align-items: center;
}

.calc-row label {
  flex: 1 1 150px;
  font-weight: 500;
}

.calc-row select, .calc-row input {
  padding: 12px 16px;
  border-radius: 30px;
  border: none;
  flex: 2 1 250px;
}

.calc-result {
  font-size: 2rem;
  font-weight: 700;
  color: #facc15;
  text-align: center;
  margin: 20px 0;
}

/* Рассрочка */
.installment {
  background: #fef9c3;
  padding: 60px 0;
  text-align: center;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 25px;
  margin-top: 30px;
  font-weight: 600;
  background: white;
  padding: 30px;
  border-radius: 40px;
}

/* Контроль качества */
.quality {
  padding: 70px 0;
  background: #f8fafc;
}

.quality-img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 28px;
  margin: 0 auto 30px;
}

.quality-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 25px;
  margin-top: 30px;
}

.step {
  background: white;
  padding: 25px;
  border-radius: 24px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  text-align: center;
}

.step-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  display: block;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: #475569;
  margin-top: 5px;
}

/* Подвал */
.footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 40px 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .price-columns {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .header .container {
    flex-direction: column;
  }
  .review-card {
    flex-direction: column;
    text-align: center;
  }
}