: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: var(--brand-dark);
  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 72px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 500;
}

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

.button {
  width: 284px;
  max-width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  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='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2Z'/%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='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2Z'/%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: 46px;
    font-size: 16px;
    line-height: 1.55;
  }

  .button-group {
    width: 100%;
  }

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

  .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;
  }
}
