/*
  Простий та сучасний дизайн для сайту з оцінки майна. 
  Мета стилю — забезпечити чистий вигляд без зайвих елементів, 
  щоб контент залишався в центрі уваги. 
*/

html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2d2d2d;
  background-color: #f4f6f8;
  line-height: 1.6;
}

/* Навігація */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav .logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #00796b;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: #2d2d2d;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #00796b;
}

/* Герой (перша секція) */
.hero {
  position: relative;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 80%;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background-color: #00796b;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #009688;
}

/* Загальна структура секцій */
section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #00796b;
}

section p {
  margin-bottom: 1.25rem;
}

/* Секція послуг */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service {
  flex: 1 1 280px;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.service h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #00796b;
  font-size: 1.25rem;
}

.service p {
  font-size: 0.95rem;
  color: #555555;
}

.service a {
  display: inline-block;
  margin-top: 1rem;
  color: #00796b;
  font-weight: 600;
  text-decoration: none;
}

.service a:hover {
  text-decoration: underline;
}

/* Секція партнерів */
.partners-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.partner-item {
  flex: 1 1 200px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.partner-item h4 {
  margin-top: 0;
  color: #00796b;
  font-size: 1rem;
}

.partner-item p {
  font-size: 0.9rem;
  color: #555555;
}

/* Додаємо стилі для логотипів партнерів */
.partner-item img {
  width: 90px;
  height: auto;
  margin-bottom: 0.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Стилі для зображень у розділі рекомендацій */
.testimonial img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  object-fit: cover;
}

/* Секція рекомендацій */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial .author {
  font-weight: 600;
  color: #00796b;
  font-size: 0.9rem;
}

/* Футер */
footer {
  background-color: #00796b;
  color: #ffffff;
  padding: 2rem;
}

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

footer .footer-section {
  flex: 1 1 200px;
}

footer h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  color: #ffffff;
}

footer p, footer a {
  font-size: 0.9rem;
  color: #e0f2f1;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  nav ul li {
    margin-left: 1rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  section {
    padding: 2rem 1rem;
  }
  .services {
    flex-direction: column;
  }
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
}