/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Базовые стили */
body {
  font-family: 'Inter', sans-serif;
}

/* Унификация ширины страниц */
.container {
  max-width: 1280px !important; /* Фиксированная максимальная ширина для всех контейнеров */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Стили для баннеров страниц */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
  color: white;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(37, 99, 235, 0.85), rgba(29, 78, 216, 0.85));
  z-index: 1;
}

.page-banner-content {
  position: relative;
  z-index: 2;
}

/* Стили для просмотров статей */
.article-views {
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.article-views svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
}

/* Стили для иконок социальных сетей */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  color: white;
  transition: all 0.2s;
}

.social-icon-vk {
  background-color: #4a76a8;
}

.social-icon-telegram {
  background-color: #0088cc;
}

.social-icon-whatsapp {
  background-color: #25d366;
}

.social-icon:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Стили для меню */
.menu-link {
  position: relative;
}

.menu-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2563eb;
  transition: width 0.2s ease-in-out;
}

.menu-link:hover::after,
.menu-link.active::after {
  width: 100%;
}

.menu-link:hover {
  color: #2563eb !important;
}

/* Стили для кнопки телефона */
.phone-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #2563eb;
  color: white;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s;
  text-decoration: none;
}

.phone-button:hover {
  background-color: #1d4ed8;
}

.phone-button svg {
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.phone-button span {
  vertical-align: middle;
}

/* Компоненты */
.btn-primary {
  background-color: #2563eb;
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}
.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  background-color: white;
  color: #2563eb;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #2563eb;
  transition: background-color 0.2s;
}
.btn-secondary:hover {
  background-color: #f9fafb;
}

.card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 1.875rem;
  }
}

/* Улучшения для форм */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}

/* Улучшения для каталога */
.catalog-filters {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Улучшения для деталей недвижимости */
.property-gallery {
  margin-bottom: 2rem;
}

.property-info {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .property-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

.property-feature {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}
.property-feature i {
  margin-right: 0.75rem;
  color: #2563eb;
}

/* Улучшения для блога */
.article-card {
  transition: transform 0.2s;
}
.article-card:hover {
  transform: translateY(-4px);
}

.article-meta {
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.article-meta i {
  margin-right: 0.375rem;
}
.article-meta span {
  margin-right: 1rem;
}

/* Улучшения для футера */
.footer-link {
  display: block;
  color: #6b7280;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-link:hover {
  color: #2563eb;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #f3f4f6;
  color: #4b5563;
  margin-right: 0.5rem;
  transition: background-color 0.2s, color 0.2s;
}
.social-link:hover {
  background-color: #2563eb;
  color: white;
}
