:root {
  --ink: #141824;
  --ink-soft: #4a5168;
  --steel: #1e3a5f;
  --steel-light: #2d5280;
  --brick: #b83232;
  --brick-soft: #d64545;
  --sand: #eef1f6;
  --paper: #ffffff;
  --line: #d8dee8;
  --gold: #c9a227;
  --shadow: 0 18px 50px rgba(20, 24, 36, 0.12);
  --radius: 14px;
  --font: "Manrope", system-ui, sans-serif;
  --font-display: "Literata", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--steel-light); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--brick); }

img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  animation: slideDown 0.6s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--steel);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--steel);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
}

.main-nav ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--steel);
  color: #fff;
}

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(30, 58, 95, 0.18), transparent),
    linear-gradient(160deg, #dfe6f0 0%, var(--sand) 55%, #e8ecf3 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 40%;
  height: 280px;
  background: linear-gradient(90deg, transparent, rgba(184, 50, 50, 0.08));
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(184, 50, 50, 0.12);
  color: var(--brick);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: fadeUp 0.7s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  color: var(--steel);
  margin-bottom: 1rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 38rem;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--brick);
  color: #fff;
  box-shadow: 0 10px 24px rgba(184, 50, 50, 0.28);
}

.btn-primary:hover { background: var(--brick-soft); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--steel);
  color: var(--steel);
}

.btn-outline:hover { background: var(--steel); color: #fff; }

.hero-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  animation: fadeUp 0.8s 0.25s ease both;
}

.hero-card h2 {
  font-size: 1rem;
  color: var(--steel);
  margin-bottom: 0.75rem;
}

.hero-stats {
  display: grid;
  gap: 0.85rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--line);
}

.stat-item strong {
  font-size: 1.35rem;
  color: var(--brick);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--steel);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--ink-soft);
  max-width: 42rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 8px 24px rgba(20, 24, 36, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.05rem;
  color: var(--steel);
  margin-bottom: 0.55rem;
}

.card p, .card li {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.notice {
  background: linear-gradient(135deg, #fff8e6, #fff);
  border: 1px solid #ecdca0;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.notice strong { color: var(--steel); }

.prose {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 8px 24px rgba(20, 24, 36, 0.04);
}

.prose h2, .prose h3 {
  font-family: var(--font-display);
  color: var(--steel);
  margin: 1.75rem 0 0.75rem;
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.prose ul, .prose ol {
  margin: 0 0 1rem 1.25rem;
  color: var(--ink-soft);
}

.prose li { margin-bottom: 0.45rem; }

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.link-chip {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--sand);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--steel);
}

.link-chip:hover {
  background: var(--steel);
  color: #fff;
  border-color: var(--steel);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 1.15rem;
  font: inherit;
  font-weight: 700;
  color: var(--steel);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q span:last-child {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-q span:last-child { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a-inner {
  padding: 0 1.15rem 1rem;
  color: var(--ink-soft);
}

.form-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--steel);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fafbfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--steel-light);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #e8f5ea;
  color: #1f6b32;
  font-weight: 600;
}

.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(180deg, #e4eaf2, var(--sand));
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--steel);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 40rem;
}

.news-list {
  display: grid;
  gap: 1rem;
}

.news-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  transition: border-color 0.2s ease;
}

.news-item:hover { border-color: var(--steel-light); }

.news-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brick);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-item h3 {
  margin: 0.35rem 0 0.5rem;
  color: var(--steel);
  font-size: 1.1rem;
}

.site-footer {
  background: var(--steel);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid, .grid-2, .grid-3, .footer-grid, .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.75rem 1rem 1rem;
  }

  .main-nav.is-open { display: block; }

  .main-nav ul { flex-direction: column; }
}
