* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f6f8;
  color: #171717;
  line-height: 1.5;
}

.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

/* ШАПКА */

header {
  background: #111827;
  color: white;
  padding: 24px 0;
  border-bottom: 5px solid #e11d2e;
}

header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 1px;
}

header p {
  margin: 5px 0 0;
  color: #d1d5db;
  font-size: 17px;
}

/* ГЛАВНЫЙ БЛОК */

.hero {
  background: white;
  margin-top: 30px;
  padding: 55px 40px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.hero h2 {
  margin: 0 0 15px;
  font-size: 46px;
  line-height: 1.1;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 20px;
  color: #555;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: #e11d2e;
  color: white;
  text-decoration: none;
  padding: 17px 28px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
}

.btn:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: #111827;
}

/* ПРЕИМУЩЕСТВА */

.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0 55px;
}

.advantages div {
  background: white;
  border-radius: 14px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.advantages strong {
  display: block;
  font-size: 20px;
  margin-bottom: 5px;
}

.advantages span {
  color: #666;
}

/* КАТАЛОГ */

#catalog {
  padding: 20px 0 50px;
}

#catalog h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 5px;
}

.section-description {
  text-align: center;
  color: #666;
  font-size: 18px;
  margin-bottom: 25px;
}

.brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.brands button {
  border: 2px solid #e5e7eb;
  background: white;
  padding: 20px 10px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.brands button:hover {
  border-color: #e11d2e;
  color: #e11d2e;
}

/* ПОИСК */

.search-box {
  background: #111827;
  padding: 28px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.search-box h3 {
  color: white;
  margin: 0 0 12px;
  font-size: 22px;
}

.search-box input {
  display: block;
  width: 100%;
  padding: 18px;
  border: 0;
  border-radius: 9px;
  font-size: 18px;
  outline: none;
}

/* ТОВАРЫ */

#products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ПОМОЩЬ */

.help {
  margin: 30px 0;
  padding: 50px 35px;
  background: #e11d2e;
  color: white;
  border-radius: 18px;
  text-align: center;
}

.help h2 {
  margin-top: 0;
  font-size: 35px;
}

.help p {
  max-width: 700px;
  margin: 0 auto 25px;
  font-size: 19px;
}

.big-phone {
  display: inline-block;
  background: white;
  color: #111827;
  padding: 17px 25px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
}

/* КАК КУПИТЬ */

.how {
  padding: 45px 0 65px;
}

.how > h2 {
  text-align: center;
  font-size: 34px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps > div {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
}

.steps b {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: #e11d2e;
  color: white;
  border-radius: 50%;
  font-size: 22px;
}

.steps h3 {
  font-size: 20px;
  margin-bottom: 7px;
}

.steps p {
  color: #666;
}

/* ПОДВАЛ */

footer {
  background: #111827;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

footer strong {
  font-size: 27px;
}

footer p {
  margin: 7px;
  color: #d1d5db;
}

footer a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

/* ТЕЛЕФОН */

@media (max-width: 700px) {

  header {
    text-align: center;
  }

  header h1 {
    font-size: 27px;
  }

  .hero {
    margin-top: 15px;
    padding: 38px 18px;
  }

  .hero h2 {
    font-size: 34px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .advantages {
    grid-template-columns: 1fr;
    margin-bottom: 35px;
  }

  #catalog h2 {
    font-size: 29px;
  }

  .brands {
    grid-template-columns: repeat(2, 1fr);
  }

  .brands button {
    padding: 17px 5px;
    font-size: 16px;
  }

  #products {
    grid-template-columns: 1fr;
  }

  .help {
    padding: 35px 18px;
  }

  .help h2 {
    font-size: 28px;
  }

  .big-phone {
    width: 100%;
    font-size: 21px;
  }

  .steps {
    grid-template-columns: 1fr;
  }
.catalog{
  max-width:1100px;
  margin:40px auto;
  padding:30px 20px;
}

.catalog h2{
  text-align:center;
  font-size:32px;
  margin-bottom:8px;
}

.catalog > p{
  text-align:center;
  color:#666;
}

.catalog-controls{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:12px;
  margin:25px 0 15px;
}

.catalog-controls select,
.catalog-controls input{
  width:100%;
  padding:14px 16px;
  border:1px solid #d7d7d7;
  border-radius:10px;
  font-size:16px;
  background:#fff;
}

#catalogCount{
  text-align:left;
  font-weight:700;
  margin:10px 0 20px;
}

#productGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.product-card{
  background:#fff;
  border:1px solid #ececec;
  border-radius:14px;
  padding:20px;
  box-shadow:0 4px 16px rgba(0,0,0,.06);
}

.product-card h3{
  font-size:21px;
  margin:8px 0;
}

.badge{
  display:inline-block;
  background:#e52332;
  color:#fff;
  padding:5px 9px;
  border-radius:20px;
  font-size:13px;
  font-weight:700;
}

.engine-price{
  font-size:23px;
  font-weight:700;
  margin:12px 0;
}

.product-card .button{
  display:inline-block;
  background:#e52332;
  color:#fff;
  text-decoration:none;
  padding:11px 14px;
  border-radius:8px;
  margin-top:8px;
  margin-right:6px;
  font-weight:700;
}

.product-call{
  display:inline-block;
  color:#222;
  text-decoration:none;
  padding:11px 10px;
  font-weight:700;
}

@media(max-width:900px){
  #productGrid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:600px){
  .catalog-controls{
    grid-template-columns:1fr;
  }

  #productGrid{
    grid-template-columns:1fr;
  }
}
}

.catalog{
  max-width:1100px;
  margin:40px auto;
  padding:30px 20px;
}

.catalog h2{
  text-align:center;
  font-size:32px;
}

.catalog-controls{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:12px;
  margin:25px 0;
}

.catalog-controls select,
.catalog-controls input{
  padding:14px;
  border:1px solid #ddd;
  border-radius:10px;
  font-size:16px;
}

#productGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.product-card{
  background:white;
  border:1px solid #e5e5e5;
  border-radius:14px;
  padding:20px;
  box-shadow:0 4px 15px rgba(0,0,0,.08);
}

.product-card h3{
  font-size:21px;
}

.badge{
  display:inline-block;
  background:#e52332;
  color:white;
  padding:5px 10px;
  border-radius:20px;
}

.engine-price{
  font-size:22px;
  font-weight:bold;
}

.product-card .button{
  display:inline-block;
  background:#e52332;
  color:white;
  padding:11px 14px;
  border-radius:8px;
  text-decoration:none;
  margin-right:8px;
}

@media(max-width:700px){
  #productGrid{
    grid-template-columns:1fr;
  }

  .catalog-controls{
    grid-template-columns:1fr;
  }
}