/* Norrfall Industri: индустриальная верстка. Жёсткие углы, тёмная шапка с полосой предупреждения, крупные заголовки, таблица вакансий. */
:root {
  --staal: #22303a;
  --sno: #e7ecef;
  --isbla: #8fb4c4;
  --rod: #c23b22;
  --vit: #ffffff;
  --text: #22303a;
  --muted: #55636d;
  --linje: #c9d3d8;
  --rubrik: "Arial Narrow", Arial, sans-serif;
  --brod: Arial, Helvetica, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --sno: #161f26; --vit: #1d2930; --text: #e7ecef; --muted: #aebbc3; --linje: #33434e; --staal: #0e161c; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sno); color: var(--text); font: 16px/1.6 var(--brod); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--rubrik); text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--rod); }
:focus-visible { outline: 3px solid var(--isbla); outline-offset: 2px; }
.hoppa { position: absolute; left: -999px; top: 0; background: var(--rod); color: #fff; padding: .5rem 1rem; z-index: 9; }
.hoppa:focus { left: 1rem; top: 1rem; }

/* Шапка */
.huvud { background: var(--staal); color: var(--sno); padding: .75rem 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 5; border-bottom: 6px solid var(--rod); }
.varumarke { display: inline-flex; align-items: center; gap: .55rem; font: 400 1.2rem var(--rubrik); text-transform: uppercase; color: var(--sno); text-decoration: none; letter-spacing: .04em; }
.varumarke strong { font-weight: 700; }
.ruta { width: 18px; height: 18px; background: var(--rod); display: inline-block; }
.menyknapp { background: transparent; color: var(--sno); border: 2px solid var(--isbla); padding: .35rem .85rem; font: 700 .9rem var(--rubrik); text-transform: uppercase; cursor: pointer; }
#meny { display: none; width: 100%; }
#meny.oppen { display: block; }
#meny ul { list-style: none; margin: .7rem 0 0; padding: 0; }
#meny a { display: block; padding: .7rem 0; color: var(--sno); text-decoration: none; border-top: 1px solid #3c4d59; font-family: var(--rubrik); text-transform: uppercase; }
#meny a[aria-current="page"] { color: var(--isbla); }
#meny a:hover { color: var(--isbla); }

main { display: block; }
section { padding: 2.4rem 16px; max-width: 1180px; margin: 0 auto; }
.blok { padding-top: 2rem; }

/* Герой */
.hjalte { max-width: none; padding: 0; position: relative; }
.hjalte > img { width: 100%; height: min(70vh, 560px); object-fit: cover; filter: saturate(.85); }
.hjalte .text { background: var(--staal); color: var(--sno); padding: 1.5rem; margin: -2rem 0 0; position: relative; border-left: 8px solid var(--rod); }
.hjalte .text h1 { color: #fff; }
.etikett { font: 700 .8rem var(--rubrik); text-transform: uppercase; letter-spacing: .08em; color: var(--isbla); margin-bottom: .5rem; }
.knapp { display: inline-block; background: var(--rod); color: #fff; border: 0; padding: .75rem 1.3rem; font: 700 1rem var(--rubrik); text-transform: uppercase; text-decoration: none; cursor: pointer; }
.knapp:hover { background: #a22f19; }

/* Карусель кейсов */
.karusell { background: var(--vit); border-top: 4px solid var(--staal); }
.spar { display: flex; gap: .5rem; justify-content: flex-end; padding: .8rem; }
.spar button { width: 48px; height: 48px; background: var(--staal); color: #fff; border: 0; font-size: 1.3rem; cursor: pointer; }
.spar button:hover { background: var(--rod); }
.bilder { list-style: none; margin: 0; padding: 0; }
.kasus { display: grid; gap: 0; }
.kasus img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.kasus > div { padding: 1.2rem; }
.kasus p:not(.etikett) { color: var(--muted); }
.raknare { padding: .8rem; margin: 0; font: 700 .9rem var(--rubrik); text-transform: uppercase; color: var(--muted); }
.bilder li[hidden] { display: none; }

/* Таблица цифр и текст */
.tvakol { display: grid; gap: 28px; align-items: start; }
.siffror { margin: 0; display: grid; gap: 14px; }
.siffror div { background: var(--staal); color: var(--sno); padding: 1.2rem; border-left: 6px solid var(--isbla); }
.siffror dt { font: 700 .85rem var(--rubrik); text-transform: uppercase; color: var(--isbla); }
.siffror dd { margin: 0; font: 700 2.6rem var(--rubrik); }

/* Услуги */
.tjanst-rad { display: grid; gap: 18px; }
.tjanst { background: var(--vit); border-top: 4px solid var(--rod); }
.tjanst img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.tjanst div { padding: 1.1rem; }
.tjanst p { color: var(--muted); }
.kalkyl { border-top: 1px solid var(--linje); margin-top: 2rem; }
.formulär { background: var(--vit); padding: 1.5rem; max-width: 620px; border-top: 4px solid var(--staal); }
.formulär p { margin-bottom: 1rem; }
.formulär label { display: block; font: 700 .9rem var(--rubrik); text-transform: uppercase; margin-bottom: .3rem; }
select, input, textarea { font: inherit; padding: .6rem .7rem; border: 2px solid var(--staal); background: var(--vit); color: var(--text); width: 100%; border-radius: 0; }
.resultat { font: 700 1.6rem var(--rubrik); color: var(--rod); }
.fel { color: #9b2c1f; font-weight: 700; }
.bra { color: var(--staal); font-weight: 700; }
[aria-invalid="true"] { border-color: #9b2c1f; }

/* Новости */
.nyhets-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.nyhets-lista article { background: var(--vit); display: grid; gap: 0; }
.nyhets-lista img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.nyhets-lista div { padding: 1.1rem; }
.nyhets-lista time { font: 700 .8rem var(--rubrik); text-transform: uppercase; color: var(--muted); }
.nyhets-lista h2 { font-size: 1.3rem; margin: .3rem 0; }
.nyhets-lista h2 a { color: var(--staal); text-decoration: none; }
.nyhets-lista h2 a:hover { text-decoration: underline; }
.nyhets-lista p { color: var(--muted); margin: 0; }
.artikel { max-width: 760px; margin: 0 auto; padding: 2rem 16px 2.5rem; }
.artikel .meta time { font: 700 .85rem var(--rubrik); text-transform: uppercase; color: var(--muted); }
.artikel .ingress { font-size: 1.15rem; border-left: 6px solid var(--rod); padding-left: .9rem; color: var(--muted); }
.huvudbild { width: 100%; aspect-ratio: 16/10; object-fit: cover; margin: 1.3rem 0; }
.brodtext { max-width: 760px; margin: 0 auto; padding: 0 16px 2rem; }
.brodtext h2 { margin-top: 1.4em; }
.sidhuvud-sida { padding-bottom: .8rem; }
.sidhuvud-sida p { color: var(--muted); max-width: 720px; }

/* Вакансии */
.filter-rad { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.filter-rad label { display: grid; gap: .3rem; font: 700 .9rem var(--rubrik); text-transform: uppercase; }
.filter-rad select { min-width: 200px; }
.jobb-tabell { width: 100%; border-collapse: collapse; background: var(--vit); font-size: .95rem; }
.jobb-tabell caption { text-align: left; font: 700 1rem var(--rubrik); text-transform: uppercase; padding-bottom: .5rem; }
.jobb-tabell th, .jobb-tabell td { padding: .85rem .8rem; border-bottom: 1px solid var(--linje); text-align: left; vertical-align: top; }
.jobb-tabell thead th { background: var(--staal); color: var(--sno); font: 700 .85rem var(--rubrik); text-transform: uppercase; }
.jobb-tabell tbody tr[hidden] { display: none; }
.jobb-tabell tbody th { font-weight: 700; }

/* Kontakt */
.kontakt-rad { display: grid; gap: 22px; }
.adress { background: var(--staal); color: var(--sno); padding: 1.4rem; align-self: start; }
.adress h2 { color: #fff; font-size: 1.2rem; }
.adress a { color: var(--isbla); }

/* Текст */
.sidfot { background: var(--staal); color: #c7d1d7; padding: 2.4rem 16px 1.5rem; display: grid; gap: 22px; border-top: 6px solid var(--rod); }
.sidfot h2 { font: 700 .95rem var(--rubrik); text-transform: uppercase; color: var(--isbla); }
.sidfot a { color: #e7ecef; }
.sidfot ul { list-style: none; padding: 0; margin: 0; }
.sidfot address { font-style: normal; }
.sidfot .varumarke { color: #fff; }
.sidfot .demo { grid-column: 1 / -1; font-size: .8rem; opacity: .75; border-top: 1px solid #3c4d59; padding-top: 1rem; margin: 0; }

@media (min-width: 720px) {
  .huvud { flex-wrap: nowrap; padding: .9rem 40px; }
  .menyknapp { display: none; }
  #meny { display: block; width: auto; }
  #meny ul { display: flex; gap: 1.3rem; margin: 0; }
  #meny a { border: 0; padding: .2rem 0; font-size: .95rem; }
  .hjalte .text { max-width: 560px; margin-left: 40px; margin-top: -6rem; }
  .tvakol { grid-template-columns: 1.2fr 1fr; }
  .siffror { grid-template-columns: repeat(3, 1fr); }
  .tjanst-rad { grid-template-columns: repeat(3, 1fr); }
  .kasus { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .kasus > div { padding: 2rem; }
  .kontakt-rad { grid-template-columns: 1.4fr 1fr; }
  .nyhets-lista article { grid-template-columns: 300px 1fr; }
  .sidfot { grid-template-columns: 1.3fr 1fr 1fr; padding: 3rem 40px 1.5rem; }
  section { padding-left: 40px; padding-right: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
