:root {
  --brand-primary: #1f3a5f;
  --brand-secondary: #0f766e;
  --ink: #132238;
  --muted: #607087;
  --surface: #f5f7fa;
  --paper: #ffffff;
  --line: #dce3ea;
  --danger: #b42318;
  --success: #067647;
  --shadow: 0 16px 38px rgba(15, 31, 51, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 88px 0; }
.page-main { min-height: 58vh; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: #fff; }
.muted { color: var(--muted); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.heading-lg, .hero-title {
  margin: 0;
  max-width: 850px;
  color: var(--ink);
  font-size: 56px;
  font-weight: 780;
  line-height: 1.08;
}
.section--dark .heading-lg, .section--dark .hero-title { color: #fff; }
.heading-md { margin: 0 0 28px; font-size: 38px; line-height: 1.15; }
.section-description, .hero-description {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.section--dark .section-description { color: #cbd5e1; }
.section-heading { max-width: 760px; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--brand-primary); color: #fff; }
.button--primary:hover { background: #162d4d; }
.button--secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button--secondary:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.button--small { min-height: 40px; padding: 8px 14px; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--brand-primary); font-size: 14px; font-weight: 800; }
.text-link:hover { color: var(--brand-secondary); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(220, 227, 234, .9);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 11px; font-weight: 800; }
.brand-name { color: var(--ink); font-size: 16px; white-space: nowrap; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.brand-logo { width: 58px; height: 58px; flex: 0 0 58px; object-fit: contain; object-position: center; }
.primary-nav { display: flex; align-items: center; gap: 2px; }
.nav-link { border-radius: 5px; padding: 9px 11px; color: #435166; font-size: 14px; font-weight: 700; }
.nav-link:hover { background: #eef2f6; color: var(--ink); }
.nav-link.is-active { background: var(--ink); color: #fff; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 8px 10px; color: var(--ink); font-size: 13px; font-weight: 800; }

.hero { position: relative; min-height: 82svh; overflow: hidden; background: var(--ink); }
.hero-grid { position: relative; display: flex; min-height: 82svh; align-items: center; }
.hero-copy { position: relative; z-index: 2; max-width: 780px; padding: 90px 0; color: #fff; }
.hero .eyebrow { display: inline-flex; margin-bottom: 23px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; background: rgba(255,255,255,.1); padding: 8px 14px; color: #fff; backdrop-filter: blur(10px); }
.hero .hero-title { color: #fff; font-size: 72px; font-weight: 850; letter-spacing: 0; }
.hero .hero-description { max-width: 670px; margin: 22px 0 0; color: #e5e7eb; font-size: 18px; line-height: 1.65; }
.hero-actions { margin-top: 33px; }
.hero-actions .button--primary { background: var(--brand-secondary); }
.hero-actions .button--secondary { border-color: #fff; background: #fff; }
.hero-actions, .cta-actions, .admin-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media, .intro-image { position: relative; overflow: hidden; border-radius: 7px; background: #e7edf3; box-shadow: var(--shadow); }
.hero-media { position: absolute; inset: 0; z-index: 0; min-height: 0; border-radius: 0; box-shadow: none; }
.hero-media::after { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.62) 48%, rgba(0,0,0,.18) 100%); content: ""; pointer-events: none; }
.hero-image, .cover-image { width: 100%; height: 100%; object-fit: cover; }
.hero-media .image-editor { position: absolute; inset: 0; }
.hero-media .hero-image { position: absolute; inset: 0; }
.stats-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-item { display: flex; min-height: 0; align-items: baseline; gap: 16px; padding: 30px 0; border-right: 0; }
.stat-value { display: block; color: var(--ink); font-size: 37px; font-weight: 850; line-height: 1; }
.stat-label { max-width: 250px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.45; }

.proof-section { border-bottom: 1px solid var(--line); background: #edf2f6; padding: 82px 0; }
.proof-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(560px, 1.2fr); gap: 58px; align-items: center; }
.proof-copy .heading-lg { max-width: 560px; font-size: 48px; }
.proof-source { display: inline-flex; margin-top: 22px; color: var(--brand-primary); font-size: 12px; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(31,58,95,.3); text-underline-offset: 4px; }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.proof-card { min-height: 245px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 24px; box-shadow: 0 10px 28px rgba(15,31,51,.06); }
.proof-value { display: block; color: var(--brand-secondary); font-size: 36px; font-weight: 900; line-height: 1; }
.proof-card h3 { margin: 18px 0 10px; color: var(--ink); font-size: 18px; line-height: 1.3; }
.proof-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 38px; }
.project-grid--spaced { margin-top: 28px; }
.project-card, .post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(15, 31, 51, .035); }
.project-card { display: flex; min-height: 100%; flex-direction: column; }
.project-image { display: block; height: 235px; overflow: hidden; background: #e7edf3; }
.project-image .cover-image { height: 100%; transition: transform .35s ease; }
.project-card:hover .project-image .cover-image { transform: scale(1.035); }
.project-card__body, .post-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px; }
.project-category { margin: 0 0 10px; color: var(--brand-secondary); font-size: 12px; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.project-title, .service-title { margin: 0; color: var(--ink); font-size: 22px; font-weight: 790; line-height: 1.22; }
.project-description, .service-description { margin: 12px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.project-card .text-link { margin-top: auto; }
.section-action { margin-top: 30px; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.service-grid--full { margin-top: 0; }
.service-card { display: flex; min-height: 100%; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 25px; box-shadow: 0 2px 8px rgba(15,31,51,.03); }
.icon-tile { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 5px; background: var(--brand-primary); color: #fff; font-size: 22px; font-weight: 500; }
.service-title { margin-top: 19px; }
.service-card .text-link { margin-top: auto; }
.service-card ul { margin: 0 0 24px; padding: 0; list-style: none; color: #435166; font-size: 14px; }
.service-card li { position: relative; margin: 8px 0; padding-left: 18px; }
.service-card li::before { position: absolute; left: 0; color: var(--brand-secondary); content: "+"; font-weight: 900; }

.advantage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 35px; }
.advantage-grid article { min-height: 148px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 25px; box-shadow: 0 2px 8px rgba(15,31,51,.03); }
.advantage-grid article::before { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 5px; background: var(--ink); color: #fff; content: "+"; font-size: 21px; }
.advantage-grid h3 { margin: 18px 0 0; font-size: 18px; line-height: 1.35; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 37px; }
.process-grid article { border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: rgba(255,255,255,.04); padding: 23px; }
.process-grid span { display: block; margin-bottom: 16px; color: var(--brand-secondary); font-size: 13px; font-weight: 900; letter-spacing: 0; }
.process-grid h3 { margin: 0 0 9px; font-size: 20px; }
.process-grid p { margin: 0; color: #cbd5e1; font-size: 14px; line-height: 1.65; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.testimonial-card { margin: 0; border: 1px solid var(--line); border-radius: 6px; padding: 28px; background: #fff; box-shadow: 0 2px 8px rgba(15,31,51,.03); }
.testimonial-card blockquote { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.75; }
.testimonial-card figcaption { display: grid; gap: 3px; margin-top: 23px; border-top: 1px solid var(--line); padding-top: 19px; color: var(--ink); font-size: 14px; }
.testimonial-card figcaption span { color: var(--muted); font-size: 13px; }
.cta-section { padding-top: 0; background: var(--surface); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); overflow: hidden; border-radius: 7px; background: var(--brand-primary); color: #fff; box-shadow: var(--shadow); }
.cta-grid > div:first-child { padding: 48px; }
.cta-grid .eyebrow { color: rgba(255,255,255,.7); }
.cta-grid .heading-lg { color: #fff; }
.cta-grid .section-description { color: rgba(255,255,255,.82); }
.cta-grid .cta-actions { margin-top: 30px; }
.cta-grid .button--primary { background: #fff; color: var(--ink); }
.cta-grid .button--secondary { border-color: rgba(255,255,255,.36); background: transparent; color: #fff; }
.cta-media { min-height: 300px; background: #17324f; }
.cta-media .cover-image { width: 100%; height: 100%; object-fit: cover; }

.filter-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.filter { border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 9px 13px; color: #435166; font-size: 14px; font-weight: 750; }
.filter:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.filter.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.empty-state { display: grid; justify-items: center; max-width: 610px; margin: 46px auto 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 48px 30px; text-align: center; }
.empty-state h1, .empty-state h2 { margin: 0; font-size: 26px; }
.empty-state p { max-width: 430px; color: var(--muted); }
.empty-state .button { margin-top: 7px; }

.project-hero, .article-hero { padding: 62px 0 55px; background: #fff; border-bottom: 1px solid var(--line); }
.project-hero .hero-description, .article-hero .hero-description { margin-bottom: 0; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--brand-primary); font-size: 14px; font-weight: 800; }
.project-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 26px; align-items: start; }
.project-cover { overflow: hidden; min-height: 420px; border-radius: 6px; background: #e7edf3; }
.project-cover .cover-image { height: 420px; }
.project-facts { display: grid; gap: 16px; }
.project-facts > div { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 18px; }
.project-facts span, .project-facts strong { display: block; }
.project-facts span { margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.project-facts strong { font-size: 15px; }
.prose { max-width: 890px; }
.prose > p, .prose .article-content { color: #435166; font-size: 17px; line-height: 1.85; }
.prose h2 { margin: 0 0 16px; font-size: 30px; line-height: 1.2; }
.prose h3 { margin: 0 0 12px; font-size: 19px; }
.detail-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 34px; }
.detail-columns > div { border-top: 2px solid var(--brand-primary); padding-top: 18px; }
.result-panel { margin-top: 28px; border-left: 4px solid var(--brand-secondary); background: #fff; padding: 22px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 25px; }
.gallery-grid > div { overflow: hidden; aspect-ratio: 1 / .72; border-radius: 5px; background: #e7edf3; }
.gallery-image { width: 100%; height: 100%; object-fit: cover; }
.video-list { display: grid; gap: 10px; margin-top: 20px; }
.video-link { border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 15px; color: var(--brand-primary); font-weight: 800; }
.video-player { width: 100%; max-height: 680px; border-radius: 6px; background: #0b1420; }

.intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); align-items: center; gap: 56px; }
.intro-image { min-height: 360px; }
.intro-image .cover-image { position: absolute; inset: 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.value-card { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 23px; }
.value-card h2 { margin: 18px 0 10px; font-size: 20px; }
.value-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 30px; }
.check-grid > div { position: relative; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 16px 16px 16px 39px; font-weight: 750; }
.check-grid > div::before { position: absolute; top: 15px; left: 16px; color: var(--brand-secondary); content: "+"; font-weight: 900; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.team-card { overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; background: rgba(255,255,255,.035); }
.team-image { height: 235px; background: #24344b; }
.team-image .cover-image { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 22px; }
.team-card__body h3 { margin: 0; font-size: 21px; }
.team-card__body p:not(.team-role) { color: #cbd5e1; font-size: 14px; line-height: 1.65; }
.team-role { margin: 5px 0 16px; color: #77d6ca; font-size: 13px; font-weight: 800; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(430px, 1.1fr); gap: 60px; align-items: start; }
.contact-list { display: grid; gap: 12px; margin-top: 32px; }
.contact-list > * { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 17px; }
.contact-list span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.contact-form, .login-card { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 28px; box-shadow: var(--shadow); }
.contact-form label, .login-card label { display: grid; gap: 7px; margin-bottom: 17px; color: #2d3d52; font-size: 14px; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form input, .contact-form select, .contact-form textarea, .login-card input, .form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid #cbd5df;
  border-radius: 5px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus, .login-card input:focus, .form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(31,58,95,.12); }
.form-field input[type="color"] { min-height: 48px; padding: 5px; cursor: pointer; }
.form-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.form-field input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.contact-form > label { margin-top: 17px; }
.contact-form .button { margin-top: 22px; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 38px; }
.post-image { display: block; height: 215px; overflow: hidden; background: #e7edf3; }
.post-image .cover-image { width: 100%; height: 100%; object-fit: cover; }
.article-container { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.article-cover { overflow: hidden; margin-top: 48px; border-radius: 6px; aspect-ratio: 16 / 8; background: #e7edf3; }
.article-cover .cover-image { width: 100%; height: 100%; object-fit: cover; }
.article-content { white-space: normal; }

.site-footer { background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr; gap: 56px; padding: 62px 0; }
.brand--footer .brand-name { color: #fff; }
.footer-copy { max-width: 390px; margin: 18px 0 0; color: #bdc9d6; font-size: 14px; line-height: 1.7; }
.footer-grid h2 { margin: 5px 0 16px; color: #95a8ba; font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; color: #e5ebf0; font-size: 14px; }
.footer-links a:hover { color: #70d5c8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px; color: #a7b6c5; font-size: 12px; text-align: center; }

.notice { margin: 22px 0 0; border: 1px solid; border-radius: 5px; padding: 12px 14px; font-size: 14px; font-weight: 700; }
.notice--success { border-color: #a6e3c3; background: #ecfdf3; color: var(--success); }
.notice--error { border-color: #f6b8b2; background: #fff1f0; color: var(--danger); }

.edit-bar { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.96); padding: 10px 12px; box-shadow: var(--shadow); color: var(--ink); font-size: 12px; font-weight: 800; }
.edit-bar a { border-radius: 4px; background: var(--ink); padding: 7px 9px; color: #fff; }
[data-inline-text] { position: relative; outline: 0; transition: outline-color .15s ease, background .15s ease; }
[data-inline-text]:hover, [data-inline-text]:focus { outline: 2px dashed var(--brand-secondary); outline-offset: 3px; background: rgba(15,118,110,.06); }
[data-inline-text]:focus { outline-style: solid; }
[data-inline-text]::after { display: inline-block; margin-left: 6px; color: var(--brand-secondary); content: "\270e"; font-size: .65em; font-weight: 700; opacity: 0; transition: opacity .15s ease; vertical-align: top; }
[data-inline-text]:hover::after, [data-inline-text]:focus::after { opacity: 1; }
.image-editor { position: relative; display: inline-block; max-width: 100%; }
.hero-media .image-editor, .intro-image .image-editor, .project-image .image-editor, .project-cover .image-editor, .team-image .image-editor, .gallery-grid .image-editor, .post-image .image-editor, .article-cover .image-editor { width: 100%; height: 100%; }
.image-editor img { width: 100%; }
.brand > .image-editor, .logo-editor { width: 58px; height: 58px; flex: 0 0 58px; }
.brand > .image-editor .brand-logo { width: 58px; height: 58px; }
.logo-editor .brand-mark { width: 58px; height: 58px; }
.brand > .image-editor .image-editor__button { right: -5px; bottom: -5px; width: 28px; height: 28px; font-size: 13px; }
.image-editor__button { position: absolute; right: 12px; bottom: 12px; z-index: 4; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); box-shadow: 0 5px 16px rgba(0,0,0,.2); opacity: .96; transition: transform .15s ease, background .15s ease; }
.image-editor__button:hover { background: #f7fafc; transform: translateY(-1px); }
.hero-media .image-editor__button { top: 18px; right: 18px; bottom: auto; }
.image-editor__button input { display: none; }
.image-editor.is-uploading::after { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(19,34,56,.56); color: #fff; content: "Enviando..."; font-size: 14px; font-weight: 800; }

.login-page { display: grid; min-height: 100vh; place-items: center; padding: 30px 20px; background: #eef2f6; }
.login-card { width: min(440px, 100%); }
.login-card h1 { margin: 0 0 8px; font-size: 31px; line-height: 1.15; }
.login-card > p:not(.eyebrow) { margin: 0 0 25px; color: var(--muted); font-size: 14px; }
.login-card .button { width: 100%; margin-top: 5px; }

.admin-shell { display: grid; min-height: 100vh; grid-template-columns: 260px minmax(0, 1fr); background: #f2f5f8; }
.admin-sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; border-right: 1px solid var(--line); background: #fff; }
.admin-brand { display: flex; min-height: 78px; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); padding: 0 20px; }
.admin-brand span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 5px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 900; }
.admin-brand strong { font-size: 15px; }
.admin-nav { display: grid; gap: 2px; padding: 16px 12px; }
.admin-nav a { border-radius: 5px; padding: 10px 12px; color: #4e5f73; font-size: 14px; font-weight: 720; }
.admin-nav a:hover { background: #edf2f6; color: var(--ink); }
.admin-nav a.is-active { background: var(--ink); color: #fff; }
.admin-sidebar__bottom { margin-top: auto; display: grid; gap: 3px; border-top: 1px solid var(--line); padding: 12px; }
.admin-sidebar__bottom a, .admin-sidebar__bottom button { width: 100%; border: 0; border-radius: 5px; background: transparent; padding: 9px 12px; color: #526479; font-size: 14px; font-weight: 720; text-align: left; }
.admin-sidebar__bottom a:hover, .admin-sidebar__bottom button:hover { background: #edf2f6; color: var(--ink); }
.admin-content { min-width: 0; }
.admin-topbar { display: flex; min-height: 104px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #fff; padding: 20px 34px; }
.admin-topbar p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.admin-topbar h1 { margin: 3px 0 0; font-size: 27px; line-height: 1.15; }
.admin-topbar > span { border-radius: 5px; background: #eaf1f3; padding: 9px 11px; color: #16645c; font-size: 13px; font-weight: 800; }
.admin-main { max-width: 1280px; padding: 32px 34px 46px; }
.admin-main .container { width: 100%; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.admin-stat, .admin-panel { border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(15,31,51,.025); }
.admin-stat { display: grid; gap: 6px; padding: 22px; }
.admin-stat span { color: var(--muted); font-size: 13px; font-weight: 750; }
.admin-stat strong { color: var(--brand-primary); font-size: 32px; line-height: 1; }
.admin-panel { margin-top: 20px; padding: 24px; }
.admin-panel h2 { margin: 0 0 18px; font-size: 20px; }
.admin-guide { border: 0; background: transparent; padding: 4px 0 0; box-shadow: none; }
.admin-guide__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-guide__grid a { display: grid; align-content: start; gap: 8px; min-height: 150px; border: 1px solid var(--line); border-radius: 5px; background: #f8fafc; padding: 18px; }
.admin-guide__grid a:hover { border-color: var(--brand-primary); background: #fff; }
.admin-guide__grid strong { color: var(--ink); font-size: 14px; }
.admin-guide__grid span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.admin-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-list-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.admin-table-wrap { overflow-x: auto; padding: 0; }
.admin-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: middle; }
.admin-table th { background: #f8fafc; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.admin-table td { color: #35465b; font-size: 14px; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; align-items: center; gap: 9px; }
.table-actions a, .table-actions button { border: 0; border-radius: 4px; background: #edf2f6; padding: 7px 9px; color: #34465b; font-size: 12px; font-weight: 800; }
.table-actions button { background: #fff1f0; color: var(--danger); }
.admin-form { margin-top: 0; }
.admin-form__section { margin-top: 46px !important; padding-top: 26px; border-top: 1px solid var(--line); }
.form-field { display: grid; gap: 7px; color: #34465b; font-size: 14px; font-weight: 750; }
.form-field--wide { grid-column: 1 / -1; }
.form-field textarea { resize: vertical; }
.form-field small { color: var(--muted); font-size: 12px; font-weight: 600; }
.checkbox-field { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; font-size: 14px; }
.checkbox-field input { width: 16px; height: 16px; }
.admin-form .admin-actions { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.message-list { display: grid; gap: 15px; }
.message-card { margin-top: 0; }
.message-card__header { display: flex; justify-content: space-between; gap: 22px; }
.message-card__header h2 { margin: 5px 0 2px; }
.message-card__header p { margin: 0; color: var(--muted); font-size: 13px; }
.status { display: inline-block; border-radius: 4px; padding: 4px 7px; font-size: 11px !important; font-weight: 850; letter-spacing: 0; }
.status--new { background: #e8f1ff; color: #1758a4 !important; }
.status--read { background: #ecfdf3; color: var(--success) !important; }
.status--archived { background: #f0f2f5; color: #59697c !important; }
.message-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.message-meta div { border: 1px solid var(--line); border-radius: 5px; padding: 12px; }
.message-meta dt { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.message-meta dd { margin: 4px 0 0; font-size: 14px; font-weight: 700; }
.message-body { margin: 0; border-radius: 5px; background: #f7f9fb; padding: 16px; color: #435166; font-size: 14px; line-height: 1.7; }
.empty-admin { color: var(--muted); text-align: center; }

@media (max-width: 1020px) {
  .heading-lg, .hero-title { font-size: 48px; }
  .heading-md { font-size: 34px; }
  .hero .hero-title { font-size: 60px; }
  .proof-copy .heading-lg { font-size: 42px; }
  .primary-nav { gap: 0; }
  .nav-link { padding: 8px; }
  .header-cta { display: none; }
  .hero-grid, .intro-grid, .contact-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .hero-media { min-height: 390px; }
  .proof-layout { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .admin-main, .admin-topbar { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 760px) {
  .container, .article-container { width: min(100% - 32px, 1180px); }
  .section { padding: 58px 0; }
  .heading-lg, .hero-title { font-size: 36px; }
  .heading-md { font-size: 30px; }
  .header-inner { min-height: 70px; gap: 13px; }
  .brand-logo, .brand > .image-editor, .logo-editor, .brand > .image-editor .brand-logo, .logo-editor .brand-mark { width: 48px; height: 48px; flex-basis: 48px; }
  .brand-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .primary-nav { position: absolute; top: 70px; right: 16px; left: 16px; display: none; grid-template-columns: 1fr; gap: 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 8px; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: grid; }
  .nav-link { padding: 11px 12px; }
  .hero { min-height: 72svh; padding: 0; }
  .hero-grid { min-height: 72svh; }
  .hero-grid, .intro-grid, .contact-grid, .cta-grid, .project-detail-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 64px 0; }
  .hero .hero-title { font-size: 40px; }
  .hero-media { min-height: 320px; }
  .stats-grid, .project-grid, .service-grid, .advantage-grid, .process-grid, .testimonial-grid, .team-grid, .post-grid { grid-template-columns: 1fr; }
  .stat-item { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .stat-item:last-child { border-bottom: 0; }
  .project-image { height: 250px; }
  .proof-section { padding: 58px 0; }
  .proof-copy .heading-lg { font-size: 36px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-card { min-height: 0; }
  .project-cover, .project-cover .cover-image { min-height: 280px; height: 280px; }
  .detail-columns, .gallery-grid, .check-grid, .form-grid, .message-meta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 33px; padding: 46px 0; }
  .edit-bar { right: 12px; bottom: 12px; }
  .edit-bar span { display: none; }
  .admin-shell { display: block; }
  .admin-sidebar { position: static; height: auto; border-right: 0; }
  .admin-brand { min-height: 62px; }
  .admin-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow-x: auto; padding: 8px; }
  .admin-nav a { padding: 8px; font-size: 12px; text-align: center; }
  .admin-sidebar__bottom { display: flex; margin-top: 0; padding: 8px; }
  .admin-sidebar__bottom a, .admin-sidebar__bottom form { flex: 1; }
  .admin-topbar { min-height: auto; padding: 20px 16px; }
  .admin-topbar h1 { font-size: 23px; }
  .admin-main { padding: 22px 16px 35px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-guide__grid { grid-template-columns: 1fr; }
  .admin-list-heading, .message-card__header { align-items: flex-start; flex-direction: column; }
  .admin-panel { padding: 18px; }
}

@media (hover: none) {
  [data-inline-text]::after { opacity: .65; }
}
