/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --burgundy: #5a2630;
  --burgundy-mid: #7a3b46;
  --burgundy-light: #a05562;
  --gray-dark: #4a4a4a;
  --gray: #6e6e6e;
  --gray-light: #9a9a9a;
  --gray-pale: #e8e4de;
  --white: #ffffff;
  --beige: #f7f3ec;
  --gold: #b3976b;
  --gold-light: #d4c0a2;
}

body {
  background: #f5f2ed;
  color: #2c241c;
  font-family: 'Ubuntu', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  top: -300px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180,150,120,0.1) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  bottom: -250px;
  left: -180px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120,60,70,0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== ШАПКА ========== */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 18px;
  border-bottom: 2px solid var(--gray-pale);
  gap: 16px;
}

.logo-block {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.logo {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 5px;
  color: #3a2c20;
  text-transform: uppercase;
}

.tagline {
  font-weight: 300;
  font-style: italic;
  color: var(--gray);
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.nav-inline {
  display: flex;
  gap: 14px 28px;
  flex-wrap: wrap;
}

.nav-inline a {
  text-decoration: none;
  color: var(--gray-dark);
  font-weight: 400;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: 0.25s;
}

.nav-inline a:hover {
  border-bottom-color: var(--burgundy-mid);
  color: var(--burgundy);
}

/* ========== HERO ========== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin: 40px 0 36px;
}

.hero-left h1 {
  font-size: 2.4rem;
  font-weight: 500;
  color: #3a2c20;
  line-height: 1.25;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.hero-left p {
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 440px;
  line-height: 1.6;
}

.hero-right {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: center;
  min-width: 130px;
  flex: 1 1 100px;
  border: 1px solid var(--gray-pale);
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.hero-stat-card .hs-number {
  font-size: 2rem;
  font-weight: 500;
  color: var(--burgundy);
}

.hero-stat-card .hs-label {
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gray-light);
  margin-top: 4px;
}

/* ========== ЗАГОЛОВКИ СЕКЦИЙ ========== */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 24px;
}

.section-head h2 {
  font-weight: 500;
  font-size: 1.5rem;
  color: #3a2c20;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-head .head-line {
  flex: 1;
  height: 2px;
  background: var(--gray-pale);
}

.section-head .head-accent {
  width: 40px;
  height: 2px;
  background: var(--burgundy-mid);
}

/* ========== СЕТКА СТАТЕЙ (4 в ряд) ========== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 16px 0 32px;
}

.article-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--gray-pale);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  border-color: var(--gold-light);
}

.article-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--gray-pale);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e4de, #d4c0a2);
  font-size: 3.5rem;
}

.article-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #3a2c20;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-desc {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f0ece6;
  margin-top: auto;
}

.article-card-date {
  font-size: 0.8rem;
  color: var(--gray-light);
  font-weight: 300;
}

.article-card-tag {
  background: #f5eaec;
  color: var(--burgundy-mid);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== ФУТЕР ========== */
.footer {
  margin-top: 52px;
  padding: 28px 0 22px;
  text-align: center;
  border-top: 2px solid var(--gray-pale);
  font-weight: 300;
  color: var(--gray);
  font-size: 0.85rem;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .article-card-image {
    height: 170px;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-left h1 {
    font-size: 1.9rem;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .article-card-image {
    height: 150px;
  }
  .article-card-body {
    padding: 14px;
  }
  .article-card-title {
    font-size: 1rem;
  }
  .article-card-desc {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }
  .nav-inline {
    gap: 8px 16px;
  }
  .nav-inline a {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .logo {
    font-size: 1.7rem;
    letter-spacing: 3px;
  }
  .hero-stat-card {
    padding: 12px 10px;
    min-width: 80px;
  }
  .hero-stat-card .hs-number {
    font-size: 1.5rem;
  }
  .hero-right {
    flex-direction: column;
  }
  .section-head h2 {
    font-size: 1.2rem;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .article-card {
    border-radius: 12px;
  }
  .article-card-image {
    height: 120px;
  }
  .article-card-body {
    padding: 10px;
  }
  .article-card-title {
    font-size: 0.9rem;
  }
  .article-card-desc {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
    margin-bottom: 10px;
  }
  .article-card-footer {
    padding-top: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .article-card-date {
    font-size: 0.7rem;
  }
  .article-card-tag {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
}

@media (max-width: 360px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .article-card-image {
    height: 180px;
  }
  .article-card-body {
    padding: 16px;
  }
  .article-card-title {
    font-size: 1rem;
  }
}