/* HS2 – forside (skjerm 31 / 31T / 31D). Mobil først; 768 og 1200 er avledninger. */

/* ---------- Hero ---------- */
.fs-hero { background: var(--hs-navy); background-image: linear-gradient(200deg, #004867, #0091CF); color: #fff; }
.fs-hero .inner { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; padding-bottom: 0; }
.fs-hero .left { display: flex; flex-direction: column; gap: 16px; padding-bottom: 26px; }
.fs-hero h1 { font-size: 29px; font-weight: 700; line-height: 1.15; color: #fff; }
.fs-hero .lead { font-size: 15px; line-height: 1.5; color: #D7EAF4; }
.fs-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 47px; border-radius: 12px; background: #fff; color: var(--hs-muted); }
.fs-search .ic { color: var(--hs-muted); }
.fs-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--hs-text); outline: none; }
.fs-search input::placeholder { color: var(--hs-muted); }
.fs-search button { display: none; }
.fs-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-quick a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.15); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; }
.fs-quick a:hover { text-decoration: none; background: rgba(255,255,255,.25); }

/* ---------- Nøkkeltall ---------- */
.fs-stats { margin: 0 calc(-1 * var(--hs-gutter)); background: var(--hs-soft); border-bottom: 1px solid var(--hs-border); }
.fs-stats .inner { display: grid; grid-template-columns: 1fr 1fr; padding-left: 0; padding-right: 0; }
.fs-stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 14px 16px var(--hs-gutter); }
.fs-stat:nth-child(even) { padding-left: 14px; padding-right: var(--hs-gutter); }
.fs-stat .t { display: flex; flex-direction: column; gap: 2px; }
.fs-stat .v { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--hs-navy); }
.fs-stat .l { font-size: 12px; line-height: 1.35; color: var(--hs-muted); }
.fs-stat .ic { display: none; }

/* ---------- Seksjoner ---------- */
.fs-section { padding-top: 26px; padding-bottom: 24px; }
.fs-section .head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.fs-section .head h2 { font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--hs-navy); }
.fs-section .head p { font-size: 13px; line-height: 1.5; color: var(--hs-text); }
.fs-section .more { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 43px; margin-top: 12px; padding: 13px 14px; border-radius: 10px; background: var(--hs-soft); color: var(--hs-blue); font-size: 14px; font-weight: 600; }
.fs-section .more:hover { text-decoration: none; background: #e6eef2; }
.fs-soft { background: var(--hs-soft); border-top: 1px solid var(--hs-border); border-bottom: 1px solid var(--hs-border); }
.fs-soft .more { background: #fff; border: 1px solid var(--hs-border); }
.fs-soft .more:hover { background: #fff; }

/* ---------- Kategorirutenett ---------- */
.fs-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fs-cat { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--hs-border); border-radius: 14px; background: #fff; color: inherit; min-width: 0; }
.fs-cat:hover { text-decoration: none; border-color: var(--hs-border-strong); background: var(--hs-soft); }
.fs-cat .icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--hs-soft); color: var(--hs-blue); }
.fs-cat:hover .icon { background: #fff; }
.fs-cat .img { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--hs-soft); }
.fs-cat .img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fs-cat .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fs-cat .name { font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--hs-navy); overflow-wrap: break-word; hyphens: auto; }
.fs-cat .n { font-size: 12px; line-height: 1.3; color: var(--hs-muted); }

/* ---------- Ledige timer ---------- */
.fs-services { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hs-border); border-radius: 14px; overflow: hidden; }
.fs-service { display: flex; align-items: center; gap: 12px; padding: 14px; }
.fs-service + .fs-service { border-top: 1px solid var(--hs-border); }
.fs-service .info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.fs-service .name { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--hs-navy); }
.fs-service .name:hover { text-decoration: underline; }
.fs-service .prov { font-size: 12px; line-height: 1.3; color: var(--hs-muted); }
.fs-service .logo-box { width: 74px; height: 42px; }
.fs-service .btn-sm { flex: none; }

/* ---------- Klinikkjeder ---------- */
.fs-chains { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fs-chain { display: flex; align-items: center; justify-content: center; height: 72px; padding: 14px; border: 1px solid var(--hs-border); border-radius: 12px; background: #fff; }
.fs-chain:hover { border-color: var(--hs-border-strong); }
.fs-chain img { max-width: 100%; max-height: 44px; width: auto; height: auto; object-fit: contain; }

/* ---------- Artikler ---------- */
.fs-articles { display: flex; flex-direction: column; gap: 12px; }
.fs-article { display: flex; flex-direction: column; border: 1px solid var(--hs-border); border-radius: 14px; background: #fff; overflow: hidden; color: inherit; }
.fs-article:hover { text-decoration: none; border-color: var(--hs-border-strong); }
.fs-article img { width: 100%; aspect-ratio: 358 / 150; height: auto; object-fit: cover; background: #DCE4E8; }
.fs-article .t { display: flex; flex-direction: column; gap: 5px; padding: 14px; }
.fs-article .name { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--hs-navy); }
.fs-article .sub { font-size: 13px; line-height: 1.45; color: var(--hs-text); }

/* ---------- Finn legen + For klinikker ---------- */
.fs-actions { display: flex; flex-direction: column; }
.fs-doctor { display: flex; gap: 14px; align-items: flex-start; padding: 24px var(--hs-gutter); }
.fs-doctor .icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--hs-soft); color: var(--hs-navy); }
.fs-doctor .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fs-doctor h2 { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--hs-navy); }
.fs-doctor p { font-size: 13px; line-height: 1.5; color: var(--hs-text); }
.fs-doctor a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--hs-blue); }
.fs-actions .clinic-cta { margin: 8px var(--hs-gutter) 20px; border-radius: 18px; padding: 20px; }

/* ---------- 768 ---------- */
@media (min-width: 768px) {
  .fs-hero .inner { gap: 20px; padding-top: 44px; }
  .fs-hero .left { gap: 20px; padding-bottom: 40px; }
  .fs-hero h1 { font-size: 42px; }
  .fs-hero .lead { font-size: 17px; }
  .fs-search { min-height: 58px; padding: 8px 8px 8px 18px; border-radius: 999px; }
  .fs-search input { font-size: 16px; }
  .fs-search button { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 12px 20px; border-radius: 999px; background: var(--hs-navy); color: #fff; font-size: 15px; font-weight: 600; }
  .fs-search button { cursor: pointer; transition: background .13s, transform .08s; }
  .fs-search button:hover { background: var(--hs-blue); }
  .fs-search button:active { background: var(--hs-blue); transform: scale(.97); }
  .fs-search button:focus-visible { outline: 3px solid var(--hs-accent); outline-offset: 2px; }
  .fs-quick a { padding: 9px 13px; }
  .fs-stats .inner { grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px var(--hs-gutter); }
  .fs-stat, .fs-stat:nth-child(even) { padding: 12px 8px; border-radius: 12px; background: #fff; border: 1px solid var(--hs-border); text-align: center; }
  .fs-stat .v { font-size: 24px; }
  .fs-stat .l { font-size: 11px; }
  .fs-section { padding-top: 36px; padding-bottom: 36px; }
  .fs-section .head { gap: 4px; margin-bottom: 16px; }
  .fs-section .head h2 { font-size: 24px; }
  .fs-section .head p { font-size: 14px; }
  .fs-section .more { margin-top: 16px; }
  .fs-cats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .fs-cat .img { aspect-ratio: auto; height: 110px; }
  .fs-services { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; background: none; border: 0; border-radius: 0; overflow: visible; }
  .fs-service { border: 1px solid var(--hs-border); border-radius: 12px; background: #fff; }
  .fs-service .logo-box { width: 76px; height: 38px; }
  .fs-service + .fs-service { border-top: 1px solid var(--hs-border); }
  .fs-chains { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .fs-chain { height: 82px; padding: 18px 14px; }
  .fs-articles { flex-direction: row; }
  .fs-article { flex: 1; min-width: 0; }
  .fs-article img { aspect-ratio: 227 / 120; }
  .fs-article .name { font-size: 15px; }
  .fs-article .sub { font-size: 12px; }
  .fs-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 36px var(--hs-gutter) 40px; align-items: stretch; }
  .fs-doctor { flex-direction: column; gap: 10px; padding: 20px; border-radius: 16px; background: var(--hs-soft); border: 1px solid var(--hs-border); }
  .fs-doctor .icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; }
  .fs-doctor h2 { font-size: 17px; }
  .fs-doctor p { font-size: 14px; }
  .fs-doctor a { font-size: 14px; }
  .fs-actions .clinic-cta { margin: 0; padding: 20px; }
  .fs-actions .clinic-cta .row .btn { flex: 1; }
}

/* ---------- 1200 ---------- */
@media (min-width: 1200px) {
  .fs-hero .inner { display: grid; grid-template-columns: minmax(0, 1fr) 420px; column-gap: 60px; align-items: center; padding-top: 64px; padding-bottom: 60px; }
  .fs-hero .left { gap: 22px; max-width: 720px; padding-bottom: 0; }
  .fs-hero h1 { font-size: 52px; line-height: 1.1; }
  .fs-hero .lead { font-size: 19px; }
  .fs-search { min-height: 63px; padding: 9px 9px 9px 22px; }
  .fs-search input { font-size: 17px; }
  .fs-search button { min-height: 45px; padding: 13px 26px; font-size: 16px; }
  .fs-quick a { padding: 10px 15px; font-size: 14px; }
  .fs-stats { display: block; margin: 0; background: none; border: 0; }
  .fs-stats .inner { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 0; max-width: none; margin: 0; width: 320px; }
  .fs-stat, .fs-stat:nth-child(even) { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; border: 0; border-radius: 14px; background: rgba(255,255,255,.1); text-align: left; }
  .fs-stat .ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.12); color: #fff; }
  .fs-stat .t { display: flex; flex-direction: column; gap: 1px; }
  .fs-stat .v { font-size: 22px; color: #fff; }
  .fs-stat .l { font-size: 13px; color: #BBDCEC; }
  .fs-section { padding-top: 56px; padding-bottom: 56px; }
  .fs-section .head { gap: 5px; margin-bottom: 20px; }
  .fs-section .head h2 { font-size: 30px; }
  .fs-section .head p { font-size: 16px; }
  .fs-section .more { margin-top: 20px; }
  .fs-cats { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .fs-cat .img { aspect-ratio: auto; height: 140px; }
  .fs-cat .name { font-size: 16px; }
  .fs-cat .n { font-size: 13px; }
  .fs-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .fs-service .logo-box { width: 96px; height: 48px; }
  .fs-chains { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .fs-chain { height: 84px; padding: 20px 14px; }
  .fs-articles { gap: 14px; }
  .fs-article img { aspect-ratio: 391 / 200; }
  .fs-article .name { font-size: 19px; }
  .fs-article .sub { font-size: 14px; }
  .fs-actions { gap: 20px; padding-top: 56px; padding-bottom: 64px; max-width: calc(var(--hs-content) + 2 * var(--hs-gutter)); margin: 0 auto; }
  .fs-doctor { gap: 12px; padding: 28px; border-radius: 18px; }
  .fs-doctor .icon { width: 52px; height: 52px; border-radius: 14px; }
  .fs-doctor h2 { font-size: 22px; }
  .fs-doctor p { font-size: 16px; }
  .fs-doctor a { font-size: 16px; }
  .fs-actions .clinic-cta { flex-direction: column; align-items: flex-start; justify-content: flex-start; max-width: none; padding: 20px; }
  .fs-actions .clinic-cta .row { width: 100%; }
}
