:root {
  --primary: #112a63;
  --secondary: #2563eb;
  --accent: #f97316;
  --background: #f5f7fb;
  --text: #0b1220;
  --admin-sidebar: #1f2937;
  --admin-sidebar-active: #2563eb;
  --admin-sidebar-hover: rgba(148, 163, 184, 0.18);
  --admin-border: #e2e8f0;
  --admin-muted: #64748b;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

button {
  font-family: inherit;
}

header {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar a.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary);
  letter-spacing: -0.01em;
}

p {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a:not(.button) {
  position: relative;
  font-weight: 500;
  color: var(--text);
  padding-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.nav-links a:not(.button)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:not(.button):hover {
  color: var(--primary);
}

.nav-links a:not(.button):hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  min-height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 29, 58, 0.12);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  border-color: rgba(15, 29, 58, 0.25);
}

.nav-toggle-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-icon span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active .nav-toggle-label {
  color: var(--secondary);
}

.nav-toggle.is-active .nav-toggle-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

@media (max-width: 900px) {
  .navbar {
    padding: 1rem 1.25rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: #ffffff;
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.12);
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    padding: 5.5rem 2rem 2.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    transform: translateX(110%);
    transition: transform 0.3s ease;
    z-index: 120;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a:not(.button) {
    font-size: 1.05rem;
  }

  .nav-links .button {
    width: 100%;
    justify-content: center;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 90;
  }

  .nav-overlay.is-active {
    opacity: 1;
    pointer-events: all;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button.secondary {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.25);
}

.button.secondary:hover {
  background: var(--primary);
  color: #ffffff;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 1.2rem;
}

.hero-text p {
  margin-bottom: 2rem;
  color: rgba(17, 24, 39, 0.85);
}

.hero-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 2rem;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(20, 80, 163, 0.12);
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: white;
  padding: 1.8rem;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.page-hero {
  padding: 4.5rem 1.5rem 3.5rem;
  background: linear-gradient(180deg, rgba(20, 80, 163, 0.16), rgba(255, 255, 255, 0));
}

.page-hero__content {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 1rem;
}

.page-hero__content h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
}

.page-hero__content p {
  margin: 0;
  color: rgba(17, 24, 39, 0.82);
  font-size: 1.05rem;
}

.badge--accent {
  background: var(--secondary);
  color: #fff;
}

.section--narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.grid--two {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--three {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stack {
  display: grid;
  gap: 1.5rem;
}

.card--stacked {
  display: grid;
  gap: 1rem;
}

.card--service,
.card--reason,
.card--post {
  display: grid;
  gap: 1rem;
}

.card__lead {
  font-weight: 600;
  color: var(--secondary);
}

.card__body {
  color: rgba(17, 24, 39, 0.82);
  line-height: 1.7;
}

.text-muted {
  color: rgba(15, 23, 42, 0.65);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.form-actions--start {
  justify-content: flex-start;
}

.button.danger {
  background: #e76f51;
  color: #fff;
}

.button.danger:hover {
  background: #c75a3f;
}

.checkbox-field {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1.9rem;
}

.checkbox-field label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-list a {
  color: var(--primary);
  font-weight: 600;
}

.map-embed iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

@media (max-width: 640px) {
  .checkbox-field {
    padding-top: 0.5rem;
  }
}

.card h3 {
  margin-top: 0;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.features-list li span {
  background: rgba(29, 53, 87, 0.1);
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

.cta {
  background: linear-gradient(135deg, #1a3d8a 0%, #2563eb 100%);
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  border-radius: 24px;
  padding: 3rem 1.5rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.3);
}

.cta h2 {
  margin-top: 0;
}

.cta .button {
  background: #ffffff;
  color: var(--primary);
  border: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.cta .button:hover {
  background: #f8fafc;
  color: var(--primary);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}


.footer {
  background: linear-gradient(180deg, #142a4d 0%, #0b1d3a 100%);
  color: #ffffff;
  padding: 2.5rem 1.5rem;
}

.footer h3,
.footer h4 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer p,
.footer li,
.footer small,
.footer span {
  color: inherit;
}

.footer a {
  color: #ffffff;
  font-weight: 600;
}

.footer a:hover,
.footer a:focus {
  color: rgba(255, 255, 255, 0.75);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer small {
  display: block;
  margin-top: 1.5rem;
  text-align: center;
}

.form-card {
  max-width: 420px;
  margin: 3rem auto;
  background: white;
  padding: 2.5rem;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

form {
  display: grid;
  gap: 1rem;
}

form > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 1rem;
  width: 100%;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(69, 123, 157, 0.65);
  box-shadow: 0 0 0 4px rgba(69, 123, 157, 0.15);
  background: #fff;
}

input[type="file"] {
  padding: 0.55rem 0.75rem;
  background: transparent;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.09);
}

.table thead {
  background: #f1f5f9;
  color: #1f2a40;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

.table th,
.table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: #f8fafc;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(69, 123, 157, 0.15);
  color: var(--secondary);
  font-weight: 600;
}

.status-new {
  background: rgba(231, 111, 81, 0.15);
  color: #e76f51;
}

.status-seen {
  background: rgba(42, 157, 143, 0.18);
  color: #2a9d8f;
}

.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.2rem 1.8rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: white;
  padding: 1.75rem 2rem;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.dashboard-header h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.dashboard-header p {
  margin: 0.35rem 0 0;
  color: #4b5563;
  max-width: 38ch;
}

.dashboard--admin > .dashboard-header {
  background: linear-gradient(135deg, #1f3a93, #2a5298);
  color: #fff;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.25);
  border: none;
}

.dashboard--admin > .dashboard-header h1 {
  color: #fff;
}

.dashboard--admin > .dashboard-header p {
  color: rgba(255, 255, 255, 0.75);
}

.dashboard--admin > .dashboard-header .badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 2rem 1.4rem;
  border-radius: 20px;
  background: var(--admin-sidebar);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
  position: sticky;
  top: 2.5rem;
  min-width: 0;
}

.dashboard-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: none;
  position: relative;
  letter-spacing: 0.01em;
}

.dashboard-nav__link:hover {
  background: var(--admin-sidebar-hover);
  color: #fff;
  text-decoration: none;
}

.dashboard-nav__link.is-active {
  background: var(--admin-sidebar-active);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.45);
}

.dashboard-nav__link.is-active::before,
.dashboard-nav__link:hover::before {
  opacity: 1;
}

.dashboard-nav__link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dashboard--admin {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.dashboard-main {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.dashboard-main > * {
  width: min(100%, 960px);
}

.dashboard--admin > .dashboard-header,
.dashboard--admin > .alert,
.dashboard--admin > .card,
.dashboard--admin > section,
.dashboard--admin > table,
.dashboard-main > .card,
.dashboard-main > section,
.dashboard-main > table,
.dashboard-main > .alert {
  grid-column: 2;
}

.dashboard--admin > .dashboard-header,
.dashboard--admin > .alert {
  grid-column: 1 / -1;
}

.dashboard--admin > .dashboard-nav {
  grid-column: 1;
  align-self: stretch;
}

.dashboard--admin > .card,
.dashboard--admin > section:not(.card),
.dashboard--admin > table,
.dashboard--admin > .alert,
.dashboard-main > .card,
.dashboard-main > section,
.dashboard-main > table,
.dashboard-main > .alert {
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  padding: 2rem;
}

.dashboard--admin > .card,
.dashboard-main > .card {
  padding: 2.2rem 2.4rem;
}

.dashboard--admin > section:not(.card) h2,
.dashboard-main > section:not(.card) h2 {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

.dashboard--admin > .alert,
.dashboard-main > .alert {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
}

.dashboard--client {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard .table {
  border-radius: 14px;
  border: 1px solid var(--admin-border);
  box-shadow: none;
  overflow: hidden;
}

.dashboard .table tbody tr:hover {
  background: rgba(37, 99, 235, 0.06);
}

.dashboard .button {
  border-radius: 12px;
  font-size: 0.95rem;
  padding: 0.65rem 1.2rem;
}

.dashboard .button.secondary {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.dashboard .button.secondary:hover {
  background: #2563eb;
  color: #fff;
}

.alert {
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
}

.alert.success {
  background: rgba(42, 157, 143, 0.2);
  color: #116466;
}

.alert.error {
  background: rgba(231, 111, 81, 0.2);
  color: #b23b32;
}

@media (max-width: 768px) {
  .dashboard {
    padding: 2.5rem 1.2rem 3rem;
    gap: 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard--admin {
    grid-template-columns: 1fr;
  }

  .dashboard--admin > .dashboard-nav,
  .dashboard--admin > .dashboard-header,
  .dashboard--admin > .card,
  .dashboard--admin > section,
  .dashboard--admin > table,
  .dashboard--admin > .alert,
  .dashboard-main,
  .dashboard-main > .card,
  .dashboard-main > section,
  .dashboard-main > table,
  .dashboard-main > .alert {
    grid-column: 1;
  }

  .dashboard--admin > .card,
  .dashboard--admin > section:not(.card),
  .dashboard--admin > table,
  .dashboard--admin > .alert,
  .dashboard-main > .card,
  .dashboard-main > section,
  .dashboard-main > table,
  .dashboard-main > .alert {
    padding: 1.4rem 1.5rem;
  }

  .dashboard-main {
    align-items: stretch;
  }

  .dashboard-main > * {
    width: 100%;
  }

  .dashboard-nav {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    background: var(--admin-sidebar);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    overflow-x: auto;
    padding: 1.4rem 1rem;
    gap: 0.75rem;
  }

  .dashboard-nav__link {
    color: rgba(255, 255, 255, 0.75);
    flex: 0 0 auto;
  }

  .dashboard-nav__link.is-active {
    box-shadow: none;
    background: var(--admin-sidebar-active);
    color: #fff;
  }
}
