:root {
  --bg: #08111d;
  --bg-alt: #0d1829;
  --panel: rgba(17, 24, 39, 0.88);
  --card: #101a2b;
  --border: rgba(148, 163, 184, 0.18);
  --text: #edf4ff;
  --muted: #b7c5db;
  --primary: #6d5efc;
  --primary-2: #5b7cff;
  --secondary: #2ed5ff;
  --shadow: 0 16px 48px rgba(15, 23, 42, 0.32);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, rgba(109, 94, 252, 0.18), transparent 35%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }
.section, [id] { scroll-margin-top: 6rem; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(8,17,29,0.8); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 0.5rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; white-space: nowrap; }
.brand-mark { display: inline-flex; width: 42px; height: 42px; border-radius: 14px; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; box-shadow: var(--shadow); }
.nav-links { display: none; align-items: center; flex-wrap: wrap; gap: 1rem; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.4rem; }
.toggle-group { display: inline-flex; border: 1px solid var(--border); background: var(--panel); border-radius: 999px; padding: 0.24rem; }
.lang-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 44px; border-radius: 999px; color: var(--muted); font-weight: 700; }
.lang-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; }
.mobile-nav { position: relative; }
.mobile-nav summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; list-style: none; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-icon, .mobile-nav-icon::before, .mobile-nav-icon::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); }
.mobile-nav-icon { position: relative; }
.mobile-nav-icon::before, .mobile-nav-icon::after { position: absolute; left: 0; content: ''; }
.mobile-nav-icon::before { top: -6px; }
.mobile-nav-icon::after { top: 6px; }
.mobile-nav[open] .mobile-nav-icon { background: transparent; }
.mobile-nav[open] .mobile-nav-icon::before { top: 0; transform: rotate(45deg); }
.mobile-nav[open] .mobile-nav-icon::after { top: 0; transform: rotate(-45deg); }
.mobile-nav-panel { position: absolute; top: calc(100% + 0.75rem); right: 0; z-index: 40; display: grid; width: min(18rem, calc(100vw - 2rem)); padding: 0.5rem; border: 1px solid var(--border); border-radius: 16px; background: #0d1829; box-shadow: var(--shadow); }
.mobile-nav-panel a { display: flex; align-items: center; min-height: 44px; padding: 0.65rem 0.8rem; border-radius: 10px; color: var(--muted); font-weight: 600; }
.mobile-nav-panel a:hover, .mobile-nav-panel a:focus-visible { background: rgba(109,94,252,0.14); color: var(--text); }
.btn { min-height: 44px; border: none; border-radius: 14px; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; box-shadow: var(--shadow); }
.btn.secondary { background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.small { padding: 0.6rem 0.9rem; font-size: 0.88rem; }
.btn.medium { padding: 0.9rem 1.2rem; }
.btn.large { padding: 1rem 1.4rem; }
.hero { padding: 2.5rem 0 2rem; }
.hero-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.hero-copy h1 { font-size: clamp(2rem, 8vw, 4.3rem); line-height: 1.05; margin: 0 0 1rem; }
.hero-copy p { color: var(--muted); font-size: 1.08rem; max-width: 700px; }
.tag { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(110, 96, 252, 0.12); border: 1px solid rgba(110, 96, 252, 0.28); padding: 0.5rem 0.85rem; border-radius: 999px; color: var(--secondary); font-weight: 700; margin-bottom: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.hero-card { background: linear-gradient(145deg, rgba(17,24,39,0.9), rgba(18,29,45,0.8)); border: 1px solid var(--border); border-radius: 26px; padding: 1.2rem; box-shadow: var(--shadow); }
.stat-card { background: rgba(109,94,252,0.1); border: 1px solid rgba(109,94,252,0.24); border-radius: 18px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.stat-card strong { display: block; font-size: 1.8rem; }
.metric-row { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 0.8rem; }
.metric { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 0.9rem; text-align: center; }
.metric strong { display: block; font-size: 1.2rem; }
.section { padding: 2rem 0 4rem; }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.4rem; }
.section-header h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.section-header p { margin: 0; color: var(--muted); }
.grid-3, .portfolio-grid, .testimonials-grid, .team-grid, .blog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 22px; padding: 1.25rem; box-shadow: var(--shadow); }
.service-card { display: flex; flex-direction: column; gap: 1rem; min-height: 100%; }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, rgba(109,94,252,0.16), rgba(46,213,255,0.14)); border: 1px solid var(--border); font-size: 1.4rem; }
.card h3 { margin: 0 0 0.4rem; }
.card p { margin: 0; color: var(--muted); }
.card-actions { margin-top: auto; padding-top: 1rem; }
.portfolio-item { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.portfolio-filters a { border: 1px solid var(--border); border-radius: 999px; color: var(--muted); padding: 0.45rem 0.8rem; }
.portfolio-filters a.active, .portfolio-filters a:hover { background: rgba(109,94,252,0.18); border-color: var(--primary); color: var(--text); }
.portfolio-search { max-width: 460px; }
.portfolio-item[hidden] { display: none; }
.contact-map iframe { width: 100%; min-height: 220px; border: 1px solid var(--border); border-radius: 16px; }
.error-page { max-width: 680px; margin: 3rem auto; }
.portfolio-item img { width: 100%; height: 240px; object-fit: cover; }
.portfolio-body { padding: 1rem; }
.portfolio-badge { display: inline-block; background: rgba(46,213,255,0.12); border: 1px solid rgba(46,213,255,0.26); border-radius: 999px; padding: 0.35rem 0.7rem; color: var(--secondary); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 0.6rem; }
.quote-panel { background: linear-gradient(135deg, rgba(109,94,252,0.18), rgba(46,213,255,0.12)); border: 1px solid var(--border); border-radius: 24px; padding: 1.25rem; margin-top: 2rem; }
.quote-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-weight: 600; }
.field-error { color: #f87171; font-size: 0.88rem; min-height: 0; }
.field-error:empty { display: none; }
.field [aria-invalid='true'] { border-color: #f87171; }
.consent-label { display: flex; align-items: flex-start; gap: 0.65rem; }
.consent-label input { width: auto; margin-top: 0.35rem; accent-color: #6d5efc; }
.field .consent-label { min-width: 0; flex-wrap: wrap; }
.field .consent-label input { width: 1rem; flex: 0 0 1rem; }
.consent-label a { color: #2ed5ff; text-decoration: underline; }
.form-status { margin-left: 0.8rem; color: #b7c5db; }
.honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.honeypot input { position: absolute; inset: 0 auto auto 0; width: 1px; height: 1px; padding: 0; border: 0; }
.btn:disabled { cursor: wait; opacity: 0.65; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1rem; color: var(--text);
}
.field select {
  appearance: none;
  padding-right: 2.8rem;
  background-color: #16243a;
  background-image:
    linear-gradient(45deg, transparent 50%, #b7c5db 50%),
    linear-gradient(135deg, #b7c5db 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 50%,
    calc(100% - 0.85rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.3rem 0.3rem;
  color: #f8fafc;
  color-scheme: dark;
  cursor: pointer;
}
.field select option {
  background-color: #142238;
  color: #f8fafc;
}
.field select option:checked {
  background-color: #4f46e5;
  color: #fff;
}
.field select:invalid { color: #b7c5db; }
.field select:focus-visible {
  outline: 2px solid #5b7cff;
  outline-offset: 2px;
}
.field textarea { min-height: 130px; resize: vertical; }
.notice { border-radius: 14px; padding: 0.9rem 1rem; border: 1px solid var(--border); background: rgba(52,211,153,0.12); color: var(--text); }
.notice.error { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.3); }
.footer { border-top: 1px solid var(--border); padding: 2.5rem 0 4rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.footer-links { display: grid; gap: 0.45rem; color: var(--muted); }
.footer-cookie-button, .privacy-request-link { width: fit-content; padding: 0; border: 0; background: transparent; color: var(--secondary); text-align: left; text-decoration: underline; cursor: pointer; }
.privacy-request-link { display: inline; }
.copyright { margin-top: 1.8rem; color: var(--muted); font-size: 0.92rem; }
.floating-actions { position: fixed; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 0.6rem; z-index: 30; }
.floating-actions a { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; box-shadow: var(--shadow); font-size: 1.35rem; color: white; }
.floating-actions .wa { background: linear-gradient(135deg, #2ccf78, #15b560); }
.floating-actions .call { background: linear-gradient(135deg, #3b82f6, #4f46e5); }
.admin-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.admin-shell > * { min-width: 0; }
.sidebar { min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 1rem; }
.side-nav { display: grid; gap: 0.5rem; }
.side-nav a { display: block; padding: 0.7rem 0.8rem; border-radius: 12px; background: rgba(109,94,252,0.08); border: 1px solid rgba(109,94,252,0.18); }
.admin-content { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 1.25rem; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.metric-box { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; }
.metric-box strong { display: block; font-size: 1.8rem; margin-top: 0.2rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; border-bottom: 1px solid var(--border); padding: 0.8rem 0.7rem; vertical-align: top; }
th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.staff-table input:not([type='checkbox']), .staff-table select { width: 100%; min-width: 140px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 10px; padding: 0.65rem; color: var(--text); }
.staff-table input[type='checkbox'] { accent-color: var(--primary); }
.staff-table .inline-form { display: inline-block; margin-left: 0.35rem; }
.tag { display: inline-block; background: rgba(109,94,252,0.10); border: 1px solid rgba(109,94,252,0.20); color: var(--text); border-radius: 999px; padding: 0.25rem 0.6rem; font-size: 0.72rem; font-weight: 700; }
.form-card { min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 1rem; }
.content-editor-fields { grid-column: 1 / -1; min-width: 0; }
.content-field-group { min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; }
.content-field-group legend { padding: 0 0.4rem; color: var(--secondary); font-weight: 700; }
.content-field-group[hidden] { display: none; }
.content-json-editor { grid-column: 1 / -1; min-width: 0; color: var(--muted); }
.content-json-editor summary { display: inline-flex; min-height: 44px; align-items: center; cursor: pointer; font-weight: 600; }
.content-json-editor textarea { width: 100%; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.media-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,0.02); }
.media-card > img { width: 100%; height: 150px; object-fit: cover; background: var(--bg-alt); }
.media-card-body { padding: 0.8rem; }
.media-file-name { overflow-wrap: anywhere; font-size: 0.85rem; }
.media-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.media-actions form { margin: 0; }
.privacy-request-list { display: grid; gap: 1rem; }
.privacy-request-card, .privacy-match { min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,0.02); }
.privacy-request-card h4 { margin: 0; overflow-wrap: anywhere; }
.privacy-request-card > p { overflow-wrap: anywhere; }
.privacy-match { margin-top: 0.75rem; }
.privacy-request-card summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--secondary); }
.privacy-request-card textarea { width: 100%; }
.privacy-request-card form { margin: 0; }
.privacy-request-card .field { min-width: 0; }
.privacy-request-card .consent-label { color: var(--muted); }
.privacy-request-card .consent-label input { flex: 0 0 auto; }
.privacy-request-card .field input, .privacy-request-card .field select, .privacy-request-card .field textarea { min-width: 0; }
.privacy-request-card .muted { overflow-wrap: anywhere; }
.privacy-request-card .mt-1 { margin-top: 0.75rem; }
.privacy-request-card .mt-2 { margin-top: 1rem; }
.cookie-banner { position: fixed; inset: auto 1rem calc(1rem + env(safe-area-inset-bottom)); z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem 1rem; max-width: 900px; max-height: min(80vh, 36rem); max-height: min(80dvh, 36rem); overflow-y: auto; overscroll-behavior: contain; margin-inline: auto; padding: 1rem; border: 1px solid var(--border); border-radius: 18px; background: #0d1829; box-shadow: var(--shadow); }
.cookie-banner[hidden], .cookie-settings[hidden] { display: none; }
.cookie-banner h2 { margin: 0; font-size: 1.05rem; }
.cookie-banner p { margin: 0.25rem 0 0; color: var(--muted); }
.cookie-banner-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem; }
.cookie-settings { grid-column: 1 / -1; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.cookie-settings .consent-label { margin-top: 0.5rem; color: var(--muted); }
.cookie-status { grid-column: 1 / -1; }
.privacy-request-card .flex-between { align-items: flex-start; gap: 0.5rem; }
.muted { color: var(--muted); }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.table-wrap { min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
@media (min-width: 640px) {
  .navbar { min-height: 76px; gap: 1rem; }
  .brand { gap: 0.75rem; }
  .nav-actions { gap: 0.8rem; }
  .lang-btn { min-width: 38px; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-copy h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); }
  .grid-3, .portfolio-grid, .testimonials-grid, .team-grid, .blog-grid, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-panel { padding: 2rem; }
  .floating-actions { right: 1rem; bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
  .floating-actions a { width: 58px; height: 58px; font-size: 1.5rem; }
}
@media (min-width: 981px) {
  .nav-links { display: flex; }
  .mobile-nav { display: none; }
  .lang-btn { height: 36px; }
  .hero-shell { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2rem; }
  .quote-card { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .grid-3, .portfolio-grid, .testimonials-grid, .team-grid, .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .admin-shell { grid-template-columns: 280px minmax(0, 1fr); }
  .sidebar { position: sticky; top: 92px; align-self: start; }
  .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-actions > .btn { display: none; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 1.25rem); }
  .brand { font-size: 0.9rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero-copy h1 { font-size: 2rem; }
  .hero-actions .btn { width: 100%; }
  .metric-grid { gap: 0.5rem; }
  .metric-box { padding: 0.75rem; }
  .admin-content { padding: 0.75rem; }
  .form-card { padding: 0.75rem; }
}
@media (max-width: 639px) {
  .staff-table { display: block; width: 100%; min-width: 0; }
  .staff-table thead { display: none; }
  .staff-table tbody { display: grid; gap: 0.75rem; }
  .staff-table tr { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,0.02); }
  .staff-table td { display: grid; grid-template-columns: minmax(5.5rem, 0.45fr) minmax(0, 1fr); align-items: center; gap: 0.6rem; padding: 0.65rem; }
  .staff-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.75rem; font-weight: 700; }
  .staff-table input:not([type='checkbox']), .staff-table select { min-width: 0; }
  .staff-table input[type='checkbox'] { justify-self: start; }
  .cookie-banner { inset-inline: 0.5rem; grid-template-columns: minmax(0, 1fr); max-height: min(55vh, 24rem); max-height: min(55dvh, 24rem); padding: 0.85rem; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1 1 8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
