:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-alt: #eef2f4;
  --text: #111111;
  --muted: #44525e;
  --line: #d6dde1;
  --brand: #2d5068;
  --brand-2: #223f53;
  --brand-soft: #eef4f7;
  --accent: #b9e33b;
  --accent-strong: #a9d22d;
  --success: #739f1c;
  --shadow: 0 18px 50px rgba(17, 24, 28, 0.08);
  --shadow-strong: 0 24px 80px rgba(20, 35, 46, 0.14);
  --radius: 22px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(184,223,56,.18), transparent 20%),
    linear-gradient(180deg, #f7f9fa 0%, #eff4f6 100%);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216,224,229,.85);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 82px; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .95rem; font-weight: 800; letter-spacing: -.02em;
}
.brand-logo {
  width: 64px; height: 64px; border-radius: 16px; object-fit: contain;
  object-position: center;
  padding: 6px;
  background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(216,224,229,.8);
}
.brand-text { line-height: 1.05; }
.brand-text strong { display: block; font-size: 1rem; }
.brand-text small { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: .18rem; }
.nav-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-2); }
.nav-group { display: flex; align-items: center; gap: 1.2rem; }
.nav-primary { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--brand-2); position: relative; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--brand-2);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: .95rem 1.3rem; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; transition: .2s ease; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover, .btn-accent:hover, .btn-secondary:hover { transform: translateY(-1px); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #173042; box-shadow: var(--shadow); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.hero {
  padding: 6rem 0 4.5rem;
}
.hero-grid, .split {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.2rem; align-items: center;
}
.hero-copy { position: relative; }
.hero-copy::after {
  content: ""; position: absolute; right: -2rem; top: 1.8rem; width: 90px; height: 90px;
  background: linear-gradient(135deg, rgba(184,223,56,.8), rgba(184,223,56,.25));
  clip-path: polygon(0 0, 100% 50%, 0 100%); opacity: .8;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem;
  border-radius: 999px; background: rgba(184,223,56,.18); color: var(--brand-2);
  font-size: .9rem; font-weight: 800;
}
h1, h2, h3 { line-height: 1.05; letter-spacing: -.035em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); max-width: 11ch; }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.3rem; }
.lead { font-size: clamp(1.06rem, 2vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.hero-card, .panel, .card, .stat, .price, .step, .contact-card {
  background: var(--surface); border: 1px solid rgba(216,224,229,.95); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card { padding: 1.3rem; box-shadow: var(--shadow-strong); }
.mockup {
  border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #1f3f55, #274b63); color: #fff;
}
.mockup-bar { display: flex; gap: .45rem; padding: .8rem 1rem; background: rgba(255,255,255,.08); }
.mockup-bar span { width: 11px; height: 11px; border-radius: 999px; background: rgba(255,255,255,.65); }
.mockup-body { padding: 1.2rem; display: grid; gap: 1rem; }
.mockup-pane {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 1rem;
}
.mockup-pane.accent-pane {
  background: linear-gradient(135deg, rgba(184,223,56,.22), rgba(184,223,56,.08));
}
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1.3rem; }
.hero-stat {
  padding: 1rem; border-radius: 18px; background: rgba(255,255,255,.76); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-stat strong { display: block; font-size: 1.3rem; color: var(--brand-2); }
.hero-stat span { color: var(--muted); font-size: .92rem; }
.section { padding: 4.7rem 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.96)); }
.grid-3, .grid-4, .grid-2 { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card, .stat, .price, .step, .contact-card { padding: 1.45rem; }
.kicker { color: var(--brand); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; margin-bottom: .85rem; }
.card p, .panel p, .step p, .price p, .contact-card p { color: var(--muted); }
.icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(39,75,99,.12), rgba(184,223,56,.22));
  color: var(--brand-2); font-size: 1.35rem; margin-bottom: 1rem;
}
.badges, .check-list { display: flex; flex-wrap: wrap; gap: .65rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.badges li, .pill {
  padding: .55rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600;
}
.check-list { display: grid; gap: .85rem; }
.check-list li {
  background: rgba(255,255,255,.74); border: 1px solid var(--line); border-radius: 16px; padding: .95rem 1rem;
}
.highlight {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
}
.highlight p, .highlight li { color: rgba(255,255,255,.88); }
.cta {
  padding: 2.4rem; display: grid; gap: 1rem;
  background: linear-gradient(135deg, #274b63 0%, #1f3f55 60%, #355f7a 100%);
  color: #fff; border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow-strong);
}
.cta p { color: rgba(255,255,255,.85); }
.footer { padding: 2rem 0 3rem; color: var(--muted); }
.footer-wrap {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 1.4rem;
}
.page-hero { padding: 4.8rem 0 2rem; }
.page-hero p { max-width: 60ch; }
.note {
  border-left: 4px solid var(--accent); padding: .95rem 1rem; background: rgba(184,223,56,.12); border-radius: 14px;
}
.portfolio-item { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.portfolio-visual {
  aspect-ratio: 16/10; border-radius: 18px; background: linear-gradient(135deg, #eef5f8, #f4f9df); border: 1px solid var(--line);
  display: grid; place-items: center; padding: 1rem; color: var(--brand-2); font-weight: 800; text-align: center; position: relative; overflow: hidden;
}
.portfolio-visual::before {
  content: ""; position: absolute; inset: 14px; border-radius: 14px; border: 1px solid rgba(45,80,104,.15);
}
.portfolio-visual::after {
  content: ""; position: absolute; right: 18px; bottom: 18px; width: 36px; height: 36px; background: rgba(184,223,56,.75);
}
.logo-panel {
  background: linear-gradient(180deg, #ffffff, #f6fafb);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}
.logo-panel img { width: 100%; max-width: 270px; margin: 0 auto; border-radius: 12px; }
.muted { color: var(--muted); }
.spacer-sm { height: .7rem; }
@media (max-width: 960px) {
  .hero-grid, .split, .grid-3, .grid-4, .grid-2, .hero-stats { grid-template-columns: 1fr; }
  .hero-copy::after { display: none; }
  .nav { padding: .7rem 0; }
  .menu-toggle { display: inline-flex; }
  .nav-group { position: relative; }
  .nav-links[data-menu] {
    display: none; position: absolute; right: 0; top: calc(100% + .75rem); min-width: 260px;
    background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; box-shadow: var(--shadow-strong);
    flex-direction: column; align-items: stretch;
  }
  .nav-links[data-menu].is-open { display: flex; }
  .nav-primary { flex-direction: column; align-items: stretch; }
}
.mode-toggle {
  white-space: nowrap;
  min-width: 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 700;
}
.map-card { padding: 0; overflow: hidden; }
.map-shell {
  min-height: 340px;
  width: 100%;
  background: linear-gradient(135deg, #eef5f8, #f4f9df);
}
html[data-theme='dark'] {
  --bg: #0d1418;
  --surface: #101a21;
  --surface-alt: #0f171d;
  --text: #eef5f7;
  --muted: #a0b0ba;
  --line: #21303a;
  --brand: #7aa4c1;
  --brand-2: #d9f066;
  --brand-soft: #15212a;
  --accent: #c5ef49;
  --accent-strong: #d9f066;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.45);
}
html[data-theme='dark'] body {
  background: linear-gradient(180deg, #0c1216 0%, #111a20 100%);
}
html[data-theme='dark'] .topbar { background: rgba(8, 13, 17, 0.92); }
html[data-theme='dark'] .btn-secondary,
html[data-theme='dark'] .hero-stat,
html[data-theme='dark'] .badges li,
html[data-theme='dark'] .pill,
html[data-theme='dark'] .check-list li,
html[data-theme='dark'] .logo-panel,
html[data-theme='dark'] .nav-links[data-menu] { background: #111b22; color: var(--text); }
html[data-theme='dark'] .btn-secondary { border-color: var(--line); color: #eef5f7; }
html[data-theme='dark'] .nav-links a { color: #d7e2e8; }
html[data-theme='dark'] .nav-links a:hover,
html[data-theme='dark'] .nav-links a.active { color: #d9f066; }
html[data-theme='dark'] .btn-accent { color: #102229; }
html[data-theme='dark'] .highlight .kicker { color: #173042; opacity: 0.95; }
html[data-theme='dark'] .portfolio-visual { background: linear-gradient(135deg, #13202a, #1b2d38); }
html[data-theme='dark'] .note { background: rgba(197,239,73,.12); }
@media (max-width: 640px) {
  .btn { width: 100%; }
  .hero { padding-top: 4.2rem; }
  .brand-logo { width: 56px; height: 56px; }
  .brand-text small { max-width: 18ch; }
  .nav-group { gap: .6rem; }
  .mode-toggle {
    display: inline-flex;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    font-size: 1.3rem;
    white-space: nowrap;
  }
  .menu-toggle { width: 44px; height: 44px; }
}
