:root {
  --bg: #fff;
  --soft: #f5f6f8;
  --line: #d9dde3;
  --text: #111827;
  --muted: #5b6472;
  --accent: #0f62fe;
  --shadow: 0 20px 55px rgba(17, 24, 39, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: Sora, sans-serif; font-weight: 800; }
.brand span { display: grid; width: 42px; height: 42px; place-items: center; border: 2px solid var(--text); }
.brand span.has-logo { border: 0; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 12px 13px; color: var(--muted); font-weight: 800; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--soft); }
.nav .nav-action, .button.primary { border: 1px solid var(--text); color: #fff; background: var(--text); }
.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; border: 1px solid var(--text); background: #fff; }
.menu-toggle span { width: 18px; height: 2px; margin: 2px 0; background: var(--text); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; min-height: 620px; align-content: center; border-bottom: 1px solid var(--line); }
.eyebrow, .section-heading span, .page-head span { display: inline-block; margin-bottom: 16px; color: var(--accent); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: Sora, sans-serif; letter-spacing: 0; }
h1 { max-width: 880px; margin-bottom: 22px; font-size: clamp(2.5rem, 5.6vw, 5.4rem); line-height: .98; }
p { color: var(--muted); line-height: 1.72; }
.hero-copy p, .page-head p { max-width: 760px; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-actions, .section-action { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border: 1px solid var(--text); font-weight: 900; transition: transform .18s ease; }
.button:hover, .project-card:hover, .service-card:hover, .price-card:hover { transform: translateY(-4px); }
.button.secondary { color: var(--text); background: #fff; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 14px; max-width: 780px; }
.hero-metrics article, .project-card, .service-card, .price-card, .admin-panel, .admin-login, .notice {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.hero-metrics article { padding: 18px; }
.hero-metrics strong { display: block; margin-bottom: 4px; font-family: Sora, sans-serif; font-size: 2rem; }
.hero-metrics span { color: var(--muted); font-weight: 800; }
.section, .page-head { padding: 86px 0; }
.section.tight { padding-top: 28px; }
.page-head.compact-bottom { padding-bottom: 26px; }
.section.compact-top { padding-top: 0; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading h2, .page-head h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.06; }
.project-grid, .service-grid, .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; padding-top: 0; }
.project-card, .service-card, .price-card { display: flex; flex-direction: column; min-height: 100%; padding: 16px; transition: transform .22s ease, border-color .22s ease; }
.project-card:hover, .service-card:hover { border-color: var(--text); }
.price-card:hover { border-color: var(--line); }
.price-card.featured:hover { border-color: #0f62fe; }
.project-visual { display: flex; align-items: end; min-height: 210px; margin-bottom: 16px; padding: 16px; color: #fff; font-weight: 900; background: linear-gradient(135deg, rgba(17,24,39,.86), rgba(15,98,254,.64)), repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 28px); }
.project-visual {
  position: relative;
  overflow: hidden;
}
.project-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.52));
}
.project-visual span, .price-card > span, .service-card > span { padding: 8px 10px; border: 1px solid currentColor; font-weight: 900; }
.project-visual span {
  position: relative;
  z-index: 1;
}
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .8rem; font-weight: 800; }
.card-meta strong { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.tags span { padding: 7px 9px; border: 1px solid var(--line); color: var(--muted); font-size: .75rem; font-weight: 800; background: var(--soft); }
.service-card, .price-card { padding: 24px; min-height: 250px; }
.price-card {
  width: 100%;
  min-width: 0;
  min-height: 500px;
  padding: 30px;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.reveal.visible { transform: translateY(0); }
.price-card.reveal.visible:hover { transform: translateY(-6px); }
.price-card.featured {
  border-color: #0f62fe;
  color: #fff;
  background: linear-gradient(135deg, #0f62fe 0%, #073b9a 54%, #051f56 100%);
}
.price-card > span {
  width: max-content;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  background: transparent;
}
.price-card strong { display: block; margin-bottom: 12px; font-family: Sora, sans-serif; font-size: clamp(1.45rem, 2vw, 1.72rem); line-height: 1.22; }
.price-card.featured strong,
.price-card.featured h3,
.price-card.featured p,
.price-card.featured li { color: #fff; }
.price-card.featured > span {
  color: #fff;
}
.price-card h3 {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.28rem, 1.8vw, 1.48rem);
  line-height: 1.16;
  text-transform: uppercase;
}
.price-card.featured h3 {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.42);
  font-size: clamp(1.28rem, 1.8vw, 1.48rem);
  line-height: 1.16;
  text-transform: uppercase;
}
.price-card.featured li::before { color: #dbeafe; }
.price-card.featured .button.primary {
  border-color: #fff;
  color: #0f2f72;
  background: #fff;
}
.price-card ul { display: grid; gap: 10px; margin: 18px 0 24px; padding: 0; list-style: none; }
.price-card li { color: var(--muted); font-weight: 700; }
.price-card li::before { content: "+ "; color: var(--accent); font-weight: 900; }
.price-card .button { margin-top: auto; }
.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.site-footer p { margin: 6px 0 0; }
.site-footer a { font-weight: 900; }
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  gap: 10px;
}
.float-button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--text);
  color: #fff;
  font: inherit;
  font-weight: 900;
  background: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.float-button:hover { transform: translateY(-3px); }
.float-button.whatsapp {
  position: relative;
  border-color: #1f8f4d;
  background: #25d366;
}
.float-button.whatsapp img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.whatsapp-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #fff;
  color: #fff;
  font-size: .76rem;
  line-height: 1;
  background: #e11d48;
  box-shadow: 0 8px 20px rgba(225, 29, 72, .24);
  opacity: 0;
  transform: scale(.55);
  pointer-events: none;
}
.whatsapp-badge.visible {
  animation: badge-pop .42s cubic-bezier(.2, 1.4, .32, 1) forwards, badge-pulse 1.4s ease .48s 2;
}
@keyframes badge-pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes badge-pulse {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(225, 29, 72, .24);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(225, 29, 72, .16), 0 8px 20px rgba(225, 29, 72, .24);
  }
}
.float-button.to-top {
  color: var(--text);
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.float-button.to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .52s ease, transform .52s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.admin-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 52px; }
.admin-login { display: grid; gap: 16px; width: min(460px, 100%); margin: 12vh auto; padding: 24px; }
.admin-login p { margin-top: -6px; }
.admin-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.admin-top h1 { margin-bottom: 4px; font-size: clamp(1.75rem, 3vw, 2.4rem); }
.admin-top p { margin: 0; }
.admin-top > div:last-child { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-tabs {
  position: sticky;
  top: 83px;
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.admin-tabs a {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
  background: #fff;
}
.admin-tabs a:hover { border-color: var(--text); color: var(--text); }
.admin-panel {
  margin: 14px 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.admin-panel summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 16px 18px;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  list-style: none;
}
.admin-panel summary::-webkit-details-marker { display: none; }
.admin-panel summary span {
  color: var(--text);
  font-family: Sora, sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
}
.admin-panel summary small {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 500;
  text-align: right;
}
.admin-panel[open] summary { border-bottom-color: var(--line); }
.admin-panel form {
  display: grid;
  gap: 16px;
  padding: 18px;
}
.admin-grid, .repeat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.repeat-row {
  position: relative;
  grid-template-columns: 42px repeat(3, minmax(0, 1fr));
  padding: 16px;
  border: 1px solid var(--line);
  background: #fafbfc;
}
.repeat-row.two { grid-template-columns: 42px minmax(220px, .4fr) 1fr; }
.row-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: Sora, sans-serif;
  font-size: .82rem;
  font-weight: 800;
  background: #fff;
}
label { display: grid; gap: 7px; color: var(--text); font-weight: 500; }
label > span {
  color: #374151;
  font-size: .82rem;
  font-weight: 700;
}
.asset-field {
  display: grid;
  gap: 8px;
}
.asset-field > span {
  color: #374151;
  font-size: .82rem;
  font-weight: 700;
}
.asset-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.asset-preview img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 1px solid var(--line);
}
.asset-preview.project-preview img {
  width: 92px;
  height: 58px;
  object-fit: cover;
}
.asset-preview small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}
input, textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  background: #fff;
}
input:focus, textarea:focus {
  border-color: var(--text);
  outline: none;
}
textarea { min-height: 86px; resize: vertical; }
.wide { grid-column: 1 / -1; }
.check {
  align-content: end;
  align-items: center;
  grid-template-columns: auto 1fr;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.check input { width: auto; }
.notice { margin: 12px 0; padding: 12px 14px; border-color: #9bbcff; color: #0b3b8f; font-weight: 700; background: #eef4ff; }
.admin-body {
  background: #f3f5f8;
}
.admin-body::before {
  display: none;
}
.admin-app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid #d9dde3;
  background: #fff;
}
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin-bottom: 26px;
  font-family: Sora, sans-serif;
  font-weight: 800;
}
.admin-brand span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--text);
  color: #fff;
  background: var(--text);
}
.admin-menu {
  display: grid;
  align-content: start;
  gap: 6px;
}
.admin-menu button,
.admin-sidebar-foot a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  color: #4b5563;
  font: inherit;
  font-size: .94rem;
  font-weight: 700;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.admin-menu button:hover,
.admin-menu button.active {
  color: var(--text);
  background: #f3f5f8;
}
.admin-sidebar-foot {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.admin-main {
  min-width: 0;
  padding: 0 0 52px;
}
.admin-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.admin-summary.secondary article {
  box-shadow: none;
}
.admin-summary article {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 36px rgba(17,24,39,.06);
}
.admin-summary strong {
  display: block;
  margin-bottom: 6px;
  font-family: Sora, sans-serif;
  font-size: 1.65rem;
}
.admin-summary span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}
.panel-heading p {
  margin: 0;
}
.dashboard-panel {
  padding-bottom: 18px;
}
.dashboard-panel .admin-summary {
  padding: 0 18px;
}
.dashboard-panel .admin-summary:first-of-type {
  padding-top: 18px;
}
.activity-box {
  margin: 0 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.activity-box h3 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.activity-box p {
  margin: 0;
  padding: 16px;
}
.activity-box table {
  width: 100%;
  border-collapse: collapse;
}
.activity-box th,
.activity-box td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  text-align: left;
}
.activity-box th {
  color: var(--text);
  font-weight: 800;
  background: #f8fafc;
}
.activity-box tr:last-child td {
  border-bottom: 0;
}
.admin-main .admin-panel {
  min-height: auto;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
}
.admin-main .admin-panel form { background: #fff; }
.admin-main .repeat-row {
  background: #f8fafc;
}
.cms-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 16px;
}
.cms-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 6px;
}
.cms-list button {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  text-align: left;
  background: #fff;
  cursor: pointer;
}
.cms-list button:hover,
.cms-list button.active {
  border-color: var(--accent);
  background: #eef4ff;
}
.cms-list strong {
  font-size: .94rem;
}
.cms-list span,
.helper-text {
  color: var(--muted);
  font-size: .84rem;
}
.cms-editor {
  min-width: 0;
}
.cms-form[hidden] {
  display: none;
}
.helper-text {
  margin: -4px 0 0;
}
.admin-view[hidden] {
  display: none;
}
@media (max-width: 900px) {
  .project-grid, .service-grid, .pricing-grid, .hero-metrics { grid-template-columns: 1fr; }
  .site-footer, .admin-top, .admin-grid, .repeat-row, .repeat-row.two { grid-template-columns: 1fr; }
  .admin-top, .admin-tabs { position: static; }
  .admin-app { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-main { padding: 0 0 42px; }
  .admin-main .admin-top {
    position: static;
    margin: 0 0 16px;
    padding: 0 0 16px;
    background: transparent;
  }
  .admin-summary { grid-template-columns: 1fr; }
  .cms-layout { grid-template-columns: 1fr; }
  .cms-list { max-height: none; }
  .row-number { width: 100%; }
  .nav { position: fixed; top: 68px; left: 18px; right: 18px; display: none; padding: 12px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
  .site-header.open .nav { display: grid; }
  .menu-toggle { display: flex; }
  h1 { font-size: clamp(2.4rem, 12vw, 3.8rem); }
}
