:root {
  --primary: #2563eb;
  --primary-deep: #1d4ed8;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe4f0;
  --soft: #f6f9ff;
  --white: #ffffff;
  --sidebar: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8fbff;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 20px;
  color: var(--muted);
  border: 1px dashed rgba(37, 99, 235, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.empty-state-large {
  min-height: 280px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: white;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  flex: 0 0 52px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 16px;
  flex: 0 0 58px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy small {
  color: #6b7a90;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button,
.ghost-button,
.danger-button,
.save-button,
.admin-menu-item,
.service-item,
.project-rail-item {
  border: 0;
  border-radius: 16px;
  cursor: pointer;
}

.button,
.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.button.secondary,
.ghost-button {
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: white;
  box-shadow: none;
}

.danger-button {
  min-height: 42px;
  padding: 0 16px;
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, 0.18);
  background: white;
}

.save-button,
.ghost-button {
  min-height: 42px;
  padding: 0 16px;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 0;
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(18px);
}

.public-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 22px;
  border: 1px solid rgba(219, 228, 240, 0.95);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.public-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.public-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: #324155;
  border-radius: 999px;
  font-weight: 700;
}

.public-menu a:hover {
  color: var(--primary);
  background: var(--soft);
}

.public-cta {
  min-width: 170px;
}

.hero-surface {
  padding: 42px 0 36px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  padding: 28px 0 10px;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 10px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(42px, 5vw, 76px);
}

h2 {
  max-width: 820px;
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 56px);
}

h3 {
  font-size: 28px;
}

.hero-text,
.section-top p,
.service-focus-copy p,
.project-overlay p,
.news-body p,
.contact-copy p {
  color: var(--muted);
}

.hero-text {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 22px;
}

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

.hero-visual {
  overflow: hidden;
  border: 1px solid rgba(219, 228, 240, 0.95);
  border-radius: 32px;
  background: white;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.2);
}

.highlight-item {
  padding: 26px 28px;
  color: white;
}

.highlight-item + .highlight-item {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.highlight-item strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.highlight-item span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.content-section {
  padding: 44px 0 0;
}

.muted-section {
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.75), transparent);
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-top p {
  max-width: 620px;
  margin: 0;
  font-size: 18px;
}

.service-stage {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-item {
  padding: 18px 18px 20px;
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}

.service-item.active {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.12);
}

.service-item-tag,
.service-chip,
.project-label,
.news-date {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.service-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.service-item strong {
  max-width: 280px;
  font-size: 28px;
  line-height: 1.2;
}

.service-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.service-focus {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.service-focus-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.service-focus-copy {
  padding: 34px;
}

.service-focus-copy h3 {
  margin-top: 14px;
  font-size: 34px;
}

.service-focus-copy p {
  margin-top: 16px;
  font-size: 18px;
}

.project-stage {
  display: grid;
  gap: 22px;
}

.project-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 480px);
  gap: 24px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.project-detail-media img {
  width: 100%;
  min-height: 360px;
  border-radius: 20px;
  object-fit: cover;
}

.project-detail-copy {
  display: grid;
  align-content: start;
}

.project-detail-copy h3 {
  margin-top: 14px;
  font-size: clamp(34px, 4vw, 54px);
}

.project-detail-summary {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.project-detail-body {
  margin-top: 18px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.project-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: white;
  text-align: left;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-card-body {
  padding: 18px 18px 20px;
}

.project-card-body strong {
  display: block;
  font-size: 18px;
}

.project-card-body p {
  margin: 10px 0 0;
  color: var(--muted);
}

.project-card.active {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1), var(--shadow);
}

.partner-block {
  margin-top: 28px;
  padding-top: 8px;
}

.partner-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

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

.partner-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 14px;
  min-height: 180px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f8fbff;
  text-align: center;
}

.partner-logo {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-card strong,
.news-body h3 {
  display: block;
  margin-top: 0;
}

.partner-card span {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-card {
  overflow: hidden;
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-caption {
  padding: 14px 16px 16px;
  font-weight: 700;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-body {
  padding: 22px;
}

.news-body p {
  margin: 14px 0 0;
}

.news-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--primary);
  font-weight: 700;
}

.article-page {
  padding-bottom: 40px;
}

.article-shell {
  padding: 32px 0 0;
}

.article-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 700;
}

.article-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: white;
  box-shadow: var(--shadow);
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
}

.article-copy h1 {
  max-width: 100%;
  margin-top: 18px;
  font-size: clamp(34px, 4.6vw, 62px);
}

.article-summary {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 28px;
}

.article-content {
  max-width: 880px;
  margin-top: 28px;
}

.article-content p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.8;
}

.article-related {
  margin-top: 26px;
}

.service-detail-button {
  margin-top: 18px;
}

.service-page {
  padding-bottom: 40px;
}

.service-shell {
  padding: 32px 0 0;
}

.service-detail-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: white;
  box-shadow: var(--shadow);
}

.service-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.service-detail-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.service-detail-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #eef4ff;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-image-primary,
.service-detail-image-secondary {
  min-height: 520px;
}

.service-detail-copy {
  padding: 18px 6px 0;
}

.service-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.service-detail-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 34px;
  padding: 0 12px;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  font-weight: 800;
}

.service-detail-copy h1 {
  max-width: 100%;
  margin-top: 18px;
  font-size: clamp(34px, 4.8vw, 60px);
}

.service-detail-points {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.service-detail-points li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 18px;
}

.service-detail-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

.service-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 28px;
}

.service-detail-prose p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.85;
}

.service-side-card {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.95), white);
  box-shadow: var(--shadow);
}

.service-side-card p {
  margin: 0;
  color: var(--muted);
}

.service-related {
  margin-top: 26px;
}

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

.service-related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.service-related-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-related-body {
  padding: 22px;
}

.service-related-body p {
  margin: 14px 0 0;
  color: var(--muted);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.contact-copy,
.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.contact-card {
  display: grid;
  gap: 14px;
}

.contact-row {
  display: grid;
  gap: 4px;
}

.contact-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.map-frame {
  margin-top: 18px;
}

.map-frame iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 24px;
}

.site-footer {
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.admin-body {
  min-height: 100vh;
  background: #f5f8fe;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  padding: 16px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

.admin-menu {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.admin-menu-item {
  min-height: 48px;
  padding: 0 16px;
  color: #334155;
  text-align: left;
  font-weight: 700;
  background: transparent;
}

.admin-menu-item.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.admin-main {
  padding: 26px;
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-subtitle {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.admin-card + .admin-card {
  margin-top: 16px;
}

.admin-card-header {
  padding: 20px 22px 0;
}

.admin-card-body {
  padding: 20px 22px 22px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--ink);
  border: 1px solid #cdd8ea;
  border-radius: 14px;
  background: white;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.repeat-list {
  display: grid;
  gap: 14px;
}

.repeat-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}

.repeat-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 14px;
}

.login-wrap {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin-top: 18px;
  font-size: 32px;
}

.login-card .field {
  margin-top: 14px;
}

.message {
  min-height: 24px;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 800;
}

.modal-open {
  overflow: hidden;
}

.upload-field {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.upload-preview {
  position: relative;
  overflow: hidden;
  border: 1px dashed #b7c9d0;
  border-radius: 18px;
  background: #f8fbff;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview.is-logo {
  display: grid;
  place-items: center;
  min-height: 160px;
}

.upload-preview.is-logo img {
  width: 100%;
  max-width: 180px;
  height: auto;
  max-height: 140px;
  object-fit: contain;
}

.upload-preview.is-hero {
  aspect-ratio: 16 / 10;
}

.upload-preview.is-gallery {
  aspect-ratio: 1;
}

.upload-preview.is-card {
  aspect-ratio: 16 / 9;
}

.upload-placeholder {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.upload-controls {
  display: grid;
  gap: 10px;
}

.field-hint {
  color: var(--muted);
  font-size: 13px;
}

.upload-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.crop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
}

.crop-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.crop-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 0;
}

.crop-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  padding: 22px;
}

.crop-stage {
  min-height: 420px;
  overflow: hidden;
  border-radius: 20px;
  background: #eef4ff;
}

.crop-stage img {
  max-width: 100%;
}

.crop-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.crop-actions {
  display: grid;
  gap: 10px;
}

@media (max-width: 1200px) {
  .hero-layout,
  .service-stage,
  .project-stage,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .article-hero {
    grid-template-columns: 1fr;
  }

  .service-detail-hero,
  .service-detail-body,
  .service-related-grid,
  .project-featured,
  .project-rail {
    grid-template-columns: 1fr;
  }

  .service-detail-gallery {
    grid-template-columns: 1fr;
  }

  .service-detail-image-primary,
  .service-detail-image-secondary {
    min-height: 320px;
  }

  .feature-strip,
  .partner-grid,
  .gallery-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 28px, 1360px);
  }

  .public-nav,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .public-menu {
    justify-content: start;
  }

  .feature-strip,
  .partner-grid,
  .gallery-grid,
  .news-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .upload-field,
  .crop-body {
    grid-template-columns: 1fr;
  }

  .section-top,
  .admin-topbar {
    align-items: start;
    flex-direction: column;
  }
}
