/* Contact: the page closes on the same deep navy as the hero. Left, how to reach Mariusz; right,
   a white card with three fields. The content width comes from the shared section gutter. */
.mm-contact {
  background: radial-gradient(circle at 85% 20%, rgb(24 55 91 / 55%), transparent 50%), #071a30;
  color: #eef2f7;
  margin-block: 0 !important;
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.mm-contact__inner {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding-inline: var(--mm-section-gutter);
}

.mm-contact__signal {
  background: #f4c542;
  border-radius: 999px;
  display: block;
  height: 4px;
  margin-bottom: 1.2rem;
  width: 56px;
}

.mm-contact__title {
  color: #fff;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}

.mm-contact__title-accent {
  color: #f4c542;
}

.mm-contact__lead {
  color: #c9d3df;
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 1rem 0 0;
}

/* The call is the one main action: a yellow button as wide as a thumb needs, the number in
   display size. Everything under it answers the two questions people have before they dial:
   "will he pick up now?" and "what happens next?". */
.mm-contact__call {
  align-items: center;
  background: #f4c542;
  border-radius: 10px;
  box-shadow: 0 18px 40px -22px rgb(244 197 66 / 60%);
  color: #101827;
  display: inline-flex;
  gap: 1rem;
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  min-height: 84px;
  padding: 0.9rem 1.6rem 0.9rem 1.1rem;
  text-decoration: none;
  transition: background-color 160ms ease-out, transform 140ms ease-out;
  width: min(100%, 460px);
}

.mm-contact__call:hover {
  background: #f7ce5c;
}

.mm-contact__call:active {
  transform: scale(0.985);
}

.mm-contact__call:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.mm-contact__call svg {
  background: #101827;
  border-radius: 999px;
  box-sizing: content-box;
  fill: none;
  flex: none;
  height: 24px;
  padding: 0.75rem;
  stroke: #f4c542;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 24px;
}

.mm-contact__call-copy {
  display: grid;
  line-height: 1;
}

.mm-contact__call-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.mm-contact__call-number {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* A text message for people who cannot talk right now; only where a phone can send one. */
.mm-contact__sms {
  color: #c9d3df;
  display: none;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0.9rem 0 0;
  text-decoration: none;
}

.mm-contact__sms strong {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (hover: none) and (pointer: coarse) {
  .mm-contact__sms {
    display: block;
  }
}

/* When he picks up: the hours for quotes and the round-the-clock line for emergencies, with the
   same pulsing dot as in the hero. The script marks the line that applies right now. */
.mm-contact__hours {
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(220 227 234 / 18%);
  border-radius: 10px;
  display: grid;
  list-style: none;
  margin: clamp(1.6rem, 3vw, 2.2rem) 0 0;
  padding: 0;
  width: min(100%, 460px);
}

.mm-contact__hour {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  transition: opacity 200ms ease-out;
}

.mm-contact__hour + .mm-contact__hour {
  border-top: 1px solid rgb(220 227 234 / 14%);
}

.mm-contact__hour-icon {
  fill: none;
  flex: none;
  height: 22px;
  stroke: #9fb0c8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 22px;
}

.mm-contact__hour-dot {
  background: #ef3f35;
  border-radius: 50%;
  box-shadow: 0 0 12px rgb(239 63 53 / 75%);
  flex: none;
  height: 10px;
  margin-inline: 6px;
  position: relative;
  width: 10px;
}

.mm-contact__hour-dot::before {
  animation: mm-contact-dot 2.4s ease-out infinite;
  border: 1px solid rgb(239 63 53 / 70%);
  border-radius: inherit;
  content: "";
  inset: -5px;
  position: absolute;
}

.mm-contact__hour-copy {
  display: grid;
  flex: 1;
  gap: 0.15rem;
  line-height: 1.2;
}

.mm-contact__hour-copy strong {
  color: #fff;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.mm-contact__hour-copy span {
  color: #b9c6d8;
  font-size: 0.92rem;
}

.mm-contact__now {
  background: #f4c542;
  border-radius: 999px;
  color: #101827;
  display: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.32rem 0.6rem;
  text-transform: uppercase;
}

[data-mm-hours-state="day"] [data-mm-hour="day"] .mm-contact__now,
[data-mm-hours-state="night"] [data-mm-hour="night"] .mm-contact__now {
  display: inline-block;
}

[data-mm-hours-state="night"] [data-mm-hour="day"] {
  opacity: 0.66;
}

@keyframes mm-contact-dot {
  0%, 30% {
    opacity: 0.85;
    transform: scale(0.65);
  }

  70%, 100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

/* What happens after the call, in three lines; every line is a confirmed fact. */
.mm-contact__kicker {
  color: #f4c542;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  margin: clamp(1.6rem, 3vw, 2.2rem) 0 0.7rem;
  text-transform: uppercase;
}

.mm-contact__steps {
  counter-reset: mm-step;
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100%, 460px);
}

.mm-contact__steps li {
  counter-increment: mm-step;
  display: grid;
  gap: 0.1rem 0.8rem;
  grid-template-columns: 26px minmax(0, 1fr);
  line-height: 1.35;
}

.mm-contact__steps li::before {
  background: rgb(255 255 255 / 10%);
  border-radius: 999px;
  color: #f4c542;
  content: counter(mm-step);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  grid-row: span 2;
  height: 26px;
  line-height: 26px;
  text-align: center;
  width: 26px;
}

.mm-contact__steps strong {
  color: #fff;
  font-size: 1.02rem;
}

.mm-contact__steps span {
  color: #b9c6d8;
  font-size: 0.92rem;
}

.mm-contact__area {
  align-items: center;
  color: #b9c6d8;
  display: flex;
  font-size: 0.92rem;
  gap: 0.5rem;
  line-height: 1.4;
  margin: clamp(1.4rem, 2.5vw, 1.8rem) 0 0;
}

.mm-contact__area svg {
  fill: none;
  flex: none;
  height: 18px;
  stroke: #9fb0c8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

/* The form card */
.mm-contact__form {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px -30px rgb(0 0 0 / 55%);
  color: #101827;
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
}

.mm-contact__form-title {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.mm-contact__form-sub {
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.5;
  margin: -0.5rem 0 0.1rem;
}

.mm-field {
  display: grid;
  gap: 0.4rem;
}

.mm-field__label {
  font-size: 0.95rem;
  font-weight: 600;
}

.mm-field__optional {
  color: #667180;
  font-weight: 400;
}

.mm-field__input {
  background: #fff;
  border: 1px solid #c3ccd8;
  border-radius: 8px;
  color: #101827;
  font: inherit;
  font-size: 1.05rem;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

/* The number is the one field that matters, so it is the biggest. */
.mm-field__input--phone {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-height: 58px;
}

.mm-field__input--area {
  line-height: 1.5;
  min-height: 96px;
  resize: vertical;
}

.mm-field__input::placeholder {
  color: #8a94a3;
}

.mm-field__input:focus {
  border-color: #315bff;
  box-shadow: 0 0 0 3px rgb(49 91 255 / 18%);
  outline: none;
}

.mm-field__input[aria-invalid="true"] {
  border-color: #d33a2c;
  box-shadow: 0 0 0 3px rgb(211 58 44 / 14%);
}

/* Hidden from people, visible to bots that fill every field. */
.mm-contact__trap {
  height: 1px;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.mm-contact__submit {
  align-items: center;
  background: #315bff;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  justify-content: center;
  min-height: 58px;
  padding: 0.8rem 1.4rem;
  transition: background-color 140ms ease-out;
  width: 100%;
}

.mm-contact__submit:hover {
  background: #2448d8;
}

.mm-contact__submit:focus-visible {
  outline: 3px solid #315bff;
  outline-offset: 3px;
}

.mm-contact__submit[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.mm-contact__status {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.mm-contact__status:empty {
  display: none;
}

.mm-contact__status[data-state="error"] {
  color: #b42318;
}

.mm-contact__note {
  color: #4b5563;
  font-size: 0.92rem;
  margin: -0.3rem 0 0;
  text-align: center;
}

.mm-contact__privacy {
  border-top: 1px solid #e6ebf1;
  color: #4b5563;
  font-size: 0.85rem;
  line-height: 1.55;
  padding-top: 0.8rem;
}

.mm-contact__privacy summary {
  cursor: pointer;
  font-weight: 600;
}

.mm-contact__privacy p {
  margin: 0.6rem 0 0;
}

/* After sending, the card says thank you in place of the fields. */
.mm-contact__done {
  display: grid;
  gap: 0.6rem;
}

.mm-contact__done-title {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.mm-contact__done p {
  color: #1f2937;
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
}

.mm-contact__done a {
  color: #315bff;
  font-weight: 700;
}

@media (max-width: 1023px) {
  .mm-contact__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .mm-contact__call,
  .mm-contact__hours,
  .mm-contact__steps {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mm-contact__submit,
  .mm-contact__call,
  .mm-contact__hour {
    transition: none;
  }

  .mm-contact__hour-dot::before {
    animation: none;
  }
}

/* The contact page (/kontakt/): the same block as at the bottom of the front page, but the
   heading stands alone above both columns and the firm's basic facts replace the three steps. */
.mm-contact--page {
  min-height: calc(100vh - 12rem);
}

.mm-contact--page .mm-contact__inner {
  align-content: start;
}

.mm-contact__head {
  grid-column: 1 / -1;
  margin-bottom: clamp(0.5rem, 1.6vw, 1.25rem);
}

.mm-contact__firm {
  border-top: 1px solid rgb(238 242 247 / 18%);
  margin-top: 1.6rem;
  padding-top: 1.4rem;
}

.mm-contact__firm-name {
  color: #fff;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
}

.mm-contact__firm-address {
  color: #c3ceda;
  font-size: 0.97rem;
  line-height: 1.5;
  margin: 0.35rem 0 0;
}

.mm-contact__firm-address span {
  display: block;
}

.mm-contact__facts {
  color: #c3ceda;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  gap: 0.4rem 1.1rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.mm-contact__facts li {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.mm-contact__facts li::before {
  background: #f4c542;
  border-radius: 999px;
  content: "";
  height: 6px;
  width: 6px;
}

@media (max-width: 1023px) {
  .mm-contact--page {
    min-height: 0;
  }
}
