:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef5ff;
  --text: #132033;
  --muted: #5a687a;
  --primary: #1264b2;
  --primary-dark: #0c477f;
  --accent: #ffd45a;
  --border: #d8e1ec;
  --warning: #fff6dd;
  --shadow: 0 18px 50px rgba(17, 48, 82, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 212, 90, 0.16), transparent 36rem),
    radial-gradient(circle at top right, rgba(18, 100, 178, 0.12), transparent 32rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark { color: var(--accent); filter: drop-shadow(0 2px 0 rgba(12,71,127,.2)); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 700; }
.nav-links a:hover { color: var(--primary); }
.menu-button { display: none; }

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 20px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 900;
  color: var(--primary);
}

h1, h2, h3 { line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.15rem, 5vw, 4.4rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.8rem); letter-spacing: -0.04em; }
h3 { font-size: 1.25rem; }

.hero-text { max-width: 760px; font-size: 1.13rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.primary { background: var(--primary); color: white; box-shadow: 0 10px 24px rgba(18, 100, 178, 0.22); }
.primary:hover { background: var(--primary-dark); }
.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }

.hero-card {
  background: linear-gradient(145deg, var(--surface), var(--surface-soft));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 250px;
  display: grid;
  align-content: center;
  gap: 12px;
}
.hero-card strong { font-size: 1.6rem; line-height: 1.15; }
.hero-card span, .hero-card small { color: var(--muted); }

.notice {
  max-width: 1140px;
  margin: 0 auto 34px;
  background: var(--warning);
  border: 1px solid #f3d894;
  border-radius: 18px;
  padding: 16px 18px;
  color: #5d4712;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 20px;
}
.section-head { max-width: 760px; margin-bottom: 24px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.section-head.compact { margin-bottom: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  color: var(--muted);
}
.chip.active, .chip:hover { color: white; background: var(--primary); border-color: var(--primary); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 48, 82, 0.08);
  display: flex;
  flex-direction: column;
}
.card-image {
  aspect-ratio: 1 / 1;
  background: #edf2f7;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  width: 100%;
}
.card-image img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--surface-soft); color: var(--primary-dark); border-radius: 999px; padding: 4px 9px; font-size: 0.78rem; font-weight: 850; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.card-actions .button { padding: 9px 12px; font-size: 0.88rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 26px;
  align-items: start;
}
.small-warning {
  background: #fff4f4;
  color: #703333;
  border: 1px solid #f4cccc;
  border-radius: 14px;
  padding: 12px 14px;
}
.request-form, .brief-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 28px rgba(17, 48, 82, 0.08);
}
.request-form { display: grid; gap: 15px; }
label { display: grid; gap: 7px; font-weight: 850; }
select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: white;
}
textarea { resize: vertical; }

.brief-box { max-width: 1140px; margin: 0 auto 34px; }
.brief-box.hidden { display: none; }
pre {
  white-space: pre-wrap;
  background: #0d1b2a;
  color: #edf6ff;
  border-radius: 16px;
  padding: 18px;
  overflow: auto;
}
.brief-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cards-3 article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.cards-3 p { color: var(--muted); }
.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 44px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.footer p { margin: 6px 0; }

.preview-dialog {
  border: 0;
  border-radius: 24px;
  padding: 0;
  max-width: min(94vw, 1080px);
  max-height: 92vh;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview-dialog::backdrop { background: rgba(3, 18, 33, 0.66); }
.dialog-head { padding: 18px 18px 10px; border-bottom: 1px solid var(--border); }
.dialog-head h2 { font-size: 1.4rem; }
.preview-dialog img { max-height: 72vh; width: auto; margin: 0 auto; background: white; }
.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2;
}
.dialog-actions { display: flex; gap: 10px; padding: 14px; justify-content: center; flex-wrap: wrap; border-top: 1px solid var(--border); }

@media (max-width: 980px) {
  .hero, .split { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .menu-button {
    display: inline-flex;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 850;
  }
  .nav { align-items: flex-start; }
  .nav-links {
    display: none;
    position: absolute;
    top: 58px;
    left: 20px;
    right: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hero { padding-top: 44px; }
  .grid { grid-template-columns: 1fr; }
  .hero-card { min-height: auto; }
  .card-image { aspect-ratio: 4 / 3; }
  .preview-dialog img { max-height: 67vh; }
}
