:root {
  --brand-dark: #004466;
  --brand-blue: #087ec2;
  --brand-light: #eaf2fb;
  --text-muted: #5e789e;
  --white: #ffffff;
}

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

html,
body {
  min-height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--brand-dark);
  background: #ffffff;
}

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

.consulting-block {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 15px;
  text-align: center;
}

.consulting-card {
  width: min(900px, 100%);
  max-width: 100%;
  padding: clamp(22px, 5vw, 48px) clamp(12px, 4vw, 36px);
}

.logo-link {
  display: inline-flex;
  margin-bottom: 34px;
}

.logo-link img {
  display: block;
  width: min(318px, 72vw);
  height: auto;
}

h1 {
  margin: 0 0 22px;
  color: #1b67b2;
  font-size: clamp(40px, 5.4vw, 62px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.consulting-content {
  width: 655px;
  max-width: 100%;
  margin: 0 auto 24px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 500;
}

.address-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--brand-dark);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.address-line .fas.fa-map-marker-alt {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: var(--brand-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 384 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M172.3 501.7C27 291 0 269.4 0 192 0 86 86 0 192 0s192 86 192 192c0 77.4-27 99-172.3 309.7-9.5 13.8-29.9 13.8-39.4 0zM192 272a80 80 0 1 0 0-160 80 80 0 0 0 0 160z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 384 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M172.3 501.7C27 291 0 269.4 0 192 0 86 86 0 192 0s192 86 192 192c0 77.4-27 99-172.3 309.7-9.5 13.8-29.9 13.8-39.4 0zM192 272a80 80 0 1 0 0-160 80 80 0 0 0 0 160z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.button-group {
  display: grid;
  justify-items: center;
}

.button {
    width: 300px;
    max-width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 5px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-outline {
  color: var(--brand-blue);
  background: transparent;
  border: 2px solid var(--brand-blue);
  box-shadow: 0 8px 23px rgba(8, 126, 194, 0.18);
}

.button-outline:hover {
  color: var(--white);
  background: var(--brand-blue);
}

.button-filled {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(96deg, var(--brand-dark) -10%, var(--brand-blue) 125%);
  box-shadow: 0 8px 23px rgba(0, 68, 102, 0.22);
}

.button-filled::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2h10c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H7c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2Zm0 2v4h10V4H7Zm2 7a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm4.5 1.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0ZM9 16a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm6 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2h10c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H7c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2Zm0 2v4h10V4H7Zm2 7a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm4.5 1.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0ZM9 16a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm6 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.button-filled:hover {
  background: linear-gradient(96deg, var(--brand-blue) -10%, var(--brand-dark) 125%);
}

.button-note {
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

@media (max-width: 560px) {
  .consulting-block {
    width: 100vw;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
  }

  .consulting-card {
    width: min(100%, 360px);
    max-width: calc(100vw - 32px);
    padding: 0;
  }

  .logo-link {
    margin-bottom: 30px;
  }

  .logo-link img {
    width: min(286px, 82vw);
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: clamp(34px, 9.4vw, 42px);
    line-height: 1.08;
  }

  .consulting-content {
    width: 100%;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.55;
  }

  .address-line {
    gap: 9px;
    max-width: 100%;
    margin-bottom: 42px;
    font-size: 14px;
  }

  .address-line .fas.fa-map-marker-alt {
    width: 17px;
    height: 17px;
  }

  .button-group {
    width: 100%;
  }

  .button {
    width: 100%;
    min-height: 68px;
    padding: 18px 18px;
    font-size: 17px;
  }

  .button-outline {
    border-width: 3px;
  }

  .button-filled {
    box-shadow: 0 14px 34px rgba(0, 68, 102, 0.28);
  }

  .button-filled::before {
    width: 23px;
    height: 23px;
    margin-right: 12px;
  }

  .button-note {
    margin: 24px 0;
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .consulting-block {
    padding-inline: 14px;
  }

  .button {
    min-height: 64px;
    font-size: 16px;
  }
}

@media (min-width: 760px) {
  h1 {
    white-space: nowrap;
  }
}
