:root {
  --ink: #18212f;
  --muted: #5f6b7a;
  --line: #dce3ec;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --blue: #1768e8;
  --cyan: #13a7c7;
  --green: #3a8f5f;
  --amber: #f2a93b;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(24, 33, 47, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 40px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 227, 236, .86);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}

.header-inner,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-full {
  gap: 0;
}

.brand-logo {
  display: block;
  width: 128px;
  height: auto;
}

.brand-icon {
  display: block;
  width: 38px;
  height: 38px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 34px;
  border-radius: 7px;
  background: #0f2636;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

.site-nav,
.admin-header nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #2d3748;
}

.site-nav a,
.admin-header a {
  padding: 8px 0;
}

.site-nav a:hover,
.admin-header a:hover,
.footer-links a:hover {
  color: var(--blue);
}

.breadcrumbs {
  border-bottom: 1px solid rgba(220, 227, 236, .86);
  background: #fff;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 auto;
  padding: 13px 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs a {
  color: #425064;
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 800;
}

.breadcrumb-separator {
  color: #a7b1bf;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 9px 12px;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #0e1a2b;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 19, 34, .92) 0%, rgba(10, 19, 34, .76) 48%, rgba(10, 19, 34, .42) 100%),
    linear-gradient(0deg, rgba(10, 19, 34, .42), rgba(10, 19, 34, .08));
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: .95;
  transform: scale(1.02);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 62px 0 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

.page-hero h1,
.case-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.case-hero h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero-lead {
  max-width: 700px;
  margin: 24px 0 0;
  font-size: 22px;
  color: rgba(255, 255, 255, .88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 7px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(23, 104, 232, .24);
}

.button.secondary {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1);
  color: inherit;
}

.section .button.secondary,
.admin-card .button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 980px;
  margin-top: 32px;
}

.hero-facts span {
  border-left: 3px solid var(--cyan);
  padding: 10px 14px;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .82);
}

.hero-facts strong {
  display: block;
  color: #fff;
}

.section {
  padding: 82px 0;
}

.section-tint {
  background: var(--soft);
}

.split,
.process,
.seo-panel,
.lead-grid,
.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  line-height: 1.18;
}

.muted,
.section-head p,
.rich-text p,
.service-card p,
.portfolio-card p,
.site-footer p,
.page-hero p,
.case-hero p {
  color: var(--muted);
}

.rich-text {
  font-size: 18px;
}

.rich-text h2,
.rich-text h3 {
  margin: 28px 0 12px;
  font-size: 28px;
}

.rich-text h2:first-child,
.rich-text h3:first-child {
  margin-top: 0;
}

.rich-text p {
  margin: 0 0 16px;
}

.rich-text ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.rich-text li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 24px;
}

.rich-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head p {
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.portfolio-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.service-card {
  padding: 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 24px;
}

.service-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
}

.card-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.steps span {
  grid-row: span 2;
  color: var(--amber);
  font-weight: 900;
  font-size: 22px;
}

.steps p {
  margin: 2px 0 0;
  color: var(--muted);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.portfolio-card {
  overflow: hidden;
}

.portfolio-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 7;
  padding: 28px 34px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portfolio-body {
  padding: 20px;
}

.portfolio-body h3 {
  font-size: 24px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: #344055;
  font-size: 12px;
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.mini-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-dashboard span {
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--soft);
  font-weight: 800;
}

.lead-section {
  padding: 82px 0;
  background: #111b2a;
  color: #fff;
}

.lead-section .muted,
.lead-section p {
  color: rgba(255, 255, 255, .72);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-strip span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
}

.lead-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.form-note a {
  color: #fff;
  text-decoration: underline;
}

.consent-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
  font-weight: 500;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.consent-field a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: min(520px, calc(100% - 36px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-banner a {
  color: var(--blue);
  text-decoration: underline;
}

[hidden] {
  display: none !important;
}

.notice {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  border: 1px solid #b9e1ca;
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #effaf4;
  color: #1f6b42;
}

.notice.error {
  border-color: #f3c0c0;
  background: #fff0f0;
  color: #8d2c2c;
}

.page-hero,
.case-hero {
  padding: 86px 0 70px;
  background: linear-gradient(180deg, #f7f9fc, #fff);
}

.page-hero p,
.case-hero p {
  max-width: 740px;
  font-size: 20px;
}

.case-hero-grid {
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
}

.case-hero-grid > * {
  min-width: 0;
}

.content-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.side-nav,
.case-meta {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.side-nav a {
  border-radius: 6px;
  padding: 10px 12px;
  color: #344055;
}

.side-nav a.active,
.side-nav a:hover {
  background: var(--soft);
  color: var(--blue);
}

.page-content {
  max-width: 790px;
}

.case-image {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  min-height: 320px;
  padding: 36px;
}

.case-image img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
}

.case-meta p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-grid h3 {
  margin-bottom: 12px;
}

.footer-contact-block + .footer-contact-block {
  margin-top: 26px;
}

.footer-contact-block p {
  margin: 0;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-brand .brand-logo {
  width: 154px;
}

.admin-body {
  background: var(--soft);
}

.admin-header {
  min-height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.admin-main {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 60px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-card {
  padding: 22px;
  box-shadow: 0 8px 20px rgba(24, 33, 47, .06);
}

.admin-card h1 {
  margin: 0 0 18px;
  font-size: 30px;
}

.admin-card h2 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.admin-card-head .muted {
  margin: 6px 0 0;
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stat span {
  display: block;
  font-size: 44px;
  font-weight: 900;
  color: var(--blue);
}

.stat p {
  margin: 0;
  color: var(--muted);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.admin-table a {
  color: var(--blue);
  font-weight: 800;
}

.order-input {
  width: 72px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 800;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form.wide {
  max-width: 980px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
}

.login-card {
  max-width: 460px;
  margin: 70px auto;
}

.lead-detail {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.lead-detail p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .site-nav.is-open {
    display: flex;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-facts,
  .service-grid,
  .portfolio-grid,
  .split,
  .process,
  .seo-panel,
  .lead-grid,
  .case-hero-grid,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-nav,
  .case-meta {
    position: static;
  }

  .hero-media {
    opacity: .76;
    transform: scale(1.04);
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .admin-header nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .wrap,
  .narrow,
  .admin-main {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
  }

  .hero h1,
  .page-hero h1,
  .case-hero h1 {
    font-size: 40px;
  }

  .hero-lead,
  .page-hero p,
  .case-hero p {
    font-size: 18px;
  }

  .brand-logo {
    width: 118px;
  }

  .section,
  .lead-section,
  .page-hero,
  .case-hero {
    padding: 54px 0;
  }

  .hero-facts {
    gap: 8px;
  }

  .service-card {
    min-height: auto;
  }

  .form-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}
