:root {
  color-scheme: light;
  background: #fffdfa;
}

html[data-lang="en"] [data-lang-view="ru"],
html[data-lang="ru"] [data-lang-view="en"],
[hidden] {
  display: none !important;
}

html,
body {
  min-width: 320px;
}

body {
  overflow-x: clip;
}

a {
  color: #c34c1c;
}

[style*="color:#8a8477"] {
  color: #746e64 !important;
}

[style*="color:#b5aea2"],
[style*="color:#c9bda9"] {
  color: #746e64 !important;
}

[style*="color:#6b6256"] {
  color: #837a6e !important;
}

[style*="color:#c8501f"] {
  color: #c34c1c !important;
}

[style*="color:#c98739"]:not([aria-hidden="true"]) {
  color: #8a6a30 !important;
}

[style*="color:#d9572f"] {
  color: #b44220 !important;
}

[style*="color:#8a7a55"] {
  color: #746543 !important;
}

a[target="_blank"][style*="color:#c8501f"] {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.page-bio [style*="color:#eee2d3"] {
  color: #958e82 !important;
}

.page-bio main p a[href="/genealogy"] {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c34c1c !important;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #110c05;
  color: #fffdfa;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  color: #fffdfa;
  transform: translateY(0);
}

[data-r="nav"] a,
[data-r="lang"],
[data-r="burger"] {
  position: relative;
}

[data-r="nav"] a::before,
[data-r="lang"]::before,
[data-r="burger"]::before {
  content: "";
  position: absolute;
  inset: -6px;
}

[data-r="nav"] a[aria-current="page"],
[data-mobile-menu] a[aria-current="page"] {
  color: #c34c1c !important;
  font-weight: 400;
}

[data-menu-toggle]:hover {
  border-color: #ff8562 !important;
  color: #c34c1c !important;
}

[data-r="lang"]:hover {
  border-color: #ff8562 !important;
  color: #c34c1c !important;
}

[data-venture-card] > div[style*="font-size:16.5px"] {
  transition: color 120ms ease;
}

[data-venture-card] {
  transition: border-color 120ms ease;
}

[data-venture-card]:hover > div[style*="font-size:16.5px"] {
  color: #c34c1c !important;
}

[data-venture-card]:hover {
  border-color: #c34c1c !important;
}

a[href="https://topswitches.ru/"][data-venture-card] {
  margin: -11px;
  padding: 11px;
}

@media (max-width: 760px) {
  .page-home a[href="https://topswitches.ru/"][data-venture-card] + div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-status {
  color: #3a3630;
  font-size: 14px;
  margin: 0;
}

.page-contacts form label::after {
  content: " *";
  color: #c34c1c;
  font-weight: 400;
}

.page-contacts form input,
.page-contacts form select,
.page-contacts form textarea {
  border-color: #9a9081 !important;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.page-contacts form input:hover,
.page-contacts form select:hover,
.page-contacts form textarea:hover {
  border-color: #837a6e !important;
}

.page-contacts form input:user-invalid,
.page-contacts form select:user-invalid,
.page-contacts form textarea:user-invalid {
  border-color: #b44220 !important;
}

[role="contentinfo"] [style*="font-size:11px"] {
  font-size: 12px !important;
  font-weight: 400;
}

.page-privacy [data-lang-view] > [data-screen-label],
.page-terms [data-lang-view] > [data-screen-label],
.page-404 [data-lang-view] > [data-screen-label] {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.page-privacy .legal-copy,
.page-terms .legal-copy,
.page-404 .legal-copy {
  width: 100%;
  box-sizing: border-box;
  flex: 1 0 auto;
}

.legal-copy {
  max-width: 760px;
  margin: 0 auto;
  padding: 84px 32px 110px;
}

.legal-copy h1 {
  font-weight: 300;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0 0 26px;
}

.legal-copy .legal-placeholder {
  border-top: 1px solid #e9e4dc;
  color: #746e64;
  font-size: 16px;
  line-height: 1.65;
  margin: 44px 0 0;
  padding-top: 22px;
}

@media (min-width: 761px) {
  [data-mobile-menu] {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .page-business h1 {
    font-size: clamp(34px, 10.7vw, 46px) !important;
  }

  .page-contacts form input,
  .page-contacts form select,
  .page-contacts form textarea {
    font-size: 16px !important;
  }

  html[data-lang="ru"] .page-home [data-exit-row] {
    gap: 12px !important;
  }

  html[data-lang="ru"] .page-home [data-exit-row] img {
    height: 20px !important;
  }

  html[data-lang="ru"] .page-home [data-exit-row] > div:last-child {
    min-width: 0;
  }

  html[data-lang="ru"] .page-privacy .legal-copy h1 {
    font-size: clamp(25px, 8.1vw, 44px);
  }

  .legal-copy {
    padding-top: 52px;
  }

  .legal-copy h1 {
    font-size: clamp(44px, 5.6vw, 72px);
    text-wrap: balance;
  }

  html[lang="ru"] .legal-copy h1 {
    font-size: clamp(32px, 9.5vw, 72px);
  }
}

@media (hover: hover) {
  a[style*="background:#ff8562"],
  button[style*="background:#ff8562"] {
    transition: background-color 120ms ease, transform 120ms ease;
  }

  a[style*="background:#ff8562"]:hover,
  button[style*="background:#ff8562"]:hover {
    background: #f47856 !important;
    color: #110c05 !important;
    transform: translateY(-1px);
  }

  a[style*="background:#ff8562"]:active,
  button[style*="background:#ff8562"]:active {
    transform: translateY(0);
  }

  a[style*="background:none"][style*="border:1px solid #d9d2c6"]:hover {
    border-color: #8a8477 !important;
    color: #111111 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
