/* EraBuildingUA */
:root {
  --bg: #fbfaf7;
  --bg-soft: #f7f1ea;
  --bg-accent: #f3f7fd;
  --text: #16212a;
  --muted: #5f6f7d;
  --line: #d9e0e7;
  --accent: #1d4f91;
  --accent-dark: #163c6e;
  --accent-soft: #dfeaf9;
  --warm: #c57c2f;
  --warm-soft: #f8ead9;
  --dark: #101820;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(16, 24, 32, 0.08);
  --radius: 28px;
  --container: 1240px;
  --header-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(29,79,145,.06), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(197,124,47,.08), transparent 24%),
    linear-gradient(180deg, #fbfaf7 0%, #fcfbf8 56%, #fbfaf7 100%);
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(251,250,247,.92);
  border-bottom: 1px solid rgba(217,224,231,.95);
}
.header-row {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; flex-direction: column; gap: 4px; min-width: 220px; }
.brand-title { font-size: 1.16rem; font-weight: 700; letter-spacing: -.03em; }
.brand-subtitle { font-size: .72rem; text-transform: uppercase; letter-spacing: .22em; color: #788897; line-height: 1.45; }

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.nav a {
  font-size: .92rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color .25s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn, .contact-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  transition: transform .25s ease, background .25s ease;
  cursor: pointer;
}
.btn:hover, .contact-chip:hover { transform: translateY(-1px); background: #fbfdff; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #2d65b3 100%);
  border-color: transparent;
  color: var(--white);
  font-weight: 600;
}
.btn-primary:hover { background: linear-gradient(135deg, #173e72 0%, #255494 100%); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle svg:last-child, .menu-toggle.active svg:first-child { display: none; }
.menu-toggle.active svg:last-child { display: block; }
.mobile-panel { display: none; border-top: 1px solid var(--line); padding: 10px 0 18px; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a { padding: 14px 16px; border-radius: 18px; color: #33414f; }
.mobile-nav a:hover { background: #f5f8fd; }
.mobile-contacts { display: grid; gap: 10px; margin-top: 12px; }

.section { padding: 96px 0; scroll-margin-top: calc(var(--header-height) + 18px); }
.section-soft { background: linear-gradient(180deg, rgba(247,241,234,.95) 0%, rgba(252,249,245,.96) 100%); }
.section-accent { background: linear-gradient(180deg, rgba(243,247,253,.95) 0%, rgba(250,252,255,.96) 100%); }

.hero { padding-top: 56px; padding-bottom: 96px; }
.hero-grid, .split-layout, .core-layout, .advantages-grid, .process-track, .footer-grid {
  display: grid;
  gap: 28px;
}
.hero-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: stretch; }
.split-layout { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: stretch; }
.split-layout.reverse { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.core-layout { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: stretch; margin-top: 42px; }
.advantages-grid { grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 40px; }
.process-track { grid-template-columns: repeat(5, minmax(0,1fr)); margin-top: 40px; }
.footer-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #c8d8f0;
  color: var(--accent-dark);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .22em;
}

.hero-copy, .split-content, .core-card { min-width: 0; }
.hero h1 {
  margin: 18px 0 0;
  max-width: 780px;
  font-size: 34px;
  line-height: 1.03;
  letter-spacing: -.04em;
}
.hero-lead {
  max-width: 720px;
  margin: 20px 0 0;
  font-size: 1.03rem;
  line-height: 1.74;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: 30px;
}
.ribbon-card {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ribbon-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--warm);
}
.ribbon-text {
  margin-top: 12px;
  color: #33414f;
  line-height: 1.6;
}

.card, .image-panel, .adv-card, .process-step, .contact-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card, .adv-card, .process-step, .contact-side { padding: 24px; }
.card:hover, .adv-card:hover, .process-step:hover { transform: translateY(-2px); }
.card, .adv-card, .process-step, .image-panel img { transition: transform .3s ease, box-shadow .3s ease; }

.section-title { max-width: 760px; }
.section-title.center { margin: 0 auto; text-align: center; }
.section-title.narrow { max-width: 920px; }
.section-title h2 {
  margin: 16px 0 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.section-title p {
  margin: 16px 0 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.78;
}

.feature-band {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.feature-chip {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--line);
  color: #33414f;
  line-height: 1.65;
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.05);
}

.label-chip {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--warm-soft);
  border: 1px solid #ebc99f;
  color: #a96218;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.stack-rows {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.stack-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border: 1px solid var(--line);
}
.stack-row svg { flex: 0 0 auto; color: var(--accent-dark); }
.stack-row span { color: #33414f; line-height: 1.6; }

.image-panel {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.image-fit-tall {
  height: 100%;
  min-height: 100%;
}
.image-fit-rect {
  height: 100%;
  min-height: 100%;
}
.hero-media, .split-media, .core-media { height: 100%; }
.hero-media .image-panel, .split-media .image-panel, .core-media .image-panel { height: 100%; min-height: 100%; }

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-panel:hover img { transform: scale(1.04); }
.image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,24,32,.04), rgba(16,24,32,.76));
}
.image-badge, .image-title { position: absolute; z-index: 2; }
.image-badge {
  top: 20px;
  left: 20px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(16,24,32,.62);
  color: var(--white);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.image-title {
  left: 26px;
  right: 26px;
  bottom: 24px;
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.22;
  font-weight: 600;
}

.services-rail {
  display: grid;
  gap: 16px;
  margin-top: 38px;
}
.service-panel {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px solid #c8d8f0;
  color: var(--accent-dark);
  font-size: 1.1rem;
  font-weight: 700;
}
.service-body h3 {
  margin: 2px 0 0;
  font-size: 1.12rem;
  line-height: 1.25;
}
.service-body p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.advantages-grid { gap: 20px; }
.icon-badge {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid #c8d8f0;
  color: var(--accent-dark);
}
.adv-card h3, .process-step h3, .contact-side h3 {
  margin: 18px 0 0;
  font-size: 1.12rem;
  line-height: 1.32;
}
.adv-card p, .process-step p, .contact-side p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.74;
}

.process-step {
  position: relative;
  min-height: 100%;
}
.process-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-soft);
  border: 1px solid #ebc99f;
  color: #a96218;
  font-size: .9rem;
  font-weight: 700;
}

.contact-shell {
  padding: 10px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #f3f7fd 0%, #ffffff 45%, #f7f1ea 100%);
  box-shadow: var(--shadow);
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 28px;
  padding: 34px;
  border-radius: 26px;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.mini-label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #c8d8f0;
  color: var(--accent-dark);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.contact-points {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
}

.footer {
  background: linear-gradient(180deg, #111920 0%, #17212b 100%);
  border-top: 1px solid rgba(217,224,231,.14);
  color: rgba(226,234,241,.92);
}
.footer-grid { padding: 54px 0; }
.footer-side {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.footer .brand-title, .footer .footer-title { color: var(--white); }
.footer .brand-subtitle, .footer p, .footer a, .footer .footer-note { color: rgba(207,219,229,.82); }
.footer-links { display: grid; gap: 10px; margin-top: 16px; }
.footer-links a:hover { color: var(--white); }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .06s; }
.delay-2 { transition-delay: .12s; }
.delay-3 { transition-delay: .18s; }
.delay-4 { transition-delay: .24s; }

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-only { display: none; }
.desktop-only { display: block; }
.mobile-inline-image { margin-top: 22px; }

@media (max-width: 1280px) {
  .header-row { gap: 18px; }
  .nav { gap: 18px; }
  .nav a { font-size: .88rem; }
  .contact-chip { padding: 12px 18px; }
}

@media (max-width: 1180px) {
  .advantages-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-track { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 980px) {
  :root { --header-height: 76px; }
  .nav, .header-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel.open { display: block; }

  .hero-grid,
  .split-layout,
  .core-layout,
  .advantages-grid,
  .process-track,
  .contact-inner,
  .footer-grid,
  .footer-side {
    grid-template-columns: 1fr !important;
  }

  .hero-media, .split-media, .core-media {
    height: auto;
  }
  .hero-media .image-panel, .split-media .image-panel, .core-media .image-panel {
    height: auto;
    min-height: 360px;
  }

  .mobile-only { display: block; }
  .desktop-only { display: none; }

  .hero { padding-top: 24px; }
  .hero-ribbon { grid-template-columns: 1fr; }
  .process-track { gap: 18px; }
  .service-panel { grid-template-columns: 72px minmax(0,1fr); }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .container { width: min(calc(100% - 24px), var(--container)); }
  .hero { padding-top: 10px; }
  .hero h1 { margin-top: 14px; font-size: 30px; line-height: 1; }
  .site-header,
.header-row,
.mobile-panel {
  width: 100%;
  max-width: 100%;
  padding-left:10px;
  padding-right:10px;
}

.header-row {
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.brand {
  min-width: 0;
}

.brand-title,
.brand-subtitle {
  word-break: break-word;
}
  .section-title h2 { font-size: 24px; }
  .hero-lead, .section-title p, .service-body p, .adv-card p, .process-step p, .contact-side p, .stack-row span, .feature-chip {
    line-height: 1.68;
  }
  .hero-actions, .contact-links { flex-direction: column; align-items: stretch; }
  .btn, .contact-chip { width: 100%; }
  .card, .adv-card, .process-step, .contact-side { padding-left: 20px; padding-right: 20px; }
  .contact-inner { padding: 22px; }
  .service-panel { grid-template-columns: 1fr; gap: 14px; }
  .service-index { width: 58px; height: 58px; }
  .mobile-inline-image { margin-top: 20px; }
  .image-panel { min-height: 300px; }
}
