:root {
  --bg: #f6f7f9;
  --bg-glow: #e3f0f8;
  --surface: #ffffff;
  --ink: #122025;
  --muted: #4a5a63;
  --brand: #005a8f;
  --brand-dark: #003f64;
  --accent: #00a3a3;
  --line: #d7dde2;
  --header-bg: rgba(255, 255, 255, 0.94);
  --nav-hover-bg: #edf6fb;
  --input-bg: #fcfdff;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(12, 22, 30, 0.08);
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 85% 0%, var(--bg-glow) 0%, var(--bg) 45%, var(--bg) 100%);
  color: var(--ink);
}

body {
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("./logo.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(64vw, 760px);
  filter: grayscale(1);
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--maxw), 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}

.brand small {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand-dark);
  background: var(--nav-hover-bg);
}

.site-nav a.active {
  color: #ffffff;
  background: var(--brand);
}

main {
  padding: 36px 0 60px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.hero-card,
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 36px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.cta-row {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  color: #ffffff;
  background: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-dark);
}

.btn-secondary {
  color: var(--brand-dark);
  border-color: #b9d4e4;
  background: #eef7fc;
}

.hero-side {
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 12px;
  background:
    linear-gradient(130deg, rgba(0, 90, 143, 0.98), rgba(0, 163, 163, 0.9)),
    linear-gradient(#1a2d36, #1a2d36);
  color: #ffffff;
}

.hero-side h2 {
  margin: 0;
  font-size: 1.2rem;
}

.hero-side p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.65;
}

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

.stat {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.stat strong {
  display: block;
  font-size: 1.3rem;
  color: var(--brand-dark);
}

.stat span {
  font-size: 0.9rem;
  color: var(--muted);
}

.section {
  margin-top: 34px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.section p.lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 22px;
}

.feature ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: var(--muted);
}

.form-wrap {
  padding: 24px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  font-weight: 600;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #c7d2db;
  background: var(--input-bg);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid #b4d8eb;
  border-color: #8dbfd8;
}

.error {
  margin-top: 4px;
  color: #8d2020;
  font-size: 0.84rem;
}

.success {
  margin-top: 8px;
  color: #0b5a37;
  font-size: 0.92rem;
}

.hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero,
  .feature {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .stat-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
