:root {
  --bg: #ffffff;
  --text: #121212;
  --accent: #b38b6d;
  --muted: #888;
  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Inter", sans-serif;
  --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

.container {
  max-width: 1100px; /* Уменьшили общую ширину контейнера для компактности */
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.header {
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav__link {
  font-size: 0.8rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

/* --- Hero: Компактный квадрат --- */
.hero {
  padding: 80px 0;
}

.hero__container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero__image {
  flex: 0 0 400px; /* Фиксированная ширина для главного изображения */
}

.hero__image img {
  width: 400px;
  height: 400px; /* Квадрат */
  object-fit: cover;
  border-radius: 0; /* Острые углы для стиля арт-журнала */
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 20px;
}

/* --- Квадратная сетка статей --- */
.articles-grid {
  display: flex;
  justify-content: center; /* Центрируем карточки */
  flex-wrap: wrap;
  gap: 40px;
}

.card {
  flex: 0 0 300px; /* Уменьшили ширину карточки до 300px */
  text-align: center;
}

.card__img-wrap {
  width: 300px;
  height: 300px; /* Идеальный квадрат */
  overflow: hidden;
  margin-bottom: 20px;
}

.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card__img-wrap img {
  transform: scale(1.08);
}

.card__cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-top: 8px;
  font-weight: 700;
}

/* --- Subscribe --- */
.newsletter {
  padding: 100px 0;
  text-align: center;
}

.newsletter__form {
  margin: 30px auto 0;
  border-bottom: 1px solid var(--text);
  display: flex;
  max-width: 400px;
}

.newsletter__form input {
  border: none;
  padding: 10px;
  flex: 1;
  outline: none;
}

.btn-submit {
  border: none;
  background: none;
  font-weight: 700;
  cursor: pointer;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid #eee;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy {
  color: var(--muted);
  font-size: 0.8rem;
}

/* --- Адаптивность --- */
@media (max-width: 900px) {
  .hero__container {
    flex-direction: column;
    text-align: center;
  }
  .hero__image,
  .hero__image img {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 400px) {
  .card,
  .card__img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Поддержка квадратности на узких экранах */
  }
}
