:root {
  --brand: #1f4ea6;
  --brand-dark: #16346d;
  --brand-950: #0b1a38;
  --accent: #f28a1e;
  --wa: #25d366;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --max: 72rem;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.topbar { display: none; background: var(--brand-950); color: #cbd5e1; font-size: .8rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar-inner, .header-inner, .section-head, .legal, .rep-actions, .actions, .brand-row, .rep-line { display: flex; gap: .75rem; align-items: center; }
.topbar-inner, .legal, .section-head { justify-content: space-between; }
.topbar-reps, .rep-pills { display: flex; gap: 1rem; flex-wrap: wrap; }
.mini-wa, .icon-btn.wa { background: var(--wa); color: white; }
.mini-wa, .icon-btn { display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border-radius: .55rem; color: white; text-decoration: none; }
.icon-btn.brand, .btn-brand { background: var(--brand); color: white; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { justify-content: space-between; padding: .6rem 0; }
.logo { height: 44px; width: auto; background: white; }
.logo-lg { height: 72px; border-radius: .8rem; }
.desktop-nav { display: none; gap: .25rem; align-items: center; }
.nav-link { text-decoration: none; color: var(--muted); font-weight: 700; padding: .45rem .7rem; border-radius: .6rem; }
.nav-link.is-active { background: #eef3fb; color: var(--brand); }
.header-tools { display: flex; gap: .4rem; }
.menu-btn, .btn, button { font: inherit; cursor: pointer; }
.menu-btn { border: 1px solid var(--line); background: white; border-radius: .6rem; padding: .55rem .7rem; }
.mobile-nav { display: grid; gap: .2rem; padding-bottom: 1rem; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { text-decoration: none; color: var(--ink); font-weight: 700; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.mobile-rep { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: .8rem; padding: .75rem 1rem; font-weight: 700; text-decoration: none; }
.btn-accent { background: var(--accent); color: white; }
.btn-wa { background: var(--wa); color: white; }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: white; background: transparent; }
.btn-ghost.dark { border-color: var(--line); color: var(--ink); background: white; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.hero { background: linear-gradient(90deg, rgba(11,26,56,.94), rgba(11,26,56,.55)), url("/assets/hero.svg") center/cover; color: white; }
.hero-inner { display: grid; gap: 2rem; padding: 4.5rem 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: .6rem 0; }
.hero h1 span, .text-link, .footer a.text-link { color: #fdba74; }
.eyebrow { display: inline-block; margin: 0; color: #fdba74; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lead, .hero .lead { color: #cbd5e1; max-width: 42rem; }
.actions, .rep-actions { flex-wrap: wrap; }
.stats, .cards, .footer-grid, .about-grid, .browser { display: grid; gap: 1rem; }
.stats { grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; }
.stats div, .card, .intro, .filters-panel { background: white; border: 1px solid var(--line); border-radius: 1rem; }
.stats div { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); padding: 1rem; }
.stats strong { display: block; color: #fdba74; font-size: 1.4rem; }
.hero-logo { display: none; background: white; border-radius: 1rem; padding: 1rem; }
.section, .page { padding: 3rem 0; }
.muted, .card p { color: var(--muted); }
.cards, .price-grid { grid-template-columns: 1fr; }
.price-grid { display: grid; gap: 1rem; }
.price-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: 100%; }
.price-logo { display: flex; align-items: center; justify-content: center; height: 8.5rem; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.15rem; }
.price-logo img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center; }
.price-logo .logo-fallback { width: auto; height: auto; aspect-ratio: auto; padding: 0; background: transparent; font-size: 1.8rem; }
.price-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.price-body h2 { margin: 0; font-size: 1.35rem; }
.price-body .actions { margin-top: auto; padding-top: .7rem; }
.price-note { margin: 0 0 1rem; }
.price-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.price-mark { width: 7.5rem; height: 4.5rem; object-fit: contain; background: #fff; }
.card { padding: 1.1rem; color: inherit; text-decoration: none; }
.card.price-card { padding: 0; }
.service {
  position: relative;
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .35rem;
  overflow: hidden;
  border: 0;
  color: white;
  background-color: #0b1a38;
  background-image: linear-gradient(180deg, rgba(11,26,56,.28), rgba(11,26,56,.86)), var(--photo);
  background-size: cover;
  background-position: center;
}
.service-aydinlatma { --photo: url("/assets/services/aydinlatma.jpg"); }
.service-anahtar { --photo: url("/assets/services/anahtar.jpg"); }
.service-kablo { --photo: url("/assets/services/kablo.jpg"); }
.service-salt { --photo: url("/assets/services/salt.jpg"); }
.service-endustri { --photo: url("/assets/services/endustri.jpg"); }
.service-proje { --photo: url("/assets/services/proje.jpg"); }
.service h3, .service p { position: relative; color: white; margin: 0; }
.service-icon { position: relative; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: .65rem; background: rgba(255,255,255,.16); }
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1.2rem 0 1.5rem; }
.logo-card { display: grid; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); text-decoration: none; }
.logo-media { display: grid; place-items: center; aspect-ratio: 3/4; background: #0b1a38; overflow: hidden; }
.logo-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-media.is-fit { background: #fff; padding: 1.5rem 1.25rem; }
.logo-media.is-fit img { width: 100%; height: 100%; object-fit: contain; }
.logo-card span { padding: .75rem .9rem .9rem; font-weight: 800; }
.logo-card .logo-fallback { display: grid; place-items: center; aspect-ratio: 3/4; padding: 0; background: #eef3fb; color: var(--brand); font-size: 2rem; font-weight: 900; }
.intro .rep-pills a { color: #fff; }
.logo-card:hover { border-color: var(--brand); }
.social-link { display: inline-flex; align-items: center; gap: .4rem; }
.ico { width: 1.15rem; height: 1.15rem; display: block; flex: none; }
.btn .ico { width: 1.2rem; height: 1.2rem; }
.kicker { color: var(--brand); font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.band { background: white; border-block: 1px solid var(--line); padding: 3rem 0; }
.chips, .filters, .rep-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip, .pill { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: #f8fafc; border-radius: 999px; padding: .55rem .9rem; text-decoration: none; color: var(--ink); font-weight: 800; }
.chip img, .admin-logo { width: 24px; height: 24px; object-fit: contain; }
.pill.is-on, .switch .is-on, .brand-filter.is-on { background: var(--brand); color: white; }
.cta-band { background: var(--brand-950); color: white; padding: 3rem 0; }
.card.dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: white; }
.card.dark .kicker { color: #fdba74; }
.address-line a { color: #fdba74; }
.site-footer { background: var(--brand-950); color: #cbd5e1; margin-top: 3rem; }
.footer-accent { height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand)); }
.footer-grid { padding: 3rem 0; }
.site-footer h2 { color: #fdba74; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-ig, .legal a { color: white; text-decoration: none; }
.hours div, .legal { display: flex; justify-content: space-between; gap: 1rem; }
.rep-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.rep-list li, .filters-panel, .intro { padding: .8rem; background: rgba(255,255,255,.06); border-radius: .8rem; }
.legal { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0 1.4rem; font-size: .8rem; }
.legal a { margin-left: .8rem; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.filters { margin: 1.2rem 0; }
.brand-card h2 { margin: 0; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .8rem; background: #eef3fb; color: var(--brand); font-weight: 900; }
.badge { background: #ffedd5; color: #9a3412; border-radius: 999px; padding: .15rem .5rem; font-size: .75rem; font-weight: 800; }
.more { color: var(--brand); font-weight: 700; }
.intro { background: linear-gradient(135deg, var(--brand-950), var(--brand-dark)); color: white; padding: 2rem; }
.intro .eyebrow { background: var(--accent); color: white; border-radius: 999px; padding: .2rem .55rem; }
.browser { align-items: start; }
.filters-panel { padding: 1rem; position: static; }
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; background: #f1f5f9; padding: .3rem; border-radius: .8rem; }
.switch a, .brand-filter { display: flex; justify-content: space-between; text-decoration: none; color: var(--muted); font-weight: 700; padding: .45rem .6rem; border-radius: .6rem; }
label, .label { display: block; margin: .8rem 0 .3rem; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: .8rem; padding: .75rem .9rem; font: inherit; }
.check { display: flex; align-items: center; gap: .4rem; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--ink); }
.check input { width: auto; }
.form { display: grid; gap: .35rem; }
.inline-form { grid-template-columns: 1fr; }
.empty { border: 1px dashed var(--line); border-radius: 1rem; padding: 2rem; text-align: center; }
.back { font-weight: 700; text-decoration: none; }
.price-head, .quote-box, .pdf-mobile { margin-top: 1rem; }
.pdf-frame { display: none; width: 100%; margin-top: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: #e2e8f0; }
.quote-box { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.quote-rep, .rep-pills span { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); border-radius: .8rem; padding: .25rem .35rem .25rem .7rem; }
.about-grid { align-items: stretch; }
.about-visual { min-height: 18rem; border-radius: 1.2rem; padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; background: linear-gradient(180deg, rgba(11,26,56,.2), rgba(11,26,56,.82)), url("/assets/hero.svg") center/cover; color: white; }
.about-visual img { background: white; border-radius: .8rem; padding: .6rem; }
.reps-head, .rep-line { justify-content: space-between; }
.rep-line { padding: 1rem 0; border-top: 1px solid var(--line); }
.rep-choices { display: grid; gap: .55rem; margin-top: .8rem; }
.rep-choice { position: relative; margin: 0; text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.rep-choice input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.rep-choice-body { display: flex; align-items: center; gap: .75rem; min-height: 4.4rem; border: 1px solid var(--line); border-radius: .9rem; padding: .7rem .85rem; background: white; }
.rep-choice input:focus-visible + .rep-choice-body { outline: 2px solid var(--brand); outline-offset: 2px; }
.rep-choice input:checked + .rep-choice-body { border-color: #16a34a; background: #f0fdf4; box-shadow: inset 0 0 0 1px #16a34a; }
.rep-choice-text { min-width: 0; }
.rep-choice-text strong, .rep-choice-text small { display: block; }
.rep-choice-text small { margin-top: .15rem; color: var(--muted); font-weight: 600; }
.quote-fields { display: grid; gap: .15rem .8rem; }
.quote-preview { margin: .9rem 0 .2rem; padding: .9rem 1rem; border-radius: .9rem; background: #f8fafc; border: 1px dashed #cbd5e1; color: var(--ink); }
.quote-card .btn-wa { width: 100%; }
.map { width: 100%; height: 380px; border: 0; border-radius: 1rem; margin-top: 1rem; }
.prose { max-width: 46rem; }
.alert { border-radius: .8rem; padding: .8rem 1rem; }
.alert-error { background: #fef2f2; color: #b91c1c; }
.alert-ok { background: #f0fdf4; color: #166534; }
.alert-warn { background: #fffbeb; color: #92400e; }
.fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; display: grid; justify-items: end; gap: .6rem; }
.fab-panel { width: min(18rem, calc(100vw - 2rem)); background: white; border: 1px solid var(--line); border-radius: 1rem; padding: .8rem; box-shadow: 0 12px 40px rgba(15,23,42,.18); }
.fab-panel[hidden] { display: none; }
.fab-row { display: flex; justify-content: space-between; gap: .4rem; align-items: center; padding: .35rem 0; }
.fab-row a { color: var(--muted); font-size: .8rem; }
.admin details { margin-top: .8rem; }
.admin summary { cursor: pointer; font-weight: 800; }
.admin-logo { width: 72px; height: 72px; }
@media (min-width: 768px) {
  .cards, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .cards.four, .stats { grid-template-columns: repeat(4, 1fr); }
  .about-grid, .browser, .footer-grid { grid-template-columns: 1.2fr .8fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .pdf-frame { display: block; height: 75vh; }
  .pdf-mobile { display: none; }
  .inline-form { grid-template-columns: 1.4fr 1fr auto auto; align-items: center; }
  .hero-logo { display: block; }
  .filters-panel { position: sticky; top: 5.5rem; }
}
@media (min-width: 1024px) {
  .topbar { display: block; }
  .desktop-nav { display: flex; }
  .header-tools { display: none; }
  .mobile-nav { display: none; }
  .cards, .logo-grid, .price-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-fields { grid-template-columns: 1fr 1fr; }
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr auto; align-items: center; }
}
