:root {
  --container: 1120px;
  --pad: 24px;

  --text: #111;
  --muted: #5b5b5b;
  --brand: #e31e24;

  --bg: #fff;
  --line: #e7e7e7;

  --footer: #2f2f2f;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Golos Text", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header__inner {
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  height: 46px; /* фиксируем “полосу” под логотип */
}

.brand__logo {
  height: 46px; /* главное — фиксированная высота */
  width: auto;
  object-fit: contain;
}

.lang {
  position: relative;
  justify-self: end;
}

.lang__btn {
  border: 0;
  background: transparent;
  font: inherit;
  color: #333;
  cursor: pointer;
  padding: 8px 10px;
}

.lang__chev {
  opacity: 0.6;
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 100;
}

.lang__menu--open {
  display: block;
}

.lang__menu li {
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.lang__menu li:hover {
  background: #f5f5f5;
}

/* HERO: без zoom */
.hero {
  position: relative;
  height: 72vh;
  min-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* ключ: contain / object-fit: contain */
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* <= НЕ приближает */
  object-position: center;
  background: #111; /* фон, если будут поля */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.hero__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

.hero__title {
  margin: 0 0 14px;
  color: #fff;
  font-weight: 600;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
}

.hero__text {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.6;
}

/* SECTION */
.section {
  padding: 24px 0 72px;
}

.section__title {
  margin: 0 0 18px;
  font-size: 64px;
  font-weight: normal;
}

/* COMPANIES */
.companies {
  display: grid;
  gap: 22px;
}

/* карточка-ряд */
.company {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.company--reverse {
  grid-template-columns: 0.85fr 1.15fr;
}
.company--reverse .company__media {
  order: 2;
}
.company--reverse .company__content {
  order: 1;
}

/* медиа зона: одинаковая геометрия */
.company__media {
  background: #eaeaea;
  aspect-ratio: 16 / 9; /* фиксирует высоту, чтобы не “плыло” */
  width: 100%;
}
.company__media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* здесь нормально cover — это не hero */
  object-position: center;
}

/* контент */
.company__content {
  padding: 18px 18px 16px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: #eaeaea;
}

/* reverse: текст вправо (в сторону оси) */
.company--reverse .company__content {
  text-align: right;
}

/* reverse: логотип вправо */
.company--reverse .company__logo {
  justify-content: flex-end;
}

/* reverse: ссылка вправо */
.company--reverse .company__link {
  justify-content: flex-end;
}

/* зона под логотип компании — фиксируем, чтобы разные SVG не сдвигали */
.company__logo {
  height: 34px;
  display: flex;
  align-items: center;
}
.company__logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.company__name {
  margin: 8px 0;
  font-size: 32px;
  font-weight: 500;
}

.company__desc {
  margin: 0;
  color: #333;
  font-size: 18px;
  line-height: 1.35;
}

.company__link {
  margin-top: 6px;
  color: var(--brand);
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* FOOTER */
.footer {
  background: var(--footer);
  color: #e9e9e9;
  padding: 26px 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.footer__brand {
  display: grid;
  gap: 10px;
}

.footer__logo {
  height: 68px;
  width: auto;
  object-fit: contain;
}

.footer__brandtext {
  font-weight: 700;
  line-height: 1.2;
}

.footer__title {
  font-weight: 500;
  margin-bottom: 8px;
  color: #fff;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.footer__list a {
  color: #d9d9d9;
}
.footer__list a:hover {
  color: #fff;
}

.footer__small {
  color: #929292;
  font-size: 13px;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero {
    min-height: 460px;
    height: 66vh;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__brand {
    justify-items: center; /* центр для grid */
  }
  .footer__logo {
    margin: 0 auto; /* логотип по центру */
  }
  .footer__list {
    justify-items: center; /* ссылки по центру */
  }
}

@media (max-width: 768px) {
  /* .header__inner {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  } */

  .company,
  .company--reverse {
    grid-template-columns: 1fr;
  }
  .company--reverse .company__media,
  .company--reverse .company__content {
    order: 0;
  }

  /* чтобы на мобиле фон всегда был “целиком” */
  .hero__img {
    object-fit: cover;
  }
}

/**************************/
/*   COMPANY INNER PAGE   */
/**************************/

.company-page {
  background: #f2f2f2;
}

.company-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.company-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.company-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.company-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
}

.company-hero__content {
  max-width: 760px;
  color: #fff;
}

.company-hero__title {
  margin: 0 0 16px;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
}

.company-hero__text {
  margin: 0 0 24px;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

.company-hero__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #e31e24;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.company-hero__button:hover {
  background: #c9151b;
  text-decoration: none;
}

/* ABOUT */
.company-about {
  background: #f2f2f2;
  padding: 48px 0 24px;
}

.company-about__title {
  margin: 0 0 24px;
  color: #2d2d2d;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.1;
}

.company-about__text {
  max-width: 1240px;
}

.company-about__text p {
  margin: 0 0 18px;
  color: #333;
  font-size: 20px;
  line-height: 1.35;
}

/* GALLERY */
.company-gallery {
  background: #f2f2f2;
  padding: 8px 0 56px;
}

.company-gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.company-gallery__item {
  overflow: hidden;
}

.company-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-gallery__item--wide {
  grid-column: 1 / -1;
}

/* responsive */
@media (max-width: 992px) {
  .company-hero {
    min-height: 360px;
  }

  .company-about__text p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .company-hero {
    min-height: 320px;
  }

  .company-hero__inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .company-hero__text {
    font-size: 16px;
  }

  .company-about {
    padding: 36px 0 20px;
  }

  .company-about__text p {
    font-size: 16px;
    line-height: 1.45;
  }

  .company-gallery__grid {
    grid-template-columns: 1fr;
  }

  .company-gallery__item--wide {
    grid-column: auto;
  }
}

/*******************************/
/*   HIDDEN GOOGLE TRANSLATE   */
/*******************************/

.google-translate-holder {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
}

.goog-te-banner-frame,
.skiptranslate iframe,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0 !important;
}

html {
  top: 0 !important;
}

body > .skiptranslate {
  display: none !important;
}
