:root {
  --ink: #151515;
  --muted: #646464;
  --paper: #ffffff;
  --soft: #f6f2ee;
  --line: #e7ded6;
  --orange: #f56600;
  --orange-dark: #c84b00;
  --orange-soft: #fff2e8;
  --green: #15803d;
  --red: #b91c1c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
.wrap { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  background: #111;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

.topbar .wrap {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar a { color: #fff; direction: ltr; font-weight: 800; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span { line-height: 1.25; }
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: #383838;
  font-size: 14px;
  font-weight: 800;
}

.links a {
  padding: 26px 0 24px;
  border-bottom: 2px solid transparent;
}

.links a:hover { color: var(--orange-dark); border-color: var(--orange); }

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 900;
}

.nav-cta {
  min-height: 42px;
  padding: 0 16px;
  background: var(--orange);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 590px;
  display: grid;
  align-items: center;
  padding: 72px 0;
  background:
    linear-gradient(90deg, #fff 0%, #fff 58%, rgba(255, 242, 232, .78) 100%),
    var(--paper);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 58% 0 auto;
  width: 240px;
  background: linear-gradient(135deg, transparent 0 34%, rgba(245, 102, 0, .14) 34% 66%, transparent 66%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 44px;
  align-items: start;
}

.hero-copy {
  max-width: 780px;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.hero-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 900;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 24px 0 28px;
  color: var(--muted);
  font-size: 20px;
}

.legal-note {
  max-width: 760px;
  margin: 0 0 28px;
  padding: 16px 18px;
  border-right: 4px solid var(--orange);
  border-radius: 6px;
  background: #fff7f1;
  color: #343434;
  font-size: 16px;
  font-weight: 800;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.btn.primary { border-color: var(--orange); background: var(--orange); color: #fff; }
.btn.danger { border-color: #fecaca; background: #fef2f2; color: var(--red); }
.muted-text { color: var(--muted); font-size: 13px; font-weight: 800; }

.official-card,
.profile-card,
.about-card,
.service,
.solution,
.complaint-form,
.contact-panel,
.admin-panel,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(21, 21, 21, .05);
}

.profile-card {
  box-shadow: 0 24px 70px rgba(21, 21, 21, .10);
  overflow: hidden;
}

.profile-head {
  display: grid;
  place-items: center;
  padding: 34px 26px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #fff6ee 100%);
  text-align: center;
}

.profile-head img { width: 150px; height: 150px; object-fit: contain; }
.profile-head strong { display: block; margin-top: 12px; font-size: 22px; }

.profile-body { padding: 24px; }

.license-box {
  padding: 16px;
  border: 1px solid rgba(245, 102, 0, .25);
  border-radius: 6px;
  background: var(--orange-soft);
}

.license-box strong { display: block; color: var(--orange-dark); font-size: 18px; }
.license-box span { display: block; margin-top: 4px; color: #464646; font-weight: 800; }

.profile-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.profile-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.profile-list b { color: var(--ink); }

.official-card {
  padding: 26px;
  background: #111;
  color: #fff;
  box-shadow: 0 24px 70px rgba(21, 21, 21, .12);
}

.official-card h2 {
  margin: 0 0 20px;
  font-size: 26px;
  line-height: 1.25;
}

.official-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.official-card dl div {
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.official-card dt {
  margin-bottom: 5px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.official-card dd {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-weight: 800;
}

section { padding: 78px 0; }
.about, .solutions { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }

.about-grid,
.complaint-grid,
.contact {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 34px;
  align-items: start;
}

.about h2,
.section-head h2,
#contact h2,
#complaint h2 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.25;
}

.about-card { padding: 28px; }
.about-card p { margin: 0; color: #363636; font-size: 19px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 30px;
}

.section-head p { max-width: 560px; margin: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service, .solution { min-height: 210px; padding: 26px; }

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 6px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 900;
}

h3 { margin: 0 0 9px; color: var(--ink); font-size: 21px; }
.service p, .solution p { margin: 0; color: var(--muted); }

.solution strong {
  display: block;
  margin: 16px 0 8px;
  color: var(--orange-dark);
  font-size: 22px;
  line-height: 1.35;
}

.complaint-section { background: #fff; }

.complaint-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 24px;
}

label { display: grid; gap: 7px; color: #333; font-size: 14px; font-weight: 800; }
.full { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(245, 102, 0, .22); border-color: var(--orange); }

.flash {
  max-width: 650px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 800;
}

.flash.success { background: #ecfdf3; color: var(--green); }
.flash.error { background: #fef2f2; color: var(--red); }

.contact-panel { padding: 30px; background: #111; color: #fff; }
.contact-panel p { color: rgba(255, 255, 255, .76); }

.info-list { display: grid; gap: 12px; margin-top: 24px; }

.info-list a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  direction: ltr;
  text-align: left;
  font-weight: 800;
}

.info-list span { color: var(--orange); }

footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.admin-body { min-height: 100vh; background: var(--soft); }
.admin-main { padding: 44px 0; }
.admin-panel { padding: 24px; margin-bottom: 20px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.table-wrap { overflow-x: auto; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f2;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.visits-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.visits-list h3 {
  margin-bottom: 2px;
}

.visits-list div {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.visits-list b {
  color: var(--ink);
  font-size: 13px;
}

.visits-list span {
  color: var(--orange-dark);
  font-weight: 900;
}

.visits-list small {
  direction: ltr;
  text-align: left;
  color: var(--muted);
}

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
th { color: var(--ink); background: #fff8f2; font-size: 13px; }

.status-badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.small-form { display: flex; gap: 8px; }
.small-form select { min-width: 120px; padding: 8px; }
.small-form button { min-height: 38px; padding: 0 12px; }

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .links { display: none; }
  .hero-layout, .about-grid, .complaint-grid, .contact, .grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 58px 0; }
  .hero::after { display: none; }
  .profile-card { max-width: 520px; }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
}

@media (max-width: 580px) {
  .wrap { width: min(100% - 28px, 1140px); }
  .topbar span, .nav-cta { display: none; }
  .topbar .wrap { justify-content: center; }
  .brand img { width: 42px; height: 42px; }
  .profile-head img { width: 120px; height: 120px; }
  .complaint-form { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .info-list a, .profile-list div { display: block; }
  .info-list span { display: block; margin-bottom: 4px; }
}
