/* ==========================================================================
   Энимал-терапия — дополнительные стили страницы
   Подключается ПОСЛЕ style.css. Общий style.css не изменяется.
   ========================================================================== */

/* --- Шапка страницы: цитата, логотип проекта, заголовок --- */
.at-hero {
  padding: 40px 20px 44px;
}

.at-hero .container {
  max-width: 820px;
}

.at-quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 22px;
  align-items: center;
  max-width: 640px;
  margin: 0 auto 30px;
  text-align: left;
}

.at-quote img {
  grid-row: 1 / span 2;
  width: 110px;
  height: auto;
}

.at-quote blockquote {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  align-self: end;
}

.at-quote figcaption {
  font-size: 16px;
  color: var(--color-secondary);
  align-self: start;
}

.at-hero__logo {
  max-width: 460px;
  margin: 0 auto 16px;
}

.at-hero__lead {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: 14px;
}

.at-hero h1 {
  margin-bottom: 0;
}

/* --- Блоки «иллюстрация + текст» --- */
.at-media {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 30px;
  align-items: start;
  margin-bottom: 34px;
}

.at-media--right {
  grid-template-columns: 1fr auto;
}

.at-media__figure {
  margin: 0;
}

.at-media--right .at-media__figure {
  order: 2;
}

.at-media__figure img {
  margin: 4px 0 0;
  border-radius: 0;
}

.at-media__figure--capital img { width: 156px; }
.at-media__figure--dog img     { width: 185px; }
.at-media__figure--cat img     { width: 238px; }

.at-media__body > *:last-child {
  margin-bottom: 0;
}

/* --- Заголовки-картинки («КУРАТОР ПРОЕКТА», «ПРИ ПОДДЕРЖКЕ», логотип) --- */
.at-heading-img {
  margin: 44px 0 18px;
  text-align: center;
}

.at-heading-img img {
  max-width: 431px;
  margin: 0 auto;
  border-radius: 0;
}

.at-heading-img--logo img {
  max-width: 460px;
}

/* --- Куратор проекта --- */
.at-curator {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.at-curator__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0;
}

/* --- Партнёры (при поддержке) --- */
.at-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 26px 34px;
  margin: 24px 0 10px;
}

.at-partners img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80px;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
}

.at-partners img.at-partners__wide {
  max-height: 96px;
}

/* --- Контакты --- */
.at-contacts {
  text-align: center;
  margin-top: 44px;
}

.at-contacts__logo {
  max-width: 342px;
  margin: 0 auto 16px;
}

.at-contacts__logo img {
  border-radius: 0;
  margin: 0;
}

.at-contacts p {
  margin-bottom: 4px;
}

.at-contacts a {
  color: var(--color-text);
  font-weight: 700;
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
  .at-media,
  .at-media--right {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .at-media--right .at-media__figure {
    order: 0;
  }

  .at-media__body {
    width: 100%;
  }

  .at-partners img {
    max-height: 62px;
  }

  .at-partners img.at-partners__wide {
    max-height: 72px;
  }
}

@media (max-width: 480px) {
  .at-quote {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
  }

  .at-quote img {
    grid-row: auto;
    width: 92px;
  }

  .at-quote blockquote {
    font-size: 18px;
  }

  .at-hero__lead {
    font-size: 17px;
  }
}
