@font-face {
  font-family: "Exo 2";
  src: url("../../fonts/exo2-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Exo 2";
  src: url("../../fonts/exo2-semibold1.woff") format("woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --blue: #5d7fba;
  --blue-dark: #4f70a9;
  --text: #171717;
  --muted-blue: #5879ae;
  --container: 960px;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  flex-direction: column;
  color: var(--text);
  background: #fff;
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.42;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

a:hover {
  color: var(--blue-dark);
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(93, 127, 186, 0.45);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 36px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  color: #fff;
  background: #222;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: #fff;
}

.site-header__inner {
  display: grid;
  min-height: 190px;
  padding: 22px 0 20px;
  align-items: center;
  grid-template-columns: 270px 1fr;
  gap: 60px;
}

.brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--muted-blue);
  text-decoration: none;
}

.brand__name {
  margin-bottom: 3px;
  font-size: 18px;
  font-weight: 600;
}

.brand img {
  width: 190px;
  height: 101px;
  object-fit: contain;
}

.brand__caption {
  margin-top: -2px;
  color: #5e5e5e;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.header-contacts {
  display: grid;
  justify-items: end;
  gap: 12px;
  color: var(--muted-blue);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-contact img {
  width: 27px;
  max-height: 27px;
  object-fit: contain;
}

.header-contact--vk img {
  width: 33px;
}

.main-nav {
  position: relative;
  background: var(--blue);
}

.main-nav__inner {
  display: grid;
  min-height: 44px;
  grid-template-columns: repeat(6, 1fr);
}

.main-nav a {
  display: flex;
  padding: 9px 7px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #fff;
  background: var(--blue-dark);
}

.main-nav img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: none;
}

.main-content {
  flex: 1 0 auto;
  min-height: 420px;
  padding: 32px 0 66px;
}

.section-title {
  width: min(100%, 390px);
  margin: 0 auto 30px;
  padding: 4px 20px 5px;
  border-radius: 16px;
  color: #fff;
  background: var(--blue);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.section-title--wide {
  width: min(100%, 520px);
}

.page-copy {
  font-size: 17px;
}

.page-copy p {
  margin: 0 0 18px;
}

.welcome-intro {
  margin-bottom: 28px;
  font-size: 20px;
  text-align: center;
}

.welcome-layout {
  display: grid;
  margin: 28px 0 22px;
  align-items: center;
  grid-template-columns: 334px 1fr;
  gap: 48px;
}

.welcome-layout__image {
  width: 334px;
  height: 269px;
  object-fit: cover;
}

.arrow-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 26px;
  list-style: none;
}

.arrow-list li {
  position: relative;
  min-height: 36px;
  padding-left: 54px;
}

.arrow-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 36px;
  height: 36px;
  background: url("../../images/arrow.png") center / contain no-repeat;
  content: "";
}

.interaction-list {
  display: grid;
  margin-top: 28px;
  gap: 26px;
}

.interaction-item {
  position: relative;
  padding-left: 54px;
}

.interaction-item::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 36px;
  height: 36px;
  background: url("../../images/arrow.png") center / contain no-repeat;
  content: "";
}

.interaction-item h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.interaction-item p {
  margin: 0;
}

.consultation-note {
  margin-top: 32px;
  text-align: center;
}

.contact-layout {
  display: grid;
  margin-bottom: 34px;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 45px;
}

.contact-details p {
  margin: 0 0 18px;
}

.contact-details strong {
  font-weight: 600;
}

.contact-logo {
  width: 330px;
  margin-top: 48px;
  justify-self: center;
}

.document-gallery {
  display: grid;
  margin: 0 0 16px;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 8px;
}

.document-thumb {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--text);
  text-align: center;
  text-decoration: none;
}

.document-thumb span {
  min-height: 47px;
  margin-bottom: 7px;
  font-size: 14px;
}

.document-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
}

.gallery-note {
  margin: 14px 0 30px;
  font-size: 14px;
  text-align: center;
}

.company-card {
  margin: 0;
}

.company-row {
  margin-bottom: 18px;
}

.company-row dt {
  margin-bottom: 1px;
  font-weight: 400;
}

.company-row dd {
  margin: 0;
  font-weight: 600;
}

.houses {
  display: grid;
  width: min(100%, 500px);
  gap: 30px;
}

.house h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}

.house img {
  width: 459px;
  height: 214px;
  object-fit: cover;
}

.house__links {
  display: grid;
  margin: 13px 0 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.house__links a {
  font-weight: 600;
}

.plain-links {
  display: grid;
  margin: 0 0 38px;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.plain-links a {
  font-weight: 600;
}

.memo {
  margin-top: 42px;
}

.memo .section-title {
  margin-bottom: 25px;
}

.memo__image {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.memo-copy p {
  margin: 0 0 17px;
}

.memo-copy .arrow-list {
  gap: 18px;
}

.memo-copy .arrow-list li {
  min-height: 28px;
  padding-left: 44px;
}

.memo-copy .arrow-list li::before {
  width: 28px;
  height: 28px;
}

.qa-list {
  display: grid;
  gap: 24px;
}

.qa-item p {
  margin: 0;
}

.qa-label {
  color: var(--muted-blue);
  text-transform: uppercase;
}

.qa-question {
  margin-bottom: 7px !important;
  color: #6b81aa;
}

.qa-answer-label {
  margin-bottom: 7px !important;
  font-weight: 600;
  text-transform: uppercase;
}

.qa-answer {
  text-align: justify;
}

.qa-answer-list {
  margin: 7px 0 0;
  padding-left: 0;
  list-style: none;
}

.other-questions {
  margin-top: 34px;
}

.tariff-copy {
  width: min(100%, 760px);
}

.tariff-copy p {
  margin: 0 0 20px;
}

.site-footer {
  flex: 0 0 auto;
  padding: 30px 0;
  color: #fff;
  background: var(--blue);
}

.site-footer__inner {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 30px;
}

.site-footer p {
  margin: 0 0 7px;
}

.site-footer a {
  color: #fff;
}

.site-footer__logo {
  width: 120px;
  height: 72px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header__inner {
    min-height: 0;
    padding: 18px 0;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .brand__name {
    font-size: 17px;
  }

  .brand img {
    width: 160px;
    height: 85px;
  }

  .header-contacts {
    justify-items: center;
    gap: 8px;
    font-size: 14px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: var(--blue);
    cursor: pointer;
  }

  .nav-toggle::before {
    font-size: 22px;
    content: "☰";
  }

  .nav-toggle[aria-expanded="true"]::before {
    content: "×";
  }

  .main-nav__inner {
    display: none;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .main-nav__inner.is-open {
    display: grid;
  }

  .main-nav a {
    min-height: 44px;
  }

  .main-content {
    padding: 28px 0 48px;
  }

  .section-title {
    margin-bottom: 24px;
    font-size: 18px;
  }

  .welcome-intro {
    font-size: 18px;
    text-align: left;
  }

  .welcome-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .welcome-layout__image {
    width: 100%;
    height: auto;
  }

  .contact-logo {
    width: 270px;
    margin-top: 0;
    grid-row: 1;
  }

  .document-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .document-thumb:first-child {
    grid-column: 1 / -1;
  }

  .company-row {
    margin-bottom: 16px;
  }

  .house img {
    width: 100%;
    height: auto;
  }

  .qa-answer {
    text-align: left;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__logo {
    justify-self: start;
  }
}

@media (max-width: 430px) {
  body {
    font-size: 15px;
  }

  .header-contact {
    align-items: flex-start;
  }

  .document-gallery {
    grid-template-columns: 1fr;
  }

  .document-thumb:first-child {
    grid-column: auto;
  }

  .document-thumb img {
    width: min(100%, 240px);
    height: auto;
    margin-inline: auto;
  }

  .arrow-list li,
  .interaction-item {
    padding-left: 42px;
  }

  .arrow-list li::before,
  .interaction-item::before {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
