
:root {
  --bg: #0a101a;
  --bg-elevated: #101827;
  --surface: #ffffff;
  --surface-muted: #f5f7fb;
  --surface-soft: #eef2f8;
  --text: #132033;
  --text-strong: #0b1523;
  --text-inverse: #edf3fb;
  --muted: #627186;
  --line: #d8e0eb;
  --line-strong: rgba(255, 255, 255, 0.12);
  --brand: #1f5fb4;
  --brand-strong: #133e7d;
  --brand-soft: rgba(31, 95, 180, 0.12);
  --accent: #6f829b;
  --shadow-soft: 0 12px 28px rgba(10, 16, 26, 0.08);
  --radius: 22px;
  --container: 1200px;
  --header-height: 84px;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 95, 180, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff, #f4f7fb 36%, #edf2f8 100%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; }
textarea { resize: vertical; }
:focus-visible { outline: 3px solid rgba(31, 95, 180, 0.35); outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--text-strong); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(8, 13, 22, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header__row {
  min-height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text-inverse); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__logo {
  width: 54px; height: 54px; border-radius: 50%; object-fit: contain;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-size: 21px; line-height: 1.05; font-weight: 800; letter-spacing: 0.06em; }
.brand__tag {
  font-size: 12px; color: rgba(237, 243, 251, 0.76);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav__list {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav__link {
  display: inline-flex; align-items: center; min-height: 42px;
  padding: 10px 14px; border-radius: 12px;
  color: rgba(237, 243, 251, 0.88);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.site-nav__link:hover,
.site-nav__link--active { text-decoration: none; background: rgba(255, 255, 255, 0.08); color: #fff; }
.site-nav__actions { display: flex; align-items: center; }

.header-cta, .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 20px;
  border-radius: 14px; border: 1px solid transparent; font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.header-cta, .button--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff; box-shadow: 0 18px 32px rgba(19, 62, 125, 0.22);
}
.button--secondary {
  background: rgba(255, 255, 255, 0.08); color: var(--text-inverse);
  border-color: rgba(255, 255, 255, 0.14);
}
.button--light { background: #fff; color: var(--text-strong); border-color: rgba(19, 32, 51, 0.08); }
.header-cta:hover, .button:hover { text-decoration: none; transform: translateY(-1px); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 14px;
  background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer;
}
.nav-toggle__line { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 99px; }

.hero {
  position: relative; overflow: hidden; padding: 96px 0 78px; color: var(--text-inverse);
  background:
    radial-gradient(circle at 80% 12%, rgba(97, 140, 214, 0.28), transparent 16%),
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(135deg, #07101c 0%, #0e1c31 48%, #15335e 100%);
}
.hero::before {
  content: ""; position: absolute; left: -140px; bottom: -180px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.04); filter: blur(12px);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 40px; align-items: center;
}
.hero__content { max-width: 700px; }
.eyebrow {
  display: inline-flex; align-items: center; min-height: 34px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(237, 243, 251, 0.88); font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero__title, .page-hero__title, .section-title { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hero__title { margin-top: 18px; font-size: clamp(38px, 5vw, 62px); }
.hero__text, .page-hero__text, .section-lead { margin: 0; color: var(--muted); font-size: 18px; }
.hero__text { margin-top: 18px; max-width: 680px; color: rgba(237, 243, 251, 0.82); font-size: 19px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-panel {
  position: relative; padding: 28px; border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: 0 30px 70px rgba(4, 10, 22, 0.38);
}
.hero-panel__logo { width: min(100%, 520px); margin-bottom: 24px; opacity: 0.95; }
.hero-panel__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.hero-panel__item {
  display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px;
  background: rgba(6, 12, 24, 0.34); border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-panel__item strong { color: #fff; font-size: 15px; }
.hero-panel__item span { color: rgba(237, 243, 251, 0.74); font-size: 14px; }
.hero-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }

.hero-highlights__item,
.info-card,
.card,
.process-card,
.contact-card,
.post-card,
.metric-card {
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.hero-highlights__item {
  padding: 18px 18px 16px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-highlights__item strong { display: block; color: #fff; font-size: 16px; margin-bottom: 6px; }
.hero-highlights__item span { display: block; color: rgba(237, 243, 251, 0.76); font-size: 14px; }

.page-hero {
  padding: 54px 0 42px; color: var(--text-inverse);
  background:
    radial-gradient(circle at top right, rgba(97, 140, 214, 0.18), transparent 24%),
    linear-gradient(135deg, #0a121f 0%, #10213a 54%, #173967 100%);
}
.page-hero__title { margin-top: 10px; font-size: clamp(32px, 4vw, 52px); }
.page-hero__text { margin-top: 16px; max-width: 860px; color: rgba(237, 243, 251, 0.8); }
.breadcrumbs { margin-top: 14px; }
.breadcrumbs__list {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0;
  color: rgba(237, 243, 251, 0.8); font-size: 14px;
}
.breadcrumbs__list a { color: rgba(237, 243, 251, 0.84); }
.breadcrumbs__list li:not(:last-child)::after { content: "—"; margin-left: 8px; color: rgba(237, 243, 251, 0.44); }

.section { padding: 72px 0; }
.section-sm { padding: 56px 0; }
.surface-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(245, 248, 252, 0.96));
  border-top: 1px solid rgba(216, 224, 235, 0.7); border-bottom: 1px solid rgba(216, 224, 235, 0.7);
}
.section-title { font-size: clamp(30px, 4vw, 44px); color: var(--text-strong); }
.section-title + .section-lead, .section-title + p { margin-top: 16px; }
.section-lead { max-width: 780px; }

.grid-2, .grid-3, .grid-4, .article-list, .metrics-grid, .projects-grid, .contact-grid, .overview-grid {
  display: grid; gap: 24px;
}
.grid-2, .contact-grid, .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .article-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4, .metrics-grid, .projects-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.info-card, .card, .process-card, .contact-card, .post-card, .article-card, .metric-card {
  height: 100%; padding: 28px; background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(216, 224, 235, 0.84); backdrop-filter: blur(4px);
}
.info-card--dark, .card--dark, .metric-card--dark {
  background: linear-gradient(180deg, rgba(12, 20, 34, 0.96), rgba(16, 24, 39, 0.98));
  border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 24px 50px rgba(4, 10, 22, 0.22); color: var(--text-inverse);
}
.info-card__title, .card__title, .process-card__title, .contact-card__title, .post-card__title {
  margin: 0 0 12px; font-size: 24px; line-height: 1.2; color: var(--text-strong);
}
.info-card--dark .info-card__title, .card--dark .card__title, .metric-card--dark .metric-card__title { color: #fff; }
.card__text, .info-card p, .process-card p, .contact-card p, .post-card__excerpt { margin: 0; color: var(--muted); }
.info-card--dark p, .card--dark .card__text, .metric-card--dark .metric-card__text { color: rgba(237, 243, 251, 0.78); }

.info-list, .contact-list, .bullet-list, .detail-list {
  display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none;
}
.info-list li, .contact-list li, .bullet-list li, .detail-list li {
  position: relative; padding-left: 18px;
}
.info-list li::before, .contact-list li::before, .bullet-list li::before, .detail-list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px;
  border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); transform: translateY(-50%);
}

.metrics-grid { margin-top: 26px; }
.metric-card__title { margin: 14px 0 8px; font-size: 18px; color: var(--text-strong); }
.metric-card__text { margin: 0; color: var(--muted); }
.metric-card__icon, .card__index {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 800;
}
.projects-grid { margin-top: 30px; }

.project-card {
  display: grid; overflow: hidden; padding: 0; background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 224, 235, 0.84); border-radius: 26px; box-shadow: var(--shadow-soft);
}
.project-card__media {
  position: relative; min-height: 210px; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(20, 51, 92, 0.96), rgba(53, 94, 156, 0.88)),
    linear-gradient(135deg, #0f1d31, #1f5fb4);
}
.project-card__shape, .post-card__media { position: absolute; inset: 0; }
.project-card__shape::before, .project-card__shape::after, .post-card__media::before, .post-card__media::after {
  content: ""; position: absolute; border-radius: 28px; transform: rotate(16deg);
}
.project-card__shape::before {
  width: 220px; height: 220px; right: -46px; top: -24px; background: rgba(255, 255, 255, 0.12);
}
.project-card__shape::after {
  width: 180px; height: 180px; left: 22px; bottom: -64px; background: rgba(255, 255, 255, 0.08);
}
.project-card__tag, .post-card__tag {
  position: absolute; top: 18px; left: 18px; z-index: 1;
  display: inline-flex; align-items: center; min-height: 32px; padding: 6px 12px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.project-card__body { padding: 26px 26px 28px; }
.project-card__meta, .post-card__meta, .article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; color: var(--muted); font-size: 14px;
}
.project-card__title, .article-title {
  margin: 0 0 12px; font-size: 26px; line-height: 1.18; color: var(--text-strong);
}
.project-card__result {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--text-strong); font-weight: 700;
}
.process-card { position: relative; padding-top: 84px; }
.process-card__step {
  position: absolute; top: 26px; left: 26px; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; font-weight: 800;
}

.post-card { display: grid; overflow: hidden; padding: 0; }
.post-card__media {
  min-height: 150px;
  background:
    linear-gradient(135deg, rgba(20, 51, 92, 0.94), rgba(111, 130, 155, 0.8)),
    linear-gradient(135deg, #10213a, #1f5fb4);
}
.post-card__media::before { width: 180px; height: 180px; right: -40px; top: -44px; background: rgba(255, 255, 255, 0.12); }
.post-card__media::after { width: 120px; height: 120px; left: 30px; bottom: -32px; background: rgba(255, 255, 255, 0.08); }
.post-card__body { padding: 24px 24px 26px; }
.post-card__title { font-size: 24px; }
.card__link, .post-card__link, .text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700;
}
.note, .small-note { color: var(--muted); font-size: 14px; }
.detail-page { padding: 42px 0 72px; }
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px; align-items: start;
}
.article-content, .article-sidebar {
  padding: 34px; border-radius: 26px; background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(216, 224, 235, 0.84); box-shadow: var(--shadow-soft);
}
.article-content h2, .article-content h3 {
  margin: 28px 0 12px; color: var(--text-strong); line-height: 1.2;
}
.article-content p, .article-content li { color: var(--text); }
.article-content ul, .article-content ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.article-sidebar h3 { margin: 0 0 14px; color: var(--text-strong); }
.sidebar-box + .sidebar-box { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-grid { align-items: stretch; }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--brand); }
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-label { display: grid; gap: 8px; color: var(--text-strong); font-weight: 600; }
.input, .textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.input::placeholder, .textarea::placeholder { color: #8896a8; }

.site-footer {
  margin-top: 24px; padding: 28px 0 36px; color: rgba(237, 243, 251, 0.78);
  background: linear-gradient(180deg, #0b121d, #08111d); border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer a { color: rgba(237, 243, 251, 0.88); }
.site-footer__grid {
  display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 26px; align-items: start;
}
.site-footer__title { margin: 0 0 12px; color: #fff; font-size: 18px; }
.site-footer__text, .site-footer__list { margin: 0; color: rgba(237, 243, 251, 0.72); }
.site-footer__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  padding-top: 24px; margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px;
}
.cta-panel {
  padding: 34px; border-radius: 30px;
  background:
    radial-gradient(circle at right top, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(135deg, #0b1523 0%, #11233b 50%, #1f5fb4 100%);
  color: var(--text-inverse); box-shadow: 0 26px 56px rgba(8, 18, 34, 0.22);
}
.cta-panel h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
.cta-panel p { margin: 0; max-width: 720px; color: rgba(237, 243, 251, 0.82); font-size: 18px; }
.cta-panel__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

@media (max-width: 1080px) {
  .hero__grid, .article-layout, .site-footer__grid { grid-template-columns: 1fr; }
  .projects-grid, .grid-4, .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; flex-shrink: 0; }
  .site-nav {
    position: absolute; top: calc(100% + 8px); right: 16px; left: 16px;
    display: none; flex-direction: column; align-items: stretch; gap: 18px;
    padding: 18px; border-radius: 20px;
    background: rgba(8, 13, 22, 0.98); border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 48px rgba(4, 10, 22, 0.38);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list, .site-nav__actions { display: grid; gap: 8px; }
  .site-nav__link, .header-cta { width: 100%; justify-content: center; }
  .grid-3, .article-list, .grid-2, .contact-grid, .overview-grid { grid-template-columns: 1fr; }
  .hero-highlights { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  .hero { padding: 76px 0 54px; }
  .section { padding: 56px 0; }
  .section-sm, .detail-page { padding: 42px 0; }
  .hero-panel, .info-card, .card, .process-card, .contact-card, .post-card__body, .article-content, .article-sidebar, .cta-panel {
    padding-left: 22px; padding-right: 22px;
  }
  .project-card__body { padding: 22px; }
  .hero__title { font-size: 36px; }
  .page-hero__title { font-size: 32px; }
  .section-title { font-size: 28px; }
  .project-card__title, .post-card__title, .info-card__title, .card__title { font-size: 22px; }
  .projects-grid, .grid-4, .metrics-grid, .form-row { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
