/* Общая сетка, контейнеры, header, footer и базовое расположение блоков. */

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space);
  align-items: center;
}

.section {
  padding: clamp(15px, 2vw, 35px) 0;
}

.section--dark {
  background: #000;
  color: #fff;
}

.section--light {
  background: #fff;
}

.section--pearl {
  background: linear-gradient(180deg, #faf8f4 0%, #fff 100%);
}

/* Общий вертикальный контейнер для контактов */
.grid-contacts {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
  gap: 32px; 
}

.contacts-title {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
}

.contacts-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.contacts-image {
  max-width: 100%; 
  height: auto;
  object-fit: contain;
}

.grid-contacts .section__content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.contacts-address-row {
  width: 100%;
  text-align: center; 
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 24px;
  line-height: 1.5;
}

.contact-split-row {
  display: flex;
  justify-content: space-between; 
  gap: 40px;
}

.contact-column {
  flex: 1;
}

.contact-column p {
  margin: 10px 0;
  font-size: 16px;
}

.contact-column a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-column a:hover {
  color: var(--green);
}

.map-wrapper {
  width: 70%;
  margin: 0 auto;
}

.promo-conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space);
  align-items: center;
}

.promo-cell {
  width: 100%;
}

.promo-cell--title,
.promo-cell--desc,
.promo-cell--action {
  text-align: center;
}

.section__text {
  text-align: center;
  padding: 10px;
}

.section--mission {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: clamp(240px, 40vw, 400px);
  display: grid;
  align-items: center;
}

.section--mission .section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.section--mission::before {
  position: absolute;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
  content: "";
  inset: 0;
}

.section--mission .container {
  position: relative;
  z-index: 2;
}

.section__content {
  display: grid;
  gap: 16px;
}

.section__overlay-text {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.section__title {
  margin: 5px 0 20px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  text-align: center; 
}

.section__title--center,
.section__text--center {
  text-align: center;
}

.section__title--white,
.section__text--white {
  color: #fff;
  text-shadow: 0 1px 0 #000, 0 0 2px #000;
}

.image-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.little_img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.little_img_green {
  width: 100px;
  height: auto;
  display: block;
}

/* =========================================================================
   ИСПРАВЛЕННЫЙ БЛОК ШАПКИ (БЕЗ КОНФЛИКТОВ И ФЛАГОВ !IMPORTANT)
   ========================================================================= */

/* Базовое состояние шапки на ПК (когда страница находится в самом верху) */
.site-header {
  background: #000000; /* Восстановлен исходный чистый сплошной черный фон */
  color: #fff;
  border-bottom: 1px solid var(--border);
  
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  
  /* Плавный переход для цвета фона и матового эффекта размытия при скролле */
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

/* Безопасное выталкивание элементов body вниз из-под хидера на ПК */
main#main {
  padding-top: 84px !important; /* Ровно физическая высота вашей десктопной шапки */
}

/* Комбинированный селектор высокой специфичности по ID включает прозрачность при скролле */
#site-header.site-header--scrolled {
  background: rgba(0, 0, 0, 0.25) !important; /* Плавный переход на прозрачный фон 0.25 */
  backdrop-filter: blur(10px) !important;       /* Активация матового стекла */
  -webkit-backdrop-filter: blur(10px) !important;
}

/* Сетка элементов остается абсолютно без изменений */
.site-header__inner {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.site-header__logo {
  justify-self: start;
  max-width: 180px;
}

.site-header__nav {
  justify-self: center;
}

.site-header__lang {
  justify-self: end;
  display: flex;
  gap: 10px;
}

.site-header__menu {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================================================================
   FOOTER И ОСТАЛЬНЫЕ ЭЛЕМЕНТЫ СЕТКИ
   ========================================================================= */
.site-footer {
  background: #000;
  color: #fff;
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer__grid {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  display: grid;
  gap: var(--space);
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%; 
}

.footer-top-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 95px; 
  margin-bottom: 30px; 
  gap: 12px;
}

.site-footer__logo {
  max-width: 160px; 
  display: block;
}

.site-footer__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-footer__group-title {
  font-weight: 600;
  font-size: 16px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.footer-social {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.footer-social a {
  align-items: center;
  transition: color 0.2s ease;
  display: inline-flex;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
}

.footer-social a:hover {
  color: var(--green);
}

.footer-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-product-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto; 
}

.footer-product-image {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-product-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.footer-product-cell p[data-i18n^="footer.text"] {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.4;
}

.site-footer__bottom-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 40px;
}

.site-footer__years,
.site-footer__brand2 {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  white-space: nowrap;
}
