/* Hero — фото на весь блок, девушка справа, изумрудный оверлей слева под текст */

body:not(.content_body) {
  background-color: #fff;
}

main {
  background: #fff;
  overflow-x: hidden;
  width: 100%;
}

/* Весь верхний блок: шапка + hero — одна фоновая картинка */
.fon.fon--home {
  position: relative;
  height: auto !important;
  min-height: 0;
  overflow: hidden;
  background-color: #004853;
  background-image:
    linear-gradient(
      180deg,
      rgba(0, 40, 48, 0.62) 0%,
      rgba(0, 40, 48, 0.28) 14%,
      transparent 28%
    ),
    linear-gradient(
      98deg,
      rgba(0, 40, 48, 0.9) 0%,
      rgba(0, 56, 64, 0.82) 22%,
      rgba(0, 72, 83, 0.58) 42%,
      rgba(0, 72, 83, 0.22) 58%,
      rgba(0, 88, 82, 0.06) 72%,
      transparent 86%
    ),
    url("/local/templates/main/img/hero-bg-main.png");
  background-size: cover;
  background-position: center, center, 62% 32%;
  background-repeat: no-repeat;
}

.fon--home {
  background-color: #004853;
}

/* Мягкий переход к белому контенту снизу */
.fon--home::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.45) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Лёгкое тёплое свечение у девушки справа */
.fon--home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 60% at 82% 55%, rgba(248, 176, 64, 0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* Шапка главной */
.fon--home .lin {
  overflow: visible;
  position: relative;
  z-index: 3;
}

.fon--home .str1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  max-width: var(--site-width);
  margin: 0 auto;
  margin-top: 0 !important;
  padding: 28px var(--site-gutter) 40px;
  float: none;
  overflow: visible;
}

.fon--home .contacts {
  grid-column: 3;
  justify-self: end;
  float: none;
  width: auto;
  margin: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.fon--home .nav3 a,
.fon--home .wtxt2 p {
  width: auto;
  height: auto;
  line-height: 1.4;
  margin-left: 8px;
  font-size: 17px;
  color: #fff;
}

.fon--home .wtxt {
  grid-column: 1;
  justify-self: start;
  float: none;
  width: auto;
  flex: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
}

.fon--home .wtxt a {
  width: auto;
  height: auto;
  margin: 0 !important;
  line-height: 1.3;
  font-size: 17px;
  white-space: nowrap;
}

.fon--home .logo-text {
  grid-column: 2;
  justify-self: center;
  float: none;
  width: auto;
  margin: 0;
}

.fon--home .mobile_menu {
  grid-column: 3;
  justify-self: end;
}

.fon--home .site-logo,
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.88;
}

.site-logo__icon {
  display: block;
  width: 44px;
  height: auto;
  flex-shrink: 0;
}

.site-logo__name,
.fon--home .logo-text a,
.fon--home .logo-text p {
  width: auto;
  height: auto;
  margin: 0;
  line-height: 1;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  color: #fff;
}

/* Внутренние страницы — светлая шапка */
.content_body {
  background: #fff;
}

.content_body .fon {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible;
  background: #fff !important;
  border-bottom: 1px solid var(--brand-green-border);
  box-shadow: 0 2px 20px rgba(0, 72, 83, 0.04);
}

.content_body .lin {
  overflow: visible;
}

.content_body .str1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px 32px;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 22px var(--site-gutter);
  float: none;
  overflow: visible;
}

.content_body .wtxt {
  grid-column: 1;
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  float: none;
  width: auto;
  margin: 0;
}

.content_body .logo-text {
  grid-column: 2;
  justify-self: center;
  float: none;
  width: auto;
  margin: 0;
}

.content_body .mobile_menu {
  grid-column: 3;
  justify-self: end;
  display: none;
}

.content_body .contacts {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
  float: none;
  width: auto;
  margin: 0;
}

.content_body .nav2,
.content_body .nav4 {
  float: none;
  margin: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.content_body .nav2 svg,
.content_body .nav4 svg {
  display: block;
  width: 28px;
  height: 28px;
}

.content_body .nav3,
.content_body .wtxt2 {
  float: none;
  margin: 0;
}

.content_body .wtxt a {
  color: var(--brand-green) !important;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  margin: 0 !important;
  width: auto;
  height: auto;
  text-decoration: none;
  white-space: nowrap;
}

.content_body .wtxt a:hover {
  color: var(--brand-orange-dark) !important;
}

.content_body .site-logo {
  color: var(--brand-green);
  text-decoration: none;
}

.content_body .site-logo__name {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--brand-green) !important;
}

.content_body .nav3 a {
  width: auto;
  height: auto;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand-green) !important;
  text-decoration: none;
  white-space: nowrap;
}

.content_body .nav3 a:hover {
  color: var(--brand-orange-dark) !important;
}

.content_body .wtxt2 p {
  width: auto;
  height: auto;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--brand-text-muted) !important;
  white-space: nowrap;
}

.content_body .mobile_menu path {
  fill: var(--brand-green) !important;
}

@media screen and (max-width: 1150px) {
  .content_body .str1 {
    display: flex;
    justify-content: space-between;
    padding: 18px 24px;
  }

  .content_body .wtxt,
  .content_body .contacts {
    display: none;
  }

  .content_body .logo-text {
    justify-self: auto;
  }

  .content_body .mobile_menu {
    display: block;
  }
}

.fon--home .nav2,
.fon--home .nav4 {
  float: none;
  margin: 0;
}

.fon--home .nav4 {
  margin-left: 16px;
}

.block-bel .block1 {
  margin-top: 0;
}

.fon--home .nav3,
.fon--home .wtxt2 {
  float: none;
}

/* Hero — текст поверх фона, без отдельного фото */
.hero {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: transparent;
  min-height: clamp(560px, 54vh, 720px);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 16px var(--site-gutter) 96px;
  min-height: inherit;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 0 1 560px;
  max-width: min(560px, 54%);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(248, 176, 64, 0.5);
  color: rgba(255, 255, 255, 0.92);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.hero__title {
  margin: 0 0 20px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.hero__lead {
  margin: 0 0 32px;
  max-width: 500px;
  font-family: "Inter", sans-serif;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.12);
}

.hero__lead a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero__lead a:hover {
  color: var(--brand-orange);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero__btn--primary {
  background: #f8b040;
  color: #1a2b33;
  box-shadow: 0 6px 20px rgba(248, 176, 64, 0.35);
}

.hero__btn--primary:hover {
  background: #ffa00e;
  transform: translateY(-1px);
}

.hero__btn--outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}

.hero__btn--outline:hover {
  border-color: #f8b040;
  color: #f8b040;
  background: rgba(255, 255, 255, 0.12);
}

.lin2, .lin3, .lin4, .lin5 {
  display: none !important;
}

@media screen and (max-width: 1200px) {
  .fon--home .wtxt,
  .fon--home .contacts {
    display: none !important;
  }

  .fon--home .mobile_menu {
    display: block !important;
    grid-column: auto;
    justify-self: end;
    flex-shrink: 0;
    cursor: pointer;
  }

  .fon--home .str1 {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 24px;
    max-width: none;
  }

  .fon--home .logo-text {
    grid-column: auto;
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
  }
}

@media screen and (max-width: 1150px) {
  .fon.fon--home {
    height: auto !important;
    overflow: hidden;
  }

  .fon--home .str1 {
    padding: 18px var(--site-gutter) 24px !important;
  }

  .hero__inner {
    padding: 12px var(--site-gutter) 80px;
    min-height: 0;
  }
}

@media screen and (min-width: 1400px) {
  .hero {
    min-height: clamp(600px, 58vh, 780px);
  }

  .fon.fon--home {
    background-position: center, center, 60% 30%;
  }
}

@media screen and (max-width: 1024px) {
  .fon.fon--home {
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 40, 48, 0.7) 0%,
        rgba(0, 40, 48, 0.45) 22%,
        rgba(0, 72, 83, 0.35) 55%,
        rgba(0, 72, 83, 0.2) 100%
      ),
      url("/local/templates/main/img/hero-bg-main.png");
    background-position: center, 68% 28%;
    background-size: cover, cover;
  }

  .hero {
    min-height: clamp(520px, 75vh, 680px);
  }

  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 48px;
    min-height: 0;
  }

  .hero__content {
    flex: none;
    max-width: none;
    width: 100%;
    padding: 0;
    align-items: flex-start;
  }

  .hero__badge {
    align-self: flex-start;
  }

  .hero__actions {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 600px) {
  .fon.fon--home {
    background-position: center, 75% 22%;
  }

  .fon--home .str1 {
    padding: 14px var(--site-gutter) 20px !important;
  }

  .fon--home .site-logo__icon {
    width: 36px;
  }

  .fon--home .site-logo__name,
  .fon--home .logo-text a,
  .fon--home .logo-text p {
    font-size: 24px;
  }

  .hero {
    min-height: clamp(480px, 82vh, 620px);
  }

  .hero__inner {
    padding: 12px var(--site-gutter) 56px;
  }

  .hero__btn {
    width: 100%;
    max-width: 300px;
  }

  .block-bel .block1 {
    margin-top: 0;
  }
}
