:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #142234;
  --muted: #526273;
  --primary: #0f4c81;
  --primary-soft: #e8f1fa;
  --border: #d7e0ea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 50%);
  color: var(--text);
  line-height: 1.65;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover,
nav a[aria-current="true"] {
  color: var(--primary);
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  background: #fff;
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.lang-switch a.is-active {
  background: var(--primary);
  color: #fff;
}

section {
  padding: 72px 0;
}

.hero {
  padding-top: 84px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  min-height: 420px;
  display: grid;
  align-items: end;
  background-image:
    linear-gradient(110deg, rgba(10, 28, 43, 0.86) 0%, rgba(10, 28, 43, 0.62) 45%, rgba(10, 28, 43, 0.35) 100%),
    url("/images/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  padding: clamp(26px, 4vw, 44px);
  max-width: 760px;
}

h1,
h2 {
  margin: 0 0 14px;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #ffffff;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.subtitle {
  color: #d1e8ff;
  font-weight: 600;
  margin: 0 0 18px;
}

.hero-content p {
  color: #e7eff8;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.05rem;
}

ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

li + li {
  margin-top: 8px;
}

.flow {
  background: var(--primary-soft);
  border: 1px solid #c8dcf0;
  border-radius: 16px;
  padding: 20px;
}

.flow ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.flow li + li {
  margin-top: 10px;
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
  background: #fff;
  color: var(--text);
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.about-highlight {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 220px;
  background-image:
    linear-gradient(0deg, rgba(16, 39, 58, 0.45), rgba(16, 39, 58, 0.45)),
    url("/images/about.jpg");
  background-size: cover;
  background-position: center;
}

.contact-box p strong {
  color: var(--text);
}

footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 0.93rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.contact-form label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  color: var(--text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.contact-form .check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  color: var(--muted);
}

.contact-form .check-row input {
  margin-top: 4px;
}

.contact-form button,
.btn-primary,
.btn-secondary {
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
}

.contact-form button,
.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.form-status {
  margin-top: 12px;
}

.form-status.is-ok {
  color: #1f7a43;
}

.form-status.is-err {
  color: #a12828;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 16px;
  background: rgba(16, 37, 54, 0.96);
  color: #e8eef5;
}

.cookie-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.cookie-banner p {
  color: #c9d7e6;
  margin: 8px 0 0;
}

.cookie-banner a {
  color: #9fd0ff;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 20, 30, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-dialog {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 20px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.cookie-option p {
  margin: 4px 0 0;
}

.legal-page {
  padding: 48px 0 72px;
}

.prose h1 {
  color: var(--text);
}

.prose h2 {
  margin-top: 28px;
  font-size: 1.15rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 740px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  section {
    padding: 58px 0;
  }
}
