/* Extracted from about/office/index.php for browser caching. */

:root {
  --ajva-primary: #1C7C85;
  --ajva-secondary: #30B0B0;
  --ajva-accent: #FCC049;
  --ajva-bg: #F0F0EE;
  --ajva-gray: #E0E0E0;
  --ajva-text: #313131;
  --ajva-white: #ffffff;
  --ajva-font: "Gilroy", Arial, Helvetica, sans-serif;
}

.ajva-office,
.ajva-office * {
  box-sizing: border-box;
}

.ajva-office {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--ajva-white);
  color: var(--ajva-text);
  font-family: var(--ajva-font);
  text-rendering: geometricPrecision;
}

.ajva-office a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.ajva-office a:focus-visible {
  outline: 2px solid var(--ajva-accent);
  outline-offset: 4px;
}

.ajva-office img {
  max-width: 100%;
  display: block;
}

.ajva-office__container {
  width: min(100% - 40px, 1140px);
  margin: 0 auto;
}

.ajva-office__breadcrumbs {
  margin: 11px 0 25px;
  color: #9B9B9B;
  font-size: 10px;
  line-height: 1.2;
}

.ajva-office__layout {
  display: grid;
  grid-template-columns: minmax(0, 854px) 214px;
  gap: 72px;
  align-items: start;
}

.ajva-office__content {
  min-width: 0;
  padding-bottom: 50px;
}

.ajva-office__side-nav {
  padding-top: 50px;
  display: grid;
  gap: 22px;
}

.ajva-office__side-link {
  min-height: 41px;
  padding: 0 14px;
  border: 1px solid var(--ajva-secondary);
  border-radius: 8px;
  background: var(--ajva-secondary);
  color: var(--ajva-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.06;
  transition: opacity .2s ease, transform .2s ease;
}

.ajva-office__side-link.is-active {
  background: var(--ajva-white);
  color: var(--ajva-primary);
}

@media (hover: hover) and (pointer: fine) {
  .ajva-office__side-link:hover,
  .ajva-office__partner-button:hover {
    opacity: .92;
    transform: translateY(-1px);
  }
}

/* headings */

.ajva-office__heading {
  margin: 0 0 27px;
  display: flex;
  align-items: center;
  gap: 21px;
}

.ajva-office__title,
.ajva-office__section-title {
  margin: 0;
  color: var(--ajva-primary);
  font-size: 37px;
  font-weight: 800;
  line-height: 1.1;
}

.ajva-office__heading-divider {
  width: 2px;
  height: 37px;
  flex: 0 0 2px;
  background: var(--ajva-accent);
}

.ajva-office__title-badge {
  width: 37px;
  height: 35px;
  border: 2px solid var(--ajva-primary);
  border-radius: 3px;
  color: var(--ajva-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  position: relative;
}

.ajva-office__title-badge::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  background: var(--ajva-white);
  border-left: 2px solid var(--ajva-primary);
  border-top: 2px solid var(--ajva-primary);
  transform: rotate(45deg) translate(3px, 3px);
}

.ajva-office__heading-icon {
  width: 46px;
  height: 53px;
  object-fit: contain;
}

.ajva-office__heading-icon--reasons {
  width: 90px;
  height: 28px;
}

/* cities */

.ajva-office__cities {
  display: grid;
  grid-template-columns: repeat(2, 318px);
  gap: 17px 96px;
}

.ajva-office__city-card {
  min-height: 65px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ajva-primary);
  border-radius: 16px;
  background: var(--ajva-white);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  column-gap: 13px;
  padding: 11px 18px 10px 23px;
}

.ajva-office__city-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: var(--ajva-accent);
}

.ajva-office__city-pin {
  width: 17px;
  height: 25px;
  object-fit: contain;
  justify-self: center;
}

.ajva-office__city-name {
  margin: 0 0 3px;
  color: var(--ajva-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.05;
}

.ajva-office__city-address {
  margin: 0;
  color: var(--ajva-text);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.15;
}

/* geography */

.ajva-office__geo {
  margin-top: 70px;
}

.ajva-office__geo .ajva-office__heading {
  margin-bottom: 18px;
}

.ajva-office__geo-text {
  max-width: 1080px;
  margin: 0 0 32px;
  color: var(--ajva-text);
  font-size: 18px;
  line-height: 1.24;
}

.ajva-office__map {
  width: 100%;
  border: 0;
  margin-bottom: 28px;
}

.ajva-office__map-caption {
  max-width: 1080px;
  margin: 0;
  color: var(--ajva-text);
  font-size: 17px;
  line-height: 1.25;
}

/* reasons */

.ajva-office__reasons {
  margin-top: 58px;
}

.ajva-office__reasons .ajva-office__heading {
  margin-bottom: 45px;
}

.ajva-office__reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 63px;
}

.ajva-office__reason-card {
  min-height: 308px;
  position: relative;
  border: 1px solid var(--ajva-primary);
  border-radius: 8px;
  background: var(--ajva-white);
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  padding: 42px 25px 25px;
}

.ajva-office__reason-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 119px;
  width: 5px;
  height: 40px;
  background: var(--ajva-accent);
}

.ajva-office__reason-icon {
  height: 67px;
  object-fit: contain;
  margin-bottom: 24px;
}

.ajva-office__reason-title {
  margin: 0 0 18px;
  color: var(--ajva-primary);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
}

.ajva-office__reason-text {
  max-width: 210px;
  margin: 0;
  color: var(--ajva-text);
  font-size: 13px;
  line-height: 1.16;
}

.ajva-office__partner {
  margin-top: 56px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.ajva-office__partner-button {
  width: 383px;
  min-height: 61px;
  border-radius: 14px;
  background: var(--ajva-primary);
  color: var(--ajva-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  transition: opacity .2s ease, transform .2s ease;
}

.ajva-office__partner-text {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--ajva-text);
  font-size: 17px;
  line-height: 1.25;
}

/* =========================
   1024 tablet
========================= */

@media (max-width: 1024px) {
  .ajva-office__container {
    width: 100%;
    padding: 0 56px;
  }

  .ajva-office__layout {
    display: block;
  }

  .ajva-office__side-nav {
    display: none;
  }

  .ajva-office__heading {
    justify-content: center;
  }

  .ajva-office__title,
  .ajva-office__section-title {
    text-align: center;
    font-size: 34px;
  }

  .ajva-office__cities {
    width: min(100%, 734px);
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 48px;
  }

  .ajva-office__geo-text,
  .ajva-office__map-caption {
    text-align: center;
  }

  .ajva-office__reason-grid {
    gap: 28px;
  }

  .ajva-office__reason-card {
    min-height: 290px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* =========================
   768 small tablet
========================= */

@media (max-width: 768px) {
  .ajva-office__container {
    padding: 0 28px;
  }

  .ajva-office__breadcrumbs {
    display: none;
  }

  .ajva-office__content {
    padding-top: 26px;
  }

  .ajva-office__cities {
    grid-template-columns: 1fr;
    width: min(100%, 330px);
  }

  .ajva-office__map {
    display: none;
  }

  .ajva-office__map-caption {
    display: none;
  }

  .ajva-office__reason-grid {
    grid-template-columns: 1fr;
    width: min(100%, 280px);
    margin: 0 auto;
    gap: 30px;
  }
}

/* =========================
   430 mobile reference
========================= */

@media (max-width: 560px) {
  .ajva-office__container {
    padding: 0 24px;
  }

  .ajva-office__content {
    padding-top: 16px;
    padding-bottom: 40px;
  }

  .ajva-office__heading {
    gap: 13px;
    margin-bottom: 18px;
  }

  .ajva-office__title,
  .ajva-office__section-title {
    font-size: 21px;
    line-height: 1.1;
  }

  .ajva-office__heading-divider {
    height: 48px;
  }

  .ajva-office__title-badge {
    width: 37px;
    height: 35px;
    font-size: 15px;
  }

  .ajva-office__cities {
    width: 100%;
    gap: 10px;
  }

  .ajva-office__city-card {
    min-height: 60px;
    border-radius: 14px;
    grid-template-columns: 25px minmax(0, 1fr);
    column-gap: 10px;
    padding: 10px 14px 10px 18px;
  }

  .ajva-office__city-card::before {
    width: 7px;
  }

  .ajva-office__city-pin {
    width: 13px;
    height: 19px;
  }

  .ajva-office__city-name {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.15;
  }

  .ajva-office__city-address {
    font-size: 12px;
    line-height: 1.35;
  }

  .ajva-office__geo {
    margin-top: 32px;
  }

  .ajva-office__geo .ajva-office__heading {
    align-items: center;
    justify-content: flex-start;
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
  }

  .ajva-office__geo .ajva-office__section-title {
    max-width: 210px;
    text-align: left;
    font-size: 20px;
  }

  .ajva-office__heading-icon {
    width: 38px;
    height: auto;
  }

  .ajva-office__geo-text {
    display: none;
  }

  .ajva-office__reasons {
    margin-top: 72px;
  }

  .ajva-office__reasons .ajva-office__heading {
    align-items: center;
    justify-content: flex-start;
    max-width: 330px;
    margin: 0 auto 28px;
  }

  .ajva-office__reasons .ajva-office__section-title {
    max-width: 170px;
    text-align: left;
    font-size: 19px;
  }

  .ajva-office__heading-icon--reasons {
    width: 90px;
  }

  .ajva-office__reason-grid {
    width: min(100%, 260px);
    gap: 30px;
  }

  .ajva-office__reason-card {
    min-height: 282px;
    padding: 29px 20px 24px;
    border-radius: 7px;
  }

  .ajva-office__reason-card::before {
    top: 116px;
    width: 4px;
    height: 38px;
  }

  .ajva-office__reason-icon {
    height: 62px;
    margin-bottom: 21px;
  }

  .ajva-office__reason-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .ajva-office__reason-text {
    font-size: 11px;
  }

  .ajva-office__partner {
    margin-top: 31px;
  }

  .ajva-office__partner-button {
    width: 100%;
    min-height: 47px;
    border-radius: 7px;
    font-size: 14px;
  }

  .ajva-office__partner-text {
    margin-top: 20px;
    font-size: 13px;
  }
}

/* =========================
   360 narrow safeguard
========================= */

@media (max-width: 360px) {
  .ajva-office__container {
    padding: 0 16px;
  }

  .ajva-office__title,
  .ajva-office__section-title {
    font-size: 19px;
  }

  .ajva-office__geo .ajva-office__section-title,
  .ajva-office__reasons .ajva-office__section-title {
    font-size: 18px;
  }
}

/* =========================
   OFFICE INTERACTIVE MAP + WIDE LOWER BLOCK
========================= */

.ajva-office__geo,
.ajva-office__reasons {
  width: 1140px;
  max-width: 100%;
}

.ajva-office__map--interactive {
  width: 100%;
  height: 520px;
  margin: 0 0 28px;
  border: 0;
  overflow: hidden;
  background: #F0F0EE;
}

.ajva-office__map--interactive iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@media (min-width: 1025px) {
  .ajva-office__geo,
  .ajva-office__reasons {
    width: 1140px;
  }

  .ajva-office__map--interactive {
    height: 520px;
  }
}

@media (max-width: 1024px) {
  .ajva-office__geo,
  .ajva-office__reasons {
    width: 100%;
  }

  .ajva-office__map--interactive {
    height: 430px;
  }
}

@media (max-width: 768px) {
  .ajva-office__map--interactive {
    display: none;
  }
}

@media (max-width: 560px) {
  .ajva-office__geo,
  .ajva-office__reasons {
    width: 100%;
  }
}


/* =========================
   OFFICE FULL-WIDTH GEO BLOCK + CORRECT MAP
   Блок географии вынесен визуально на всю ширину страницы 1440,
   карта растянута на весь доступный контейнер и не зажата списком/меню.
========================= */

@media (min-width: 1025px) {
  .ajva-office__geo {
    width: 1140px;
    max-width: 1140px;
    margin-top: 86px;
    margin-left: 0;
    margin-right: 0;
    clear: both;
  }

  .ajva-office__geo .ajva-office__heading {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, max-content) 2px 58px;
    justify-content: start;
    align-items: center;
    gap: 28px;
    margin-bottom: 18px;
  }

  .ajva-office__geo .ajva-office__section-title {
    max-width: 780px;
  }

  .ajva-office__geo-text,
  .ajva-office__map-caption {
    max-width: 1080px;
  }

  .ajva-office__map--interactive {
    width: 100%;
    height: 520px;
    margin-top: 32px;
    margin-bottom: 28px;
    border-radius: 0;
  }

  .ajva-office__map--interactive iframe {
    width: 100%;
    height: 100%;
  }

  .ajva-office__reasons {
    width: 1140px;
    max-width: 1140px;
  }
}

@media (max-width: 1024px) {
  .ajva-office__geo,
  .ajva-office__reasons {
    width: 100%;
    max-width: 100%;
  }

  .ajva-office__map--interactive {
    height: 430px;
  }
}

@media (max-width: 768px) {
  .ajva-office__map--interactive {
    display: none;
  }
}


/* =========================
   OFFICE CITY LINKS
========================= */

.ajva-office__city-card {
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .ajva-office__city-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(28, 124, 133, .12);
  }
}

/* =========================
   OFFICE LIST — INTERMEDIATE DESKTOP
   После скрытия сайдбара используем всю ширину контента без пустой колонки.
========================= */
@media (min-width: 1025px) and (max-width: 1200px) {
  .ajva-office__container {
    width: 100%;
    padding: 0 56px;
  }

  .ajva-office__layout {
    display: block;
  }

  .ajva-office__content {
    width: 100%;
  }

  .ajva-office__cities {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 18px;
  }

  .ajva-office__city-card {
    width: 100%;
    min-width: 0;
    padding-left: 20px;
    padding-right: 16px;
  }

  .ajva-office__geo,
  .ajva-office__reasons {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 1025px) and (max-width: 1080px) {
  .ajva-office__container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .ajva-office__cities {
    gap: 14px;
  }

  .ajva-office__city-name {
    font-size: 15px;
  }
}
