/* ==========================================================================
   Внутренние страницы сайта. Общие шапка, подвал, кнопки и колонка
   контента берутся из css/style.css. Здесь — типографика и блоки
   внутренних страниц. Макет — desktop 1680px, адаптив — ниже.
   ========================================================================== */

.inner {
  padding: 40px 0 95px;
  background: var(--white);
}

.inner .container {
  width: 1160px;
}

/* Общие элементы --------------------------------------------------------- */
.rule {
  display: block;
  width: 297px;
  height: 1px;
  background: var(--green-line);
}

.rule--short {
  width: 297px;
  margin: 0;
}

.lead {
  font-size: 32px;
  line-height: 44px;
  color: var(--text);
}

/* Хлебные крошки */
.crumbs {
  display: flex;
  align-items: center;
  font-size: 18px;
  line-height: 25px;
  color: var(--text);
}

.crumbs a {
  color: var(--text);
  text-decoration: none;
  opacity: .6;
}

.crumbs a:hover {
  opacity: 1;
}

.crumbs__arrow {
  margin: 0 22px;
  font-size: 18px;
}

/* О нас: заголовок ------------------------------------------------------- */
.about-hero {
  display: grid;
  grid-template-columns: 560px 1fr;
  align-items: start;
  margin-top: 100px;
}

.about-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 110px;
  line-height: 137px;
  text-transform: uppercase;
  color: #333;
  white-space: normal;
}

.about-hero__side {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.about-hero__rule {
  margin-bottom: 30px;
}

.about-hero__slogan {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 83px;
  color: var(--green);
}

.about-lead {
  width: 859px;
  margin-top: 100px;
}

.about-intro {
  display: grid;
  grid-template-columns: 560px 1fr;
  align-items: center;
  margin-top: 50px;
}

.about-intro__text {
  width: 461px;
  font-size: 20px;
  line-height: 27px;
  color: var(--text);
}

.about-intro__cta {
  width: 309px;
}

.about-intro + .rule {
  margin-top: 99px;
}

.about-lead--second {
  width: 994px;
  margin-top: 50px;
}

/* Список возможностей: две колонки с точками */
.abilities {
  display: grid;
  grid-template-columns: 560px 1fr;
  align-items: start;
  margin-top: 50px;
}

.abilities__col {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.abilities__col--right {
  padding-top: 3px;
}

.abilities__item {
  position: relative;
  width: 380px;
  padding-left: 44px;
  font-size: 24px;
  line-height: 33px;
  color: var(--text);
}

.abilities__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
}

.about-rule-2 {
  margin-top: 99px;
}

.about-closing {
  margin-top: 50px;
}

.about-closing .lead + .lead {
  margin-top: 61px;
}

/* Подвал без линии над колонкой (как в макете «о нас») */
.footer--plain .footer__inner {
  border-top: 0;
}

/* Адаптив внутренних страниц --------------------------------------------- */
@media (max-width: 1200px) {
  .about-hero__title {
    font-size: 88px;
    line-height: 110px;
  }

  .about-hero__slogan {
    font-size: 52px;
    line-height: 66px;
  }
}

@media (max-width: 1024px) {
  .about-hero {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .about-hero__title {
    font-size: 72px;
    line-height: 90px;
  }

  .about-lead,
  .about-lead--second {
    width: auto;
    font-size: 28px;
    line-height: 38px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .about-intro__text {
    width: auto;
  }

  .abilities {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }

  .abilities__item {
    width: auto;
  }
}

@media (max-width: 768px) {
  .inner {
    padding-bottom: 64px;
  }

  .about-hero__title {
    font-size: 56px;
    line-height: 70px;
  }

  .about-hero__slogan {
    font-size: 40px;
    line-height: 52px;
  }

  .about-lead,
  .about-lead--second {
    font-size: 22px;
    line-height: 30px;
  }

  .about-lead {
    margin-top: 56px;
  }

  .abilities {
    grid-template-columns: 1fr;
  }

  .abilities__item {
    font-size: 20px;
    line-height: 28px;
  }

  .about-rule-2 {
    margin-top: 56px;
  }

  .about-closing .lead {
    font-size: 22px;
    line-height: 30px;
  }
}

@media (max-width: 480px) {
  .about-hero__title {
    font-size: 40px;
    line-height: 48px;
  }

  .about-hero__slogan {
    font-size: 28px;
    line-height: 36px;
  }

  .about-lead,
  .about-lead--second {
    font-size: 18px;
    line-height: 26px;
  }

  .about-intro__cta {
    width: 100%;
    max-width: 320px;
  }
}

/* Заголовок страницы и текстовый блок (страница «наша команда» и похожие) */
.page-title {
  margin-top: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 110px;
  line-height: 137px;
  text-transform: uppercase;
  color: #333;
  white-space: normal;
}

.text-block {
  max-width: 756px;
  margin-top: 50px;
}

.text-block__lead {
  width: 700px;
  max-width: 100%;
  font-size: 32px;
  line-height: 44px;
}

.text-block__p {
  margin-top: 40px;
  font-size: 20px;
  line-height: 27px;
  color: var(--text);
}

.text-block__p + .text-block__p {
  margin-top: 43px;
}

@media (max-width: 1024px) {
  .page-title {
    font-size: 72px;
    line-height: 90px;
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 56px;
    line-height: 70px;
  }

  .text-block__lead {
    font-size: 22px;
    line-height: 30px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 40px;
    line-height: 48px;
  }

  .text-block__lead {
    font-size: 18px;
    line-height: 26px;
  }
}

/* Подзаголовок и список в две колонки с круглыми маркерами (страница «наша деятельность») */
.sub-title {
  margin-top: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 83px;
  color: var(--green);
}

.bullets {
  display: grid;
  grid-template-columns: 560px 1fr;
  align-items: start;
  margin-top: 52px;
}

.bullets__col {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.bullets__item {
  position: relative;
  padding-left: 58px;
  font-size: 24px;
  line-height: 33px;
  color: var(--text);
}

.bullets__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #597350;
}

.bullets__item:first-child:not(:last-child) {
  max-width: 434px;
}

.bullets__col:last-child .bullets__item {
  max-width: 543px;
}

@media (max-width: 1024px) {
  .sub-title {
    font-size: 52px;
    line-height: 66px;
  }

  .bullets {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }

  .bullets__item {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .sub-title {
    font-size: 40px;
    line-height: 52px;
  }

  .bullets {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .bullets__item {
    font-size: 20px;
    line-height: 28px;
  }
}

@media (max-width: 480px) {
  .sub-title {
    font-size: 30px;
    line-height: 40px;
  }

  .bullets__item {
    font-size: 18px;
    line-height: 26px;
    padding-left: 48px;
  }

  .bullets__item::before {
    width: 30px;
    height: 30px;
  }
}

.text-block__p--first {
  margin-top: 50px;
}

.text-block__lead--second {
  margin-top: 58px;
}

.text-block--wide {
  max-width: 1000px;
}

.text-block--wide .text-block__lead {
  width: 1000px;
}

/* Заголовок страницы на 1200: уменьшаем, чтобы не вылезал за колонку */
@media (max-width: 1200px) {
  .page-title {
    font-size: 92px;
    line-height: 115px;
  }
}

/* Узкие экраны: заголовки страниц переносятся и уменьшаются */
@media (max-width: 640px) {
  .page-title,
  .about-hero__title {
    font-size: 56px;
    line-height: 68px;
  }
}

@media (max-width: 480px) {
  .page-title,
  .about-hero__title {
    font-size: 40px;
    line-height: 48px;
  }
}

@media (max-width: 320px) {
  .page-title,
  .about-hero__title {
    font-size: 34px;
    line-height: 40px;
  }
}

/* Контакты ---------------------------------------------------------------- */
.contacts {
  max-width: 756px;
  margin-top: 50px;
}

.contacts__row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 8px 24px;
  padding: 24px 0;
  border-top: 1px solid var(--green-line);
  font-size: 20px;
  line-height: 27px;
}

.contacts__row dt {
  color: var(--text);
}

.contacts__row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.contacts__row a {
  color: var(--green);
}

@media (max-width: 640px) {
  .contacts__row {
    grid-template-columns: minmax(0, 1fr);
    font-size: 18px;
  }
}

.notfound p {
  font-size: 20px;
  line-height: 27px;
}

/* Отчёты ---------------------------------------------------------------- */
.reports {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reports__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  font-size: 20px;
  line-height: 28px;
}

.reports__item a {
  color: var(--green);
}

.reports__date {
  font-size: 16px;
  color: var(--text);
  opacity: .7;
}

/* Партнёры -------------------------------------------------------------- */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 40px;
  align-items: center;
  margin: 60px 0 80px;
  padding: 0;
  list-style: none;
}

.partners__logo {
  display: block;
  width: 100%;
  max-width: 220px;
  max-height: 110px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

/* Политика -------------------------------------------------------------- */
.page-title.policy__title {
  font-size: 56px;
  line-height: 70px;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .page-title.policy__title {
    font-size: 28px;
    line-height: 36px;
  }
}

.policy p,
.policy li {
  font-size: 18px;
  line-height: 28px;
  color: var(--text);
}

.policy p + p,
.policy ul + p,
.policy p + ul {
  margin-top: 20px;
}

.policy ul {
  padding-left: 24px;
  list-style: disc;
}

.policy__blank {
  padding: 0 6px;
  border-radius: 4px;
  background: #f6e9b8;
  color: inherit;
}
