/*
Agency Builder premium template.
Source package: https://templates.inuno.app
Copyright 2026. Premium license: no mandatory frontend backlink.
*/
:root {
  --ab-bg: #f4f1ea;
  --ab-text: #111827;
  --ab-muted: #607086;
  --ab-panel: #ffffff;
  --ab-line: rgba(17, 24, 39, .13);
  --ab-primary: #111827;
  --ab-accent: #ff6b2c;
  --ab-soft: #e8f8f5;
  --ab-radius: 18px;
  --ab-shadow: 0 24px 70px rgba(17, 24, 39, .12);
  --ab-ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ab-text);
  background:
    radial-gradient(circle at 10% 5%, rgba(79, 209, 197, .22), transparent 26rem),
    radial-gradient(circle at 86% 8%, rgba(255, 107, 44, .16), transparent 24rem),
    var(--ab-bg);
  font-family: var(--ab-font, "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--ab-accent); }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 12px; }
.skip:focus { left: 12px; z-index: 10; padding: 10px 14px; background: #fff; border: 1px solid var(--ab-line); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--ab-line);
  background: rgba(244, 241, 234, .88);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 860; letter-spacing: 0; }
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--ab-primary), var(--ab-accent));
  box-shadow: 0 12px 28px rgba(17, 24, 39, .16);
}
.nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.nav a, .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--ab-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  font-weight: 780;
  transition: transform .18s var(--ab-ease), border-color .18s var(--ab-ease), background .18s var(--ab-ease), color .18s var(--ab-ease), box-shadow .18s var(--ab-ease);
}
.nav a:hover, .btn:hover { transform: translateY(-1px); border-color: var(--ab-accent); color: var(--ab-primary); box-shadow: 0 10px 24px rgba(17, 24, 39, .09); }
.nav a.active { background: var(--ab-primary); border-color: var(--ab-primary); color: #fff; }
.nav a.active:hover { color: #fff; }
.btn-primary { background: var(--ab-accent); border-color: var(--ab-accent); color: #fff; }
.btn-primary:hover { background: var(--ab-primary); border-color: var(--ab-primary); color: #fff; }
.btn.danger { color: #b42318; }
.btn.danger:hover { border-color: #f04438; background: #fff4f2; color: #7a271a; }

main { padding: 34px 0 54px; }
.section {
  margin: 14px auto;
  padding: 32px;
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--ab-shadow);
}
.section-size-full { width: 100%; }
.section-size-wide { width: min(100%, 960px); }
.section-size-half { width: min(100%, 720px); }
.section-size-compact { width: min(100%, 560px); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 24px;
  align-items: stretch;
  min-height: 560px;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 16px; color: var(--ab-accent); font-size: 12px; font-weight: 860; text-transform: uppercase; letter-spacing: .08em; }
h1, h2, h3 { margin: 0; line-height: .98; letter-spacing: 0; }
h1 { max-width: 820px; font-size: clamp(46px, 7vw, 92px); font-weight: 820; }
h2 { font-size: clamp(34px, 5vw, 62px); font-weight: 800; }
h3 { font-size: 23px; font-weight: 790; line-height: 1.05; }
.lead { max-width: 760px; margin: 20px 0 0; color: var(--ab-muted); font-size: 20px; line-height: 1.65; }
.body-text { color: var(--ab-muted); font-size: 18px; line-height: 1.7; white-space: pre-line; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--ab-radius);
  border: 1px solid var(--ab-line);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(320px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}
.hero-card strong { display: block; font-size: 34px; line-height: 1; }
.hero-card span { color: var(--ab-muted); font-weight: 800; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.item {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--ab-line);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  transition: transform .18s var(--ab-ease), border-color .18s var(--ab-ease), box-shadow .18s var(--ab-ease);
}
.item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ab-accent) 48%, var(--ab-line)); box-shadow: 0 18px 42px rgba(17,24,39,.1); }
.item p { color: var(--ab-muted); font-size: 16px; line-height: 1.58; }
.case img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  margin: -4px 0 16px;
  border: 1px solid var(--ab-line);
}
.image-text {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: 24px;
  align-items: center;
}
.image-text img {
  width: 100%;
  min-height: 360px;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
}
.faq-list { display: grid; gap: 12px; margin-top: 22px; }
.faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--ab-line);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}
.faq-list summary { cursor: pointer; font-weight: 900; }
.faq-list p { color: var(--ab-muted); line-height: 1.65; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 22px; align-items: start; }
.contact-form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: var(--ab-muted); font-size: 13px; font-weight: 900; text-transform: uppercase; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--ab-line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ab-text);
  font: inherit;
}
input[type="checkbox"] { width: auto; }
textarea { min-height: 150px; resize: vertical; }

.site-footer { border-top: 1px solid var(--ab-line); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-links, .socials { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-links a {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ab-muted);
  font-weight: 780;
  transition: color .18s var(--ab-ease), background .18s var(--ab-ease), border-color .18s var(--ab-ease), transform .18s var(--ab-ease);
}
.footer-links a::after {
  position: absolute;
  right: 12px;
  bottom: 7px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--ab-accent);
  content: "";
  opacity: 0;
  transform: scaleX(.45);
  transform-origin: left;
  transition: opacity .18s var(--ab-ease), transform .18s var(--ab-ease);
}
.footer-links a:hover {
  border-color: var(--ab-line);
  background: rgba(255,255,255,.7);
  color: var(--ab-primary);
  transform: translateY(-1px);
}
.footer-links a:hover::after { opacity: 1; transform: scaleX(1); }
.socials a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ab-line);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: var(--ab-primary);
  transition: transform .18s var(--ab-ease), border-color .18s var(--ab-ease), background .18s var(--ab-ease), color .18s var(--ab-ease), box-shadow .18s var(--ab-ease);
}
.socials a:hover { transform: translateY(-3px) rotate(-2deg); border-color: var(--ab-accent); background: var(--ab-primary); color: #fff; box-shadow: 0 14px 28px rgba(17,24,39,.16); }
.socials svg { width: 20px; height: 20px; fill: currentColor; transition: transform .18s var(--ab-ease); }
.socials a:hover svg { transform: scale(1.08); }

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 280px minmax(0, 1fr);
}
.admin-sidebar {
  padding: 24px;
  border-right: 1px solid var(--ab-line);
  background: rgba(255,255,255,.72);
}
.admin-main { padding: 24px; }
.builder-admin .admin-main { background: color-mix(in srgb, var(--ab-bg) 72%, #fff); }
.sidebar-label {
  margin: 18px 0 8px;
  color: var(--ab-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.admin-panel {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--ab-line);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
}
.builder-toolbar,
.section-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.admin-title {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}
.panel-title {
  font-size: 30px;
}
.meta-panel {
  border-color: color-mix(in srgb, var(--ab-accent) 35%, var(--ab-line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--ab-accent) 8%, #fff), rgba(255,255,255,.9));
}
.admin-list { display: grid; gap: 8px; margin-top: 18px; }
.admin-list a {
  padding: 12px 14px;
  border: 1px solid var(--ab-line);
  border-radius: 12px;
  font-weight: 900;
}
.admin-list a.active, .admin-list a:hover { border-color: var(--ab-accent); background: var(--ab-soft); color: var(--ab-primary); }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compact-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ab-line);
}
.ajax-form { display: grid; gap: 12px; }
.status { min-height: 22px; color: var(--ab-accent); font-weight: 900; }
.section-stack {
  display: grid;
  gap: 14px;
}
.section-editor-card {
  border: 1px solid var(--ab-line);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  transition: border-color .18s var(--ab-ease), box-shadow .18s var(--ab-ease), transform .18s var(--ab-ease);
}
.section-editor-card:hover {
  border-color: color-mix(in srgb, var(--ab-accent) 35%, var(--ab-line));
  box-shadow: 0 16px 34px rgba(17,24,39,.08);
}
.section-editor-card.is-dragging {
  opacity: .58;
  transform: scale(.99);
}
.section-editor-card form {
  padding: 16px;
}
.section-dragbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ab-line);
  border-radius: 16px 16px 0 0;
  background: color-mix(in srgb, var(--ab-primary) 5%, #fff);
}
.section-dragbar strong {
  color: var(--ab-primary);
  font-size: 15px;
  text-transform: capitalize;
}
.section-dragbar span {
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ab-accent) 12%, #fff);
  color: var(--ab-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.drag-handle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ab-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ab-primary);
  cursor: grab;
  font-weight: 900;
}
.drag-handle:active { cursor: grabbing; }
.section-order-form {
  grid-auto-flow: column;
  align-items: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.stat-card {
  padding: 18px;
  border: 1px solid var(--ab-line);
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ab-accent) 14%, #fff), rgba(255,255,255,.9));
}
.stat-card span,
.stat-card small {
  display: block;
  color: var(--ab-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.stat-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ab-primary);
  font-size: 42px;
  line-height: 1;
}
.stats-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stats-box {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--ab-line);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.stats-box h3 { margin-bottom: 12px; font-size: 19px; }
.stats-table {
  width: 100%;
  border-collapse: collapse;
}
.stats-table th,
.stats-table td {
  padding: 8px 0;
  border-top: 1px solid color-mix(in srgb, var(--ab-line) 72%, transparent);
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}
.stats-table th {
  width: 94px;
  color: var(--ab-text);
  font-weight: 900;
}
.stats-table td:nth-child(2) {
  width: 100%;
  padding-right: 12px;
}
.stats-table td:last-child {
  color: var(--ab-muted);
  font-weight: 900;
  text-align: right;
}
.stats-table span {
  display: block;
  height: 10px;
  min-width: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ab-accent), var(--ab-primary));
}
.message-list { display: grid; gap: 12px; margin-top: 16px; }
.message-card {
  padding: 16px;
  border: 1px solid var(--ab-line);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.message-card.is-unread {
  border-color: color-mix(in srgb, var(--ab-accent) 52%, var(--ab-line));
  background: color-mix(in srgb, var(--ab-accent) 8%, #fff);
}
.message-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.message-head div { display: grid; gap: 4px; }
.message-head strong { font-size: 18px; }
.message-head a { color: var(--ab-muted); font-weight: 800; }
.message-head a:hover { color: var(--ab-accent); text-decoration: underline; }
.message-head time { color: var(--ab-muted); font-size: 13px; font-weight: 800; }
.message-card p { color: var(--ab-muted); line-height: 1.65; }
.message-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.message-actions form { display: flex; gap: 8px; align-items: center; }
.login-card { width: min(460px, calc(100% - 48px)); margin: 9vh auto; padding: 28px; border: 1px solid var(--ab-line); border-radius: 18px; background: #fff; box-shadow: var(--ab-shadow); }
.install-card { width: min(860px, calc(100% - 48px)); margin: 40px auto; padding: 28px; border: 1px solid var(--ab-line); border-radius: 18px; background: #fff; box-shadow: var(--ab-shadow); }

@media (max-width: 920px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .hero, .contact-layout, .image-text, .admin-shell { grid-template-columns: 1fr; }
  .grid, .admin-grid, .stats-grid, .stats-columns { grid-template-columns: 1fr; }
  .section { padding: 22px; }
}
