:root {
  --navy: #0a2d4f;
  --ink: #20334a;
  --muted: #62748a;
  --line: #dce5ed;
  --surface: #f5f8fb;
  --white: #ffffff;
  --cloud: #00a8c6;
  --cloud-dark: #087c94;
  --itpros: #5875e8;
  --itpros-dark: #3f58bb;
  --success: #167354;
  --shadow: 0 18px 50px rgba(16, 42, 67, 0.11);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.cloud { --accent: var(--cloud); --accent-dark: var(--cloud-dark); --accent-soft: #e9f8fb; }
body.itpros { --accent: var(--itpros); --accent-dark: var(--itpros-dark); --accent-soft: #eef1ff; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
}

.skip-link:focus { transform: translateY(0); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(210,224,235,.86);
  backdrop-filter: blur(14px);
}

.nav-wrap { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand svg { width: auto; height: 43px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none;
  color: #38506a;
  font-size: 14px;
  font-weight: 650;
  padding: 10px 11px;
  border-radius: 10px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); }
.site-nav .nav-cta { margin-left: 7px; color: #fff; background: var(--accent-dark); }
.site-nav .nav-cta:hover { color: #fff; background: var(--navy); }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; padding: 9px; border-radius: 10px; color: var(--navy); }
.menu-toggle svg { width: 25px; height: 25px; }

.hero { position: relative; overflow: hidden; padding: 72px 0 68px; background: linear-gradient(135deg, #fff 0%, #f5f9fc 68%, var(--accent-soft) 100%); }
.hero::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -180px;
  top: -180px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: .72;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--accent-dark); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); line-height: 1.14; letter-spacing: -.028em; }
h1 { margin: 0 0 22px; font-size: clamp(42px, 5.2vw, 67px); max-width: 760px; }
.service-hero h1 { font-size: clamp(38px, 4.3vw, 58px); }
.lead { margin: 0; max-width: 730px; color: #465d74; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 19px; border: 1px solid transparent; border-radius: 12px; background: var(--accent-dark); color: #fff; text-decoration: none; font-weight: 750; box-shadow: 0 9px 24px rgba(18, 49, 76, .12); }
.button:hover { background: var(--navy); transform: translateY(-1px); }
.button.secondary { background: #fff; color: var(--navy); border-color: #cfdce7; box-shadow: none; }
.button.secondary:hover { border-color: var(--accent); color: var(--accent-dark); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 1.24 / 1; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.hero-badge { position: absolute; left: -22px; bottom: 24px; max-width: 270px; padding: 16px 18px; border: 1px solid rgba(205,221,232,.9); border-radius: 17px; background: rgba(255,255,255,.94); box-shadow: 0 14px 35px rgba(13,45,75,.14); font-size: 14px; line-height: 1.45; }
.hero-badge strong { display: block; color: var(--navy); font-size: 16px; }

.trust-strip { border-block: 1px solid var(--line); background: #fff; }
.trust-grid { min-height: 90px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-item { min-height: 42px; padding: 0 24px; display: grid; place-content: center; border-left: 1px solid var(--line); color: #405870; font-size: 14px; font-weight: 700; text-align: center; }
.trust-item:first-child { border-left: 0; }

.section { padding: 88px 0; }
.section.alt { background: var(--surface); }
.section.dark { color: #d8e6f3; background: #0a2d4f; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .section-intro { color: #c3d2df; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-head > div { max-width: 760px; }
h2 { margin: 0 0 14px; font-size: clamp(31px, 3.5vw, 47px); }
h3 { margin: 0 0 10px; font-size: 21px; }
.section-intro { margin: 0; color: var(--muted); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { min-height: 100%; padding: 27px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.card { text-decoration: none; }
a.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 42%, #dce5ed); box-shadow: 0 16px 38px rgba(20, 49, 74, .09); }
.card p { margin: 0; color: #64778b; }
.card-link { display: inline-flex; margin-top: 18px; color: var(--accent-dark); font-size: 14px; font-weight: 800; }
.icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 21px; border-radius: 13px; color: var(--accent-dark); background: var(--accent-soft); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media img { width: 100%; aspect-ratio: 1.25 / 1; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.check-list { display: grid; gap: 13px; margin: 26px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 31px; color: #445b72; }
.check-list li::before { content: "✓"; position: absolute; top: 0; left: 0; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; font-weight: 900; }
.dark .check-list li { color: #d5e1eb; }

.statement { padding: 36px; border-left: 5px solid var(--accent); border-radius: 0 20px 20px 0; background: var(--accent-soft); }
.statement p { margin: 0; color: var(--navy); font-size: clamp(21px, 2.5vw, 30px); font-weight: 760; line-height: 1.38; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.stat strong { display: block; color: var(--accent-dark); font-size: 36px; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: #536b82; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.step { position: relative; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 50%; background: var(--accent-dark); color: #fff; font-weight: 850; }
.step p { margin: 0; color: var(--muted); }

.architecture { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; align-items: stretch; }
.arch-node { position: relative; padding: 21px 15px; display: grid; place-content: center; min-height: 120px; border: 1px solid #cfdae5; border-radius: 16px; background: #fff; color: var(--navy); font-weight: 800; text-align: center; }
.arch-node:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 42%; z-index: 2; color: var(--accent-dark); font-size: 21px; }
.arch-node.highlight { color: #fff; border-color: var(--accent-dark); background: var(--accent-dark); }

.service-hero { padding: 66px 0 58px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--accent-dark); text-decoration: none; }
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 52px; align-items: start; }
.side-card { position: sticky; top: 105px; padding: 26px; border-radius: 20px; background: var(--navy); color: #d8e5ef; }
.side-card h3 { color: #fff; }
.side-card p { color: #d3dfea; }
.side-card .button { width: 100%; background: var(--accent); color: #072c45; }
.side-card .button:hover { background: #fff; }
.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.deliverable { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.deliverable strong { display: block; margin-bottom: 6px; color: var(--navy); }
.deliverable p { margin: 0; color: var(--muted); font-size: 15px; }

.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.case .tag { display: inline-flex; margin-bottom: 15px; padding: 5px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.case dl { display: grid; gap: 13px; margin: 18px 0 0; }
.case dt { color: var(--navy); font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.case dd { margin: 2px 0 0; color: #5e7287; }

.faq { display: grid; gap: 11px; }
.faq details { border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 20px; color: var(--navy); font-weight: 780; }
.faq p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

.cta-band { padding: 48px 0; background: var(--accent-soft); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta-inner h2 { margin-bottom: 8px; font-size: clamp(28px,3vw,40px); }
.cta-inner p { margin: 0; color: #526b81; }

.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 50px; }
.contact-card { padding: 28px; border-radius: 20px; background: var(--navy); color: #d9e6f0; }
.contact-card h3 { color: #fff; }
.contact-card a { color: #fff; font-weight: 750; }
.contact-list { display: grid; gap: 17px; margin-top: 24px; }
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: 14px; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #cbd8e3; border-radius: 11px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.field textarea { min-height: 135px; resize: vertical; }
.form-note { grid-column: 1 / -1; margin: -3px 0 0; color: var(--muted); font-size: 13px; }
.form-status { grid-column: 1 / -1; margin: 0; color: var(--success); font-weight: 700; }

.site-footer { padding: 56px 0 24px; color: #bed0df; background: #071f36; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .85fr .85fr; gap: 50px; }
.footer-brand svg { height: 42px; width: auto; }
.footer-brand p { max-width: 500px; }
.footer-title { margin: 0 0 14px; color: #fff; font-size: 14px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #c4d4e1; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #8fa7ba; font-size: 13px; }

@media (max-width: 980px) {
  .menu-toggle { display: grid; place-items: center; }
  .site-nav { position: absolute; top: 78px; left: 20px; right: 20px; margin: 0; padding: 16px; display: none; align-items: stretch; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 13px; }
  .site-nav .nav-cta { margin: 5px 0 0; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-media { max-width: 720px; }
  .hero-badge { left: 18px; }
  .cards { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .architecture { grid-template-columns: 1fr 1fr; }
  .arch-node:not(:last-child)::after { display: none; }
  .service-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { min-height: 70px; }
  .brand svg { height: 39px; }
  .site-nav { top: 70px; left: 14px; right: 14px; }
  .hero, .service-hero { padding: 48px 0; }
  h1 { font-size: 39px; }
  .hero-actions, .button { width: 100%; }
  .hero-media img { border-radius: 21px; }
  .hero-badge { position: static; max-width: none; margin: -12px 14px 0; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { min-height: 66px; padding: 10px; border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(odd) { border-left: 0; }
  .section { padding: 64px 0; }
  .section-head, .cta-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .cards, .stats, .steps, .architecture, .deliverables, .case-grid, .form, .footer-grid { grid-template-columns: 1fr; }
  .field.full, .form-note, .form-status { grid-column: auto; }
  .statement { padding: 26px; }
  .cta-inner .button { width: 100%; }
}

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