/* uzaleznienia-behawioralne.pl - arkusz stylów (mobile-first) */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1d3340;          /* tekst główny - kontrast 12.9:1 na bieli */
  --ink-soft: #46606d;     /* tekst pomocniczy - 6.4:1 */
  --blue: #2f6f93;         /* błękit stonowany - 5.5:1 */
  --blue-deep: #22536f;
  --blue-mist: #e7f0f5;
  --sage: #4f7a63;         /* szałwia ciemna (tekst/przyciski) - 4.9:1 */
  --sage-mid: #8fb39d;
  --sage-mist: #edf3ef;
  --sand: #f4efe6;
  --line: #d9e3e0;
  --bg: #f7f9f8;
  --white: #ffffff;
  --alert: #a3473a;        /* tylko dla subtelnych alertów */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(29, 51, 64, .06), 0 8px 24px rgba(29, 51, 64, .07);
  --max: 1160px;
  --read: 72ch;
  --font: "Inter", "Segoe UI", Roboto, Lato, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #f0b429; outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); font-weight: 750; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.55rem, 3.8vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.3rem); font-weight: 650; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }
strong { font-weight: 650; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--sage); margin-bottom: .8em; }
.lede { font-size: clamp(1.08rem, 2.3vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 248, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand small { display: block; font-weight: 500; font-size: .74rem; color: var(--ink-soft); letter-spacing: 0; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 9px 16px; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 12px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle-bars::before { top: 0; } .nav-toggle-bars span { top: 5px; } .nav-toggle-bars::after { bottom: 0; }

.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 10px 20px 20px; }
.main-nav li { margin: 0; }
.main-nav a { display: block; padding: 12px 4px; text-decoration: none; color: var(--ink); font-weight: 550; border-bottom: 1px solid var(--line); }
.main-nav a[aria-current="page"] { color: var(--sage); }
.main-nav .nav-cta { margin-top: 14px; border: 0; }

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .main-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .main-nav a { border: 0; white-space: nowrap; padding: 8px 10px; border-radius: 999px; font-size: .95rem; }
  .main-nav a:hover { background: var(--sage-mist); color: var(--ink); }
  .main-nav .nav-cta { margin: 0 0 0 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: #3f6551; color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sage-mist); color: var(--ink); }
.main-nav .btn { color: #fff; padding: 9px 18px; min-height: 42px; }
.main-nav .btn:hover { background: #3f6551; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eaf2f6 0%, #f3f6f2 70%, var(--bg) 100%); }
.hero-art { position: absolute; inset: auto 0 0 0; height: 62%; pointer-events: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-inner { position: relative; padding-top: 56px; padding-bottom: 220px; }
.hero h1 { max-width: 17ch; }
.hero .lede { color: #3b5562; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding: 0; list-style: none; }
.hero-badges li { margin: 0; background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 550; color: var(--ink-soft); }
@media (min-width: 760px) { .hero-inner { padding-top: 96px; padding-bottom: 260px; } .hero-art { height: 58%; } }
@media (min-width: 1100px) { .hero-inner { padding-top: 120px; padding-bottom: 280px; } }

.page-hero { background: linear-gradient(180deg, #eaf2f6 0%, var(--bg) 100%); padding: 40px 0 36px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.85rem, 5vw, 2.8rem); max-width: 22ch; }
.breadcrumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #9aaeb6; }
.breadcrumbs a { color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-sage { background: var(--sage-mist); }
.section-head { max-width: 760px; margin-bottom: 36px; }
@media (min-width: 760px) { .section { padding: 96px 0; } }

.grid { display: grid; gap: 20px; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-gap-lg { gap: 28px; } }

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; gap: 64px; } .split-rev > :first-child { order: 2; } }
.figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-mist); box-shadow: var(--shadow); }
.figure img { width: 100%; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .card-link { margin-top: auto; padding-top: 10px; font-weight: 650; text-decoration: none; }
.card .card-link::after { content: " \2192"; }
.card .card-link:hover { text-decoration: underline; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sage-mist); display: grid; place-items: center; margin-bottom: 16px; color: var(--sage); }
.card-icon svg { width: 24px; height: 24px; }
a.card { text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
a.card:hover { transform: translateY(-2px); border-color: var(--sage-mid); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234f7a63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; margin: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: .85rem; font-weight: 750; color: var(--sage); letter-spacing: .08em; margin-bottom: 8px; }
.steps strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }

.prose { max-width: var(--read); }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }

.note {
  background: var(--sand); border-left: 4px solid #c9b48f; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px; margin: 1.6em 0; font-size: .98rem;
}
.note p:last-child { margin: 0; }
.alert {
  background: #fbf3f1; border: 1px solid #ebcdc7; border-left: 4px solid var(--alert);
  border-radius: var(--radius); padding: 20px 22px; font-size: .97rem;
}
.alert h2, .alert h3 { color: #6e2f26; font-size: 1.1rem; margin-bottom: .5em; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }

.layout-aside { display: grid; gap: 40px; }
@media (min-width: 1000px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; } .aside-sticky { position: sticky; top: 96px; } }
.aside-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.aside-box h2 { font-size: 1.15rem; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li { margin: 0; border-bottom: 1px solid var(--line); }
.aside-box li:last-child { border: 0; }
.aside-box li a { display: block; padding: 9px 0; text-decoration: none; font-weight: 550; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--sage); }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 22px 18px; color: #2c4552; }
.faq .faq-body p:last-child { margin: 0; }

/* ---------- Area ---------- */
.area-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.area-list li { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.15fr .85fr; gap: 40px; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: var(--shadow); }
@media (min-width: 680px) { .form-card { padding: 36px; } }
.form-row { display: grid; gap: 16px; }
@media (min-width: 680px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fbfcfc;
  border: 1.5px solid #c3d1cd; border-radius: 10px; padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 111, 147, .22); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--alert); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; margin-bottom: 14px; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--sage); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-weight: 550; }
.form-status[hidden] { display: none; }
.form-status.is-error { background: #fbf3f1; color: #6e2f26; border: 1px solid #ebcdc7; }
.form-status.is-ok { background: var(--sage-mist); color: #2e4d3c; border: 1px solid #c8dbcf; }

.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--sage); margin-top: 3px; }
.contact-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); font-weight: 650; }
.contact-list a { font-weight: 650; font-size: 1.08rem; text-decoration: none; color: var(--ink); }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }

.map-box { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--blue-mist); aspect-ratio: 4 / 3; }
.map-box img { width: 100%; height: 100%; object-fit: cover; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: auto 12px 12px 12px; background: rgba(255,255,255,.95); border-radius: 12px; padding: 14px 16px; font-size: .88rem; box-shadow: var(--shadow); }
.map-consent p { margin: 0 0 10px; }
.map-consent .btn { min-height: 40px; padding: 8px 16px; font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #e9f0f2; border-radius: var(--radius-lg); padding: 40px 26px; display: grid; gap: 20px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #c9d7dc; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; padding: 48px 52px; } }

/* ---------- Footer ---------- */
.site-footer { background: #15262f; color: #c3d2d8; padding: 56px 0 28px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #e3ecef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: .02em; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #2a3f4a; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .86rem; color: #9fb3bb; }
.footer-crisis { background: #1c323d; border-radius: 12px; padding: 16px 18px; margin-top: 16px; font-size: .9rem; }
.footer-crisis p { margin: 0 0 6px; }
.footer-crisis p:last-child { margin: 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 40px rgba(21, 38, 47, .22);
  padding: 20px; max-width: 560px; font-size: .92rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.05rem; margin-bottom: .4em; }
.cookie-banner p { margin: 0 0 14px; color: #34505e; }
.cookie-banner .btn { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.cookie-banner .btn-row { margin-top: 0; }
@media (min-width: 640px) { .cookie-banner { left: 24px; bottom: 24px; right: auto; padding: 24px; } }

.cookie-reopen { background: none; border: 0; padding: 0; font: inherit; color: #e3ecef; cursor: pointer; text-decoration: underline; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sage-mist); font-weight: 650; }
tr:last-child td { border-bottom: 0; }

.error-page { text-align: center; padding: 96px 0; }
.error-page .btn-row { justify-content: center; }

@media print {
  .site-header, .cookie-banner, .site-footer, .btn-row, .map-box { display: none !important; }
  body { background: #fff; }
}
.btn-onDark { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-onDark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.crisis-wrap { margin-top: 36px; }
.steps + .grid { margin-top: 36px; }
.layout-aside > *, .split > *, .contact-grid > * { min-width: 0; }
.nw { white-space: nowrap; }
.area-list { margin-bottom: 28px; }
