/* Contrast corrections for the reusable Stosastudio header, forms and footer. */
header [class~="text-[#8C8578]"] {
  color: #6c655a;
}

header [class~="text-[#8C8578]"] a:is(:hover, :focus-visible) {
  color: #85432f;
  text-decoration: underline;
}

main .section-padding:not([class~="bg-[#1A1A1A]"], [class~="bg-[#2C2C2C]"], [class~="bg-[#3A3A3A]"], [class~="bg-[#B5634A]"])
  p[class~="text-[#B8963E]"][class~="uppercase"] {
  color: #806421;
}

#sale-page .showroom-copy .kicker {
  color: #825034;
}

#stosaForm #stosaFileBtn #stosaFileLabel {
  color: #292721 !important;
}

#stosaForm #stosaFileBtn #stosaFileLabel + div,
#stosaForm > label > input[name="consent"] + span {
  color: #6b6358 !important;
}

#stosaForm > label > input[name="consent"] + span a {
  color: #944a35 !important;
}

section:is([class~="bg-[#1A1A1A]"], [class~="bg-[#2C2C2C]"])
  #stosaForm > label > input[name="consent"] + span {
  color: #d8cdbb !important;
}

section:is([class~="bg-[#1A1A1A]"], [class~="bg-[#2C2C2C]"])
  #stosaForm > label > input[name="consent"] + span a {
  color: #ffb59d !important;
}

#stosaForm > #stosaSubmitBtn:not(#sale-page *) {
  background-color: #a3533d !important;
}

#stosaForm > #stosaSubmitBtn:not(#sale-page *):is(:hover, :focus-visible):not(:disabled) {
  background-color: #8c412e !important;
}

#stosaForm #stosaFileBtn:focus-visible {
  outline: 3px solid #825034;
  outline-offset: 3px;
}

section:is([class~="bg-[#1A1A1A]"], [class~="bg-[#2C2C2C]"]) #stosaForm #stosaFileBtn:focus-visible {
  outline-color: #ffb59d;
}

footer[class~="bg-[#2C2C2C]"] [class~="text-[#706B62]"] {
  color: #c9c1b2;
}

footer[class~="bg-[#2C2C2C]"] p a[class~="text-[#B8963E]"],
footer[class~="bg-[#2C2C2C]"] a[class~="text-[#706B62]"]:is(:hover, :focus-visible) {
  color: #e2bc66;
}

footer p a:is([href*="/politika-obrabotki-personalnyh-dannyh"], [href*="/politika-konfidencialnosti"], [href*="consultant.ru/document/cons_doc_LAW_61801"]),
#stosaForm > label > input[name="consent"] + span a {
  text-decoration: underline;
  text-underline-offset: .15em;
}

#cookie-banner button:is([onclick^="acceptCookies("], [onclick*="'accepted'"]) {
  color: #292114 !important;
}

@media (max-width: 767px) {
  footer[class~="bg-[#2C2C2C]"] [class~="border-t"] > .flex.items-center.gap-6 {
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem 1rem;
    max-width: 100%;
  }
}

@media (max-width: 389px) {
  header.sticky > .flex.items-center.justify-between > a.shrink-0 {
    flex-shrink: 1;
    min-width: 0;
  }

  header.sticky > .flex.items-center.justify-between > a.shrink-0 img {
    max-width: 100%;
    height: auto;
    max-height: 2rem;
  }

  header.sticky > .flex.items-center.justify-between > .flex.items-center.gap-3 {
    flex-shrink: 0;
  }

  #cookie-banner > div > p {
    flex-basis: 100% !important;
    min-width: 0 !important;
  }

  #cookie-banner > div > div {
    flex-wrap: wrap;
  }
}
