:root {
  --red: #e30613;
  --text: #444;
  --bg: #e2e2e2;
  --dark: rgba(0, 0, 0, 0.82);
  --header-h: 86px;
  --footer-h: 60px;
  --container-x: 90px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  overflow: hidden;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 25px;
}

strong {
  font-weight: 700;
}

ul {
  margin: 0 0 25px 24px;
  padding: 0;
}

.container {
  width: 100%;
  padding: 0 var(--container-x);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 10px 0;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.topbar.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.topbar-inner {
  display: flex;
  align-items: center;
}

.topbar-logo {
  display: block;
  max-height: 66px;
  width: auto;
}

.viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.track {
  display: flex;
  width: 600vw;
  height: 100%;
  transition: transform 0.45s ease-in-out;
}

.panel {
  position: relative;
  width: 100vw;
  height: 100%;
  background: var(--bg);
}

.hero {
  background: #d9d9d9;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero.jpg") center center / cover no-repeat;
}

.slide-caption {
  position: absolute;
  left: 90px;
  bottom: 30%;
  width: 600px;
  background: rgba(255, 255, 255, 0.4);
  padding: 30px;
}

.slide-title {
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #000;
  color: #000;
  font-size: 50px;
  line-height: 1.3;
  font-weight: 700;
}

.slide-title span {
  color: var(--red);
}

.slide-desc {
  font-size: 18px;
  line-height: 1.7;
  color: #212c35;
}

.hero-brand {
  position: absolute;
  right: 5%;
  bottom: 15%;
  z-index: 2;
  max-width: 200px;
  width: 200px;
  height: auto;
}

.scroll-wrap {
  height: 100%;
  overflow-y: auto;
}

.section-container {
  padding-top: 120px;
  padding-bottom: 120px;
}

.entry-header {
  margin: 0 0 40px;
  border-left: 15px solid var(--red);
  padding: 5px 30px 5px 15px;
}

.entry-title {
  margin: 0;
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  color: #444;
}

.entry-title span {
  color: var(--red);
}

.text-content {
  max-width: 1180px;
  font-size: 18px;
}

.nav-arrow {
  position: fixed;
  top: 50%;
  z-index: 35;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

.nav-arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}

.nav-arrow-left {
  left: 20px;
}

.nav-arrow-right {
  right: 20px;
}

.nav-arrow svg {
  display: block;
  width: 50px;
  height: 50px;
}

.home-toggle {
  position: fixed;
  left: 90px;
  bottom: 10px;
  z-index: 36;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0 10px;
  border: 0;
  background: rgba(227, 6, 19, 0.8);
  box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.5);
  cursor: pointer;
}

.home-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  margin: 4px 0;
  background: #fff;
}

.home-toggle.is-hidden {
  display: none;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 34;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: var(--footer-h);
  background: var(--dark);
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

body.nav-visible .bottom-nav,
body:not(.is-home) .bottom-nav {
  transform: translateY(0);
}

.bottom-nav a {
  display: block;
  padding: 0 20px;
  color: #fff;
  line-height: 60px;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
}

.bottom-nav a.is-active {
  background: var(--red);
  text-decoration: none;
}

.service-tab-wrap {
  margin: 30px 0;
  text-align: center;
}

.service-tab {
  display: inline-block;
  max-width: 200px;
  margin: 0 15px;
  padding: 15px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.service-tab h3 {
  margin: 0;
  color: #444;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
}

.service-tab.is-active {
  position: relative;
  background: #fff;
}

.service-tab.is-active::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 100%;
  margin-left: -20px;
  border: 10px solid transparent;
  border-top-color: #fff;
  border-left-color: #fff;
}

.service-tab.is-active h3 {
  color: var(--red);
}

.service-content-wrap {
  background: #fff;
  border-top: 2px solid var(--red);
  padding: 40px;
}

.service-content {
  display: none;
}

.service-content.is-active {
  display: block;
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 600px;
  gap: 35px;
  align-items: start;
}

.service-grid ul,
.service-grid p {
  font-size: 18px;
}

.cta-banner {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 18px 24px 16px;
  text-align: center;
}

.cta-title {
  margin-bottom: 14px;
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.banner-btn .btn {
  display: inline-block;
  min-width: 72px;
  padding: 8px 18px;
  background: var(--red);
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
}

.partners-grid {
  display: grid;
  gap: 26px;
}

.partner-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.partner-label {
  font-size: 18px;
  line-height: 1.35;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 8px 10px;
  background: transparent;
}

.partner-card img {
  display: block;
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
}

.intro {
  max-width: 1280px;
  font-size: 18px;
}

.refs-grid,
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 48px;
}

.refs-grid h3,
.contacts-grid h3 {
  margin: 0 0 14px;
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
}

.refs-grid p,
.contacts-grid p {
  font-size: 18px;
  line-height: 1.36;
}

.map-wrap {
  margin-bottom: 25px;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 250px;
  border: 0;
}

@media (min-width: 1480px) {
  .container,
  .section-container {
    max-width: 1480px;
    margin: 0 auto;
  }
}

@media (max-width: 1200px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .partner-logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  body {
    overflow: auto;
  }

  .topbar {
    opacity: 1;
    visibility: visible;
  }

  .viewport {
    position: static;
    inset: auto;
    overflow: visible;
    margin-top: var(--header-h);
    margin-bottom: var(--footer-h);
  }

  .track {
    display: block;
    width: auto;
    height: auto;
    transform: none !important;
  }

  .panel {
    width: auto;
    min-height: auto;
  }

  .scroll-wrap {
    overflow: visible;
  }

  .section-container {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .slide-caption {
    left: 5%;
    bottom: 65px;
    width: 90%;
  }

  .slide-title {
    font-size: 30px;
  }

  .slide-desc {
    display: none;
  }

  .hero-brand {
    right: 16px;
    bottom: 84px;
    width: 150px;
  }

  .nav-arrow,
  .home-toggle {
    display: none;
  }

  .bottom-nav {
    justify-content: center;
    overflow-x: auto;
  }

  .refs-grid,
  .contacts-grid,
  .partner-row,
  .partner-logos {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 15px;
  }

  .service-content-wrap {
    padding: 30px;
  }
}
