:root {
  --by-red: #d62828;
  --by-red-dark: #b71c1c;
  --by-red-deep: #8f141b;
  --by-ink: #2b0b0d;
  --by-copy: #654b4d;
  --by-soft: #fff4f4;
  --by-line: rgba(214, 40, 40, 0.14);
  --by-white: #ffffff;
  --by-shadow: 0 24px 80px rgba(85, 12, 18, 0.12);
}

html { scroll-behavior: smooth; }

body.by-homepage {
  margin: 0;
  overflow-x: hidden;
  background: var(--by-white);
  color: var(--by-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.by-inner-page {
  margin: 0;
  overflow-x: hidden;
}

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

.by-inner-page *,
.by-inner-page *::before,
.by-inner-page *::after { box-sizing: border-box; }

.by-homepage a { color: inherit; text-decoration: none; }
.by-homepage img { display: block; max-width: 100%; }
.by-homepage button { font: inherit; }

.by-inner-page .by-header a,
.by-inner-page .by-footer a { text-decoration: none; }

body.by-menu-open { overflow: hidden; }

.by-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.by-skip {
  position: fixed;
  z-index: 9999;
  top: -80px;
  left: 18px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--by-ink);
  color: var(--by-white) !important;
  font-weight: 800;
  transition: top 0.2s;
}

.by-skip:focus { top: 18px; }

.by-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--by-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(85, 12, 18, 0.03);
  backdrop-filter: blur(18px);
}

.admin-bar .by-header { top: 32px; }

.by-header__inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 28px;
}

.by-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 11px;
  color: var(--by-ink) !important;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.by-brand strong { color: var(--by-red); font-weight: 900; }

.by-brand__mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  background: var(--by-red);
  box-shadow: 0 10px 24px rgba(214, 40, 40, 0.24);
}

.by-brand__mark svg { width: 25px; height: 25px; fill: #fff; }

.by-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 27px;
}

.by-nav a {
  color: rgba(43, 11, 13, 0.72) !important;
  font-size: 14px;
  font-weight: 750;
  transition: color 0.2s;
}

.by-nav a:hover,
.by-nav a:focus-visible { color: var(--by-red) !important; }

.by-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 23px;
  border: 2px solid var(--by-red);
  border-radius: 14px;
  background: var(--by-red);
  box-shadow: 0 13px 28px rgba(214, 40, 40, 0.22);
  color: var(--by-white) !important;
  font-size: 14px;
  font-weight: 850;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.by-button:hover,
.by-button:focus-visible {
  border-color: var(--by-red-dark);
  background: var(--by-red-dark);
  box-shadow: 0 17px 35px rgba(183, 28, 28, 0.27);
  color: var(--by-white) !important;
  transform: translateY(-2px);
}

.by-button--small { min-height: 43px; padding-inline: 18px; border-radius: 12px; }

.by-button--ghost {
  border-color: rgba(214, 40, 40, 0.25);
  background: var(--by-white);
  box-shadow: none;
  color: var(--by-red-dark) !important;
}

.by-button--ghost:hover,
.by-button--ghost:focus-visible { color: var(--by-white) !important; }

.by-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--by-line);
  border-radius: 12px;
  background: var(--by-white);
}

.by-menu-button span:not(.screen-reader-text) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--by-red);
}

.by-mobile-menu {
  padding: 12px 20px 24px;
  border-top: 1px solid var(--by-line);
  background: var(--by-white);
}

.by-mobile-menu a:not(.by-button) {
  display: block;
  padding: 14px 5px;
  border-bottom: 1px solid var(--by-line);
  color: var(--by-ink) !important;
  font-weight: 800;
}

.by-mobile-menu .by-button { width: 100%; margin-top: 18px; }

.by-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 690px;
  background: linear-gradient(140deg, #fff 0%, #fff7f7 58%, #ffe8e8 100%);
}

.by-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(214,40,40,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(214,40,40,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 88%);
}

.by-hero__glow {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  background: rgba(214, 40, 40, 0.16);
  filter: blur(65px);
}

.by-hero__glow--one { top: 45px; right: -110px; width: 430px; height: 430px; }
.by-hero__glow--two { bottom: -130px; left: -120px; width: 360px; height: 360px; }

.by-hero__grid {
  display: grid;
  min-height: 690px;
  padding-block: 72px;
  align-items: center;
  gap: 58px;
  grid-template-columns: 1.05fr 0.95fr;
}

.by-kicker {
  display: flex;
  margin: 0 0 20px;
  align-items: center;
  gap: 10px;
  color: var(--by-red-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.by-kicker span {
  width: 29px;
  height: 3px;
  border-radius: 9px;
  background: var(--by-red);
}

.by-hero h1 {
  max-width: 660px;
  margin: 0;
  color: var(--by-ink);
  font-size: clamp(52px, 6.2vw, 82px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.by-hero h1 em { color: var(--by-red); font-style: normal; }

.by-lead {
  max-width: 650px;
  margin: 27px 0 0;
  color: var(--by-copy);
  font-size: 17px;
  line-height: 1.9;
}

.by-actions { display: flex; margin-top: 30px; flex-wrap: wrap; gap: 12px; }

.by-trust-row {
  display: flex;
  margin-top: 27px;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: rgba(43, 11, 13, 0.7);
  font-size: 12px;
  font-weight: 750;
}

.by-trust-row span::first-letter { color: var(--by-red); }

.by-hero__visual {
  position: relative;
  overflow: hidden;
  min-height: 535px;
  border: 7px solid var(--by-white);
  border-radius: 38px;
  background: #f1dfe0;
  box-shadow: var(--by-shadow);
}

.by-hero__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(113, 12, 20, 0.5), transparent 55%);
  content: "";
}

.by-hero__visual > img { width: 100%; height: 535px; object-fit: cover; }

.by-status-card {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 20px;
  background: rgba(143, 20, 27, 0.88);
  color: var(--by-white);
  backdrop-filter: blur(15px);
}

.by-status-card p { margin: 0 0 6px; color: rgba(255,255,255,.7); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.by-status-card strong { display: block; font-size: 18px; line-height: 1.35; }
.by-status-card a { display: inline-flex; margin-top: 14px; gap: 7px; color: var(--by-white) !important; font-size: 13px; font-weight: 850; }

.by-section { padding-block: 96px; scroll-margin-top: 90px; }
.by-section--white { background: var(--by-white); }
.by-section--soft { background: var(--by-soft); }

.by-split {
  display: grid;
  align-items: start;
  gap: 75px;
  grid-template-columns: 0.9fr 1.1fr;
}

.by-homepage h2 {
  margin: 0;
  color: var(--by-ink);
  font-size: clamp(36px, 4.3vw, 57px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.by-copy {
  margin: 5px 0 0;
  color: var(--by-copy);
  font-size: 16px;
  line-height: 1.95;
}

.by-text-link {
  display: inline-flex;
  margin-top: 22px;
  gap: 9px;
  color: var(--by-red-dark) !important;
  font-size: 14px;
  font-weight: 900;
}

.by-heading-row {
  display: grid;
  align-items: end;
  gap: 70px;
  grid-template-columns: 1fr .75fr;
}

.by-heading-row > p {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--by-line);
  border-radius: 16px;
  background: rgba(255,255,255,.74);
  color: var(--by-copy);
  font-size: 12px;
  line-height: 1.75;
}

.by-service-grid {
  display: grid;
  margin-top: 45px;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.by-service {
  display: flex;
  min-height: 360px;
  padding: 26px;
  flex-direction: column;
  border: 1px solid var(--by-line);
  border-radius: 25px;
  background: var(--by-white);
  box-shadow: 0 18px 50px rgba(85, 12, 18, 0.045);
  transition: transform .22s, border-color .22s, box-shadow .22s;
}

.by-service:hover,
.by-service:focus-visible {
  border-color: rgba(214,40,40,.42);
  box-shadow: 0 24px 65px rgba(85,12,18,.1);
  transform: translateY(-5px);
}

.by-service--active {
  border-color: rgba(214,40,40,.28);
  box-shadow: 0 20px 58px rgba(85,12,18,.08);
}

.by-service--active .by-service__tag::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--by-red);
  box-shadow: 0 0 0 4px rgba(214,40,40,.1);
  content: "";
}

.by-service__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  background: var(--by-red);
  color: var(--by-white);
  font-size: 22px;
  font-weight: 900;
}

.by-service__tag {
  margin-top: 27px;
  color: var(--by-red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.by-service h3 { margin: 10px 0 0; color: var(--by-ink); font-size: 23px; font-weight: 900; letter-spacing: -.04em; }
.by-service p { margin: 14px 0 0; color: var(--by-copy); font-size: 13px; line-height: 1.75; }
.by-service strong { margin-top: auto; padding-top: 24px; color: var(--by-red-dark); font-size: 13px; }

.by-center-heading { max-width: 770px; margin-inline: auto; text-align: center; }
.by-center-heading .by-kicker { justify-content: center; }
.by-center-heading > p:last-child { max-width: 620px; margin: 22px auto 0; color: var(--by-copy); font-size: 15px; line-height: 1.85; }

.by-principles {
  display: grid;
  margin-top: 54px;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.by-principles article { padding: 30px; border: 1px solid var(--by-line); border-radius: 25px; background: #fff; }
.by-principles article > span { color: rgba(214, 40, 40, .18); font-size: 46px; font-weight: 950; letter-spacing: -.06em; }
.by-principles h3 { margin: 18px 0 0; color: var(--by-ink); font-size: 23px; font-weight: 900; }
.by-principles p { margin: 13px 0 0; color: var(--by-copy); font-size: 14px; line-height: 1.8; }

.by-business {
  padding-block: 100px;
  scroll-margin-top: 90px;
  background: linear-gradient(135deg, var(--by-red-deep), var(--by-red) 70%, #ee3e3e);
  color: var(--by-white);
}

.by-business__grid { display: grid; align-items: center; gap: 90px; grid-template-columns: 1.07fr .93fr; }
.by-kicker--light { color: rgba(255,255,255,.82); }
.by-kicker--light span { background: var(--by-white); }
.by-business h2 { color: var(--by-white); }
.by-business p:not(.by-kicker) { max-width: 650px; margin: 24px 0 0; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.9; }

.by-button--white { border-color: var(--by-white); background: var(--by-white); box-shadow: none; color: var(--by-red-dark) !important; }
.by-button--white:hover,
.by-button--white:focus-visible { border-color: var(--by-ink); background: var(--by-ink); color: var(--by-white) !important; }
.by-button--outline-white { border-color: rgba(255,255,255,.45); background: transparent; box-shadow: none; }
.by-button--outline-white:hover,
.by-button--outline-white:focus-visible { border-color: var(--by-white); background: rgba(255,255,255,.12); }

.by-check-list { display: grid; margin: 0; padding: 0; gap: 12px; list-style: none; }
.by-check-list li { display: flex; min-height: 68px; padding: 17px 19px; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,.17); border-radius: 17px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); font-size: 14px; font-weight: 800; }
.by-check-list span { display: grid; width: 33px; height: 33px; flex: 0 0 33px; place-items: center; border-radius: 10px; background: var(--by-white); color: var(--by-red); }

.by-register {
  display: flex;
  padding: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  border: 1px solid var(--by-line);
  border-radius: 30px;
  background: var(--by-soft);
}

.by-register h2 { font-size: clamp(31px, 4vw, 46px); }
.by-register p:last-child { max-width: 680px; margin: 15px 0 0; color: var(--by-copy); font-size: 14px; line-height: 1.8; }
.by-register > .by-button { flex-shrink: 0; }

.by-footer { padding-top: 70px; background: var(--by-red-dark); color: var(--by-white); }
.by-footer__grid { display: grid; gap: 48px; grid-template-columns: 1.5fr repeat(3, .7fr); }
.by-brand--footer { color: var(--by-white) !important; }
.by-brand--footer strong { color: var(--by-white); }
.by-brand--footer .by-brand__mark { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); box-shadow: none; }
.by-footer__grid > div:first-child > p { max-width: 320px; margin: 23px 0 0; color: rgba(255,255,255,.66); font-size: 13px; line-height: 1.8; }
.by-footer h3 { margin: 0 0 20px; color: var(--by-white); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.by-footer__grid > div:not(:first-child) a { display: block; margin-top: 13px; color: rgba(255,255,255,.7) !important; font-size: 13px; transition: color .2s; }
.by-footer__grid > div:not(:first-child) a:hover { color: var(--by-white) !important; }
.by-footer__bottom { display: flex; margin-top: 58px; padding-block: 23px; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.58); font-size: 11px; }
.by-footer__bottom p { margin: 0; }

@media (max-width: 1020px) {
  .by-nav { display: none; }
  .by-header__inner > .by-button { margin-left: auto; }
  .by-menu-button { display: block; }
  .by-hero__grid { gap: 38px; grid-template-columns: 1fr 0.85fr; }
  .by-service-grid { grid-template-columns: repeat(2, 1fr); }
  .by-footer__grid { grid-template-columns: 1.3fr repeat(3, .7fr); gap: 28px; }
}

@media (max-width: 782px) {
  .admin-bar .by-header { top: 46px; }
  .by-header__inner { min-height: 70px; }
  .by-header__inner > .by-button { display: none; }
  .by-menu-button { margin-left: auto; }
  .by-hero { min-height: 0; }
  .by-hero__grid { min-height: 0; padding-block: 58px; grid-template-columns: 1fr; }
  .by-hero h1 { font-size: clamp(48px, 13vw, 72px); }
  .by-hero__visual { min-height: 450px; }
  .by-hero__visual > img { height: 450px; }
  .by-section { padding-block: 72px; }
  .by-split,
  .by-heading-row,
  .by-business__grid { gap: 38px; grid-template-columns: 1fr; }
  .by-heading-row > p { max-width: 620px; }
  .by-principles { grid-template-columns: 1fr; }
  .by-business { padding-block: 76px; }
  .by-register { align-items: flex-start; flex-direction: column; }
  .by-footer__grid { grid-template-columns: 1fr 1fr; }
  .by-footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .by-container { width: min(100% - 28px, 1180px); }
  .by-brand { font-size: 18px; }
  .by-brand__mark { width: 39px; height: 39px; border-radius: 12px; }
  .by-hero__grid { padding-block: 47px; }
  .by-hero h1 { font-size: 48px; }
  .by-lead { font-size: 15px; line-height: 1.8; }
  .by-actions { flex-direction: column; }
  .by-actions .by-button { width: 100%; }
  .by-trust-row { align-items: flex-start; flex-direction: column; }
  .by-hero__visual { min-height: 390px; border-width: 5px; border-radius: 28px; }
  .by-hero__visual > img { height: 390px; }
  .by-status-card { right: 13px; bottom: 13px; left: 13px; padding: 17px; }
  .by-section { padding-block: 60px; }
  .by-service-grid { grid-template-columns: 1fr; }
  .by-service { min-height: 330px; }
  .by-register { padding: 27px; }
  .by-footer__grid { grid-template-columns: 1fr 1fr; }
  .by-footer__grid > div:last-child { grid-column: 1 / -1; }
  .by-footer__bottom { align-items: flex-start; flex-direction: column; }
}

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