:root {
  --blue1: #8a3a16;
  --blue2: #e46a10;

  --bg: #f7efe9;
  --card: #ffffff;

  --text: #2b1409;
  --muted: #7a4a32;

  --border: rgba(43, 20, 9, .15);
  --shadow: 0 14px 30px rgba(0, 0, 0, .18);

  --radius: 18px;
}

html[data-theme="dark"],
body.dark {
  --bg: #0f0c0a;
  --card: #15110f;
  --text: rgba(255, 255, 255, .9);
  --muted: rgba(255, 255, 255, .62);
  --border: rgba(255, 255, 255, .14);
  --shadow: 0 14px 30px rgba(0, 0, 0, .45);
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


.wrap,
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}


.bf-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.bf-header__inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 20px;

  display: flex;
  align-items: center;
  gap: 16px;

  position: relative;
  min-width: 0;
}

.bf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.bf-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
}


.bf-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.bf-nav__link {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.bf-nav__link:hover {
  background: rgba(228, 106, 16, .10);
  color: var(--blue1);
}

.bf-nav__link[aria-current="page"] {
  background: rgba(228, 106, 16, .14);
  color: var(--blue1);
}


.bf-auth {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}


.bf-btn {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.bf-btn--primary {
  border: none;
  background: linear-gradient(110deg, var(--blue1), var(--blue2));
  color: #fff;
  box-shadow: 0 12px 26px rgba(228, 106, 16, .28);
}

.bf-btn--ghost:hover {
  border-color: rgba(228, 106, 16, .35);
  background: rgba(228, 106, 16, .08);
}

.bf-themeToggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .2s;
}

.bf-themeToggle:hover {
  background: rgba(228, 106, 16, .08);
  transform: scale(1.05);
}


.bf-burger {
  display: none;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 18px;
  cursor: pointer;
}

.bf-themeToggle--inMenu {
  display: none;
}


@media (max-width:1024px) {
  .bf-header__inner {
    padding: 10px 14px;
  }

  .bf-logo {
    width: 76px;
    height: 76px;
  }

  .bf-nav {
    gap: 8px;
  }

  .bf-nav__link {
    padding: 8px 10px;
  }
}

@media (max-width:768px) {
  .bf-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bf-nav {
    display: none;
  }

  .bf-nav.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;

    flex-direction: column;
    gap: 10px;
    z-index: 999;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  }
}

@media (max-width:480px) {
  .bf-header__inner {
    padding: 8px 12px;
    gap: 10px;
  }

  .bf-logo {
    width: 64px;
    height: 64px;
  }

  .bf-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    font-size: 16px;
  }

  .bf-auth {
    gap: 6px;
  }

  .bf-btn {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 12px;
  }

  .bf-nav {
    display: none;
  }

  .bf-nav.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;

    flex-direction: column;
    gap: 10px;
    z-index: 999;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  }

  .bf-auth .bf-themeToggle {
    display: none;
  }

  .bf-themeToggle--inMenu {
    display: grid;
    margin-top: 8px;
  }
}


footer {
  background: linear-gradient(180deg, #3a1f14, #1f0f08);
  color: rgba(255, 255, 255, .86);
  margin-top: 40px;
}

#foot-grid {
  padding: 64px 0 46px;
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr 1fr;
  gap: 44px;
}

#foot-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}

#foot-logo {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
}

#foot-logo img {
  width: 85%;
  object-fit: contain;
}

#foot-name {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
}

#tag {
  margin-top: 4px;
  color: rgba(255, 255, 255, .60);
  line-height: 1.75;
}

footer a {
  display: block;
  padding: 9px 0;
  color: rgba(255, 255, 255, .78);
  font-weight: 650;
}

footer a:hover {
  color: rgba(255, 255, 255, .90);
}

footer h4 {
  margin: 0;
  padding: 9px 0;
  font-weight: 900;
  letter-spacing: .12em;
  color: #f3d2b3;
}

.hrs {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  color: rgba(255, 255, 255, .62);
}

#bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, .45);
}

#links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.foot-acc {
  border: 0;
}

.foot-acc__sum {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-weight: 900;
  letter-spacing: .12em;
  color: #f3d2b3;
}

.foot-acc__sum::-webkit-details-marker {
  display: none;
}

.foot-acc__sum::after {
  content: "☰";
  margin-left: 12px;
}

.foot-acc[open] .foot-acc__sum::after {
  content: "✕";
}


@media (min-width:1024px) {
  .foot-acc {
    display: block;
  }

  .foot-acc__sum {
    pointer-events: none;
    cursor: default;
    justify-content: flex-start;
  }

  .foot-acc__sum::after {
    display: none;
  }
}

@media (max-width:1024px) {
  #foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: start;
  }

  #foot-name {
    font-size: 22px;
  }


  #foot-grid> :nth-child(1) {
    grid-column: 1 / -1;
  }

  #foot-grid> :nth-child(2) {
    grid-column: 1;
  }

  #foot-grid> :nth-child(3) {
    grid-column: 2;
  }

  #foot-grid> :nth-child(4) {
    grid-column: 1 / -1;
  }

  .foot-acc {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 8px;
    margin-top: 8px;
  }
}

@media (min-width:481px) and (max-width:768px) {
  #foot-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 44px 0 34px;
  }

  #foot-grid> :nth-child(1),
  #foot-grid> :nth-child(2),
  #foot-grid> :nth-child(3),
  #foot-grid> :nth-child(4) {
    grid-column: 1 / -1;
  }
}

@media (max-width:480px) {
  #foot-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 40px 0 30px;
  }

  #foot-grid> :nth-child(1),
  #foot-grid> :nth-child(2),
  #foot-grid> :nth-child(3),
  #foot-grid> :nth-child(4) {
    grid-column: 1 / -1;
  }

  #bottom {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  #links {
    gap: 14px;
  }
}