/* --- 1. НАСТРОЙКИ И ПЕРЕМЕННЫЕ --- */
:root {
  /* -- Цветовая схема (Серый + Оранжевый) -- */
  --color-bg-page: #f4f4f6; /* Светло-серый фон страницы */
  --color-bg-card: #ffffff; /* Белые карточки */

  --color-text-main: #2d2d2d; /* Темно-серый, почти черный */
  --color-text-muted: #757575; /* Средне-серый для описаний */

  --color-accent: #ff6b00; /* Сочный оранжевый */
  --color-accent-hover: #e65100; /* Темно-оранжевый для ховера */

  --color-overlay: rgba(45, 45, 45, 0.6); /* Темно-серая вуаль */
  --footer-overlay: rgba(45, 45, 45, 0.7); /* Темно-серая вуаль */
  --color-bg-notice: #fff5e2;
  --color-text-notice: #690c00;
  --color-border-light: #e2e2e2;

  /* -- Размеры -- */
  --container-width: 1200px; /* ЗАПРОС №1 */
  --container-padding: 20px;

  --shadow-lg: 0 4px 15px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.15);

  --gap-grid: 24px; /* Отступы между баннерами */
  --radius-main: 16px; /* Скругления */
  --radius-small: 8px;
}

/* Базовый сброс */
*,
*::before,
*::after {
  box-sizing: border-box;
  /* margin: 0; */
  /* padding: 0; */
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- 3. БЛОК ВЕРХ (.hero) --- */
.hero {
  position: relative;
  margin-top: 30px;
  border-radius: var(--radius-main);
  overflow: hidden;
  /* ЗАПРОС №3: aspect-ratio */
  /* 21/9 - кинематографично, 2/1 - стандарт для широких баннеров */
  aspect-ratio: 21 / 9;
  width: 100%;
  max-height: 450px;
  background-image: url("./images/energoaudit.webp");
  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: var(--shadow-lg);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 1rem;
}

.hero__logo {
  width: 100%;
  max-width: 600px;
  filter: brightness(0) invert(1);
}

/* about-card */
.about-card {
  border-top: 4px solid var(--color-accent);
  background-color: var(--color-bg-card);
  border-radius: var(--radius-main);
  margin-top: 46px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.about-card__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.about-card__text {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.about-card__text:last-child {
  margin-bottom: 0;
}

.about-card__date {
  color: #ff6b00;
  font-weight: 700;
}

.about-card__notice {
  margin-top: 2rem;
  background-color: var(--color-bg-notice);
  border-radius: var(--radius-small);
  border-left: 4px solid var(--color-accent);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-card__notice-icon {
  flex-shrink: 0;
  height: 24px;
}

.about-card__note-text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-notice);
  line-height: 1.3;
}

.main-headline {
  text-align: center;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  /* text-transform: uppercase; */
  color: var(--color-text-main);
  margin: 60px 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.features {
  display: grid;
  gap: var(--gap-grid);
  margin-bottom: 80px;
  align-items: stretch; /* Это значение по умолчанию */

  /* Mobile First: 1 */
  grid-template-columns: 1fr;
}

.features__link {
  all: unset;
}

/* @media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
} */

.features__link:last-child:nth-child(odd) {
  grid-column: 1 / -1; /* Растянуть от первой до последней линии сетки */
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.banner {
  background-color: var(--color-bg-card);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* box-shadow: var(--shadow-sm); */
  border: 1px solid var(--color-border-light);
  transition: all 0.3s ease;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
  height: 100%;
}

.banner:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 16px rgba(255, 107, 0, 0.25);
}

.banner:hover .banner__title {
  color: var(--color-accent-hover);
}

.banner__icon {
  width: 80px;
  height: 80px;
  background-color: #fff5e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.banner__icon-image {
  fill: #ff9500;
  width: 100%;
  height: 100%;
}

.banner:hover .banner__icon-image {
  fill: white;
}

.banner:hover .banner__icon {
  background-color: var(--color-accent);
}

.banner__title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.15;
}

.banner__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.25;
}

.banner__link {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.banner__icon-wrapper {
}

.site-footer {
  /* background: linear-gradient(0, #161616 0%, #3d3d3d 100%); */
  background: #696969;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 20px 0;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--color-accent);

  background-image: url("./images/energoaudit.webp");
  background-size: cover;
  background-position: bottom;
}

.footer-container {
  margin: 0;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 2rem;
}

.footer-left {
  display: grid;
  grid-template-columns: 1fr;
  /* gap: 0.5rem; */
  gap: 0.5rem;
  z-index: 100;
}

@media (min-width: 640px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-left {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ecosystem-card {
  background-color: rgba(65, 65, 65, 0.85);
  border-radius: 8px;
  border: 1px solid #a7a7a7;
  cursor: pointer;
  padding: 0.35rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;

  .ecosystem-card:hover {
    /* box-shadow: var(--shadow-sm);  */
    /* box-shadow: 0 2px 4px rgb(255, 116, 16); */
  }

  .ecosystem-card-image {
    max-width: 220px;
    width: 100%;
    filter: opacity(0.8);
    display: block;
    transition: filter 0.3s ease;
    fill: #e7e7e7;
  }
}
.ecosystem-card:hover .ecosystem-card-image {
  filter: opacity(1);
}

.footer__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--footer-overlay);
  z-index: 1;
}

.footer-right {
  color: #e7e7e7;
  z-index: 100;
  background: rgba(65, 65, 65, 0.85);
  border-radius: 12px;
  padding: 0 1.5rem;
  border: 1px solid #4d4d4d;
}

.footer__company-title {
  font-size: 2rem;
  padding: 0;
  margin: 0;
}

.footer__contacts {
}

.footer__contacts p {
  padding: 0.25rem 0;
  margin: 0;
}

.footer__contacts-phone {
  font-size: clamp(1.5rem, 1rem + 2vw, 3rem);
  /* min-width: 335px; */
}

.footer__contacts-email {
  text-decoration: none;
  color: inherit;
  font-size: 2rem;
}
