* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #1f1f1f;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

h1 {
  font-family: Arial, Helvetica, sans-serif;
  color: white;
}

/* top bar */
.top-bar {
  background-color: #25273a;
  color: #ffffff;
  font-size: 14px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  gap: 20px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-bar-left {
  white-space: nowrap;
}

.top-bar-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-bar-right a {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: opacity 0.2s ease;
}

.top-bar-right a:hover {
  opacity: 0.75;
}

.social-icon,
.social-icon-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-icon img,
.social-icon-mail img {
  width: 16px;
  height: 16px;
}

/* header */
.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid #dddddd;
  position: sticky;
  top: 0;
  z-index: 3000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 40px;
  position: relative;
}

.logo img {
  width: 110px;
  height: auto;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 42px;
  margin: 0;
  padding: 0;
}

.nav-list li {
  position: relative;
}

.nav-list a,
.submenu-toggle,
.lang-link {
  text-decoration: none;
  color: #4b4b4b;
  font-size: 16px;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active,
.nav-list a.active:hover,
.dropdown a.active,
.dropdown a.active:hover,
.submenu-toggle.active {
  color: #ff3131;
}

.submenu-toggle {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b4b4b;
}

.submenu-toggle:hover {
  color: #ff3131;
}

.submenu-arrow {
  font-size: 20px;
  line-height: 1;
  display: none;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-link img {
  width: 20px;
  height: auto;
}

.dropdown,
.dropdown-language {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 340px;
  background-color: #969696;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease, visibility 1s ease;
}

.dropdown-language {
  min-width: 170px;
}

.dropdown li a,
.dropdown-language li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  color: #ffffff;
  text-decoration: none;
  background-color: #969696;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown li a:hover,
.dropdown-language li a:hover {
  background-color: #ffffff;
  color: #ff3131;
}

.has-dropdown:hover .dropdown,
.has-dropdown:hover .dropdown-language {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-toggle,
.menu-close {
  display: none;
}

/* hero */
.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.hero h1 {
  margin: 0 0 30px;
  color: white;
  font-size: 45px;
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  max-width: 700px;
}

.hero-button {
  display: inline-block;
  padding: 18px 38px;
  background: #ff3131;
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
}

.hero-button:hover {
  background: #bfbfbf;
}

/* services */
.services {
  background-color: #f3f3f3;
  padding: 70px 0 90px;
}

.section-title {
  margin: 0 0 70px;
  text-align: center;
  color: #ff3131;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}

.services-row {
  display: grid;
}

.services-row-top {
  grid-template-columns: repeat(2, 1fr);
  gap: 120px;
  max-width: 900px;
  margin: 0 auto 110px;
}

.services-row-bottom {
  grid-template-columns: repeat(3, 1fr);
  column-gap: 90px;
  row-gap: 110px;
}

.service-card {
  text-decoration: none;
  color: #1f1f1f;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 28px;
}

.service-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
}

/* info strip */
.info-strip {
  background: linear-gradient(90deg, #ff2f2f 0%, #8f8787 100%);
  padding: 46px 0;
}

.info-strip p {
  margin: 0 0 16px 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.5;
}

.info-strip p:last-child {
  margin-bottom: 0;
}

/* video */
.video-section {
  background-color: #f3f3f3;
  padding: 70px 0;
}

.video-section .container {
  width: min(1400px, 94%);
  margin: 0 auto;
}

.main-video {
  display: block;
  width: 100%;
  height: auto;
}

/* about */
.about-section {
  background-color: #f3f3f3;
  padding: 70px 0 90px;
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 60px;
}

.about-block:last-child {
  margin-bottom: 0;
}

.about-block-reverse .about-image {
  order: 1;
}

.about-block-reverse .about-text {
  order: 2;
}

.about-image {
  height: 100%;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  background-color: #ececec;
  padding: 20px 30px;
  color: #1f1f1f;
  font-size: 16px;
  line-height: 1.8;
  height: 100%;
}

.about-text p {
  margin: 0 0 28px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* partners strip */
.partners-strip {
  background: linear-gradient(90deg, #8f8787 0%, #ff2f2f 100%);
  padding: 52px 0;
}

.partners-strip p {
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

/* partners */
.partners-section {
  background-color: #8d8d8d;
  padding: 70px 0 90px;
}

.partners-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
}

.partners-viewport {
  overflow: hidden;
  width: 100%;
}

.partners-track {
  display: flex;
  transition: transform 0.35s ease;
}

.partner-slide {
  flex: 0 0 calc((100% - 56px) / 3);
  margin-right: 28px;
  background-color: #f4f4f4;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.partner-slide:last-child {
  margin-right: 0;
}

.partner-slide img {
  max-width: 95%;
  max-height: 140px;
  width: 200px;
  height: auto;
  object-fit: contain;
}

.slider-arrow {
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background-color: #ffffff;
  color: #333333;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.partners-slider:hover .slider-arrow {
  opacity: 1;
  pointer-events: auto;
}

.slider-arrow:hover:not(:disabled) {
  background-color: #f2f2f2;
}

.slider-arrow:disabled {
  opacity: 0.35 !important;
  cursor: default;
}

/* case studies */
.case-studies {
  background-color: #f3f3f3;
  padding: 70px 0 120px;
  overflow: hidden;
}

.case-slider {
  overflow: hidden;
  cursor: grab;
  padding-bottom: 10px;
}

.case-slider.dragging {
  cursor: grabbing;
}

.case-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.case-card {
  flex: 0 0 calc((100% - 40px) / 2);
  margin-right: 40px;
  background-color: #f7f7f7;
  border: 1px solid #d8d8d8;
  padding: 34px 34px 36px;
  transition: border-color 0.25s ease;
}

.case-card:hover {
  border-color: #ff3131;
}

.case-card img {
  display: block;
  max-width: 240px;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 34px;
}

.case-card h3,
.case-card h4 {
  margin: 0 0 18px;
  color: #222;
  line-height: 1.45;
}

.case-card h3,
.case-card h4 {
  font-size: 18px;
  font-weight: 700;
}

.case-card p {
  margin: 0 0 26px;
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.9;
}

.case-card a {
  color: #ff3131;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
}

.case-card a:hover {
  color: #9b9b9b;
}

.info-strip a {
  color: #ffffff;
  text-decoration: underline;
  font-size: 20px;
  transition: color 0.2s ease;
}

.info-strip a:hover {
  color: #9b9b9b;
}

.case-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.case-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #bdbdbd;
  border: none;
  padding: 0;
  cursor: pointer;
}

.case-dot.active {
  background-color: #ffffff;
  border: 2px solid #ff3131;
}

/* footer + map */
.contact-footer {
  background-color: #f3f3f3;
  padding: 0 0 70px;
}

.contact-footer-content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  color: #1f1f1f;
  font-size: 16px;
  line-height: 1.6;
}

.contact-info p {
  margin: 0 0 6px;
}

.contact-info a {
  color: #1f1f1f;
  text-decoration: none;
}

.contact-info a:hover {
  color: #8f8f8f;
}

.contact-map {
  order: 2;
}

.contact-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.footer-links {
  margin-top: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  color: #ff3131;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #9b9b9b;
}

/* mobile / tablet */
@media (max-width: 1100px) {
  .submenu-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 1;
    color: #ff3131;
    margin-left: 8px;
  }

  .menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-left: auto;
  }

  .menu-toggle span {
    display: block;
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background-color: #ff3131;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #f3f3f3;
    border-top: 1px solid #dddddd;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    padding: 18px 0 22px;
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 0;
  }

  .nav-list > li {
    width: 100%;
    max-width: 420px;
  }

  .nav-list > li > a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px 18px;
    font-size: 18px;
    text-align: center;
  }

  .submenu-toggle,
  .lang-link {
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border: none;
    background: none;
    font-size: 18px;
    color: #4b4b4b;
  }

  .submenu-toggle > a {
    grid-column: 2;
    justify-self: center;
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    line-height: 1.2;
  }

  .submenu-toggle .submenu-arrow {
    grid-column: 3;
    justify-self: end;
    align-self: center;
  }

  .lang-item .submenu-toggle {
    grid-template-columns: 1fr auto auto 1fr;
    column-gap: 8px;
  }

  .lang-item .submenu-toggle img {
    grid-column: 2;
    justify-self: end;
    width: 20px;
    height: auto;
  }

  .lang-item .submenu-toggle > span:not(.submenu-arrow) {
    grid-column: 3;
    justify-self: start;
  }

  .lang-item .submenu-toggle .submenu-arrow {
    grid-column: 4;
    justify-self: end;
  }

  .dropdown,
  .dropdown-language {
    position: static;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background-color: transparent;
    padding: 0 0 8px;
    margin-top: 2px;
  }

  .has-dropdown.open > .dropdown,
  .has-dropdown.open > .dropdown-language {
    display: block;
  }

  .dropdown li a,
  .dropdown-language li a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 11px 18px;
    font-size: 16px;
    color: #4b4b4b;
    background-color: transparent;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
  }

  .dropdown-language li a {
    gap: 8px;
  }

  .dropdown li a:hover,
  .dropdown-language li a:hover {
    background-color: transparent;
    color: #ff3131;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:hover .dropdown-language {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 900px) {
  .header-content {
    min-height: 74px;
  }

  .hero {
    min-height: 320px;
  }

  .hero-content {
    padding: 0 18px;
  }

  .hero h1 {
    font-size: 34px;
    max-width: 300px;
  }

  .hero-button {
    font-size: 17px;
    padding: 13px 22px;
  }

  .services {
    padding: 48px 0 64px;
  }

  .section-title {
    font-size: 34px;
    margin-bottom: 38px;
  }

  .services-row-top,
  .services-row-bottom {
    grid-template-columns: 1fr;
    gap: 46px;
    max-width: 100%;
  }

  .services-row-top {
    margin: 0 auto 46px;
  }

  .services-row-bottom {
    margin-bottom: 0;
  }

  .service-card img {
    width: 84px;
    height: 84px;
    margin-bottom: 16px;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .info-strip {
    padding: 30px 0;
  }

  .info-strip p {
    font-size: 17px;
    line-height: 1.6;
  }

  .video-section {
    padding: 42px 0;
  }

  .about-section {
    padding: 42px 0 56px;
  }

  .about-block,
  .about-block.about-block-reverse {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 34px;
  }

  .about-block .about-text,
  .about-block.about-block-reverse .about-text {
    order: 1;
  }

  .about-block .about-image,
  .about-block.about-block-reverse .about-image {
    order: 2;
  }

  .about-text {
    padding: 26px 22px;
    font-size: 15px;
    line-height: 1.75;
  }

  .about-image img {
    width: 100%;
    height: auto;
  }

  .partners-strip {
    padding: 34px 0;
  }

  .partners-strip p {
    font-size: 19px;
  }

  .partners-section {
    padding: 42px 0 58px;
  }

  .partner-slide {
    flex: 0 0 calc((100% - 28px) / 2);
    min-height: 210px;
  }

  .case-studies {
    padding: 48px 0 72px;
  }

  .case-card {
    flex: 0 0 100%;
    margin-right: 18px;
    padding: 24px 20px 26px;
  }

  .case-card img {
    max-width: 180px;
    max-height: 88px;
    margin-bottom: 22px;
  }

  .case-card h3,
  .case-card h4 {
    font-size: 16px;
  }

  .case-card p,
  .case-card a {
    font-size: 14px;
    line-height: 1.75;
  }

  .case-dots {
    margin-top: 24px;
  }

  .contact-footer {
    padding: 0 0 48px;
  }

  .contact-footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-info {
    order: 1;
    font-size: 16px;
  }

  .contact-map {
    order: 2;
  }

  .contact-map iframe {
    height: 300px;
  }

  .footer-links {
    margin-top: 42px;
    gap: 12px;
  }

  .footer-links a {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .header-content {
    min-height: 62px;
    gap: 18px;
  }

  .logo img {
    width: 48px;
  }

  .menu-toggle {
    width: 34px;
    height: 14px;
    gap: 5px;
  }

  .menu-toggle span {
    width: 22px;
    height: 3px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 280px;
  }

  .hero h1 {
    font-size: 28px;
    max-width: 240px;
  }

  .section-title {
    font-size: 30px;
  }

  .services {
    padding: 50px 0 70px;
  }

  .service-card img {
    width: 85px;
    height: 85px;
    margin-bottom: 18px;
  }

  .about-text {
    padding: 22px 18px;
    font-size: 14px;
  }

  .partners-strip {
    padding: 38px 0;
  }

  .partners-strip p {
    font-size: 18px;
  }

  .partners-section {
    padding: 50px 0 70px;
  }

  .partners-slider {
    gap: 16px;
  }

  .partner-slide {
    flex: 0 0 100%;
    margin-right: 16px;
    min-height: 180px;
    padding: 20px;
  }

  .slider-arrow {
    width: 48px;
    height: 48px;
    font-size: 30px;
  }

  .contact-map iframe {
    height: 250px;
  }

  .footer-links {
    margin-top: 45px;
    gap: 14px;
  }

  .footer-links a {
    font-size: 16px;
  }
}