[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --wrap: 1220px;
  --line: rgba(0, 0, 0, 0.2);
  --bg-page: #efefef;
  --bg-header: #f8f8f8;
  --bg-hero: #e7e5e5;
  --btn: #9a9a9a;
  --wa: #36b24b;
  --mail: #d45f5f;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: #111;
  background: var(--bg-page);
}

.wrap {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  position: relative;
  z-index: 50;
  background: var(--bg-header);
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.header-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #111;
  justify-self: start;
}

.brand__img {
  width: 112px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.brand:visited,
.nav a:visited {
  color: #111;
}

.nav {
  position: static;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  width: 100%;
  max-width: 100%;
}

.nav a {
  color: #111;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: #111;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
  opacity: 0.35;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 20px;
}

.lang-switch {
  min-width: 46px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.burger {
  width: 48px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  align-content: center;
  gap: 6px;
}

.burger span {
  height: 3px;
  width: 34px;
  background: #111;
  justify-self: end;
  border-radius: 2px;
}

.hero {
  background: var(--bg-hero);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 58px;
  min-height: 680px;
}

.hero-row {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 36px;
  align-items: center;
}

.hero-left {
  display: grid;
  place-items: center;
  align-content: start;
  gap: 14px;
  min-height: 400px;
  padding-top: 10px;
}

.hero-title {
  text-align: center;
  font-size: 72px;
  font-weight: 500;
  line-height: 1.06;
  max-width: 640px;
}

.hero-car {
  width: min(820px, 100%);
  height: auto;
  object-fit: contain;
  display: block;
}

.calc {
  background: var(--bg-header);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.calc__head {
  text-align: center;
  padding: 12px 14px 8px;
  font-size: 18px;
}

.calc__body {
  padding: 10px 18px 18px;
  display: grid;
  gap: 10px;
}

.calc__lbl {
  font-size: 18px;
}

.calc__slot {
  width: 100%;
  min-width: 0;
}

.calc__slot > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
}

.calc__slot input,
.calc__slot .pac-target-input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  border: 1px solid rgba(0, 0, 0, 0.25) !important;
  border-radius: 10px !important;
  padding: 0 12px !important;
  height: 44px !important;
  line-height: 44px !important;
  font-family: inherit !important;
  font-size: 16px !important;
  background: #fff !important;
}

.pac-container {
  z-index: 9999 !important;
}

.calc__to {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  align-items: center;
}

.calc__stops {
  display: grid;
  gap: 10px;
}

.calc__to > :first-child {
  min-width: 0;
}

.calc__stopBtn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  line-height: 1;
  cursor: pointer;
}

.calc__stopBtn--add {
  font-size: 24px;
}

.calc__stopBtn--remove {
  font-size: 28px;
}

.calc__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
}

.calc__miniTitle {
  font-size: 11px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.calc__inp {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 0 12px;
  height: 44px;
  line-height: 44px;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
}

.calc__btn {
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  background: #c8c5c5;
  padding: 10px 14px;
  font-size: 22px;
  font-family: inherit;
  cursor: pointer;
}

.calc__btn:hover {
  filter: brightness(0.98);
}

.calc__res {
  font-size: 14px;
  display: grid;
  gap: 3px;
  padding-top: 4px;
}

#price {
  font-weight: 700;
}

.messenger-bar {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 18px;
  margin-top: 10px;
}

.messenger-bar__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.msg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.msg-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.msg-label {
  font-size: 18px;
  line-height: 1.1;
  white-space: nowrap;
}

.msg-label--wa {
  color: var(--wa);
}

.msg-label--mail {
  color: var(--mail);
}

.msg-label--telegram {
  color: #2fa3d9;
}

.messenger-bar__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #111;
  text-decoration: none;
}

.messenger-bar__phone img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.msg-label--phone {
  color: #111;
  font-weight: 700;
}

.msg-icon:hover {
  filter: brightness(0.97);
}

.msg-icon:active {
  transform: scale(0.98);
}

@media (min-width: 981px) {
  .calc__res {
    width: 100%;
    gap: 4px;
    padding-top: 6px;
    line-height: 1.25;
  }

  .messenger-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
    margin-top: 14px;
  }

  .messenger-bar__links {
    order: 1;
    width: auto;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 18px;
  }

  .msg-icon {
    gap: 8px;
  }

  .msg-icon img {
    width: 38px;
    height: 38px;
  }

  .msg-label {
    font-size: 14px;
  }

  .messenger-bar__phone {
    order: 2;
    width: 100%;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
  }

  .messenger-bar__phone img {
    width: 26px;
    height: 26px;
  }

  .msg-label--phone {
    font-size: 15px;
  }
}

.email-prompt {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.email-prompt__card {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 24px 18px 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.email-prompt__close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.62);
  font-family: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.email-prompt__close:hover {
  color: rgba(0, 0, 0, 0.9);
}

.email-prompt__title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 10px;
}

.email-prompt__input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: 0 12px;
  font-size: 16px;
  outline: none;
}

.email-prompt__input:focus {
  border-color: rgba(0, 0, 0, 0.35);
}

.email-prompt__btn {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  border-radius: 999px;
  border: none;
  background: #cfcaca;
  font-size: 18px;
  cursor: pointer;
}

.email-prompt__status {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  min-height: 18px;
}

.email-success {
  margin-top: 18px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #3c934b;
}

.map-wrap {
  padding: 18px 0 34px;
}

#map {
  width: 100%;
  height: 460px;
  min-height: 460px;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.transfer-info {
  padding: 8px 4px 20px;
}

.transfer-info__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
}

.transfer-info__text {
  font-size: 18px;
  line-height: 1.45;
  max-width: 1440px;
  margin-bottom: 14px;
}

.transfer-info__list {
  font-size: 18px;
  line-height: 1.5;
  padding-left: 30px;
  margin: 0 0 16px;
}

.transfer-info__list li {
  margin-bottom: 8px;
}

.transfer-info__text--last {
  margin-bottom: 0;
}

.transfer-info__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0 8px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 14px;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

#messenger-bar[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .header-row {
    grid-template-columns: 132px 1fr auto;
    gap: 20px;
  }

  .brand__img {
    width: 102px;
    height: 46px;
  }

  .nav {
    font-size: 16px;
    gap: 22px;
  }

  .header-actions {
    gap: 16px;
  }

  .lang-switch {
    min-width: 42px;
    height: 30px;
    font-size: 16px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-row {
    grid-template-columns: 1fr 500px;
    min-height: 640px;
  }

  .hero-title {
    font-size: 64px;
    max-width: 520px;
  }

  .hero-car {
    width: min(700px, 100%);
  }
}

@media (max-width: 980px) {
  .header-row {
    grid-template-columns: 1fr auto;
    min-height: 74px;
    padding: 10px 0;
    gap: 12px;
  }

  .brand__img {
    width: 96px;
    height: 42px;
  }

  .header-actions {
    gap: 12px;
  }

  .hero {
    padding: 36px 0 42px;
    min-height: 560px;
  }

  .hero-row {
    min-height: auto;
    gap: 22px;
    grid-template-columns: 1fr;
  }

  .hero-left {
    min-height: auto;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-car {
    width: min(680px, 100%);
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    transform: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 18px;
  }

  .nav.is-open {
    display: flex;
  }

  .lang-switch {
    min-width: 40px;
    height: 29px;
    font-size: 15px;
  }

  .calc {
    width: min(540px, 100%);
    justify-self: center;
  }

  .transfer-info {
    padding: 6px 2px 18px;
  }

  .transfer-info__title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .transfer-info__text,
  .transfer-info__list {
    font-size: 18px;
  }

  .transfer-info__list {
    padding-left: 26px;
    margin-bottom: 14px;
  }
}

@media (max-width: 560px) {
  .header-row {
    grid-template-columns: 1fr auto;
    justify-content: space-between;
    padding-left: 12px;
    padding-right: 12px;
    min-height: 64px;
    align-items: center;
    gap: 10px;
  }

  .brand {
    max-width: 96px;
  }

  .brand__img {
    width: 86px;
    height: auto;
    transform: translateY(-3px);
  }

  .header-actions {
    gap: 8px;
  }

  .lang-switch {
    min-width: 36px;
    height: 28px;
    padding: 0 7px;
    font-size: 14px;
  }

  .burger {
    width: 46px;
    height: 40px;
  }

  .nav {
    left: 8px;
    right: 8px;
    padding: 16px 14px;
    gap: 14px;
    font-size: 17px;
  }

  .hero {
    padding: 18px 0 24px;
    min-height: auto;
  }

  .hero-row {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .hero-left {
    min-height: auto;
    padding: 8px 0 2px;
  }

  .hero-title {
    font-size: 43px;
    line-height: 1.06;
    margin: 0;
  }

  .hero-car {
    width: min(520px, 100%);
  }

  .calc {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    border-radius: 14px;
  }

  .calc__body {
    padding: 14px 16px 16px;
  }

  .calc__lbl {
    font-size: 16px;
    margin-bottom: 4px;
    display: block;
  }

  .calc__to {
    grid-template-columns: 1fr 44px;
    gap: 10px;
  }

  .calc__stopBtn {
    width: 44px;
    height: 44px;
  }

  .calc__pair {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .calc__miniTitle {
    font-size: 11px;
  }

  .calc__btn {
    font-size: 18px;
  }

  #messenger-bar {
    margin-top: 6px;
    gap: 14px;
    width: 100%;
    display: grid !important;
    justify-items: center;
  }

  #messenger-bar .messenger-bar__links {
    gap: 12px;
  }

  #messenger-bar .msg-icon {
    width: auto;
    justify-content: center;
    gap: 8px;
    display: inline-flex !important;
  }

  #messenger-bar .msg-icon img {
    width: 34px;
    height: 34px;
  }

  #messenger-bar .msg-label {
    font-size: 15px;
    line-height: 1.1;
    white-space: nowrap;
  }

  #messenger-bar #btn-whatsapp .msg-label {
    color: var(--wa) !important;
  }

  #messenger-bar #btn-gmail .msg-label {
    color: var(--mail) !important;
  }

  #messenger-bar .messenger-bar__phone {
    gap: 8px;
  }

  #messenger-bar .messenger-bar__phone img {
    width: 30px;
    height: 30px;
  }

  .email-prompt__card {
    padding: 24px 14px 16px;
  }

  .email-prompt__title {
    font-size: 20px;
  }

  .email-prompt__close {
    right: 10px;
  }

  .email-success {
    font-size: 22px;
    margin-top: 16px;
  }

  .transfer-info {
    padding: 4px 0 14px 8px;
  }

  .transfer-info__title {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .transfer-info__text,
  .transfer-info__list {
    font-size: 18px;
    line-height: 1.5;
  }

  .transfer-info__list {
    padding-left: 24px;
    margin-bottom: 14px;
  }

  #map {
    height: 300px;
    min-height: 300px;
  }

  .pac-container {
    z-index: 99999 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 16px !important;
    max-height: 45vh;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  }

  .pac-item {
    padding: 14px 16px !important;
    line-height: 1.3 !important;
    font-size: 16px !important;
    cursor: pointer;
  }

  .pac-item-query {
    font-size: 16px !important;
    font-weight: normal;
  }

  .pac-icon {
    margin-top: 2px !important;
  }
}
