@font-face {
  font-family: "Better Together";
  src: url("fonts/Better Together Spaced.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bond Bold";
  src: url("fonts/bond-4f-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #2a2218;
  --btn-bg: rgba(220, 210, 202, 0.55);
  --btn-bg-hover: rgba(230, 222, 216, 0.68);
  --btn-text: #513f2f;
  --accent: #a8281f;
  --text: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  color: var(--text);
  font-family: system-ui, sans-serif;
  background-color: var(--bg);
}

/* Фон */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 42%, transparent 68%),
    url("images/bg.jpeg");
  background-image:
    linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 42%, transparent 68%),
    image-set(
      url("images/bg.webp") type("image/webp"),
      url("images/bg.jpeg") type("image/jpeg")
    );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

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

picture {
  display: contents;
}

main {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 3vh, 28px) 10% clamp(28px, 4.5vh, 40px);
}

/* Логотип */
.brand {
  margin-bottom: 30px;
  text-align: center;
}

.logo {
  width: min(86vw, 340px);
  height: auto;
  margin-inline: auto;
}

/* Кнопки */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.btn {
  width: min(100%, 400px);
  display: grid;
  grid-template-columns: 42px 12.5em minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 15px 0 13px clamp(3em, 18%, 3.5em);
  border: none;
  border-radius: 14px;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--btn-bg-hover);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid rgba(168, 40, 31, 0.45);
  outline-offset: 2px;
}

.btn__icon {
  grid-column: 1;
  position: relative;
  width: 42px;
  height: 42px;
  justify-self: center;
}

.btn__icon-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.btn__icon-img--hover {
  opacity: 0;
}

.btn:hover .btn__icon-img:not(.btn__icon-img--hover),
.btn:focus-visible .btn__icon-img:not(.btn__icon-img--hover) {
  opacity: 0;
}

.btn:hover .btn__icon-img--hover,
.btn:focus-visible .btn__icon-img--hover {
  opacity: 1;
}

.btn__label {
  grid-column: 2;
  justify-self: start;
  font-family: "Bond Bold", sans-serif;
  font-size: clamp(16px, 4.8vw, 24px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--btn-text);
  transition: color 0.2s ease;
}

.btn:hover .btn__label,
.btn:focus-visible .btn__label {
  color: var(--accent);
}

/* Подвал */
.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 4px;
}

.footer__link {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 20px;
  width: min(100%, 400px);
  margin-inline: auto;
  color: var(--text);
  font-size: clamp(22px, 6vw, 32px);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  opacity: 0.9;
}

.footer__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 4px;
}

.footer__kolos {
  grid-column: 1;
  justify-self: end;
  height: calc(2 * 1.15em + 1.45em);
  width: auto;
  max-width: none;
  margin-left: -22px;
  object-fit: contain;
}

.footer__addr {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-family: "Better Together", cursive;
  font-size: 1.6em;
  font-weight: 400;
  line-height: 0.68;
  text-align: center;
  text-transform: uppercase;
  color: var(--text);
}

.footer__addr-line {
  white-space: nowrap;
  line-height: 0.68;
}

.footer__addr-line--accent {
  color: var(--accent);
}

.footer__note {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: center;
}

@media (min-width: 480px) {
  .btn {
    padding: 17px 0 15px 4.5em;
    grid-template-columns: 50px 14em minmax(0, 1fr);
    column-gap: 14px;
  }

  .btn__icon {
    width: 50px;
    height: 50px;
  }
}
