:root {
  --navy-950: #030812;
  --navy-900: #07101d;
  --navy-850: #0b1728;
  --navy-800: #10223a;
  --blue-600: #126ee8;
  --blue-500: #1c8cff;
  --cyan-400: #31d7ff;
  --white: #fff;
  --slate-50: #f7f9fc;
  --slate-100: #edf2f7;
  --slate-200: #dce5ef;
  --slate-400: #8a9aae;
  --slate-600: #526276;
  --slate-800: #1c2a3c;
  --danger: #d63b4b;
  --success: #138a61;
  --shadow: 0 24px 70px rgba(3, 13, 28, .13);
  --radius: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--slate-800); background: var(--slate-50); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.menu-open, body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; }
.icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 112px 0; }
.skip-link { position: fixed; z-index: 9999; top: 8px; left: 8px; padding: 10px 15px; background: var(--white); color: var(--navy-950); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 10px; padding: 0 22px; font-weight: 750; font-size: .94rem; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.btn-primary { color: var(--white); background: linear-gradient(135deg, var(--blue-600), var(--blue-500)); box-shadow: 0 14px 28px rgba(18, 110, 232, .28); }
.btn-primary:hover { box-shadow: 0 18px 34px rgba(18, 110, 232, .4); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.btn-muted { color: var(--slate-800); background: var(--slate-100); border-color: var(--slate-200); box-shadow: none; }
.btn-small { min-height: 44px; padding: 0 17px; }
.btn-block { width: 100%; }

.eyebrow { margin: 0 0 17px; display: flex; align-items: center; gap: 11px; color: var(--cyan-400); font-size: .77rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: currentColor; }
.eyebrow.dark { color: var(--blue-600); }

/* Public navigation */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 88px; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1); transition: background .25s ease, box-shadow .25s ease, height .25s ease; }
.site-header.scrolled { height: 76px; background: rgba(3, 8, 18, .94); box-shadow: 0 10px 30px rgba(0,0,0,.22); backdrop-filter: blur(16px); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.4rem; letter-spacing: -.04em; }
.brand small { margin-top: 5px; color: rgba(255,255,255,.62); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 29px; font-size: .88rem; font-weight: 650; }
.main-nav > a:not(.nav-cta) { position: relative; color: rgba(255,255,255,.78); }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--cyan-400); transition: right .2s ease; }
.main-nav > a:hover { color: var(--white); }
.main-nav > a:hover::after { right: 0; }
.nav-cta { display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px; border-radius: 9px; background: var(--blue-600); }
.nav-cta .icon { width: 17px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.08); align-items: center; justify-content: center; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; color: var(--white); background: var(--navy-950); }
.hero-media { position: absolute; inset: 0; background: url('../images/hero.webp') center/cover no-repeat; transform: scale(1.02); animation: heroIn 1.2s ease both; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,7,15,.98) 0%, rgba(3,9,19,.93) 32%, rgba(4,12,24,.52) 65%, rgba(3,8,18,.2) 100%), linear-gradient(0deg, rgba(3,8,18,.92) 0%, transparent 35%); }
.hero-overlay::after { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, #000, transparent 75%); }
.hero-content { position: relative; z-index: 2; padding-top: 88px; }
.hero-copy { width: min(680px, 66%); }
.hero-copy h1 { margin: 0; max-width: 700px; font-size: clamp(3.2rem, 5.7vw, 5.4rem); line-height: .98; letter-spacing: -.065em; font-weight: 820; }
.hero-copy h1 em { color: transparent; background: linear-gradient(100deg, #d9f6ff, var(--cyan-400)); background-clip: text; font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 610px; margin: 25px 0 0; color: rgba(255,255,255,.7); font-size: 1.14rem; line-height: 1.75; }
.hero-actions { margin-top: 35px; display: flex; gap: 13px; flex-wrap: wrap; }
.hero-points { margin: 34px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,.13); display: flex; gap: 25px; list-style: none; color: rgba(255,255,255,.66); font-size: .8rem; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points .icon { width: 15px; color: var(--cyan-400); }
.hero-index { position: absolute; z-index: 2; right: 34px; bottom: 36px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.45); font-size: .7rem; letter-spacing: .14em; }
.hero-index i { width: 60px; height: 1px; background: rgba(255,255,255,.35); }
@keyframes heroIn { from { opacity: .15; transform: scale(1.07); } to { opacity: 1; transform: scale(1.02); } }

/* Headings */
.section-heading { margin-bottom: 44px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .65fr); gap: 80px; align-items: end; }
.section-heading h2, .about-copy h2, .faq-intro h2, .contact-copy h2 { margin: 0; font-size: clamp(2.25rem, 4.1vw, 4rem); line-height: 1.05; letter-spacing: -.055em; color: var(--navy-900); }
.section-heading > p { margin: 0 0 4px; color: var(--slate-600); line-height: 1.8; }
.section-heading.light h2 { color: var(--white); }
.section-heading.light > p { color: rgba(255,255,255,.58); }

/* Services */
.services { background: var(--slate-50); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--slate-200); border-radius: 18px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.service-card { position: relative; min-height: 310px; padding: 31px 27px; border-right: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); background: var(--white); overflow: hidden; transition: transform .25s ease, background .25s ease; }
.service-card:nth-child(4n) { border-right: 0; }
.service-card:nth-last-child(-n+4) { border-bottom: 0; }
.service-card::before { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--blue-600), var(--cyan-400)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.service-card:hover { z-index: 2; transform: translateY(-4px); background: #fbfdff; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 53px; height: 53px; display: grid; place-items: center; color: var(--blue-600); background: #eaf4ff; border: 1px solid #d3eaff; border-radius: 14px; }
.service-icon .icon { width: 25px; height: 25px; }
.service-number { position: absolute; top: 34px; right: 26px; color: var(--slate-200); font-weight: 850; font-size: 1rem; letter-spacing: .08em; }
.service-card h3 { margin: 42px 0 10px; font-size: 1.1rem; line-height: 1.25; letter-spacing: -.02em; }
.service-card p { margin: 0; color: var(--slate-600); font-size: .9rem; line-height: 1.75; }
.service-card-cta { color: var(--white); background: linear-gradient(145deg, var(--navy-800), var(--navy-950)); border: 0; }
.service-card-cta:hover { background: linear-gradient(145deg, #122b48, var(--navy-950)); }
.service-card-cta .service-icon { color: var(--white); background: var(--blue-600); border-color: var(--blue-500); }
.service-card-cta p { color: rgba(255,255,255,.62); }
.service-card-cta a { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; color: var(--cyan-400); font-weight: 750; font-size: .88rem; }

/* Portfolio */
.portfolio-section { position: relative; color: var(--white); background: var(--navy-900); overflow: hidden; }
.portfolio-section::before { content: ""; position: absolute; width: 700px; height: 700px; right: -380px; top: -360px; border-radius: 50%; background: rgba(28,140,255,.12); filter: blur(4px); }
.portfolio-section .container { position: relative; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.portfolio-card, .portfolio-card:nth-child(3n) { position: relative; min-height: 0; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 14px; overflow: hidden; color: var(--white); background: var(--navy-800); text-align: left; cursor: pointer; }
.portfolio-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.portfolio-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,8,18,.95), rgba(3,8,18,.06) 72%); }
.portfolio-content { position: absolute; inset: auto 0 0; padding: 30px; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.portfolio-content small { grid-column: 1; margin-bottom: 7px; color: var(--cyan-400); font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.portfolio-content strong { grid-column: 1; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.03em; }
.portfolio-content i { grid-column: 2; grid-row: 1 / 3; width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; font-style: normal; transition: background .25s ease, color .25s ease; }
.portfolio-card:hover img { transform: scale(1.045); filter: saturate(1.08); }
.portfolio-card:hover .portfolio-content i { color: var(--navy-950); background: var(--cyan-400); border-color: var(--cyan-400); }
.portfolio-empty { padding: 72px 24px; border: 1px dashed rgba(255,255,255,.18); border-radius: 16px; text-align: center; }
.portfolio-empty > div { width: 60px; height: 60px; margin: 0 auto 20px; display: grid; place-items: center; color: var(--cyan-400); background: rgba(49,215,255,.08); border-radius: 50%; }
.portfolio-empty h3 { margin: 0 0 6px; font-size: 1.4rem; }
.portfolio-empty p { margin: 0; color: rgba(255,255,255,.55); }

/* About */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: minmax(330px,.9fr) minmax(0,1.1fr); gap: 100px; align-items: center; }
.about-visual { min-height: 560px; display: grid; place-items: center; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #173a62 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
.logo-orbit { position: relative; width: min(76%, 390px); aspect-ratio: 1; display: grid; place-items: center; }
.logo-orbit::before, .logo-orbit::after, .orbit-one, .orbit-two { content: ""; position: absolute; border-radius: 50%; }
.logo-orbit::before { inset: -17%; border: 1px solid rgba(49,215,255,.23); }
.logo-orbit::after { inset: -5%; border: 1px dashed rgba(255,255,255,.18); animation: spin 28s linear infinite; }
.logo-orbit img { position: relative; z-index: 2; width: 100%; border-radius: 50%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.42)); }
.orbit-one { width: 13px; height: 13px; top: -18%; left: 50%; background: var(--cyan-400); box-shadow: 0 0 20px var(--cyan-400); }
.orbit-two { width: 8px; height: 8px; bottom: 1%; left: -4%; background: var(--blue-500); box-shadow: 0 0 16px var(--blue-500); }
@keyframes spin { to { transform: rotate(360deg); } }
.about-copy .lead { margin: 28px 0 16px; color: var(--slate-800); font-size: 1.18rem; font-weight: 600; line-height: 1.75; }
.about-copy > p:not(.eyebrow):not(.lead) { color: var(--slate-600); }
.about-features { margin-top: 30px; display: grid; gap: 12px; }
.about-features span { display: flex; align-items: center; gap: 11px; font-weight: 680; }
.about-features .icon { width: 20px; color: var(--blue-600); }

/* FAQ */
.faq-section { background: var(--slate-50); }
.faq-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 90px; align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-intro > p:not(.eyebrow) { margin: 22px 0 0; max-width: 440px; color: var(--slate-600); }
.faq-list { border-top: 1px solid var(--slate-200); }
.faq-list details { border-bottom: 1px solid var(--slate-200); }
.faq-list summary { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--navy-900); font-weight: 760; font-size: 1rem; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--slate-200); border-radius: 50%; color: var(--blue-600); font-size: 1.25rem; font-weight: 450; transition: transform .2s ease, background .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); color: var(--white); background: var(--blue-600); border-color: var(--blue-600); }
.faq-list details p { margin: -6px 52px 24px 0; color: var(--slate-600); font-size: .92rem; line-height: 1.75; }

/* Contact */
.contact-section { position: relative; padding: 112px 0; color: var(--white); background: linear-gradient(135deg, var(--navy-950), #0a213c); overflow: hidden; }
.contact-glow { position: absolute; width: 500px; height: 500px; left: -250px; top: -250px; border-radius: 50%; background: rgba(28,140,255,.24); filter: blur(30px); }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0,.82fr) minmax(480px,1.18fr); gap: 70px; align-items: center; }
.contact-copy h2 { color: var(--white); }
.contact-copy > p:not(.eyebrow) { max-width: 570px; margin: 22px 0 30px; color: rgba(255,255,255,.62); font-size: 1.05rem; }
.contact-list { border-top: 1px solid rgba(255,255,255,.15); }
.contact-list > a, .contact-item { min-height: 91px; display: grid; grid-template-columns: 48px 1fr auto; gap: 17px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-list > a > span, .contact-item > span { width: 48px; height: 48px; display: grid; place-items: center; color: var(--cyan-400); background: rgba(49,215,255,.09); border-radius: 12px; }
.contact-list div small { display: block; color: rgba(255,255,255,.45); font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; }
.contact-list div strong { display: block; margin-top: 2px; font-size: .98rem; }
.contact-list > a > .icon { color: rgba(255,255,255,.35); transition: transform .2s ease, color .2s ease; }
.contact-list > a:hover > .icon { color: var(--cyan-400); transform: translateX(4px); }
.contact-placeholder { padding: 30px; display: flex; gap: 15px; align-items: center; border: 1px dashed rgba(255,255,255,.2); border-radius: 13px; color: rgba(255,255,255,.6); }
.contact-placeholder span { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255,255,255,.06); border-radius: 11px; }
.contact-placeholder p { margin: 0; }
.contact-shortcuts { display: grid; gap: 10px; }
.contact-shortcuts a { min-height: 62px; padding: 10px 0; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-shortcuts > a > .icon { width: 21px; color: var(--cyan-400); }
.contact-shortcuts a span { min-width: 0; display: grid; }
.contact-shortcuts small { color: rgba(255,255,255,.45); font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-shortcuts strong { overflow-wrap: anywhere; font-size: .9rem; }
.contact-form-wrap { min-width: 0; }
.contact-form { position: relative; padding: 30px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; color: var(--slate-800); background: var(--white); box-shadow: 0 25px 70px rgba(0,0,0,.28); }
.contact-form-heading { margin-bottom: 22px; display: flex; align-items: center; gap: 13px; }
.contact-form-heading > span { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: var(--blue-600); background: #eaf4ff; }
.contact-form-heading > span .icon { width: 21px; }
.contact-form-heading small { color: var(--blue-600); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-form-heading h3 { margin: 4px 0 4px; color: var(--navy-900); font-size: 1.55rem; line-height: 1.2; }
.contact-form-heading p { margin: 0; color: var(--slate-600); font-size: .82rem; }
.contact-form label > small { display: inline; margin: 0; }
.contact-form textarea { min-height: 120px; }
.contact-consent { margin: 18px 0; display: flex; align-items: flex-start; gap: 10px; color: var(--slate-600); font-size: .73rem; font-weight: 550; line-height: 1.5; cursor: pointer; }
.contact-consent input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--blue-600); }
.contact-privacy { margin: 11px 0 0; color: var(--slate-400); text-align: center; font-size: .68rem; }
.form-trap { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Footer and lightbox */
.site-footer { padding: 55px 0 24px; color: var(--white); background: #02050b; }
.footer-main { padding-bottom: 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 55px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { width: 55px; height: 55px; }
.footer-main > p { max-width: 330px; margin: 0; color: rgba(255,255,255,.48); font-size: .85rem; }
.footer-main nav { display: flex; gap: 22px; color: rgba(255,255,255,.65); font-size: .82rem; }
.footer-main nav a:hover { color: var(--cyan-400); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.36); font-size: .72rem; }
.footer-bottom a:hover { color: rgba(255,255,255,.72); }
.floating-whatsapp { position: fixed; z-index: 80; right: 22px; bottom: 22px; min-height: 51px; display: flex; align-items: center; gap: 9px; padding: 0 17px; border-radius: 999px; color: var(--white); background: #13a968; box-shadow: 0 14px 35px rgba(7,70,43,.3); font-weight: 750; font-size: .84rem; transition: transform .25s ease, opacity .25s ease, visibility .25s ease; }
.floating-whatsapp:hover { transform: translateY(-2px); }
.floating-whatsapp.footer-hidden { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; }
.back-to-top { position: fixed; z-index: 79; right: 22px; bottom: 85px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: var(--white); background: rgba(7,16,29,.92); box-shadow: 0 12px 28px rgba(0,0,0,.24); opacity: 0; visibility: hidden; transform: translateY(12px); cursor: pointer; transition: opacity .22s ease, visibility .22s ease, transform .22s ease, bottom .22s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top.footer-mode { bottom: 22px; }
.back-to-top:hover { color: var(--cyan-400); border-color: var(--cyan-400); }
.lightbox { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 30px; color: var(--white); background: rgba(1,4,9,.94); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-dialog { width: min(1040px, 100%); max-height: calc(100vh - 60px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px,.6fr); overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: var(--navy-900); transform: translateY(15px); transition: transform .25s ease; }
.lightbox.open .lightbox-dialog { transform: translateY(0); }
.lightbox-dialog img { width: 100%; height: min(74vh, 720px); object-fit: cover; }
.lightbox-dialog > div { padding: 40px 32px; align-self: end; }
.lightbox-dialog small { color: var(--cyan-400); font-weight: 800; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.lightbox-dialog h3 { margin: 12px 0 13px; font-size: 1.8rem; line-height: 1.13; }
.lightbox-dialog p { margin: 0; color: rgba(255,255,255,.6); }
.lightbox-close { position: absolute; z-index: 2; top: 18px; right: 20px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: var(--white); background: rgba(6,13,24,.72); cursor: pointer; }
.reveal { opacity: 1; transform: none; }
.reveal.js-reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease var(--delay,0ms), transform .65s ease var(--delay,0ms); }
.reveal.js-reveal.visible { opacity: 1; transform: translateY(0); }

/* Shared forms and alerts */
label { color: var(--slate-800); font-size: .83rem; font-weight: 720; }
input, textarea, select { width: 100%; margin-top: 7px; border: 1px solid var(--slate-200); border-radius: 9px; padding: 12px 14px; color: var(--slate-800); background: var(--white); outline: none; transition: border .2s ease, box-shadow .2s ease; }
input { min-height: 48px; }
select { min-height: 48px; cursor: pointer; }
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(28,140,255,.12); }
label small { display: block; margin-top: 6px; color: var(--slate-400); font-size: .72rem; font-weight: 520; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.alert { margin-bottom: 22px; padding: 14px 16px; border: 1px solid; border-radius: 10px; font-size: .86rem; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.alert-error { color: #9f2937; background: #fff0f2; border-color: #f3bdc4; }
.alert-success { color: #0d7651; background: #ecfbf5; border-color: #b6ead6; }

/* Installer */
.installer-body { min-height: 100vh; padding: 44px 20px; background: radial-gradient(circle at top left, #183c67 0, var(--navy-900) 36%, var(--navy-950) 100%); }
.installer-shell { width: min(900px, 100%); margin: 0 auto; }
.installer-card { padding: 34px; border: 1px solid rgba(255,255,255,.11); border-radius: 20px; background: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.installer-brand { display: flex; gap: 20px; align-items: center; }
.installer-brand img { width: 90px; height: 90px; border-radius: 50%; }
.installer-brand span { color: var(--blue-600); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.installer-brand h1 { margin: 5px 0 0; font-size: clamp(1.55rem,3vw,2.35rem); line-height: 1.1; letter-spacing: -.04em; }
.installer-intro { margin: 26px 0; padding: 17px 19px; color: var(--slate-600); background: var(--slate-50); border-left: 3px solid var(--blue-500); border-radius: 0 8px 8px 0; font-size: .9rem; }
.installer-form { display: grid; gap: 24px; }
.installer-form fieldset, .settings-sections fieldset { margin: 0; padding: 22px; border: 1px solid var(--slate-200); border-radius: 12px; }
.installer-form legend, .settings-sections legend { padding: 0 9px; color: var(--navy-800); font-size: .86rem; font-weight: 800; }

/* Login */
.login-body { min-height: 100vh; color: var(--white); background: var(--navy-950); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px,.9fr) minmax(520px,1.1fr); }
.login-visual { position: relative; padding: 55px 70px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(0deg, rgba(3,8,18,.96), rgba(3,8,18,.5)), url('../images/hero.webp') center/cover; }
.login-visual > img { width: 90px; height: 90px; border-radius: 50%; }
.login-visual > div { max-width: 560px; }
.login-visual h1 { margin: 0; font-size: clamp(2.8rem,5vw,5rem); line-height: .98; letter-spacing: -.06em; }
.login-visual > div > p:last-child { max-width: 480px; color: rgba(255,255,255,.6); }
.login-visual > a { color: rgba(255,255,255,.6); font-size: .82rem; }
.login-card { display: grid; place-items: center; padding: 45px; background: var(--white); color: var(--slate-800); }
.login-card-inner { width: min(440px,100%); }
.login-mark { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 13px; color: var(--white); background: linear-gradient(135deg,var(--blue-600),var(--cyan-400)); font-weight: 900; }
.login-card-inner > p:not(.login-helper) { margin: 27px 0 3px; color: var(--blue-600); font-size: .73rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-card h2 { margin: 0; font-size: 2.25rem; letter-spacing: -.05em; }
.login-helper { margin: 8px 0 28px; color: var(--slate-600); font-size: .88rem; }
.stack-form { display: grid; gap: 18px; }
.stack-form .btn { margin-top: 5px; }

/* Admin shell */
.admin-body { min-height: 100vh; background: #f2f6fa; }
.admin-sidebar { position: fixed; z-index: 110; inset: 0 auto 0 0; width: 270px; padding: 28px 18px 20px; display: flex; flex-direction: column; color: var(--white); background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.admin-brand { padding: 0 9px 25px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand img { width: 58px; height: 58px; border-radius: 50%; }
.admin-brand div { display: grid; line-height: 1.1; }
.admin-brand strong { font-size: 1.25rem; }
.admin-brand span { margin-top: 5px; color: rgba(255,255,255,.45); font-size: .65rem; }
.admin-sidebar nav { margin-top: 24px; display: grid; gap: 7px; }
.admin-sidebar nav a { min-height: 50px; padding: 0 14px; display: flex; align-items: center; gap: 13px; border-radius: 9px; color: rgba(255,255,255,.57); font-size: .84rem; font-weight: 650; transition: color .2s ease, background .2s ease; }
.admin-sidebar nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.admin-sidebar nav a.active { color: var(--white); background: linear-gradient(90deg, rgba(28,140,255,.27), rgba(28,140,255,.08)); box-shadow: inset 3px 0 var(--blue-500); }
.admin-sidebar nav .icon { width: 19px; }
.admin-sidebar nav .nav-count { margin-left: auto; min-width: 23px; height: 23px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; color: var(--white); background: var(--blue-600); font-size: .64rem; }
.admin-sidebar-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-user { margin-bottom: 14px; display: flex; align-items: center; gap: 11px; }
.admin-user > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--blue-600); font-size: .82rem; font-weight: 800; }
.admin-user div { min-width: 0; display: grid; }
.admin-user strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .8rem; }
.admin-user small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: rgba(255,255,255,.38); font-size: .63rem; }
.admin-sidebar-foot > a { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.45); font-size: .78rem; }
.admin-main { min-height: 100vh; margin-left: 270px; padding: 38px clamp(25px,4vw,58px) 60px; }
.admin-page-header { margin-bottom: 30px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.admin-page-header p { margin: 0 0 2px; color: var(--slate-400); font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.admin-page-header h1 { margin: 0; color: var(--navy-900); font-size: clamp(1.7rem,3vw,2.5rem); line-height: 1.15; letter-spacing: -.045em; }
.admin-view-site { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-600); font-size: .8rem; font-weight: 750; }
.admin-view-site .icon { width: 16px; }
.admin-mobile-header, .admin-overlay { display: none; }
.admin-stats { margin-bottom: 25px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.admin-stats article { min-height: 120px; padding: 24px; display: flex; align-items: center; gap: 18px; border: 1px solid #e1e9f1; border-radius: 13px; background: var(--white); box-shadow: 0 10px 30px rgba(14,35,61,.05); }
.admin-stats article > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 13px; color: var(--blue-600); background: #eaf4ff; }
.admin-stats small { display: block; color: var(--slate-400); font-size: .7rem; font-weight: 650; }
.admin-stats strong { display: block; margin-top: 3px; color: var(--navy-900); font-size: 1.7rem; line-height: 1; }
.admin-stats .status-text { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.status-text i { width: 8px; height: 8px; border-radius: 50%; background: #19a974; box-shadow: 0 0 0 4px #d9f6eb; }
.admin-content-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(290px,.55fr); gap: 22px; align-items: start; }
.admin-panel, .admin-quick, .admin-form-panel { border: 1px solid #e1e9f1; border-radius: 14px; background: var(--white); box-shadow: 0 10px 34px rgba(14,35,61,.05); }
.admin-panel > header, .admin-form-panel > header { min-height: 92px; padding: 22px 25px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--slate-100); }
.admin-panel header span, .admin-form-panel header span { color: var(--slate-400); font-size: .68rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.admin-panel header h2, .admin-form-panel header h2 { margin: 2px 0 0; color: var(--navy-900); font-size: 1.18rem; }
.admin-panel header > a:not(.btn) { display: flex; align-items: center; gap: 7px; color: var(--blue-600); font-size: .75rem; font-weight: 750; }
.admin-panel header > a .icon { width: 15px; }
.recent-list article { min-height: 92px; padding: 13px 23px; display: grid; grid-template-columns: 72px minmax(0,1fr) auto 35px; gap: 15px; align-items: center; border-bottom: 1px solid var(--slate-100); }
.recent-list article:last-child { border-bottom: 0; }
.recent-list img { width: 72px; height: 58px; object-fit: cover; border-radius: 8px; }
.recent-list div { min-width: 0; display: grid; }
.recent-list small { color: var(--blue-600); font-size: .65rem; font-weight: 750; }
.recent-list strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .84rem; }
.recent-list article > a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--slate-200); border-radius: 8px; color: var(--slate-600); }
.recent-list article > a:hover { color: var(--blue-600); border-color: #b9d9ff; }
.status-pill { display: inline-flex; align-items: center; width: max-content; padding: 5px 9px; border-radius: 999px; font-size: .65rem; font-weight: 750; }
.status-pill.published { color: #0d7651; background: #e6f8f1; }
.status-pill.draft { color: #8b651b; background: #fff5dc; }
.status-pill.new { color: #075ea9; background: #e7f3ff; }
.status-pill.contacted { color: #8b651b; background: #fff5dc; }
.status-pill.completed { color: #0d7651; background: #e6f8f1; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-filters a { padding: 8px 12px; border: 1px solid var(--slate-200); border-radius: 999px; color: var(--slate-600); background: var(--white); font-size: .72rem; font-weight: 700; }
.admin-filters a.active, .admin-filters a:hover { color: var(--blue-600); border-color: #abd2ff; background: #edf6ff; }
.contact-admin-cell { min-width: 230px; display: grid; }
.contact-admin-cell strong { color: var(--navy-900); }
.contact-admin-cell small { color: var(--slate-400); font-size: .68rem; }
.contact-detail-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(260px,.55fr); gap: 22px; }
.contact-message { padding: 22px; border: 1px solid var(--slate-200); border-radius: 11px; color: var(--slate-600); background: var(--slate-50); white-space: pre-wrap; }
.detail-list { display: grid; gap: 0; }
.detail-list div { padding: 13px 0; border-bottom: 1px solid var(--slate-100); }
.detail-list div:last-child { border-bottom: 0; }
.detail-list small { display: block; color: var(--slate-400); font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.detail-list strong, .detail-list a { display: block; margin-top: 3px; overflow-wrap: anywhere; color: var(--navy-900); font-size: .82rem; font-weight: 700; }
.detail-list a:hover { color: var(--blue-600); }
.admin-quick { padding: 25px; color: var(--white); background: linear-gradient(150deg,var(--navy-800),var(--navy-950)); border-color: transparent; }
.admin-quick > p { margin: 0; color: var(--cyan-400); font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.admin-quick h2 { margin: 3px 0 20px; font-size: 1.25rem; }
.admin-quick > a { min-height: 78px; display: grid; grid-template-columns: 41px 1fr auto; gap: 12px; align-items: center; border-top: 1px solid rgba(255,255,255,.11); }
.admin-quick > a > span { width: 41px; height: 41px; display: grid; place-items: center; color: var(--cyan-400); background: rgba(49,215,255,.09); border-radius: 10px; }
.admin-quick > a div { min-width: 0; display: grid; }
.admin-quick > a strong { font-size: .8rem; }
.admin-quick > a small { color: rgba(255,255,255,.4); font-size: .64rem; }
.admin-quick > a > .icon { width: 15px; color: rgba(255,255,255,.3); }
.admin-empty { padding: 55px 25px; text-align: center; }
.admin-empty > .icon { width: 42px; height: 42px; color: var(--slate-400); }
.admin-empty h3 { margin: 10px 0 4px; font-size: 1rem; }
.admin-empty p { margin: 0 auto 20px; max-width: 430px; color: var(--slate-400); font-size: .8rem; }

/* Admin table and forms */
.portfolio-admin-panel > header { padding-block: 18px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.admin-table th { padding: 13px 17px; color: var(--slate-400); background: #fbfcfe; border-bottom: 1px solid var(--slate-100); text-align: left; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-table td { padding: 14px 17px; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.project-cell { min-width: 280px; display: flex; align-items: center; gap: 13px; }
.project-cell img { width: 77px; height: 58px; flex: 0 0 auto; object-fit: cover; border-radius: 7px; }
.project-cell div { min-width: 0; display: grid; }
.project-cell strong { color: var(--navy-900); }
.project-cell small { max-width: 350px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--slate-400); font-size: .68rem; }
.actions-col { text-align: right !important; }
.table-actions { display: flex; justify-content: flex-end; gap: 7px; }
.table-actions a, .table-actions button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--slate-200); border-radius: 8px; color: var(--slate-600); background: var(--white); cursor: pointer; }
.table-actions .icon { width: 16px; }
.table-actions a:hover { color: var(--blue-600); border-color: #abd2ff; }
.table-actions button.danger:hover { color: var(--danger); border-color: #f3bdc4; background: #fff5f6; }
.admin-form-panel > header { justify-content: flex-start; gap: 26px; }
.admin-form-panel > header > a { padding-right: 25px; border-right: 1px solid var(--slate-200); color: var(--blue-600); font-size: .78rem; font-weight: 750; }
.admin-form { padding: 26px; }
.admin-form-columns { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 30px; }
.form-fields { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.switch-label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch-label > input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 45px; height: 25px; flex: 0 0 auto; border-radius: 999px; background: var(--slate-200); transition: background .2s ease; }
.switch::after { content: ""; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 6px rgba(0,0,0,.16); transition: transform .2s ease; }
.switch-label > input:checked + .switch { background: var(--blue-600); }
.switch-label > input:checked + .switch::after { transform: translateX(20px); }
.switch-label > span:last-child { display: grid; }
.switch-label strong { font-size: .82rem; }
.switch-label small { margin: 0; }
.image-uploader { padding: 18px; align-self: start; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--slate-50); }
.image-preview { aspect-ratio: 4/3; display: grid; place-items: center; align-content: center; gap: 8px; overflow: hidden; border: 1px dashed var(--slate-300, #c9d4e0); border-radius: 9px; color: var(--slate-400); background: var(--white); font-size: .74rem; }
.image-preview .icon { width: 30px; height: 30px; }
.image-preview.has-image { border-style: solid; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-button { min-height: 45px; margin-top: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #b9d9ff; border-radius: 8px; color: var(--blue-600); background: #edf6ff; cursor: pointer; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-button .icon { width: 17px; }
.image-uploader > p { margin: 11px 0 0; color: var(--slate-400); text-align: center; font-size: .68rem; }
.admin-form > footer { margin: 28px -26px -26px; padding: 20px 26px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--slate-100); background: #fbfcfe; border-radius: 0 0 14px 14px; }
.settings-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

@media (max-width: 1080px) {
  .main-nav { gap: 20px; }
  .nav-cta { display: none; }
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-card:nth-child(4n) { border-right: 1px solid var(--slate-200); }
  .service-card:nth-child(2n) { border-right: 0; }
  .service-card:nth-last-child(-n+4) { border-bottom: 1px solid var(--slate-200); }
  .service-card:nth-last-child(-n+2) { border-bottom: 0; }
  .about-grid, .contact-grid { gap: 60px; }
  .admin-main { padding-inline: 25px; }
  .admin-content-grid { grid-template-columns: 1fr; }
  .admin-quick { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
  .admin-quick > p, .admin-quick h2 { grid-column: 1 / -1; }
  .admin-quick > a { border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 10px; grid-template-columns: 38px 1fr; }
  .admin-quick > a > .icon { display: none; }
  .admin-form-columns { grid-template-columns: 1fr 270px; }
  .admin-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .section { padding: 82px 0; }
  .site-header, .site-header.scrolled { height: 74px; }
  .brand img { width: 50px; height: 50px; }
  .menu-toggle { display: flex; }
  .menu-toggle .icon { width: 22px; height: 22px; }
  .main-nav { position: fixed; z-index: 99; inset: 74px 0 0; padding: 30px 25px; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: rgba(3,8,18,.98); transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s ease; }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav > a { padding: 17px 4px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1rem; }
  .main-nav > a::after { display: none; }
  .main-nav .nav-cta { margin-top: 24px; display: flex; justify-content: center; border: 0; }
  .hero { min-height: 720px; }
  .hero-media { background-position: 65% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(2,7,15,.97), rgba(3,9,19,.8) 68%, rgba(3,8,18,.5)), linear-gradient(0deg, rgba(3,8,18,.9), transparent 55%); }
  .hero-copy { width: min(650px,88%); }
  .hero-copy h1 { font-size: clamp(3rem,9vw,4.5rem); }
  .hero-points { flex-wrap: wrap; gap: 10px 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 44px; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-intro { position: static; }
  .about-visual { min-height: 460px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > p { grid-column: 1 / -1; grid-row: 2; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { min-height: 390px; padding: 35px; }
  .login-visual h1 { font-size: clamp(2.5rem,10vw,4rem); }
  .login-card { padding: 55px 25px; }
  .admin-mobile-header { position: fixed; z-index: 105; inset: 0 0 auto; height: 70px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; color: var(--white); background: var(--navy-950); }
  .admin-mobile-brand { display: flex; align-items: center; gap: 10px; }
  .admin-mobile-brand img { width: 46px; height: 46px; border-radius: 50%; }
  .admin-menu-toggle { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 9px; color: var(--white); background: rgba(255,255,255,.07); }
  .admin-sidebar { width: min(290px,86vw); transform: translateX(-100%); transition: transform .25s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-overlay { position: fixed; z-index: 100; inset: 0; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
  .admin-overlay.open { display: block; opacity: 1; visibility: visible; }
  .admin-main { margin-left: 0; padding: 100px 20px 45px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-stats article:last-child { grid-column: auto; }
  .admin-form-columns, .settings-sections { grid-template-columns: 1fr; }
  .contact-detail-grid { grid-template-columns: 1fr; }
  .image-uploader { width: min(420px,100%); }
}

@media (max-width: 600px) {
  .container { width: min(100% - 30px,1180px); }
  .section { padding: 68px 0; }
  .brand span { display: none; }
  .hero { min-height: 700px; }
  .hero-media { background-position: 69% center; opacity: .76; }
  .hero-overlay { background: linear-gradient(90deg, rgba(2,7,15,.97), rgba(3,9,19,.72)), linear-gradient(0deg, rgba(3,8,18,.95), transparent 55%); }
  .hero-content { padding-top: 75px; }
  .hero-copy { width: 100%; }
  .hero-copy h1 { font-size: clamp(2.65rem,13vw,3.6rem); }
  .hero-copy > p:not(.eyebrow) { font-size: 1rem; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .hero-points { display: grid; gap: 7px; }
  .hero-index { display: none; }
  .section-heading h2, .about-copy h2, .faq-intro h2, .contact-copy h2 { font-size: clamp(2rem,11vw,3rem); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(4n), .service-card:nth-child(2n), .service-card:nth-last-child(-n+4), .service-card:nth-last-child(-n+2) { min-height: 265px; border-right: 0; border-bottom: 1px solid var(--slate-200); }
  .service-card:last-child { border-bottom: 0; }
  .service-card h3 { margin-top: 32px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card, .portfolio-card:nth-child(3n) { aspect-ratio: 16 / 11; }
  .portfolio-content { padding: 22px; }
  .portfolio-content strong { font-size: 1.2rem; }
  .about-visual { min-height: 360px; }
  .contact-section { padding: 75px 0; }
  .contact-form { padding: 23px 18px; }
  .contact-list > a, .contact-item { grid-template-columns: 43px minmax(0,1fr) auto; gap: 12px; }
  .contact-list > a > span, .contact-item > span { width: 43px; height: 43px; }
  .contact-list div strong { overflow-wrap: anywhere; font-size: .87rem; }
  .footer-main { grid-template-columns: 1fr; gap: 25px; }
  .footer-brand span { display: grid; }
  .footer-main > p { grid-column: auto; grid-row: auto; }
  .footer-main nav { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; }
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .lightbox { padding: 16px; }
  .lightbox-dialog { max-height: calc(100vh - 32px); grid-template-columns: 1fr; overflow-y: auto; }
  .lightbox-dialog img { height: 48vh; }
  .lightbox-dialog > div { padding: 24px; }
  .lightbox-close { top: 24px; right: 24px; }
  .form-grid, .form-row { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .installer-body { padding: 18px 10px; }
  .installer-card { padding: 23px 18px; }
  .installer-brand img { width: 68px; height: 68px; }
  .installer-form fieldset, .settings-sections fieldset { padding: 16px; }
  .login-visual { min-height: 340px; padding: 28px 24px; }
  .login-visual > img { width: 70px; height: 70px; }
  .admin-main { padding-inline: 14px; }
  .admin-page-header { align-items: flex-end; }
  .admin-view-site { font-size: 0; }
  .admin-view-site .icon { width: 22px; height: 22px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-stats article:last-child { grid-column: auto; }
  .admin-quick { grid-template-columns: 1fr; }
  .admin-panel > header, .admin-form-panel > header { padding: 19px; }
  .admin-panel > header { align-items: flex-start; flex-direction: column; }
  .recent-list article { grid-template-columns: 65px minmax(0,1fr) 34px; padding: 13px 16px; }
  .recent-list .status-pill { display: none; }
  .admin-table-wrap { overflow: visible; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { padding: 16px; border-bottom: 1px solid var(--slate-200); }
  .admin-table td { padding: 7px 0; border: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .admin-table td::before { content: attr(data-label); color: var(--slate-400); font-size: .66rem; font-weight: 700; text-transform: uppercase; }
  .admin-table td:first-child { display: block; }
  .admin-table td:first-child::before { display: none; }
  .project-cell { min-width: 0; }
  .project-cell small { max-width: 190px; }
  .admin-form-panel > header { align-items: flex-start; flex-direction: column; gap: 9px; }
  .admin-form-panel > header > a { border-right: 0; padding-right: 0; }
  .admin-form { padding: 18px; }
  .admin-form > footer { margin: 24px -18px -18px; padding: 17px 18px; flex-direction: column-reverse; }
  .admin-form > footer .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
