:root {
  --ink: #17202a;
  --muted: #5d6873;
  --line: #d8dee5;
  --panel: #f4f6f8;
  --brand: #164667;
  --accent: #c95524;
  --steel: #24313b;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--white);
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
.container { max-width: 1180px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.navbar { min-height: 72px; padding: 0 22px; }
.navbar-brand {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0;
}
.navbar-brand::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 8px; background: var(--accent); }
.brand-mark {
  display: flex;
  align-items: center;
  padding: 0;
}
.brand-mark::after { display: none; }
.brand-mark img {
  width: 136px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}
.nav-link { color: var(--ink); font-weight: 650; margin-inline: 4px; }
.header-actions { display: flex; gap: 8px; align-items: center; margin-left: 10px; }
.btn-phone { color: var(--brand); }
.btn {
  border-radius: 6px;
  font-weight: 750;
  padding: .78rem 1.05rem;
  border: 1px solid transparent;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #b94d1d; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }

.hero, .page-hero {
  background: #f1f4f6;
  border-bottom: 1px solid var(--line);
  padding: 76px 0 58px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  align-items: center;
  gap: 46px;
}
.hero h1, .page-hero h1 {
  font-size: clamp(2.05rem, 4vw, 3.95rem);
  line-height: 1.08;
  letter-spacing: 0;
  margin: 14px 0 20px;
}
.hero p, .page-hero p {
  color: var(--muted);
  font-size: 1.13rem;
  max-width: 680px;
}
.hero img, .page-hero img {
  border-radius: 8px;
  aspect-ratio: 13 / 9;
  border: 1px solid #cfd7df;
  box-shadow: 0 18px 42px rgba(23,32,42,.13);
}
.eyebrow, .section-heading span {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn-light { background: #fff; color: var(--ink); border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: #f2f5f7; color: var(--brand); }

.home-banner {
  padding: 28px 0;
  background: #fff;
}
.banner-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: end;
  min-height: 250px;
  overflow: hidden;
  border-radius: 8px;
  padding: 34px;
  color: #fff;
  background: #1d2c36 url("/images/services/radyografik-saha-1.jpeg") center 57% / cover no-repeat;
  box-shadow: 0 18px 42px rgba(23,32,42,.14);
}
.banner-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 35, .66);
}
.banner-panel > * {
  position: relative;
  z-index: 1;
}
.banner-panel h2 {
  max-width: 760px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.15;
  margin: 8px 0 12px;
}
.banner-panel p {
  max-width: 760px;
  margin: 0;
  color: #dce5eb;
  font-size: 1.04rem;
}
.banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section { padding: 76px 0; }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading h2, .band h2, .cta h2, article h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: 0;
  margin: 8px 0 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: #b9c4cd;
  box-shadow: 0 14px 28px rgba(23,32,42,.08);
}
.service-card img { width: 100%; aspect-ratio: 16 / 10; }
.service-card div { padding: 20px; }
.service-card h3 { font-size: 1.08rem; margin: 0 0 10px; line-height: 1.28; }
.service-card p { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.service-card a { font-weight: 800; }

.band { background: #22303a; color: #fff; padding: 70px 0; }
.band p { color: #d8e0e6; }
.feature-grid { display: grid; grid-template-columns: 1fr 360px; gap: 38px; align-items: start; }
.stats {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px 18px;
  border-left: 1px solid rgba(255,255,255,.25);
  padding-left: 28px;
}
.stats strong { font-size: 2.1rem; color: #fff; line-height: 1; }
.stats span { color: #d8e0e6; }
.pill-grid, .location-grid, .link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill-grid span, .pill-grid a, .link-cloud a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .75rem .92rem;
  background: #fff;
  font-weight: 700;
}
.locations { background: var(--panel); }
.location-card {
  width: min(100%, 245px);
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.location-card strong { display: block; font-size: 1.08rem; margin-bottom: 6px; }
.location-card small { color: var(--muted); }
.trust-links { background: #fff; }
.trust-grid, .gallery-grid, .project-grid, .standard-grid, .reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.trust-grid a, .standard-card, .project-card, .gallery-card, .reference-card, .note-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.trust-grid a { padding: 22px; color: var(--ink); }
.trust-grid strong, .trust-grid span, .gallery-card span, .gallery-card small { display: block; }
.trust-grid strong { font-size: 1.2rem; margin-bottom: 8px; }
.trust-grid span, .gallery-card small { color: var(--muted); }
.gallery-card { margin: 0; }
.gallery-card img, .project-card img { width: 100%; aspect-ratio: 16 / 10; }
.gallery-card figcaption, .project-card div, .standard-card { padding: 18px; }
.gallery-card strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.gallery-card span, .project-card span { color: var(--accent); font-weight: 850; font-size: .82rem; text-transform: uppercase; }
.standard-card h2, .project-card h2 { font-size: 1.18rem; margin: 8px 0; line-height: 1.3; }
.standard-card strong { color: var(--accent); font-size: 1.08rem; }
.note-panel { padding: 24px; margin-top: 24px; background: var(--panel); }
.references { background: #fff; }
.reference-card img { width: 100%; aspect-ratio: 16 / 9; }
.reference-card div { padding: 20px; }
.reference-card small {
  display: block;
  color: var(--accent);
  font-weight: 850;
  font-size: .8rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.reference-card h2, .reference-card h3 {
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 0 0 10px;
}
.reference-card p, .reference-card li { color: var(--muted); }
.reference-card strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: .95rem;
}
.text-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 850;
}
.cta { padding: 70px 0; background: #112631; color: #fff; }
.cta p { color: #d9e2e9; max-width: 760px; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }

.page-hero.compact { padding: 56px 0 44px; }
.breadcrumb { gap: 8px; margin-bottom: 14px; color: var(--muted); }
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 44px;
}
article p, article li { color: #4e5b66; }
article h2 { font-size: 1.55rem; margin-top: 32px; }
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: #fff;
}
summary { font-weight: 800; cursor: pointer; }
.service-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.service-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.service-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.service-gallery figcaption {
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}
aside {
  position: sticky;
  top: 96px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--panel);
}
aside h2 { font-size: 1.05rem; margin: 10px 0; }
.side-link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.quote-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
}

.contact-grid { display: grid; grid-template-columns: 420px 1fr; gap: 28px; }
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
}
.contact-panel a { display: block; font-size: 1.08rem; font-weight: 800; margin: 12px 0; }
iframe { width: 100%; min-height: 420px; border: 0; border-radius: 8px; }

.admin-login { min-height: 70vh; display: grid; place-items: center; background: var(--panel); padding: 40px 16px; }
.admin-form, .edit-form {
  width: min(100%, 760px);
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.edit-form { grid-template-columns: 1fr 1fr; }
.edit-form label:nth-child(5), .edit-form label:nth-child(6), .edit-form label:nth-child(7), .edit-form label:nth-child(8), .edit-form label:nth-child(9), .edit-form label:nth-child(14) { grid-column: 1 / -1; }
.admin-preview {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel);
}
.admin-preview img {
  display: block;
  width: min(260px, 100%);
  height: auto;
  aspect-ratio: 13 / 7;
  object-fit: cover;
  border-radius: 6px;
}
label { font-weight: 750; }
input, textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
}
textarea { min-height: 110px; }
.check { display: flex; gap: 8px; align-items: center; }
.check input { width: auto; min-height: auto; margin: 0; }
.admin table { width: 100%; border-collapse: collapse; margin-bottom: 32px; background: #fff; }
.admin th, .admin td { border-bottom: 1px solid var(--line); padding: 13px; vertical-align: top; }
.admin th { background: var(--panel); }
.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-actions form { margin: 0; }
.admin-actions button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 750;
  padding: 0;
}
.admin-actions button:hover { color: var(--accent); }
.admin-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 24px; }
.admin-cards {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 28px;
  background: #fff;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}
.metric-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 8px;
}
.metric-card span { color: var(--muted); font-weight: 750; }
.stats-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.bar-chart {
  display: flex;
  gap: 14px;
  align-items: end;
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 28px;
}
.bar-item {
  width: 64px;
  display: grid;
  justify-items: center;
  gap: 6px;
}
.bar {
  width: 100%;
  min-height: 8px;
  border-radius: 6px 6px 0 0;
  background: var(--accent);
}
.bar-item small { color: var(--muted); }

.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  gap: 10px;
}
.whatsapp-float, .call-float {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #168f53;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(0,0,0,.24);
}
.whatsapp-float:hover { color: #fff; background: #117844; }
.call-float { background: var(--brand); color: #fff; }
.call-float:hover { color: #fff; background: #173e59; }
.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}
.quote-form label:nth-of-type(6), .quote-form button, .success-box { grid-column: 1 / -1; }
select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
}
.success-box {
  border: 1px solid #9bd4b6;
  border-radius: 8px;
  padding: 14px 16px;
  background: #ecf8f1;
  color: #13673d;
  font-weight: 800;
}
.site-footer { padding: 42px 0; background: #f0f3f5; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-grid span, .footer-grid strong { display: block; font-weight: 900; margin-bottom: 8px; }
.footer-grid a { display: block; margin: 5px 0; font-weight: 700; }

@media (max-width: 992px) {
  .hero-grid, .feature-grid, .two-col, .contact-grid, .cta-inner { grid-template-columns: 1fr; }
  .banner-panel { grid-template-columns: 1fr; align-items: start; }
  .banner-actions { justify-content: flex-start; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid, .gallery-grid, .project-grid, .standard-grid, .reference-grid, .service-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid, .stats-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  aside { position: static; }
}
@media (max-width: 640px) {
  .navbar { padding: 0 12px; }
  .hero, .page-hero, .section { padding: 48px 0; }
  .home-banner { padding: 18px 0; }
  .banner-panel { min-height: 320px; padding: 24px; background-position: center top; }
  .hero h1, .page-hero h1 { font-size: 2.1rem; }
  .brand-mark img { width: 118px; max-height: 46px; }
  .service-grid, .footer-grid, .edit-form, .trust-grid, .gallery-grid, .project-grid, .standard-grid, .reference-grid, .service-gallery { grid-template-columns: 1fr; }
  .metric-grid, .stats-columns { grid-template-columns: 1fr; }
  .admin-head, .admin-cards { align-items: stretch; flex-direction: column; }
  .floating-actions { right: 14px; bottom: 14px; }
  .quote-form { grid-template-columns: 1fr; }
  .header-actions { margin: 10px 0 0; }
}
