:root {
  --blue: #143e6b;
  --dark: #0c2b4c;
  --cyan: #16a0d5;
  --yellow: #f4c719;
  --text: #17344f;
  --muted: #66798b;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
}
.container {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
header {
  height: 78px;
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  width: 180px;
}
.phone {
  color: var(--blue);
  font-weight: 700;
}
.hero {
  height: 440px;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hero > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 37, 64, 0.95),
    rgba(11, 53, 88, 0.8) 48%,
    rgba(11, 53, 88, 0.08)
  );
}
.hero-content {
  position: relative;
  color: #fff;
  padding-top: 66px;
}
.hero-content > span,
.title > span,
.message-inner > div > span {
  color: var(--yellow);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.02;
  margin: 12px 0 15px;
  letter-spacing: -0.04em;
}
.hero p {
  line-height: 1.6;
  color: #e0ebf2;
  max-width: 520px;
  margin: 0 0 25px;
}
.actions {
  display: flex;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 21px;
  border-radius: 4px;
  border: 0;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.yellow {
  background: var(--yellow);
  color: var(--dark);
}
.outline {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}
.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -34px;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 35px rgba(18, 52, 79, 0.12);
}
.contact {
  background: #fff;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid #e5ebef;
}
.contact:last-child {
  border: 0;
}
.contact b {
  background: #e5f6fb;
  color: var(--cyan);
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.contact div {
  min-width: 0;
}
.contact small {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.contact strong {
  display: block;
  color: var(--blue);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}
.info {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 35px;
  padding: 70px 0;
}
.title span {
  color: var(--cyan);
}
.title h2,
.message h2 {
  font-size: 2rem;
  margin: 6px 0 22px;
  color: var(--blue);
}
.place {
  display: flex;
  gap: 15px;
  padding: 18px;
  border: 1px solid #e0e8ed;
  cursor: pointer;
  margin-bottom: 10px;
}
.place:hover,
.place.active {
  border-color: var(--cyan);
  background: #f3fbfd;
}
.pin {
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.place small {
  font-size: 0.62rem;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.place h3 {
  font-size: 1rem;
  margin: 4px 0;
}
.place p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 2px 0;
}
.place .time {
  color: var(--blue);
  font-weight: 600;
  margin-top: 8px;
}
.route {
  display: inline-block;
  margin-top: 13px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
}
.self-service {
  background: var(--blue);
  color: #fff;
  padding: 18px 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.self-service strong {
  color: var(--yellow);
}
.self-service span {
  font-size: 0.86rem;
}
.map {
  min-height: 385px;
  border-radius: 5px;
  overflow: hidden;
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.8);
}
.message {
  background: var(--blue);
  color: #fff;
  padding: 50px 0;
}
.message-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 55px;
  align-items: center;
}
.message h2 {
  color: #fff;
  margin-bottom: 7px;
}
.message p {
  color: #c9dae7;
  margin: 0;
}
.message form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.message input,
.message textarea {
  border: 0;
  border-radius: 3px;
  padding: 13px;
  font: inherit;
  outline: none;
}
.message textarea,
.message button {
  grid-column: 1/-1;
}
.message button {
  justify-self: start;
}
footer {
  padding: 32px 0;
}
footer .container {
  display: flex;
  align-items: center;
  gap: 25px;
}
footer img {
  width: 145px;
}
footer p {
  font-size: 0.75rem;
  color: var(--muted);
  flex: 1;
}
footer a {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.8rem;
}
.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
@media (max-width: 820px) {
  .hero {
    height: 420px;
  }
  .contacts {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .contact {
    border-right: 0;
    border-bottom: 1px solid #e5ebef;
  }
  .info,
  .message-inner {
    grid-template-columns: 1fr;
  }
  .map {
    height: 350px;
  }
  .message-inner {
    gap: 25px;
  }
}
@media (max-width: 520px) {
  header {
    height: 68px;
  }
  .logo {
    width: 150px;
  }
  .phone span {
    display: none;
  }
  .hero {
    height: 410px;
  }
  .hero-content {
    padding-top: 55px;
  }
  .hero h1 {
    font-size: 2.65rem;
  }
  .overlay {
    background: rgba(8, 43, 73, 0.84);
  }
  .contacts {
    width: 100%;
  }
  .info {
    padding: 50px 0;
  }
  .message {
    padding: 42px 0;
  }
  .message form {
    grid-template-columns: 1fr;
  }
  .message input {
    grid-column: 1/-1;
  }
  footer .container {
    flex-wrap: wrap;
    gap: 12px;
  }
  footer p {
    flex-basis: 100%;
    order: 3;
    margin: 0;
  }
  .social-links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 16px;
  }
}
