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

:root {
  --bg: #ffffff;
  --header-bg: #000000;
  --text: #ffffff;
  --muted: #8b8b8b;
  --accent: #5F8F6B;
  --divider: #6f6f6f;
}

body {
  background: var(--bg);
  font-family: 'Inter', sans-serif;
}

/* HEADER */

.header {
  width: 100%;
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__container {
  width: 1200px;
  height: 80px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
  align-items: center;
}

/* LEFT */

.header__left {
  grid-column: 1 / 4;
  display: flex;
  align-items: center;
}

.header__logo-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
  position: relative;
}

.header__logo-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--accent);
}

.header__logo-circle-inner {
  position: absolute;
  inset: 6px;
  background: #ffffff;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo-circle img {
  width: 55%;
  height: 55%;
  object-fit: contain;
}

.header__brand {
  margin-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  color: #ffffff;
}

.header__brand:visited,
.header__brand:hover,
.header__brand:active,
.header__brand:focus {
  text-decoration: none;
  color: #ffffff;
}

.header__title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

.header__subtitle {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.header__brand:hover .header__title {
  color: #ffffff;
}

.header__brand:hover .header__subtitle {
  color: var(--muted);
}

/* CENTER */

.header__center {
  grid-column: 4 / 10;
  display: flex;
  justify-content: center;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__link {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.header__link:hover {
  color: #bdbdbd;
}

/* DIVIDER */

.header__divider {
  width: 1px;
  height: 22px;
  background: var(--divider);
}

/* LIBRARY */

.header__library {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__badge {
  width: 37px;
  height: 19px;
  padding: 2px 4px;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

/* RIGHT */

.header__right {
  grid-column: 10 / 13;
  display: flex;
  justify-content: flex-end;
}

.header__right-group {
  display: flex;
  align-items: center;
}

/* BUTTON */

.header__cta-wrap {
  margin: 0 24px;
}

.header__cta {
  width: 152px;
  height: 33px;
  padding: 8px 16px;

  background: var(--accent);
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.header__cta:hover {
  background: #4a8356;
  color: #ffffff;
  text-decoration: none;
}

/* LANG */

.header__lang {
  margin-left: 24px;
  color: #ffffff;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.header__lang:hover {
  color: #bdbdbd;
}

/* MAIN */

.main {
  min-height: calc(100vh - 80px);

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 24px;
}

.main__content {
  max-width: 620px;
}

.main__title {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 16px;
}

.main__text {
  font-size: 16px;
  line-height: 1.6;
}

/* STORIES MODAL */

.stories-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.stories-modal.is-open {
  display: block;
}

.stories-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.stories-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 32px));
  margin: 16px auto;
  background: #111111;
  border-radius: 16px;
  overflow: hidden;
  color: #ffffff;
}

.stories-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.stories-modal__content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

/* MOBILE OFF */

@media (max-width: 1199px) {
  .header {
    display: none;
  }
}
