/* Final Russian layout polish. Loaded after the shared Porto/legacy styles. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.legacy-header .container {
  max-width: 1160px;
}

.legacy-header .header-top {
  padding-top: 18px;
  padding-bottom: 14px;
}

.legacy-header .header-top .row {
  min-height: 66px;
}

.legacy-header .header-top img[src*="logo-virtualnyiofis"] {
  width: 180px;
  max-width: 100%;
  max-height: none;
  height: auto;
}

.legacy-header .top-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px 10px;
  color: #8b8f94;
  font-size: 11.5px;
  line-height: 1.35;
  white-space: normal;
}

.legacy-header .top-links > * {
  margin-left: 0;
}

.legacy-header .top-links a {
  color: #74797e;
}

.legacy-header .top-links .batumi-announcement {
  color: #d20a19;
}

.legacy-header .top-links .language-divider {
  margin: 0 -2px;
  color: #c6c8ca;
}

.legacy-header .language-group-desktop {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.legacy-header .language-group-desktop .language-switch-desktop {
  min-width: 27px;
  padding: 5px 7px;
  font-size: 9.5px;
}

.legacy-header .language-group-mobile {
  display: none;
}

.legacy-header .header-menu {
  padding-top: 8px;
  padding-bottom: 10px;
  border-top: 1px solid #f0f1f2;
}

.legacy-header .header-menu nav {
  gap: 2px;
}

.legacy-header #legacy-navigation > a,
.legacy-header #legacy-navigation > .nav-dropdown > a {
  padding: 11px 7px;
  font-size: 11.25px;
  line-height: 1.2;
  white-space: nowrap;
}

.legacy-header .dropdown-toggle-light {
  padding-right: 3px;
}

.legacy-header .social-links {
  justify-content: flex-end;
  gap: 6px;
}

.legacy-header .social-links a {
  width: 31px;
  height: 31px;
}

.original-concept .process-image strong {
  display: block;
  max-width: 155px;
  margin: 12px auto 0;
  line-height: 1.25;
}

.original-concept .our-work {
  display: block;
  max-width: 260px;
  margin: 20px auto 0;
  line-height: 1.25;
}

/* Avoid overlapping Russian labels while the circular CTA rotates. */
.concept-project img {
  transition: none !important;
}

.legacy-content,
.legacy-seo-copy,
.intro-copy {
  overflow-wrap: break-word;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .legacy-header .container {
    max-width: 970px;
  }

  .legacy-header .top-links {
    gap: 5px 7px;
    font-size: 10.5px;
  }

  .legacy-header #legacy-navigation > a,
  .legacy-header #legacy-navigation > .nav-dropdown > a {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 9.5px;
  }
}

@media (min-width: 1200px) {
  .legacy-header .top-links {
    flex-wrap: nowrap;
    gap: 6px;
    font-size: 10.75px;
    white-space: nowrap;
  }
}

@media (max-width: 991px) {
  .legacy-header .header-top {
    padding: 15px 15px 11px;
  }

  .legacy-header .header-top .row {
    min-height: 0;
  }

  .legacy-header .header-top img[src*="logo-virtualnyiofis"] {
    width: 172px;
    margin: 0 auto;
  }

  .legacy-header .header-menu {
    padding: 9px 15px;
  }

  .legacy-header .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    min-height: 42px;
  }

  .legacy-header #legacy-navigation {
    margin-top: 9px;
    padding: 8px;
    border: 1px solid #eceeef;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(30, 34, 38, .08);
  }

  .legacy-header #legacy-navigation > a,
  .legacy-header #legacy-navigation > .nav-dropdown > a {
    padding: 11px 12px;
    font-size: 13px;
    text-transform: none;
    white-space: normal;
  }

  .legacy-header #legacy-navigation .language-group-mobile {
    display: flex !important;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
  }

  .legacy-header #legacy-navigation .language-group-mobile .language-switch-mobile {
    display: inline-flex !important;
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
    padding: 11px 8px;
    border-radius: 3px;
    text-transform: none;
  }

  .legacy-header .dropdown-toggle-light {
    height: 42px;
  }

  .original-concept .process-image strong {
    max-width: 190px;
  }
}

@media (max-width: 575px) {
  .legacy-slider {
    height: 460px;
  }

  .hero-photo {
    width: 66%;
  }

  .hero-copy,
  .hero-copy-light {
    top: 34%;
    left: 7%;
    width: 86%;
  }

  .hero-copy span,
  .hero-copy small,
  .hero-price-copy span,
  .hero-price-copy small {
    font-size: 15px;
    line-height: 1.35;
  }

  .hero-copy strong {
    font-size: 31px;
  }

  .hero-price-copy {
    padding: 0 44px;
    text-align: center;
  }

  .hero-price-copy strong {
    font-size: 72px;
  }

  .hero-arrow {
    width: 34px;
    height: 38px;
    font-size: 24px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .hero-dots {
    bottom: 24px;
  }

  .callout-lead {
    font-size: 17px;
  }

  .callout-lead > span {
    display: block;
    margin: 6px 0 0;
    font-size: 29px;
  }

  .callout-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .legacy-intro {
    padding-right: 18px;
    padding-left: 18px;
  }

  .legacy-intro > h2 {
    font-size: 23px;
  }

  .word-rotator {
    min-width: 0;
  }
}
