/* ENEKO block theme. Visual system from approved local prototype.
   HERO_IMAGE_REPLACEMENT_REQUIRED_BEFORE_PRODUCTION: hero JPEG is 800x424, temporary.
   Do not upscale. Do not treat as production-ready photography. */

/* ENEKO staging design system v1. Local prototype only. */
:root {
  --bg: #f5f3ee;
  --bg-alt: #ece8e0;
  --surface: #ffffff;
  --ink: #1b2430;
  --muted: #5a6472;
  --line: #d9d3c8;
  --navy: #16344a;
  --navy-2: #0f2436;
  --navy-soft: #e8eef2;
  --accent: #c40000;
  --accent-2: #9b0000;
  --accent-soft: #f8e8e8;
  --ok: #215c45;
  --focus: #0b57d0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 36, 54, 0.08);
  --max: 1120px;
  --prose: 68ch;
  --header: 76px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
}
html, body { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--accent); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.prose { max-width: var(--prose); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.logo img { height: 28px; width: auto; }
.logo span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}
.nav a[aria-current="page"],
.nav a:hover { background: var(--navy-soft); color: var(--navy); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.phone {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.phone:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
}
.menu-toggle-bars {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.nav-extra { display: none; }
.nav-backdrop {
  position: fixed;
  inset: 0;
  top: var(--header);
  z-index: 35;
  background: rgba(15, 36, 54, 0.38);
  border: 0;
  padding: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero {
  padding: 64px 0 40px;
}
.hero-photo {
  position: relative;
  isolation: isolate;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: center;
  padding: 56px 0 64px;
  overflow: hidden;
  background: var(--navy-2);
}
.hero-photo .hero-media,
.hero-photo .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-photo .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
}
.hero-photo .hero-overlay {
  background: linear-gradient(90deg, rgba(12, 28, 42, 0.88) 0%, rgba(12, 28, 42, 0.74) 36%, rgba(12, 28, 42, 0.4) 66%, rgba(12, 28, 42, 0.22) 100%);
}
.hero-content { position: relative; max-width: min(52rem, 100%); }
.hero-photo .kicker { color: #ffd4d4; }
.hero-photo h1 {
  color: #fff;
  max-width: 21em;
  font-size: clamp(1.75rem, 1.7vw + 0.7rem, 2.35rem);
  line-height: 1.2;
}
.hero-photo .lead {
  color: #d7e0e6;
  max-width: 42ch;
  line-height: 1.5;
}
.btn-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-light:hover { border-color: #fff; color: #fff; }
.hero-photo .btn-primary {
  background: #fff;
  color: var(--navy);
}
.hero-photo .btn-primary:hover {
  background: #f5f3ee;
  color: var(--navy-2);
}
.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 12px;
}
.hero:not(.hero-photo) h1,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 18ch;
}
.hero-photo h1 {
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.placeholder {
  background: linear-gradient(160deg, var(--navy-2), var(--navy) 55%, #2a4d64);
  color: #fff;
  border-radius: var(--radius);
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.placeholder::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: var(--accent);
  opacity: 0.18;
  transform: rotate(28deg);
}
.placeholder small {
  position: relative;
  font-size: 0.85rem;
  color: #d7e0e6;
  max-width: 36ch;
}

.partner-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1.08fr);
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.partner-card h2 { margin-top: 0; line-height: 1.25; }
.partner-card p { margin: 0 0 14px; }
.nowrap { white-space: nowrap; }
.partner-doc {
  margin: 0;
  background: #faf9f6;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(15, 36, 54, 0.07);
}
.partner-doc img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: top;
  background: #fff;
  border: 1px solid #eee;
}
.partner-doc figcaption {
  margin: 12px 0 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--navy);
}
.partner-label {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--navy);
}
.partner-note {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 52ch;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox:target { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 36, 54, 0.58);
}
.lightbox-panel {
  position: relative;
  width: min(740px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 16px 20px;
  box-shadow: 0 20px 50px rgba(15, 36, 54, 0.25);
}
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.lightbox-bar p { margin: 0; font-weight: 700; }
.lightbox-panel img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.section { padding: 56px 0; }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.2;
}
.section-intro {
  color: var(--muted);
  max-width: var(--prose);
  margin: 0 0 28px;
}

.cycle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.cycle p { margin: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.project-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.project-cards .card h2,
.project-cards .card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
}
.project-cards .card .btn-row { margin-top: auto; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
}
.card p { margin: 0 0 16px; color: var(--muted); flex: 1; }
.card a { font-weight: 650; text-decoration: none; }

.band {
  background: var(--navy);
  color: #fff;
}
.band a { color: #fff; }
.band .section-intro,
.band p { color: #d5dee4; }
.band .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}
.band .card p { color: #d5dee4; }
.band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.band .btn-ghost:hover { color: #fff; border-color: #fff; }

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 16px 0;
}
.fact {
  background: var(--navy-soft);
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 10px;
  min-height: 108px;
}
.step b {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 6px;
}
.step span { font-size: 0.92rem; font-weight: 650; line-height: 1.3; }

.cta-box,
.page-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

label {
  display: block;
  font-weight: 650;
  margin: 0 0 6px;
  font-size: 0.95rem;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  margin-bottom: 14px;
}
textarea { min-height: 120px; resize: vertical; }
.form-note {
  background: var(--accent-soft);
  color: var(--accent-2);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.92rem;
  margin: 0 0 14px;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 16px;
}
.consent input { width: auto; margin: 4px 0 0; }

.site-footer {
  background: var(--navy-2);
  color: #d7e0e6;
  padding: 40px 0 28px;
  margin-top: 24px;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}
.footer-nav { display: grid; gap: 8px; }
.legal {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
}
.draft-banner {
  background: #3b2a0f;
  color: #f3e6c8;
  padding: 10px 16px;
  font-size: 0.92rem;
}

.page-hero { padding: 40px 0 10px; }
.page-hero h1 { text-align: left; }
.ppko-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.75fr);
  gap: 32px;
  align-items: start;
}
.page-hero .ppko-hero h1 {
  max-width: 18em;
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
  text-align: left;
}
.ppko-hero .lead { margin-bottom: 0; }
.page-hero.ppko-hero-wrap { padding-bottom: 8px; }
.status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.status-card dl { margin: 0 0 16px; }
.status-card div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.status-card dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-card dd {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}
.status-card .btn { width: 100%; }
.section-tight { padding-top: 28px; }
.page-hero.metro-hero h1 {
  max-width: 16em;
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
  text-align: left;
}
.contact-hero { padding-bottom: 0; }
.contact-hero h1 { max-width: none; }
.contact-hero .lead {
  font-size: 1.35rem;
  line-height: 1.5;
  margin: 0 0 8px;
}
.contact-hero .lead a {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.contact-hero .lead a:hover { color: var(--accent); }
.section-addresses { padding-top: 32px; }
.meta-list {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
}
.meta-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.meta-list dt, .meta-list .k { color: var(--muted); }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
}
.faq p { margin: 10px 0 0; color: var(--muted); }

.list {
  margin: 0;
  padding-left: 1.15em;
}
.list li { margin: 0 0 8px; }

.num-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.num-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}



.news-list {
  display: grid;
  gap: 16px;
}
.news-item h3 { margin: 0 0 10px; }
.news-item h3 a { text-decoration: none; }
.news-date {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}
.permit-doc { max-width: 520px; }
.kicker a { color: inherit; text-decoration: none; }

.staff-list {
  display: grid;
  gap: 20px;
}
.staff-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: 24px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.staff-card h3 { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.3; }
.staff-card p { margin: 0; color: var(--muted); }
.staff-card .partner-doc { margin: 0; }

.notice {
  border-left: 4px solid var(--navy);
  background: var(--navy-soft);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  margin: 0 0 20px;
}

@media (max-width: 1280px) {
  .logo span { display: none; }
  .nav a { padding: 10px 8px; font-size: 0.9rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .staff-card { grid-template-columns: 1fr; }
  .hero-grid,
  .partner-card,
  .ppko-hero,
  .cycle,
  .footer-grid,
  .address-grid,
  .meta-list div { grid-template-columns: 1fr; }
  .hero-photo {
    min-height: 0;
    padding: 36px 0 40px;
  }
  .hero-photo .hero-media img { object-position: 70% center; }
  .hero-photo .hero-overlay {
    background: linear-gradient(180deg, rgba(12, 28, 42, 0.86) 0%, rgba(12, 28, 42, 0.62) 100%);
  }
  .hero-photo h1 {
    max-width: none;
    font-size: 2.25rem; /* 36px, not more than 40px */
    line-height: 1.22;
    margin-bottom: 14px;
  }
  .hero-photo .lead {
    font-size: 1.125rem; /* 18px */
    line-height: 1.5;
    margin-bottom: 22px;
    max-width: none;
  }
  .hero-photo .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-photo .btn { width: 100%; }
  .partner-card h2 {
    font-size: 2.125rem; /* 34px */
    max-width: none;
  }
  .partner-doc img { max-height: 420px; }
  .partner-card { gap: 20px; padding: 20px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    z-index: 42;
  }
  .header-cta { display: none; }
  .nav-extra {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .nav-extra .btn { width: 100%; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 41;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    max-height: calc(100dvh - var(--header));
    overflow: auto;
    width: 100%;
  }
  .nav.is-open { display: flex; }
  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .cards { grid-template-columns: 1fr; }
  .project-cards { grid-template-columns: 1fr; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .hero { padding-top: 36px; }
  .placeholder { min-height: 180px; }
  .page-hero .ppko-hero h1 { font-size: 1.75rem; max-width: none; }
  .page-hero.metro-hero h1 { font-size: 1.7rem; max-width: none; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

/* ---- WordPress adapters (native blocks, no page builder) ---- */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin: 0; }
main#main { display: block; }
.wp-block-group { margin: 0; }
.wp-block-image { margin: 0; }
.wp-block-image img { height: auto; }
.wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.wp-block-button { margin: 0; }
.is-layout-flow > * + * { margin-block-start: 0; }
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max);
}
body .alignfull { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
.hero-photo .hero-media .wp-block-image,
.hero-photo .hero-media figure,
.hero-photo .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
}
.site-header { position: sticky; }
.header-inner { position: relative; }
.eneko-html { max-width: none; }
.card .wp-block-heading { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.3; }
.card p { margin: 0 0 16px; color: var(--muted); }
.has-eneko-surface-background { background: var(--surface); }

@media (max-width: 860px) {
  .hero-photo .hero-media img { object-position: 70% center; }
}

header.wp-block-template-part,
footer.wp-block-template-part { display: block; }
header.wp-block-template-part .site-header { position: sticky; top: 0; }
#wp-skip-link { display: none; } /* Ukrainian skip link is in the theme header */
