:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5b6472;
  --line: #dde2e8;
  --brand: #0d3b66;
  --brand-2: #1f6f8b;
  --accent: #e6a23c;
  --dark: #0a2238;
  --shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 249, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221, 226, 232, .85);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-logo { display: flex; align-items: flex-start; }
 .brand-logo img { display: block; width: clamp(220px, 24vw, 330px); height: auto; }
.brand-tagline {
  margin-top: 4px;
  padding-left: 2px;
  color: var(--brand-2);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}
footer .brand-logo img { width: clamp(210px, 22vw, 300px); }

.brand-main { font-weight: 850; letter-spacing: -0.04em; font-size: 1.34rem; text-transform: uppercase; }
.brand-sub { margin-top: 6px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-2); font-weight: 800; }
.nav-links { display: flex; gap: 28px; align-items: center; font-weight: 700; color: #364152; }
.nav-links a:hover { color: var(--brand); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 19px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: .2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: white; box-shadow: 0 10px 26px rgba(13,59,102,.18); }
.btn-primary:hover { transform: translateY(-1px); background: #0a3258; }
.btn-secondary { border-color: var(--line); background: white; color: var(--ink); }
.btn-secondary:hover { border-color: #b9c3cf; transform: translateY(-1px); }
.btn-hero { background: var(--brand-2); color: white; box-shadow: 0 10px 26px rgba(31,111,139,.20); }
.btn-hero:hover { background: #195f77; transform: translateY(-1px); }

.hero {
  padding: 92px 0 80px;
  background:
    radial-gradient(circle at 88% 18%, rgba(31,111,139,.13), transparent 28%),
    radial-gradient(circle at 12% 86%, rgba(230,162,60,.10), transparent 26%),
    linear-gradient(180deg, #fbfcfd 0%, #f6f7f9 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.18fr .95fr; gap: 44px; align-items: center; }
.eyebrow { color: var(--brand-2); text-transform: uppercase; letter-spacing: .14em; font-weight: 900; font-size: .78rem; }
h1 { margin: 13px 0 22px; font-size: clamp(2.9rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.055em; max-width: 820px; }
.hero-copy { font-size: 1.18rem; color: var(--muted); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: #697386; }

.doc-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 30px;
  transform: rotate(1.5deg);
}
.doc-card-image {
  padding: 18px;
  transform: rotate(.6deg);
}
.doc-card-image img {
  width: 100%;
  border-radius: 18px;
  display: block;
}
.doc-card .sheet { border: 1px solid #e5e9ef; border-radius: 14px; padding: 25px; background: linear-gradient(180deg,#fff,#fbfcfd); }
.sheet-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 22px; }
.sheet-badge { font-size: .72rem; font-weight: 900; letter-spacing: .12em; color: var(--brand-2); text-transform: uppercase; }
.sheet-title { font-size: 1.2rem; font-weight: 850; letter-spacing: -.02em; }
.bad-line, .good-line { height: 9px; border-radius: 999px; margin: 10px 0; }
.bad-line { background: #ead8d8; }
.good-line { background: #d7e6ec; }
.w-90{width:90%}.w-80{width:80%}.w-70{width:70%}.w-62{width:62%}.w-48{width:48%}
.rewrite { margin: 22px 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.arrow { font-size: 1.4rem; color: var(--brand-2); font-weight: 900; }
.mini-box { padding: 14px; border-radius: 12px; background: #f6f8fa; border: 1px solid #e5e9ef; }
.mini-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; color: #748092; }

.section { padding: 84px 0; }
.section.white { background: var(--surface); }
.section.dark { background: var(--dark); color: white; }
.section-head { max-width: 730px; margin-bottom: 42px; }
.section h2 { margin: 8px 0 14px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.045em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.dark .section-head p { color: #b9c7d5; }

.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .num { font-weight: 900; color: var(--accent); font-size: .83rem; letter-spacing: .08em; }
.card h3 { margin: 9px 0 8px; font-size: 1.18rem; }
.card p { margin: 0; color: var(--muted); }

.problem-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.check-list { display: grid; gap: 14px; margin-top: 20px; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.check-mark { width: 26px; height: 26px; border-radius: 50%; background: #e6f1f4; color: var(--brand); display: grid; place-items:center; font-weight:900; }
.problem-panel { background: #eef2f5; border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.problem-panel h3 { margin-top: 0; }
.problem-panel ul { margin: 0; padding-left: 20px; color: #4f5b69; }
.problem-panel li + li { margin-top: 10px; }

.process { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.step { border-top: 2px solid rgba(255,255,255,.22); padding-top: 20px; }
.step-no { color: #72b6c6; font-weight: 900; font-size: .8rem; letter-spacing: .12em; }
.step h3 { margin: 8px 0; font-size: 1.15rem; }
.step p { color: #b9c7d5; margin: 0; }

.cta-box { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 26px; padding: 34px; box-shadow: var(--shadow); }
.cta-box h2 { margin: 0 0 8px; font-size: clamp(1.8rem,3vw,2.7rem); }
.cta-box p { margin: 0; color: var(--muted); }

footer { padding: 36px 0 52px; border-top: 1px solid var(--line); color: #687385; background: white; }
.footer-grid { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; align-items:center; }
.footer-small { font-size: .86rem; }

.page-hero { padding: 74px 0 54px; background: white; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem,5vw,4.4rem); margin-bottom: 16px; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.14rem; }
.service-list { display:grid; grid-template-columns: repeat(2,1fr); gap:18px; }
.service-item { background:#fff; border:1px solid var(--line); border-radius:18px; padding:28px; }
.service-item h3 { margin:0 0 9px; }
.service-item p { color:var(--muted); margin:0; }

.contact-grid { display:grid; grid-template-columns:.75fr 1.25fr; gap:50px; align-items:start; }
.contact-copy p { color:var(--muted); }
.form { background:white; border:1px solid var(--line); border-radius:22px; padding:28px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field { display:grid; gap:7px; }
.field.full { grid-column:1/-1; }
label { font-weight:800; font-size:.9rem; }
input, textarea, select { width:100%; border:1px solid #cfd6df; border-radius:11px; padding:13px 14px; background:#fff; font:inherit; color:var(--ink); }
textarea { min-height:150px; resize:vertical; }
input:focus, textarea:focus, select:focus { outline:2px solid rgba(31,111,139,.18); border-color:var(--brand-2); }
.form-note { color:#788493; font-size:.82rem; margin-top:12px; }

@media (max-width: 850px) {
  .nav-links a:not(.btn) { display:none; }
  .hero-grid, .problem-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards, .process { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 66px; }
  .doc-card { transform:none; }
  .cta-box { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { width:min(100% - 26px,1120px); }
  .nav { min-height:68px; }
  .brand-logo img { width: 190px; }
  .brand-tagline { font-size: .54rem; letter-spacing: .09em; }
  footer .brand-logo img { width: 185px; }
  .nav .btn { padding:10px 14px; font-size:.88rem; }
  .hero { padding:54px 0 58px; }
  .cards, .process, .service-list, .form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .section { padding:64px 0; }
  .rewrite { grid-template-columns:1fr; }
  .arrow { transform:rotate(90deg); text-align:center; }
}

/* Services page */
.services-hero p { max-width: 620px; }
.service-flow { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.service-flow-card { background:#f7f9fb; border:1px solid var(--line); border-radius:20px; padding:26px; }
.service-flow-card .num { color:var(--brand-2); font-weight:900; font-size:.78rem; letter-spacing:.12em; }
.service-flow-card h3 { margin:9px 0 8px; font-size:1.16rem; }
.service-flow-card p { margin:0; color:var(--muted); }
.services-difference .dark-copy { color:#b9c7d5; font-size:1.08rem; max-width:650px; }
.difference-list { display:grid; gap:16px; }
.difference-list > div { border-top:1px solid rgba(255,255,255,.22); padding-top:18px; display:grid; gap:4px; }
.difference-list strong { font-size:1.06rem; }
.difference-list span { color:#b9c7d5; }
@media (max-width: 850px) { .service-flow { grid-template-columns:1fr 1fr; } .services-hero-grid { grid-template-columns:1fr; } .services-hero-copy { max-width: none; } }
@media (max-width: 560px) { .service-flow { grid-template-columns:1fr; } }
@media (max-width: 850px) { .service-feature { grid-template-columns:1fr; } }

.services-hero-grid { display:grid; grid-template-columns: .88fr 1.12fr; gap:40px; align-items:center; }
.services-hero-copy { max-width: 620px; }
.services-eyebrow { font-size: .96rem; letter-spacing: .16em; }
.services-hero p { max-width: 620px; }
.services-hero-media img { width:100%; border-radius:24px; border:1px solid var(--line); box-shadow: var(--shadow); display:block; }

.service-feature { display:grid; grid-template-columns: 1fr 1fr; gap:24px; align-items:stretch; margin-bottom:24px; }
.service-feature-text { display:flex; flex-direction:column; justify-content:center; min-height:100%; }
.service-feature-text h3 { margin:0 0 12px; font-size:1.45rem; }
.service-feature-text p { font-size:1.02rem; }
.service-feature-media { min-height:100%; }
.service-feature-media img { width:100%; height:100%; min-height:320px; object-fit:cover; border-radius:18px; border:1px solid var(--line); box-shadow: var(--shadow); display:block; }
