@import "./colors/bd188.css";

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 86px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0, rgba(var(--accent-rgb), 0.18), transparent 28rem),
    radial-gradient(circle at 82% 8rem, rgba(var(--brand-rgb), 0.22), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0, #06080d 100%);
  font-family: Lato, Arial, sans-serif;
  line-height: 1.62;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 70%);
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
}

p {
  text-align: justify;
}

h1,
h2,
h3,
h4 {
  text-align: left;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(180deg, rgba(19, 24, 38, 0.97), rgba(8, 10, 17, 0.94)),
    var(--surface-strong);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.32);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
}

.site-header {
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 12px 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 128px;
}

.logo img {
  display: block;
  width: auto;
  max-height: 50px;
  max-width: 190px;
  object-fit: contain;
}

.logo span {
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: rgba(var(--surface-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  color: #f8f3df;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

nav a:hover,
nav a[aria-current="page"] {
  color: #1a0f08;
  background: linear-gradient(180deg, #ffe8a3, var(--accent));
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.22);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  color: #fff7d7;
  background: linear-gradient(180deg, #f44747, var(--brand-dark));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.34);
}

.header-cta:hover {
  filter: brightness(1.08);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 58px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 1.02fr);
  gap: 30px;
  align-items: center;
  min-height: 560px;
  margin: 22px 0 28px;
  padding: 38px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(var(--surface-rgb), 0.1), rgba(var(--surface-rgb), 0.035)),
    linear-gradient(145deg, rgba(var(--brand-rgb), 0.45), rgba(var(--surface-strong-rgb), 0.9) 54%, rgba(var(--accent-rgb), 0.22));
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 6px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.24), transparent 66%);
  pointer-events: none;
}

.hero-block {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.hero-block h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #fff7d7;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.46);
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(var(--accent-rgb), 0.44);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  color: #fff7d7;
  background: linear-gradient(180deg, #f64a4a, var(--brand-dark));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(var(--brand-rgb), 0.32);
}

.button:hover {
  filter: brightness(1.08);
}

.button.secondary {
  color: #1a0f08;
  background: linear-gradient(180deg, #ffe8a3, var(--accent));
  border-color: rgba(var(--accent-rgb), 0.7);
  box-shadow: 0 14px 28px rgba(var(--accent-rgb), 0.24);
}

.section {
  margin: 18px 0;
  padding: 28px;
  background: linear-gradient(180deg, rgba(var(--surface-rgb), 0.08), rgba(var(--surface-rgb), 0.045));
  border: 1px solid rgba(var(--line-rgb), 0.74);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.section h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  color: #fff7d7;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 999px;
}

.section h3 {
  margin: 22px 0 8px;
  color: var(--accent);
  font-size: 21px;
  line-height: 1.25;
}

.section p {
  margin: 0 0 14px;
  color: var(--muted);
}

.section ul,
.section ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.section li {
  padding-left: 4px;
}

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

.card,
.content-item,
details {
  background:
    linear-gradient(180deg, rgba(var(--surface-rgb), 0.12), rgba(var(--surface-rgb), 0.055)),
    var(--surface-strong);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.card {
  min-width: 0;
  padding: 20px;
}

.card h3,
.content-item h3 {
  margin-top: 0;
}

.card p,
.content-item p,
details p {
  margin-bottom: 0;
}

.content-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.content-item {
  padding: 20px;
}

.faq {
  padding-bottom: 28px;
}

details {
  padding: 0;
  overflow: hidden;
}

details+details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: #fff7d7;
  font-weight: 900;
}

details[open] summary {
  border-bottom: 1px solid rgba(var(--line-rgb), 0.7);
}

details p {
  padding: 18px 20px 20px;
}

.site-footer {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  padding: 32px 20px 42px;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(var(--brand-rgb), 0.2), transparent),
    var(--surface-strong);
  border-top: 1px solid rgba(var(--accent-rgb), 0.34);
}

.site-footer h2 {
  margin: 0 0 8px;
  color: #fff7d7;
  font-size: 26px;
  line-height: 1.2;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 247, 215, 0.74);
}

.site-footer p+p {
  margin-top: 0;
}

.floating-actions {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 50;
  display: flex;
  gap: 10px;
  width: min(360px, calc(100% - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}

.floating-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 42px;
  padding: 9px 14px;
  color: #fff7d7;
  background: linear-gradient(180deg, #f64a4a, var(--brand-dark));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(var(--brand-rgb), 0.28);
  pointer-events: auto;
}

.floating-button:hover {
  color: #fff7d7;
  filter: brightness(1.08);
}

.floating-button.secondary {
  color: #1a0f08;
  background: linear-gradient(180deg, #ffe8a3, var(--accent));
  border-color: rgba(var(--accent-rgb), 0.7);
  box-shadow: 0 12px 26px rgba(var(--accent-rgb), 0.24);
}

.floating-button.secondary:hover {
  color: #1a0f08;
}

@media (max-width: 980px) {
  .site-header {
    gap: 12px;
  }

  nav {
    order: 4;
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .cards,
  .content-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  nav {
    display: none;
    width: 100%;
    justify-content: stretch;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(var(--line-rgb), 0.7);
  }

  .site-header.is-menu-open nav {
    display: grid;
  }

  .header-cta {
    order: 5;
    width: 100%;
  }

  nav a {
    justify-content: center;
    width: 100%;
  }

  main {
    padding-inline: 12px;
  }

  .hero {
    margin-top: 14px;
    padding: 22px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .section {
    padding: 20px;
  }

  .cards,
  .content-group {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    bottom: 10px;
    width: min(330px, calc(100% - 20px));
  }

  .floating-button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }
}
