:root {
  --navy: #071b36;
  --navy-2: #0b2b55;
  --blue: #0f66b7;
  --blue-2: #1987e0;
  --sky: #eaf5ff;
  --silver: #d8e0e8;
  --silver-2: #f3f6f9;
  --white: #ffffff;
  --ink: #152133;
  --muted: #66758a;
  --line: #d7e0e9;
  --success: #0d7a46;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(7, 27, 54, 0.14);
  --shadow-sm: 0 10px 26px rgba(7, 27, 54, 0.10);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { 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(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 88px 0; }
.section--soft { background: linear-gradient(180deg, #f8fbff 0%, #eef6fc 100%); }
.section--dark { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--white); }
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
}
.section--dark .eyebrow { color: #8ec9ff; }
h1, h2, h3 { line-height: 1.12; margin-top: 0; color: var(--navy); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
h1 { font-size: clamp(2.00rem, 5vw, 3.35rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.50rem, 3vw, 2.35rem); letter-spacing: -.035em; }
h3 { font-size: 1.00rem; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 680px; }
.section--dark .lead { color: #d9e8f7; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; }
.skip-link:focus { left: 12px; top: 12px; background: white; color: var(--navy); padding: 10px 14px; border-radius: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(7,27,54,.08);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; }
.brand img { width: 84px; height: 64px; object-fit: contain; }
.brand-text { display: none; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-weight: 700; color: #30415a; position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--blue); transition: .2s; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--navy); }
.nav-toggle { display: none; border: 0; background: transparent; width: 46px; height: 46px; border-radius: 10px; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; height: 2px; width: 24px; background: var(--navy); margin: 5px auto; transition: .2s; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 21px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { color: white; background: linear-gradient(135deg, var(--blue), var(--blue-2)); box-shadow: 0 10px 26px rgba(15,102,183,.25); }
.btn--secondary { color: var(--navy); background: white; border-color: var(--line); }
.btn--ghost { color: white; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.07); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero { overflow: hidden; background: radial-gradient(circle at 80% 20%, rgba(25,135,224,.22), transparent 28%), linear-gradient(135deg, #f8fbff 0%, #eef6ff 55%, #ffffff 100%); }
.hero-grid { min-height: 680px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-copy { padding: 70px 0; }
.hero-copy h1 span { color: var(--blue); }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 0; }
.badge { padding: 9px 12px; border-radius: 999px; background: rgba(15,102,183,.08); border: 1px solid rgba(15,102,183,.14); color: var(--navy-2); font-size: .9rem; font-weight: 750; }
.hero-art { position: relative; min-height: 530px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 470px; height: 470px; border-radius: 50%; background: linear-gradient(145deg, var(--navy), var(--blue)); box-shadow: var(--shadow); }
.hero-art::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); }
.hero-logo { position: relative; z-index: 2; width: min(520px, 92%); filter: drop-shadow(0 24px 38px rgba(7,27,54,.28)); }

.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 42px; max-width: 650px; }
.stat { border-top: 1px solid var(--line); padding-top: 16px; }
.stat strong { display: block; color: var(--navy); font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: .9rem; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.section-head p { margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: linear-gradient(135deg, var(--navy), var(--blue)); color: white; font-size: 1.45rem; font-weight: 900; }
.card p { color: var(--muted); }
.card-link { color: var(--blue); font-weight: 800; }
.card-link:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.feature-panel { min-height: 430px; border-radius: 28px; padding: 36px; background: linear-gradient(145deg, var(--navy), var(--blue)); color: white; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.feature-panel::before, .feature-panel::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.feature-panel::before { width: 320px; height: 320px; right: -80px; top: -80px; }
.feature-panel::after { width: 180px; height: 180px; left: -60px; bottom: -60px; }
.feature-panel h3 { color: white; font-size: clamp(1.6rem, 3vw, 2.45rem); max-width: 430px; }
.feature-panel p { color: #d9e8f7; max-width: 470px; }
.tool-list { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tool-chip { padding: 10px 13px; border-radius: 10px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); font-weight: 700; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin: 12px 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }

.page-hero { padding: 92px 0 72px; background: radial-gradient(circle at 85% 15%, rgba(25,135,224,.17), transparent 25%), linear-gradient(180deg, #f8fbff, #eef6ff); border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 760px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--blue); font-weight: 700; }

.service-row { display: grid; grid-template-columns: 160px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-number { font-size: 3rem; color: #c9d9ea; font-weight: 900; letter-spacing: -.04em; }
.service-row p { color: var(--muted); max-width: 760px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.service-tags span { background: var(--sky); color: var(--navy); border: 1px solid #cfe4f8; border-radius: 999px; padding: 6px 10px; font-size: .86rem; font-weight: 700; }

.portfolio-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-btn { border: 1px solid var(--line); background: white; color: var(--navy); border-radius: 999px; padding: 9px 14px; font-weight: 750; }
.filter-btn.active { background: var(--navy); color: white; border-color: var(--navy); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { border-radius: var(--radius); overflow: hidden; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.project-card[hidden] { display: none; }
.project-visual { aspect-ratio: 4/3; position: relative; overflow: hidden; display: grid; place-items: end start; padding: 20px; color: white; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.project-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(135deg, rgba(255,255,255,.12) 25%, transparent 25%), linear-gradient(225deg, rgba(255,255,255,.08) 25%, transparent 25%); background-size: 48px 48px; opacity: .45; }
.project-visual span { position: relative; z-index: 1; background: rgba(7,27,54,.7); border: 1px solid rgba(255,255,255,.25); padding: 8px 10px; border-radius: 999px; font-weight: 800; font-size: .82rem; }
.project-copy { padding: 22px; }
.project-copy p { color: var(--muted); margin: 0; }
.note { margin-top: 26px; padding: 16px 18px; border-radius: 12px; background: #f7fbff; border: 1px dashed #bdd7ef; color: #455b75; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: start; }
.contact-panel { border-radius: 24px; padding: 34px; background: linear-gradient(145deg, var(--navy), var(--blue)); color: white; }
.contact-panel h2, .contact-panel h3 { color: white; }
.contact-panel p { color: #d9e8f7; }
.contact-item { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.17); }
.contact-item small { display: block; color: #9fc8ec; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.contact-item strong { font-size: 1.08rem; }
.form-card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
label { font-weight: 750; color: var(--navy); }
input, textarea, select { width: 100%; border: 1px solid #c8d5e3; border-radius: 11px; padding: 12px 13px; background: white; color: var(--ink); outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15,102,183,.12); }
textarea { min-height: 150px; resize: vertical; }
.field-error { min-height: 18px; font-size: .82rem; color: var(--danger); }
.form-status { margin-top: 14px; font-weight: 700; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

.cta { border-radius: 26px; padding: 42px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: linear-gradient(135deg, var(--navy), var(--blue)); color: white; box-shadow: var(--shadow); }
.cta h2 { color: white; margin-bottom: 10px; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.cta p { color: #d9e8f7; max-width: 660px; margin: 0; }

.site-footer { background: #041226; color: #d6e2ee; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 40px; }
.footer-brand img { width: 150px; margin-bottom: 16px; }
.footer-brand p { max-width: 500px; color: #aebfd1; }
.footer-links h3 { color: white; font-size: 1rem; }
.footer-links a { display: block; margin: 9px 0; color: #bed0e3; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; margin-top: 34px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: #91a6ba; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(4,18,38,.82); }
.modal.open { display: grid; }
.modal-card { width: min(760px, 100%); background: white; border-radius: 22px; padding: 28px; position: relative; box-shadow: var(--shadow); }
.modal-close { position: absolute; right: 16px; top: 16px; border: 0; background: #eef4fa; width: 40px; height: 40px; border-radius: 50%; font-size: 1.3rem; }
.modal-preview { aspect-ratio: 16/9; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: white; text-align: center; padding: 30px; margin-bottom: 22px; }
.modal-preview strong { font-size: clamp(1.6rem, 4vw, 2.8rem); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 82px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; background: white; padding: 18px; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 8px 4px; }
  .site-nav .btn { margin-top: 4px; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { padding: 50px 0 70px; min-height: auto; }
  .hero-copy { padding: 0; }
  .hero-art { min-height: 420px; }
  .hero-art::before { width: 390px; height: 390px; }
  .grid-3, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 66px 0; }
  .brand img { width: 72px; height: 56px; }
  .nav-wrap { min-height: 74px; }
  .site-nav { top: 74px; }
  .hero-art { min-height: 330px; }
  .hero-art::before { width: 300px; height: 300px; }
  .hero-art::after { width: 230px; height: 230px; }
  .stats, .grid-3, .grid-2, .portfolio-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-head, .cta, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .service-row { grid-template-columns: 1fr; gap: 6px; }
  .service-number { font-size: 2.2rem; }
  .field--full { grid-column: auto; }
  .cta { padding: 30px; }
  .page-hero { padding: 72px 0 56px; }
}
