:root {
  --color-dark: #323132;
  --color-browser-chrome: #343d4a;
  --color-overlay: rgba(23, 24, 34, 0.78);
  --color-brown: #c09b87;
  --color-blue: #373661;
  --color-blue-86: rgba(55, 54, 97, 0.86);
  --color-white: #fff;
  --color-black: #060606;
  --color-gray: #f8f8fb;
  --color-line: #f3f3f3;
  --color-border: #c5c5d1;
  --color-error: #c71a4e;
  --color-footer: #a3aab1;
  --content-width: 1140px;
}

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

html {
  min-width: 1200px;
  background: var(--color-browser-chrome);
  font-family: "Montserrat", Arial, sans-serif;
}

body {
  margin: 0;
  color: var(--color-black);
  font-family: "Montserrat", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--color-white);
  background: var(--color-blue);
  transform: translateY(-200%);
}

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

.site-header {
  z-index: 10;
  width: var(--content-width);
  height: 81px;
  padding: 24px 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header--home {
  position: absolute;
  top: 0;
  left: 50%;
  color: var(--color-white);
  transform: translateX(-50%);
}

.site-header--light {
  position: relative;
  margin: 0 auto;
  color: var(--color-dark);
  background: var(--color-white);
}

.site-logo {
  position: relative;
  display: block;
  width: 130px;
  height: 32.39812088px;
  flex: 0 0 130px;
}

.logo-composite {
  position: relative;
  display: block;
  width: 130px;
  height: 32.39812088px;
}

.logo-composite img {
  position: absolute;
  display: block;
}

.logo-composite__base {
  top: 0;
  left: 0;
  width: 130px;
  height: 32.39812088px;
}

.logo-composite__letter--t {
  left: 50.30859375px;
  width: 13.44827557px;
}

.logo-composite__letter--r {
  left: 65.58984375px;
  width: 11.61441994px;
}

.logo-composite__letter--a {
  left: 78.22265625px;
  width: 13.44827557px;
}

.logo-composite__letter--d {
  left: 93.50585938px;
  width: 10.79937267px;
}

.logo-composite__letter--e {
  left: 106.13867188px;
  width: 11.61441994px;
}

.logo-composite--light .logo-composite__letter {
  top: 5.73071289px;
  height: 21.4208374px;
}

.logo-composite--dark .logo-composite__letter {
  top: 7.23px;
  height: 17.931px;
}

.header-contacts {
  width: 442px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}

.header-contacts a {
  text-decoration: none;
  text-transform: none;
}

.header-contacts a:last-child {
  text-transform: uppercase;
}

.header-contacts a:hover,
.header-contacts a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home {
  position: relative;
  min-height: 1111px;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-dark);
}

.home__background,
.home__overlay {
  position: absolute;
  inset: 0;
}

.home__background {
  background: var(--color-dark) url("../images/main-background.jpg") center center / cover no-repeat;
}

.home__overlay {
  background: var(--color-overlay);
}

.home__guide {
  position: absolute;
  z-index: 1;
  background: rgba(255, 255, 255, 0.18);
}

.home__guide--left,
.home__guide--right {
  top: 0;
  bottom: 0;
  width: 1px;
}

.home__guide--left {
  left: calc(50% - 570px);
}

.home__guide--right {
  left: calc(50% + 570px);
}

.home__guide--horizontal {
  top: 630px;
  right: 0;
  left: 0;
  height: 1px;
}

.hero {
  position: absolute;
  z-index: 2;
  top: 176px;
  left: calc(50% - 504px);
  width: 551px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.hero h1 {
  margin: 0;
  color: var(--color-white);
  font-size: 40px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--color-brown);
}

.hero p {
  width: 421px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.button {
  height: 52px;
  border: 1px solid var(--color-white);
  padding: 14px 32px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}

.button--ghost {
  margin-top: 50px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.button--primary {
  width: 324px;
  color: var(--color-white);
  background: var(--color-blue);
}

.directions {
  position: absolute;
  z-index: 2;
  top: 669px;
  left: calc(50% - 504px);
  width: 551px;
}

.directions__list {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 34px;
  align-items: flex-start;
  list-style: none;
}

.directions__list li {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-transform: uppercase;
  white-space: nowrap;
}

.directions__list img {
  width: 16px;
  height: 16px;
}

.launch-card {
  position: absolute;
  z-index: 3;
  top: 630px;
  left: calc(50% + 63px);
  width: 507px;
  height: 300px;
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 54px;
  align-items: flex-start;
  justify-content: flex-start;
  color: var(--color-white);
  background: var(--color-brown);
}

.launch-card h2 {
  max-width: 100%;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  text-transform: uppercase;
}

.launch-card > p {
  width: 341px;
  min-height: 71px;
  margin: 0;
  opacity: 0.86;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.vertical-cta {
  position: absolute;
  z-index: 5;
  top: 0;
  left: calc(50% + 570px);
  width: 74px;
  height: 306px;
  padding: 32px 25px;
  border: 1px solid var(--color-blue);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  color: var(--color-white);
  background: var(--color-blue);
  cursor: pointer;
}

.vertical-cta img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.vertical-cta span {
  width: 22px;
  height: 206px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.home-footer {
  position: absolute;
  z-index: 2;
  top: 1054px;
  left: 50%;
  width: var(--content-width);
  padding: 0 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-footer);
  font-family: "Onest", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  transform: translateX(-50%);
}

.home-footer a {
  text-underline-offset: 2px;
}

.page--contacts {
  min-width: 1200px;
  background: var(--color-white);
}

.contacts-main {
  position: relative;
  height: 849px;
  overflow: hidden;
  background: var(--color-overlay);
}

.contacts-map {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1920px;
  height: 849px;
  transform: translateX(-50%);
}

.contacts-map__background {
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay);
  background-image: url("../images/map-background.png?v=2");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.map-pin {
  position: absolute;
  top: 350px;
  left: 670px;
  width: 48px;
  height: 69px;
}

.map-pin__body {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 66px;
}

.map-pin__mark {
  position: absolute;
  top: 13.5px;
  left: 15.5px;
  width: 18px;
  height: 23px;
}

.map-pin__shadow {
  position: absolute;
  top: 63px;
  left: 3px;
  width: 43px;
  height: 12px;
}

.contact-card {
  position: absolute;
  top: 213px;
  left: 1066px;
  width: 464px;
  color: var(--color-blue);
  background: var(--color-white);
  box-shadow: 0 15px 40px rgba(38, 39, 44, 0.06);
}

.contact-card__row {
  min-height: 162px;
  padding: 56px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card__row + .contact-card__row {
  min-height: 180px;
  border-top: 1px solid var(--color-line);
}

.contact-card__label {
  color: var(--color-blue-86);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.28px;
  text-transform: uppercase;
}

.contact-card address,
.contact-card p {
  margin: 0;
  color: var(--color-blue);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}

.contacts-footer {
  height: 181px;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  color: var(--color-black);
  background: var(--color-white);
}

.contacts-footer__top,
.contacts-footer__bottom {
  width: var(--content-width);
  padding: 0 65px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.contacts-footer__top {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.contacts-footer__top a {
  text-decoration: none;
}

.contacts-footer__bottom {
  color: var(--color-footer);
  font-family: "Onest", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.3;
}

.modal-root {
  position: fixed;
  z-index: 100;
  inset: 0;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 24, 34, 0.72);
}

.consultation-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 436px;
  min-height: 427px;
  padding: 56px;
  color: var(--color-blue);
  background: var(--color-white);
  box-shadow: 0 15px 40px rgba(38, 39, 44, 0.06);
  transform: translate(-50%, -50%);
}

.consultation-modal h2 {
  margin: 0 0 32px;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  text-transform: uppercase;
}

.consultation-modal form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.consultation-modal input[type="text"],
.consultation-modal input[type="tel"] {
  width: 324px;
  height: 52px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 14px 15px;
  color: var(--color-black);
  background: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.consultation-modal input:focus {
  border-color: var(--color-blue-86);
  outline: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.consent {
  margin-top: -20px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--color-blue-86);
  opacity: 0.6;
  font-size: 12px;
  line-height: normal;
}

.page--legal {
  min-width: 0;
  min-height: 100vh;
  color: var(--color-blue);
  background: var(--color-gray);
}

.legal-header {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
}

.legal-content {
  max-width: 920px;
  margin: 80px auto;
  padding: 56px;
  background: var(--color-white);
  box-shadow: 0 15px 40px rgba(38, 39, 44, 0.06);
}

.legal-content h1 {
  margin: 0 0 32px;
  font-size: 40px;
  line-height: 1.25;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.7;
}

:focus-visible {
  outline: 2px solid var(--color-brown);
  outline-offset: 3px;
}

@media (min-width: 1200px) {
  html,
  body.page--home {
    height: 100%;
    overflow: hidden;
  }

  .home {
    height: 100dvh;
    min-height: 0;
  }

  .site-header--home .site-logo,
  .site-header--light .site-logo {
    transform: translate(5px, -5.3046875px);
  }

  .hero {
    top: clamp(80px, 15.84dvh, 176px);
  }

  .hero h1 {
    font-size: clamp(32px, 3.6dvh, 40px);
    line-height: clamp(44px, 5.04dvh, 56px);
  }

  .button--ghost {
    margin-top: clamp(24px, 4.5dvh, 50px);
  }

  .directions {
    top: clamp(390px, 60.22dvh, 669px);
  }

  .home__guide--horizontal,
  .launch-card {
    top: clamp(285px, 56.71dvh, 630px);
  }

  .launch-card {
    height: clamp(160px, 27dvh, 300px);
    padding: clamp(20px, 4.5dvh, 50px);
    gap: clamp(28px, 5.04dvh, 56px);
  }

  .launch-card h2 {
    font-size: clamp(22px, 2.52dvh, 28px);
    line-height: clamp(28px, 3.24dvh, 36px);
  }

  .launch-card > p {
    min-height: 0;
  }

  .home-footer {
    top: auto;
    bottom: clamp(12px, 3.5dvh, 39px);
  }
}

@media (min-width: 1200px) and (max-width: 1299px) {
  .vertical-cta {
    right: 0;
    left: auto;
  }
}

@media (max-width: 1199px) {
  html,
  .page--contacts {
    min-width: 0;
  }

  .site-header {
    width: 100%;
    padding-right: 48px;
    padding-left: 48px;
  }

  .site-header--home {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .home {
    min-height: 100svh;
    padding-bottom: 48px;
  }

  .home__guide--left {
    left: 24px;
  }

  .home__guide--right {
    right: 24px;
    left: auto;
  }

  .home__guide--horizontal {
    display: none;
  }

  .hero,
  .directions,
  .launch-card,
  .home-footer {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .hero {
    width: min(551px, calc(100% - 96px));
    margin: 72px auto 0;
  }

  .directions {
    width: min(700px, calc(100% - 96px));
    margin: 72px auto 0;
  }

  .directions__list {
    flex-wrap: wrap;
    row-gap: 36px;
  }

  .launch-card {
    width: min(507px, calc(100% - 96px));
    margin: 72px auto 0;
  }

  .vertical-cta {
    display: none;
  }

  .home-footer {
    width: calc(100% - 96px);
    margin: 80px auto 0;
    padding: 0;
  }

  .contacts-main,
  .contacts-map {
    height: 760px;
  }

  .contacts-map {
    left: 0;
    width: 100%;
    transform: none;
  }

  .map-pin {
    top: 282px;
    left: 30%;
  }

  .contact-card {
    top: 210px;
    right: 48px;
    left: auto;
  }

  .contacts-footer {
    height: auto;
    min-height: 181px;
    padding-right: 48px;
    padding-left: 48px;
  }

  .contacts-footer__top,
  .contacts-footer__bottom {
    width: 100%;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .site-header {
    min-height: 81px;
    height: auto;
    padding: 20px;
    gap: 16px;
    align-items: center;
  }

  .header-contacts {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: flex-end;
    font-size: 12px;
    line-height: 16px;
  }

  .header-contacts a:nth-child(2) {
    display: none;
  }

  .home__guide--left {
    left: 12px;
  }

  .home__guide--right {
    right: 12px;
  }

  .hero {
    width: auto;
    margin: 56px 20px 0;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.3;
    letter-spacing: 0.6px;
  }

  .hero p {
    width: 100%;
  }

  .button--ghost {
    width: 100%;
    margin-top: 40px;
  }

  .directions {
    width: auto;
    margin: 56px 20px 0;
  }

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

  .directions__list li {
    min-width: 0;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    white-space: normal;
  }

  .directions__list img {
    flex: 0 0 16px;
  }

  .directions__list li:last-child {
    grid-column: 1 / -1;
  }

  .launch-card {
    width: auto;
    min-height: 300px;
    height: auto;
    margin: 56px 20px 0;
    padding: 32px;
    gap: 32px;
  }

  .launch-card h2 {
    font-size: 26px;
    line-height: 34px;
  }

  .launch-card > p {
    width: 100%;
  }

  .home-footer {
    width: auto;
    margin: 64px 20px 0;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .contacts-main,
  .contacts-map {
    height: 820px;
  }

  .contacts-map__background {
    background-position: 43% center;
  }

  .map-pin {
    top: 260px;
    left: calc(50% - 120px);
  }

  .contact-card {
    top: 420px;
    right: 16px;
    left: 16px;
    width: auto;
  }

  .contact-card__row,
  .contact-card__row + .contact-card__row {
    min-height: 0;
    padding: 32px;
  }

  .contact-card address,
  .contact-card p {
    white-space: normal;
  }

  .contacts-footer {
    min-height: 0;
    padding: 32px 20px;
    gap: 32px;
    align-items: stretch;
  }

  .contacts-footer__top,
  .contacts-footer__bottom {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .consultation-modal {
    width: calc(100% - 32px);
    min-height: 427px;
    padding: 56px 32px 32px;
  }

  .consultation-modal input[type="text"],
  .consultation-modal input[type="tel"],
  .button--primary {
    width: 100%;
  }

  .legal-header {
    padding: 20px;
  }

  .legal-content {
    margin: 24px 16px;
    padding: 32px 24px;
  }

  .legal-content h1 {
    font-size: 30px;
  }
}
