/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 1180px;
  margin: 0 auto;
  background-color: #f5f5f5;
}

h1, h2, h3 {
  font-family: 'Roboto Condensed', sans-serif;
  margin-bottom: 1rem;
  color: #0a244c;
}

h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: #e31d38;
}

h3 {
  font-size: 1.5rem;
  color: #0a244c;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: #0a244c;
}

/* Container */
.container {
  width: 100%;
  padding: 0 20px;
}

/* Blocks */
.block {
  padding: 60px 0;
  position: relative;
}

/* Block 1: Offer Section */
#offer {
  background: linear-gradient(135deg, rgba(10, 36, 76, 0.9) 0%, rgba(227, 29, 56, 0.8) 100%),
              url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="10" height="10" fill="rgba(255,255,255,0.03)"/><rect x="10" y="10" width="10" height="10" fill="rgba(255,255,255,0.03)"/></svg>');
  color: #fff;
  min-height: 430px;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 80px 0;
}

#offer h1, #offer h2 {
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

#offer h2 {
  margin-top: -10px;
  margin-bottom: 30px;
}

#offer h2:after {
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
}

#offer p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

#offer .button {
  display: inline-block;
  background-color: #fff;
  color: #e31d38;
  padding: 15px 30px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin-top: 20px;
  border: 2px solid transparent;
  font-size: 1rem;
}

#offer .button:hover {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}

/* Reviews Section */
#reviews {
  background-color: #0a244c;
  color: #fff;
}

#reviews h2, #reviews h3 {
  color: #fff;
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 5px;
  position: relative;
}

.review:before {
  content: """;
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 5rem;
  opacity: 0.2;
  color: #fff;
  line-height: 0.8;
}

/* Products Section */
#products {
  background-color: #fff;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.product {
  border: 1px solid #e0e0e0;
  padding: 25px;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e31d38;
  margin: 15px 0 5px;
}

.return {
  font-weight: 500;
  color: #0a244c;
}

.article {
  background-color: #f9f9f9;
  padding: 30px;
  border-left: 4px solid #e31d38;
  margin-top: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article h3 {
  color: #e31d38;
}

/* Newsletter Section */
#newsletter {
  background-color: #e31d38;
  color: #fff;
  text-align: center;
}

#newsletter h2, #newsletter h3 {
  color: #fff;
}

#newsletter h2:after {
  left: 50%;
  transform: translateX(-50%);
}

#newsletter form {
  display: flex;
  max-width: 600px;
  margin: 30px auto 0;
}

#newsletter input[type="email"] {
  flex: 1;
  padding: 15px;
  border: none;
  outline: none;
  border-radius: 3px 0 0 3px;
  font-size: 1rem;
}

#newsletter .button {
  padding: 15px 30px;
  background-color: #0a244c;
  color: #fff;
  border: none;
  border-radius: 0 3px 3px 0;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 1rem;
}

#newsletter .button:hover {
  background-color: #051329;
}

/* Specialists Section */
#specialists {
  background-color: #f5f5f5;
}

.specialists-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.specialist {
  background-color: #fff;
  padding: 25px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.specialist:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
#contact {
  background-color: #0a244c;
  color: #fff;
}

#contact h2, #contact h3 {
  color: #fff;
}

address {
  margin-bottom: 30px;
  font-style: normal;
  font-size: 1.1rem;
}

.map-container {
  height: 450px;
  border-radius: 5px;
  overflow: hidden;
}

/* Footer */
#footer {
  background-color: #051329;
  color: #fff;
  text-align: center;
  padding: 30px 0;
}

/* Buttons Global Style */
.button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #e31d38;
  color: #fff;
  border-radius: 3px;
  font-weight: 700;
  transition: all 0.3s ease;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.button:hover {
  background-color: #c11930;
}

/* Media Queries */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .block {
    padding: 40px 0;
  }

  #offer {
    padding: 60px 0;
  }

  #newsletter form {
    flex-direction: column;
  }

  #newsletter input[type="email"] {
    border-radius: 3px;
    margin-bottom: 10px;
  }

  #newsletter .button {
    border-radius: 3px;
    width: 100%;
  }

  .products-container,
  .specialists-container,
  .reviews-container {
    grid-template-columns: 1fr;
  }

  .product, .specialist, .review {
    margin-bottom: 20px;
  }

  .article {
    padding: 20px;
  }

  .map-container {
    height: 300px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .block {
    padding: 30px 0;
  }

  #offer {
    min-height: 380px;
  }

  .container {
    padding: 0 15px;
  }

  .article {
    padding: 15px;
  }
}
