:root {
  --void: #0b1220;
  --void2: #0d1628;
  --glass: rgba(255, 255, 255, 0.028);
  --glass-border: rgba(255, 255, 255, 0.07);
  --fire: #ff6a1a;
  --fire-glow: rgba(255, 106, 26, 0.25);
  --white: #ffffff;
  --white-dim: rgba(255, 255, 255, 0.55);
  --muted: #9499a1;
  --font: "Inter", sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--void);
  color: var(--white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.nav-logo-text {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--white);
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fire);
  border: 1px solid rgba(255, 106, 26, 0.3);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  transition: all 0.2s;
}
.nav-back:hover {
  background: rgba(255, 106, 26, 0.1);
}

.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
}
.page-wrap-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
}
.page-hero {
  text-align: center;
  margin-bottom: 3rem;
}
.page-badge {
  display: inline-block;
  background: rgba(255, 106, 26, 0.1);
  border: 1px solid rgba(255, 106, 26, 0.25);
  color: var(--fire);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}
.page-hero p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

.content-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
}
.form-group {
  margin-bottom: 1.4rem;
}
label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
input,
select,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 106, 26, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.08);
}
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239499A1' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  background-color: rgba(255, 255, 255, 0.04);
}
select option {
  background: #0d1628;
  color: #f1f5f9;
}
textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--fire);
  color: #000;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}
.btn-submit:hover {
  background: #e65c0f;
  transform: translateY(-1px);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.form-error {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}
#submitError {
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  text-align: center;
  display: none;
}
#formSuccess {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
#formSuccess h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}
#formSuccess p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 1rem;
}
.search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}
.search-wrap input {
  padding-left: 3rem;
  border-radius: 100px;
}
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.cat-btn {
  all: unset;
  box-sizing: border-box;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.cat-btn:hover,
.cat-btn.active {
  background: rgba(255, 106, 26, 0.1);
  border-color: rgba(255, 106, 26, 0.35);
  color: var(--fire);
}

.faq-section {
  margin-bottom: 2rem;
}
.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q:hover {
  color: var(--fire);
}
.faq-q .faq-icon {
  color: var(--fire);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  border-top: 1px solid var(--glass-border);
}
.faq-item.open .faq-a {
  display: block;
}

.toc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}
.toc h3 {
  color: var(--fire);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.toc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 2rem;
}
.toc-col ol {
  padding-left: 1.2rem;
  margin: 0;
  list-style: none;
}
.toc-col ol li {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  display: flex;
  gap: 0.4rem;
}
.toc-col ol li .n {
  color: var(--muted);
  min-width: 1.4rem;
  text-align: right;
  flex-shrink: 0;
}
.toc a {
  color: var(--muted);
}
.toc a:hover {
  color: var(--fire);
}
section.clause {
  margin-bottom: 2.8rem;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--glass-border);
}
section.clause:last-child {
  border-bottom: none;
}
h2.clause-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
h2.clause-title .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 106, 26, 0.12);
  border: 1px solid rgba(255, 106, 26, 0.3);
  color: var(--fire);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
p {
  color: var(--muted);
  margin-bottom: 0.9rem;
  line-height: 1.75;
  font-size: 0.88rem;
}
p:last-child {
  margin-bottom: 0;
}
ul,
ol {
  color: var(--muted);
  padding-left: 1.5rem;
  margin-bottom: 0.9rem;
}
li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
  font-size: 0.88rem;
}
strong {
  color: var(--white);
}
p strong {
  color: inherit;
}
li strong {
  color: inherit;
}
.highlight-box {
  background: rgba(255, 106, 26, 0.06);
  border-left: 3px solid var(--fire);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.warning-box {
  background: rgba(248, 113, 113, 0.06);
  border-left: 3px solid #ef4444;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 106, 26, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}
.contact-card a {
  color: var(--fire);
}
.highlight-box--spaced {
  margin-top: 2rem;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}
.hero {
  background: linear-gradient(
    180deg,
    rgba(255, 106, 26, 0.06) 0%,
    transparent 100%
  );
  border-bottom: 1px solid rgba(255, 106, 26, 0.08);
  padding: 5rem 2rem 2.5rem;
  text-align: center;
  margin-top: 64px;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.hero p {
  color: var(--muted);
  font-size: 0.88rem;
}
.hero .badge {
  display: inline-block;
  background: rgba(255, 106, 26, 0.1);
  border: 1px solid rgba(255, 106, 26, 0.25);
  color: var(--fire);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  padding: 2.4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}
.f-copy {
  font-size: 0.76rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.18);
}
.f-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.f-links a {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.18);
  transition: color 0.3s;
  text-decoration: none;
}
.f-links a:hover {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 600px) {
  nav {
    padding: 0 1.25rem;
    height: 56px;
  }
  .nav-links {
    display: none;
  }
  .page-wrap,
  .page-wrap-wide {
    padding: 5rem 1rem 3rem;
  }
  .container {
    padding: 2rem 1rem 4rem;
  }
  .hero {
    padding: 3.5rem 1rem 2rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .page-hero h1 {
    font-size: 1.75rem;
  }
  .page-hero p {
    font-size: 0.9rem;
  }
  .content-card {
    padding: 1.25rem;
    border-radius: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .toc-cols {
    grid-template-columns: 1fr;
  }
  .categories {
    justify-content: flex-start;
  }
}
