/* Wheels Trafikskola – Site Theme (v2)
   Primary brand color extracted from logo: #007090
*/

:root{
  --primary:#007090;
  --primary-2:#0899b8;
  --ink:#0b1220;
  --muted:#4b5a6a;
  --bg:#f6fbfc;
  --card:#ffffff;
  --border:rgba(11,18,32,.10);
  --shadow:0 12px 30px rgba(11,18,32,.08);
  --radius:18px;
  --radius-sm:14px;
  --container:1120px;

  --focus:0 0 0 4px rgba(0,112,144,.22);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
}
img{max-width:100%; height:auto}
a{color:inherit; text-decoration:none}
a:hover{opacity:.92}
p{margin:0 0 1rem}
h1,h2,h3{line-height:1.15; margin:0 0 .75rem}
h1{font-size:clamp(2rem, 4vw, 3.2rem); letter-spacing:-0.02em}
h2{font-size:clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing:-0.01em}
h3{font-size:1.25rem}
small{color:var(--muted)}

.container{max-width:var(--container); margin:0 auto; padding:0 20px}
.section{padding:64px 0}
.section.tight{padding:40px 0}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:#fff; padding:10px 14px; border-radius:10px;
  box-shadow:var(--shadow);
}
.skip-link:focus{left:14px; top:14px; outline:none; box-shadow:var(--focus)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--ink);
  font-weight:700;
  white-space:nowrap;
  flex:0 0 auto;
}
.btn:focus{outline:none; box-shadow:var(--focus)}
.btn.primary{
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  border-color:transparent;
}
.btn.ghost{
  background:transparent;
  border-color:rgba(255,255,255,.35);
  color:#fff;
}
.btn.small{padding:10px 14px; font-weight:700}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(0,112,144,.10);
  color:var(--primary);
  border:1px solid rgba(0,112,144,.18);
  font-weight:800;
  font-size:.85rem;
}

.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(246,251,252,.82);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{height:36px; width:auto}
.brand .tag{font-weight:800; letter-spacing:-0.01em}
.nav-links{
  display:flex; align-items:center; gap:18px;
}
.nav-links a{
  padding:10px 10px;
  border-radius:999px;
  font-weight:700;
  color:rgba(11,18,32,.86);
}
.nav-links a.active{background:rgba(0,112,144,.10); color:var(--primary)}
.nav-actions{display:flex; align-items:center; gap:10px}

.hamburger{
  display:none;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  align-items:center; justify-content:center;
}
.hamburger:focus{outline:none; box-shadow:var(--focus)}
.hamburger span{
  width:18px; height:2px; background:var(--ink);
  display:block; position:relative;
}
.hamburger span::before, .hamburger span::after{
  content:""; position:absolute; left:0;
  width:18px; height:2px; background:var(--ink);
}
.hamburger span::before{top:-6px}
.hamburger span::after{top:6px}

@media (max-width: 920px){
  .nav-links{display:none}
  .hamburger{display:inline-flex}
  .nav-actions .btn{display:none}
  .mobile-menu{display:block}
}

.mobile-menu{
  display:none;
  border-top:1px solid var(--border);
  padding:12px 0 16px;
}
.mobile-menu a{
  display:block;
  padding:12px 8px;
  border-radius:14px;
  font-weight:800;
}
.mobile-menu a.active{background:rgba(0,112,144,.10); color:var(--primary)}
.mobile-menu .btn{width:100%; margin-top:10px}

.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(0,112,144,.16), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(8,153,184,.14), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #0b2230 100%);
  color:#fff;
}
.hero .wrap{
  display:grid;
  grid-template-columns: 1.12fr .88fr;
  gap:26px;
  align-items:center;
  padding:64px 0;
}
.hero p{color:rgba(255,255,255,.86)}
.hero .actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}
.hero .photo{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.18);
  overflow:hidden;
  box-shadow:0 18px 60px rgba(0,0,0,.35);
  background:#000;
}
.hero .photo img{display:block; width:100%; height:auto; opacity:.92}
.hero .meta{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:16px;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  color:rgba(255,255,255,.92);
  font-weight:800;
  font-size:.92rem;
}
@media (max-width: 920px){
  .hero .wrap{grid-template-columns:1fr; padding:46px 0}
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card .pad{padding:18px}
.card .title{display:flex; align-items:center; justify-content:space-between; gap:12px}
.card .title h3{margin:0}
.card .desc{color:var(--muted); margin-top:8px}

.card-img{
  height:160px;
  background:#eaf5f7;
  overflow:hidden;
}
.card-img img{width:100%; height:100%; object-fit:cover}

.kpi{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:12px
}
.kpi .dot{
  width:10px; height:10px; border-radius:50%;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  display:inline-block;
}

.note{
  background:rgba(0,112,144,.08);
  border:1px solid rgba(0,112,144,.18);
  border-radius:var(--radius);
  padding:16px;
  color:rgba(11,18,32,.92);
}

.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
@media (max-width: 920px){ .split{grid-template-columns:1fr} }

.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.step{
  padding:18px;
  border-radius:var(--radius);
  background:#fff;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.step .n{
  width:36px; height:36px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,112,144,.10);
  color:var(--primary); font-weight:900;
  border:1px solid rgba(0,112,144,.18);
  margin-bottom:10px;
}
@media (max-width: 920px){ .steps{grid-template-columns:1fr} }

.price-group{
  margin-top:18px;
}
.price-group h3{
  margin:0 0 10px;
  color:rgba(11,18,32,.92);
}
.price-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
}
.price-item + .price-item{margin-top:10px}
.price-item .t{font-weight:900}
.price-item .d{color:var(--muted); font-size:.95rem; margin-top:4px}
.price-item .p{font-weight:900; white-space:nowrap; color:var(--primary)}
@media (max-width: 640px){
  .price-item{flex-direction:column}
  .price-item .p{align-self:flex-start}
}

.footer{
  background:#0b1220;
  color:rgba(255,255,255,.86);
  padding:44px 0;
}
.footer a{color:#fff}
.footer .cols{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap:18px;
  margin-top:12px;
}
.footer .brand img{height:34px}
.footer h3{color:#fff; font-size:1rem; margin:0 0 10px}
.footer .small{color:rgba(255,255,255,.68)}
@media (max-width: 920px){ .footer .cols{grid-template-columns:1fr} }

.cookie{
  position:fixed; left:16px; right:16px; bottom:16px;
  max-width:720px; margin:0 auto;
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:14px;
  display:none;
  z-index:99;
}
.cookie .row{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
}
.cookie p{margin:0; color:var(--muted); font-size:.95rem}
@media (max-width: 720px){
  .cookie .row{flex-direction:column; align-items:stretch}
  .cookie .btn{width:100%}
}

/* Admin (minimal) */
.admin-shell{max-width:1080px; margin:0 auto; padding:24px 20px}
.table{
  width:100%; border-collapse:separate; border-spacing:0 10px;
}
.table th{font-size:.85rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); text-align:left; padding:0 10px}
.table td{
  background:#fff;
  border:1px solid var(--border);
  padding:12px 10px;
}
.table tr td:first-child{border-top-left-radius:14px; border-bottom-left-radius:14px}
.table tr td:last-child{border-top-right-radius:14px; border-bottom-right-radius:14px}
.input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font:inherit;
}
textarea{min-height:120px}
.input:focus, textarea:focus{outline:none; box-shadow:var(--focus); border-color:rgba(0,112,144,.35)}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width: 720px){ .form-row{grid-template-columns:1fr} }
.alert{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(0,112,144,.20);
  background:rgba(0,112,144,.08);
}


/* Admin tabs */
.tabs{display:flex; gap:10px; flex-wrap:wrap}
.tab{display:inline-flex; align-items:center; padding:8px 12px; border:1px solid var(--line); border-radius:999px; color:var(--text); text-decoration:none; font-weight:600; font-size:.95rem}
.tab:hover{border-color:rgba(255,255,255,.25)}
.tab.active{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.22)}
