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

/* Base Styles */
:root {
  --primary-color: #1A237E;
  --secondary-color: #D4AF37;
  --accent-color: #D32F2F;
  --light-color: #F5F5F5;
  --dark-color: #212121;
  --gray-color: #757575;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  padding: 4rem 0;
}

.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.button:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Section (Block 1) */
.hero-section {
  min-height: 430px;
  display: flex;
  align-items: center;
  background-color: #0c1445; /* Темно-синий фон */
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  color: white;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 20px;
}

.hero-section .container {
  text-align: center;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.hero-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.hero-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .button {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  font-size: 1.1rem;
  padding: 1rem 2rem;
  margin-top: 1rem;
}

.hero-section .button:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Reviews Section (Block 5) */
.reviews-section {
  background-color: var(--light-color);
  padding: 4rem 0;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.review {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.review h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.stars {
  color: var(--secondary-color);
  font-size: 1.3rem;
  margin-top: 1rem;
}

/* Products Section (Block 3) */
.products-section {
  background-color: #f0f0f0;
  padding: 4rem 0;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.product {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

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

.product h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  margin: 1rem 0;
}

.product .button {
  align-self: center;
  margin-top: 1rem;
}

/* Article Styling */
.article {
  background: linear-gradient(to right, var(--primary-color), #303F9F);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article h2 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.article p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Form Section (Block 2) */
.form-section {
  background-color: white;
  padding: 4rem 0;
}

.form-section .container {
  max-width: 600px;
  text-align: center;
}

.form-section form {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.form-section input {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-section button {
  align-self: center;
  width: auto;
  min-width: 200px;
}

/* Specialists Section (Block 4) */
.specialists-section {
  background-color: #e0e0e0;
  padding: 4rem 0;
}

.specialists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.specialist {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.specialist h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
}

/* Contact Section (Block 6) */
.contact-section {
  background-color: var(--light-color);
  padding: 4rem 0;
}

.contact-section .container {
  text-align: center;
}

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

.map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Footer (Block 7) */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

footer p {
  margin-bottom: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section h2 {
    font-size: 1.5rem;
  }

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

  .container {
    padding: 1rem;
  }

  section {
    padding: 2rem 0;
  }

  .hero-section .button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

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

  .hero-section h2 {
    font-size: 1.3rem;
  }

  .product, .specialist, .review {
    padding: 1.5rem;
  }

  .article {
    padding: 1.5rem;
  }

  .article h2 {
    font-size: 1.3rem;
  }
}
