/* NCUI palette and type, taken from the Staré Město survey
   (edemos_public_space/client/src/styles/tokens.scss). Contrast on white:
   primary 7.9:1, muted 9.7:1, badge text on badge bg 5.9:1. */
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/montserrat-700.woff2") format("woff2"); }

:root {
  --c-primary: #134CAB;
  --c-primary-dark: #0F3C88;
  --c-text: #000000;
  --c-muted: #444444;
  --c-border: #d4d4d4;
  --c-soft: #F0F3F9;
  --c-alt: #eeeeee;
  --c-badge-text: #8A5A00;
  --c-badge-bg: #FFF3D6;
  --radius-card: 16px;
  --shadow-card: 0 2px 10px rgba(19, 76, 171, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #ffffff; color: var(--c-text);
  font-family: "Montserrat", system-ui, sans-serif; font-size: 16px; line-height: 1.5;
  overflow-wrap: break-word; }
img { max-width: 100%; }
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }
a:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--c-border); background: #ffffff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  padding-top: 10px; padding-bottom: 10px; }
.logo-link { display: flex; }
.logo { height: 44px; width: auto; display: block; }
.site-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-primary); padding-left: 16px; border-left: 1px solid var(--c-border); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-left: auto; font-size: 14px; font-weight: 600; }
.site-nav a { color: var(--c-text); text-decoration: none; padding: 12px 0; }
.site-nav a:hover { color: var(--c-primary); }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--c-border); border-radius: 999px;
  padding: 3px; font-size: 12px; font-weight: 700; margin-left: auto; }
.site-nav + .lang-switch { margin-left: 0; }
.lang-switch a { color: var(--c-muted); border-radius: 999px; padding: 10px 12px; text-decoration: none; line-height: 1; }
.lang-switch a.is-active { background: var(--c-primary); color: #ffffff; }

/* Sections */
.hero { background: var(--c-soft); border-bottom: 1px solid var(--c-border); }
.hero-inner { padding-top: 72px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: 44px; line-height: 1.15; max-width: 820px; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--c-primary); }
.lead { font-size: 18px; line-height: 1.6; color: var(--c-muted); max-width: 720px; }
.section { padding-top: 56px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 24px; }
.section:last-child { padding-bottom: 72px; }
.section-head { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.section-head h2 { font-size: 30px; line-height: 1.2; }
.section-head p { font-size: 16px; line-height: 1.6; color: var(--c-muted); }
.section h2.minor { font-size: 24px; }

/* Grids and cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--c-border);
  border-radius: var(--radius-card); background: #ffffff; color: var(--c-text); text-decoration: none;
  box-shadow: var(--shadow-card); }
a.card:hover { border-color: var(--c-primary); color: var(--c-text); }
.card h3 { font-size: 21px; line-height: 1.25; }
.card p { font-size: 15px; line-height: 1.6; color: var(--c-muted); }
.card .grow { flex-grow: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--c-soft);
  display: flex; align-items: center; justify-content: center; flex: none; }
.card-icon svg { width: 26px; height: 26px; stroke: var(--c-primary); }
.card-link { font-size: 14px; font-weight: 700; color: var(--c-primary); }
.card--dashed { border-style: dashed; background: #fafafa; box-shadow: none; }
.meta { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; font-weight: 700; margin-top: auto; }
.links a { padding: 10px 0; }
.links .placeholder { padding: 10px 0; }

.badge { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.badge--soon { color: var(--c-badge-text); background: var(--c-badge-bg); }

.area { padding: 22px; border-radius: 14px; background: var(--c-soft); display: flex; flex-direction: column; gap: 8px; }
.area h3 { font-size: 17px; }
.area p { font-size: 14px; line-height: 1.6; color: var(--c-muted); }
.grid-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }

.panel { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; padding: 28px;
  border-radius: var(--radius-card); }
.panel--outline { border: 1px solid var(--c-border); }
.panel--soft { background: var(--c-soft); }
.panel-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.panel-text h2 { font-size: 20px; }
.panel-text p { font-size: 14px; line-height: 1.6; color: var(--c-muted); }
.panel > a { font-size: 14px; font-weight: 700; padding: 12px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--c-alt); color: var(--c-muted); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; }

.feature { display: flex; flex-wrap: wrap; border: 1px solid var(--c-border); border-radius: var(--radius-card);
  overflow: hidden; background: #ffffff; }
.feature-visual { flex: 1 1 320px; min-height: 200px; background: #E7EFE3; display: flex; align-items: center;
  justify-content: center; padding: 24px; }
.feature-visual svg { width: 96px; height: 96px; stroke: #2f5a2f; }
.feature-body { flex: 1 1 380px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature-body h3 { font-size: 24px; line-height: 1.25; }
.feature-body p { font-size: 15px; line-height: 1.6; color: var(--c-muted); }

.btn { display: inline-block; background: var(--c-primary); color: #ffffff; text-decoration: none; font-weight: 600;
  font-size: 15px; padding: 14px 24px; border-radius: 999px; border: 1px solid var(--c-primary); }
.btn:hover { background: var(--c-primary-dark); color: #ffffff; }
.btn--ghost { background: #ffffff; color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-soft); color: var(--c-primary-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.placeholder { color: var(--c-muted); font-style: italic; }

/* Placeholder (coming soon) page */
.soon { background: var(--c-soft); }
.soon-inner { max-width: 760px; padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 18px; }
.soon-inner h1 { font-size: 38px; line-height: 1.2; }
.soon-inner .lead { font-size: 17px; }
.soon-icon { width: 56px; height: 56px; border-radius: 14px; background: #ffffff; border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center; }
.soon-icon svg { width: 28px; height: 28px; stroke: var(--c-primary); }

/* Footer */
.site-footer { border-top: 1px solid var(--c-border); background: #ffffff; }
.footer-row { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-start; }
.footer-block { display: flex; gap: 16px; align-items: flex-start; flex: 1 1 340px; }
.footer-block p { font-size: 12px; line-height: 1.6; color: var(--c-muted); }
.footer-logo { height: 40px; width: auto; flex: none; }
.footer-tacr { height: 48px; width: auto; flex: none; border-radius: 4px; }
.copyright { font-size: 12px; color: var(--c-muted); flex-basis: 100%; }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-inner { padding-top: 48px; padding-bottom: 40px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .section-head h2 { font-size: 24px; }
  .card, .feature-body, .panel { padding: 20px; }
  .soon-inner { padding-top: 56px; padding-bottom: 56px; }
  .soon-inner h1 { font-size: 28px; }
  .header-row { column-gap: 14px; }
  .site-label { padding-left: 12px; letter-spacing: .1em; }
  .site-nav { margin-left: 0; order: 3; flex-basis: 100%; }
  .site-nav + .lang-switch { margin-left: auto; }
}
