:root {
  color-scheme: dark;
  --header-bg-color: #111111;
  --footer-bg-color: #111111;
  --page-bg-color: #111111;
  --primary-color: #e7563b;
  --primary-color-hover: #cf4d35;
  --secondary-color: #1db76f;
  --secondary-color-hover: #1aa463;
  --text-color: rgba(255, 255, 255, 0.92);
  --muted-color: rgba(255, 255, 255, 0.74);
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Roboto,
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  background: var(--page-bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

header nav,
main,
footer {
  width: min(1140px, calc(100% - 24px));
  margin: 0 auto;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

header img,
footer img {
  display: block;
  width: auto;
  max-height: 56px;
}

header ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

header li a {
  display: block;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

header li a:hover,
header li a:focus {
  color: var(--primary-color);
}

header p {
  display: flex;
  gap: 8px;
  margin: 0;
}

header p a,
body > section a,
article aside a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 20px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.12s ease,
    filter 0.12s ease;
}

header p a:first-child {
  background: var(--primary-color);
}

header p a:last-child,
body > section a,
article aside a {
  background: var(--secondary-color);
}

header p a:hover,
body > section a:hover,
article aside a:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

body > section {
  position: relative;
  min-height: 400px;
  display: grid;
  place-items: center;
  padding: 56px 12px;
  overflow: hidden;
}

body > section > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body > section > div {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

body > section h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
}

body > section p {
  margin: 0 0 24px;
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  line-height: 1.2;
}

main {
  padding: 48px 0;
}

main > nav,
article,
main > section {
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.08);
}

main > nav h2,
article h2,
main > section h2 {
  margin-top: 0;
  font-size: clamp(1.55rem, 3vw, 1.8rem);
  line-height: 1.25;
}

main > nav ol {
  margin: 0;
  padding-left: 24px;
}

main > nav li {
  padding: 4px 0;
  color: var(--muted-color);
}

article p,
main > section p,
footer p {
  margin: 0 0 16px;
}

article h2,
article h3,
main > section h3 {
  margin: 28px 0 12px;
}

article h3,
main > section h3 {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.88);
}

ul,
ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
}

table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
}

th,
td {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: left;
}

th {
  background: var(--primary-color);
  color: #ffffff;
  font-size: 1.05rem;
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.04);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.08);
}

article aside {
  position: relative;
  min-height: 200px;
  margin: 28px 0;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-image: url("/images/banner_locowin_w2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

article aside p {
  max-width: 360px;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
}

article figure {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 28px 0;
}

article figure a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

article figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

article figure a:hover img {
  transform: scale(1.08);
  box-shadow: 0 0 12px var(--primary-color);
}

footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-color);
}

footer p:last-child {
  margin-bottom: 0;
  color: var(--text-color);
}

@media (max-width: 900px) {
  header nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 0;
  }

  header ul {
    order: 3;
    flex-wrap: wrap;
  }

  article figure {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  header nav,
  main,
  footer {
    width: min(100% - 20px, 1140px);
  }

  header p {
    width: 100%;
    justify-content: center;
  }

  header ul {
    gap: 6px;
  }

  header li a {
    padding: 6px 10px;
    font-size: 1rem;
  }

  body > section {
    min-height: 300px;
  }

  body > section > img {
    object-position: right top;
  }

  body > section > div,
  main > nav,
  article,
  main > section {
    padding: 20px;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  article figure {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* banner */

.banner {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
}

.banner > div {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px;
  text-align: center;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.banner h1 {
  margin: 0 0 12px;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
}

.banner p {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 1.25;
  color: #ffffff;
}

.banner a {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: #1db76f;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    filter 0.2s ease;
  animation: banner-button-pulse 1.5s infinite;
}

.banner a:hover {
  background: #1aa463;
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@keyframes banner-button-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 991px) {
  .banner {
    min-height: 320px;
  }

  .banner > div {
    max-width: 90%;
    padding: 22px;
  }

  .banner h1 {
    font-size: 36px;
  }

  .banner p {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .banner {
    min-height: 300px;
  }

  .banner > img {
    object-position: right center;
  }

  .banner > div {
    padding: 18px;
    border-radius: 16px;
  }

  .banner h1 {
    font-size: 28px;
  }

  .banner p {
    font-size: 20px;
  }

  .banner a {
    padding: 10px 22px;
    font-size: 16px;
  }
}
