/* Base Styles */
:root {
  --primary-color: #9c5d3e; /* Основной цвет - коричневый */
  --secondary-color: #4a382f; /* Темный оттенок для текста и акцентов */
  --light-color: #f4f0ed; /* Светлый фон */

  /* Используем переменные для производных цветов */
  --text-color: var(--secondary-color);
  --dark-color: var(--secondary-color);
  --accent-color: var(--primary-color);
  --success-color: var(--primary-color);
  --warning-color: var(--primary-color);

  /* Шрифты */
  --font-primary: "Sora", sans-serif;
  --font-heading-weight: 600;
  --font-body-weight: 400;
  --font-light-weight: 300;
  --font-bold-weight: 700;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  background-color: var(--light-color);
  color: var(--text-color);
  font-weight: var(--font-body-weight);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-heading-weight);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  text-transform: uppercase;
  font-weight: var(--font-bold-weight);
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  text-transform: uppercase;
  font-weight: var(--font-heading-weight);
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Header */
header {
  background-color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo a:hover {
  transform: scale(1.05);
}

.logo-icon {
  font-size: 28px;
  color: var(--primary-color);
  margin-right: 12px;
  background-color: var(--light-color);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.logo a:hover .logo-icon {
  background-color: var(--primary-color);
  color: white;
}

.logo h1 {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: var(--font-bold-weight);
  letter-spacing: 0.5px;
  position: relative;
  text-transform: uppercase;
}

.menu {
  display: flex;
}

.menu li {
  margin-left: 20px;
}

.menu a {
  font-weight: var(--font-heading-weight);
  padding: 10px 5px;
  position: relative;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
}

.menu a.active,
.menu a:hover {
  color: var(--primary-color);
}

.menu a.active:after,
.menu a:hover:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.close-button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--secondary-color);
  margin-left: 20px;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 100px 0;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://jeshoots.com/wp-content/uploads/2018/07/man-signing-car-insurance-document-or-lease-paper.jpg")
    no-repeat center center/cover;
  filter: blur(5px) brightness(0.7);
  z-index: -1;
  transform: scale(1.1);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  padding-right: 40px;
}

.hero-text h2 {
  font-size: 40px;
  font-weight: var(--font-bold-weight);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: var(--font-light-weight);
  line-height: 1.6;
}

.hero-image {
  flex: 1;
  position: relative;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Features Section */
.features {
  padding: 80px 0;
}

.features h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  position: relative;
  color: var(--secondary-color);
  font-weight: var(--font-bold-weight);
  letter-spacing: 0.5px;
}

.features h2:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: white;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card i {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  background-color: var(--dark-color);
  color: white;
}

.how-it-works h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  position: relative;
  color: var(--secondary-color);
  font-weight: var(--font-bold-weight);
  letter-spacing: 0.5px;
}

.how-it-works h2:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  max-width: 300px;
  margin: 0 auto;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--accent-color);
  color: var(--dark-color);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
}

.step h3 {
  margin-bottom: 15px;
  color: var(--light-color);
}

.cta-center {
  text-align: center;
  margin-top: 30px;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background-color: var(--light-color);
}

.testimonials h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  position: relative;
  color: var(--secondary-color);
  font-weight: var(--font-bold-weight);
  letter-spacing: 0.5px;
}

.testimonials h2:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
}

.testimonial {
  background-color: white;
  padding: 30px;
  position: relative;
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-content p {
  font-style: italic;
  line-height: 1.8;
}

.testimonial-author {
  color: var(--primary-color);
  font-weight: 600;
  text-align: right;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-weight: var(--font-heading-weight);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 18px;
}

.footer-section h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-section.about p {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.contact-info p i {
  margin-right: 10px;
  color: var(--accent-color);
}

.footer-section.links ul li {
  margin-bottom: 10px;
}

.footer-section.links ul li a {
  color: var(--light-color);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-section.links ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-section.newsletter p {
  margin-bottom: 20px;
}

.footer-section.newsletter form {
  display: flex;
}

.footer-section.newsletter input {
  flex: 1;
  padding: 10px;
  background-color: #3a3430;
  border: none;
  color: white;
}

.footer-section.newsletter input::placeholder {
  color: #aaa;
}

.footer-section.newsletter button {
  border: none;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #3a3430;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
  }

  .hero-text {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }

  .steps {
    flex-direction: column;
  }

  .step {
    margin-bottom: 30px;
  }

  .hero-text h2 {
    font-size: 32px;
  }

  .features h2,
  .how-it-works h2,
  .testimonials h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    margin: 0;
  }

  .menu a {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #eee;
  }

  .menu-toggle {
    display: block;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .features h2,
  .how-it-works h2,
  .testimonials h2 {
    font-size: 24px;
  }

  .logo h1 {
    font-size: 20px;
  }

  body {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero-text h2 {
    font-size: 24px;
  }

  .features h2,
  .how-it-works h2,
  .testimonials h2 {
    font-size: 22px;
  }
}

/* Contact Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
}

.form-group textarea {
  min-height: 150px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Page Header */
.page-header {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.page-header .breadcrumb {
  display: flex;
  justify-content: center;
}

.page-header .breadcrumb li {
  margin: 0 10px;
}

/* Content Section */
.content-section {
  padding: 80px 0;
}

.content-section h2 {
  margin-bottom: 30px;
  font-size: 28px;
  color: var(--secondary-color);
}

.content-section p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* About Page Specific */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.team-member {
  background-color: white;
  padding: 20px;
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 20px;
}

.team-member h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.team-member p {
  margin-bottom: 15px;
}

.social-links a {
  margin: 0 5px;
  color: var(--secondary-color);
  font-size: 18px;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Rates Table */
.rates-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.rates-table th,
.rates-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.rates-table th {
  background-color: var(--secondary-color);
  color: white;
  font-weight: 500;
}

.rates-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Contact Information */
.contact-details {
  background-color: white;
  padding: 30px;
  margin-bottom: 30px;
}

.contact-details h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-detail i {
  margin-right: 15px;
  font-size: 24px;
  color: var(--primary-color);
  width: 40px;
  text-align: center;
}

.contact-map {
  height: 400px;
  background-color: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  border: 1px solid #ddd;
}
