/* =========================================================
   Dasoft Investment — style.css
   Krój: Rubik (ten sam co euroholding.pl) + szeryfowa kursywa w sekcji misji
   Paleta z logo (#192635 / #1C8ECE / #4DB273) + czerwień Euro Holding
   ========================================================= */

:root {
  --granat: #192635;
  --granat-ciemny: #0F1A24;
  --blekit: #1C8ECE;
  --zielen: #4DB273;
  --czerwien: #D20307;
  --tekst: #34404C;
  --tekst-jasny: #6B7885;
  --tlo: #FFFFFF;
  --tlo-szare: #F4F7F9;
  --linia: #E1E7ED;
  --naglowek-h: 76px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--tlo);
  color: var(--tekst);
  font-family: "Rubik", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blekit); }

h1, h2, h3 {
  font-weight: 700;
  color: var(--granat);
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin: 0 0 18px;
}

h1 { font-size: clamp(25px, 3vw, 38px); }
h2 { font-size: clamp(21px, 2.2vw, 28px); }
h3 { font-size: 16px; margin: 0; }

p { margin: 0 0 16px; max-width: 66ch; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--granat);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--blekit);
  outline-offset: 3px;
}

/* Etykieta sekcji z czerwoną kreską */
.sekcja-label,
.misja__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: none;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tekst-jasny);
  margin: 0 0 12px;
}

.kreska {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--zielen);
  flex: none;
}

/* ---------- Nagłówek / menu ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--naglowek-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linia);
  z-index: 100;
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar__logo img { height: 34px; width: auto; }

.nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  position: relative;
  color: var(--granat);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--zielen);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--granat);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sekcje ---------- */

section { scroll-margin-top: var(--naglowek-h); }

.intro, .dlaczego, .kontakt { padding: clamp(52px, 6.5vw, 84px) 0; }

/* ---------- HOME ---------- */

.hero {
  position: relative;
  margin-top: var(--naglowek-h);
  min-height: clamp(320px, 46vh, 430px);
  display: flex;
  align-items: center;
  background: var(--granat-ciemny);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 26, 36, 0.92) 0%, rgba(15, 26, 36, 0.7) 48%, rgba(15, 26, 36, 0.22) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero h1 { color: #fff; max-width: 17ch; margin-bottom: 14px; }

.hero__lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  max-width: 46ch;
  margin-bottom: 26px;
}

.btn {
  display: inline-block;
  background: var(--blekit);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: 2px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn:hover { background: #1577ad; transform: translateY(-1px); }

/* ---------- Kim jesteśmy ---------- */

.intro__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

.intro__figure { margin: 0; }

.intro__figure img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-top: 3px solid var(--blekit);
}

.intro__text p { font-size: 16px; }

.intro__note {
  color: var(--tekst-jasny);
  font-size: 13.5px;
  margin-bottom: 0;
}

.link-eh {
  color: var(--czerwien);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(210, 3, 7, 0.35);
  transition: border-color 0.18s ease;
}

.link-eh:hover { border-bottom-color: var(--czerwien); }

/* ---------- Misja ---------- */

.misja {
  position: relative;
  background: var(--granat) url("img/pas-ciemny.jpg") center/cover no-repeat;
  padding: clamp(56px, 7vw, 90px) 0;
}

.misja::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 22, 31, 0.86);
}

.misja__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.misja__label {
  justify-content: center;
  color: #D9D9D9;
  margin-bottom: 20px;
}

.misja__text {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: #fff;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Dlaczego warto ---------- */

.dlaczego { background: var(--tlo-szare); }

.dlaczego__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

.dlaczego__figure { margin: 0; order: 2; }

.dlaczego__figure img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-bottom: 3px solid var(--blekit);
}

.akordeon { border-top: 1px solid var(--linia); }

.atut { border-bottom: 1px solid var(--linia); }

.atut__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--granat);
  text-align: left;
  transition: color 0.18s ease;
}

.atut__btn:hover { color: var(--blekit); }

.atut__znak {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--linia);
  border-radius: 50%;
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* strzałka rysowana dwoma krawędziami — obraca się po rozwinięciu */
.atut__znak::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--granat);
  border-bottom: 1.6px solid var(--granat);
  transform: translate(-50%, -70%) rotate(45deg);
  transition: transform 0.25s ease, border-color 0.2s ease;
}

.atut__btn:hover .atut__znak { border-color: var(--blekit); }

.atut.is-open .atut__znak {
  background: var(--blekit);
  border-color: var(--blekit);
}

.atut.is-open .atut__znak::before {
  border-color: #fff;
  transform: translate(-50%, -30%) rotate(-135deg);
}

.atut__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.atut.is-open .atut__panel { max-height: 320px; }

.atut__panel p {
  margin: 0;
  padding: 0 30px 18px 0;
  color: var(--tekst-jasny);
  font-size: 15px;
  max-width: 58ch;
}

/* ---------- Kontakt ---------- */

.kontakt .wrap { text-align: center; }

.kontakt .sekcja-label { justify-content: center; }

.kontakt__h2 { margin-bottom: 10px; }

.kontakt__lead {
  color: var(--tekst-jasny);
  margin: 0 auto 40px;
  max-width: 52ch;
}

.karty {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.karta {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--linia);
  border-radius: 3px;
  background: #fff;
  padding: 30px 20px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.karta:hover {
  border-color: rgba(28, 142, 206, 0.5);
  box-shadow: 0 10px 26px rgba(25, 38, 53, 0.09);
  transform: translateY(-3px);
}

.karta__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.karta__ikona {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(28, 142, 206, 0.1);
  color: var(--blekit);
  margin-bottom: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.karta:hover .karta__ikona { background: var(--blekit); color: #fff; }

.karta__ikona svg { width: 22px; height: 22px; }

.karta__opis {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tekst-jasny);
  margin-bottom: 6px;
}

.karta__wartosc {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--granat);
  line-height: 1.45;
}

/* ---------- Stopka ---------- */

.stopka {
  background: var(--granat);
  color: rgba(255, 255, 255, 0.7);
  padding: 34px 0;
}

.stopka__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.stopka__copy { text-align: center; }

.stopka__ustawienia { justify-self: end; }

.link-btn {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.link-btn:hover { color: #fff; border-bottom-color: #fff; }

.stopka__logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.stopka p { margin: 0; font-size: 13px; }

.stopka a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }

/* ---------- RWD ---------- */

@media (max-width: 900px) {
  .intro__grid, .dlaczego__grid { grid-template-columns: 1fr; }
  .dlaczego__figure { order: 0; }
  .karty { grid-template-columns: 1fr; gap: 16px; }
  .atut.is-open .atut__panel { max-height: 420px; }
}

@media (max-width: 780px) {
  :root { --naglowek-h: 68px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: var(--naglowek-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--linia);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  body.nav-open .nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 24px 18px;
  }

  .nav li + li { border-top: 1px solid var(--linia); }

  .nav a { display: block; padding: 14px 0; font-size: 16px; }
  .nav a::after { display: none; }

  .topbar__logo img { height: 30px; }

  .hero { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Adres e-mail składany w JS ---------- */

.mail__link {
  color: var(--granat);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease;
}

.mail__link:hover { border-bottom-color: var(--blekit); }

.karta .mail__link { font-weight: 600; }

/* ---------- Warianty przycisków ---------- */

.btn--maly {
  padding: 10px 20px;
  font-size: 13.5px;
}

.btn--obrys {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--obrys:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn--tekst {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 8px;
  padding-right: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn--tekst:hover { background: transparent; color: #fff; }

/* ---------- Pasek cookies ---------- */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: var(--granat-ciemny);
  border-top: 2px solid var(--zielen);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 -8px 30px rgba(15, 26, 36, 0.25);
}

.cookie-bar[hidden] { display: none; }

.cookie-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.cookie-bar__tekst {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 70ch;
}

.cookie-bar__akcje {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.cookie-bar .btn,
.cookie-modal .btn {
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Okno ustawień cookies ---------- */

.cookie-modal { position: fixed; inset: 0; z-index: 200; }

.cookie-modal[hidden] { display: none; }

.cookie-modal__tlo {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 36, 0.6);
}

.cookie-modal__panel {
  position: relative;
  width: min(620px, calc(100% - 32px));
  max-height: min(86vh, 760px);
  margin: 7vh auto 0;
  overflow-y: auto;
  background: #fff;
  border-radius: 4px;
  padding: 32px clamp(20px, 4vw, 38px) 28px;
  box-shadow: 0 24px 60px rgba(15, 26, 36, 0.3);
}

.cookie-modal__panel h2 { font-size: 21px; margin-bottom: 14px; }

.cookie-modal__panel p { font-size: 14px; color: var(--tekst-jasny); max-width: none; }

.cookie-modal__x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: var(--tekst-jasny);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cookie-modal__x:hover { color: var(--granat); }

.cookie-modal__link a {
  color: var(--czerwien);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(210, 3, 7, 0.35);
}

.cookie-modal__link a:hover { border-bottom-color: var(--czerwien); }

.cookie-grupa {
  border-top: 1px solid var(--linia);
  padding: 16px 0 4px;
}

.cookie-grupa__naglowek {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.cookie-grupa h3 { font-size: 15px; }

.cookie-status {
  font-size: 12px;
  font-weight: 500;
  color: var(--zielen);
  letter-spacing: 0.04em;
}

.przelacznik {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--tekst-jasny);
}

.przelacznik input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.przelacznik__tor {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #C9D2DA;
  transition: background 0.2s ease;
}

.przelacznik__tor::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.przelacznik input:checked + .przelacznik__tor { background: var(--zielen); }

.przelacznik input:checked + .przelacznik__tor::after { transform: translateX(18px); }

.przelacznik input:focus-visible + .przelacznik__tor {
  outline: 2px solid var(--blekit);
  outline-offset: 2px;
}

.cookie-modal__akcje {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--linia);
  padding-top: 20px;
  margin-top: 18px;
}

.cookie-modal .btn--obrys {
  border-color: var(--linia);
  color: var(--granat);
}

.cookie-modal .btn--obrys:hover {
  background: var(--tlo-szare);
  border-color: var(--granat);
}

body.modal-open { overflow: hidden; }

/* ---------- Strona z treścią (polityka prywatności) ---------- */

.dokument {
  margin-top: var(--naglowek-h);
  padding: clamp(44px, 6vw, 72px) 0 clamp(56px, 7vw, 88px);
}

.dokument .wrap { max-width: 820px; }

.dokument h1 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }

.dokument h2 {
  font-size: clamp(17px, 1.8vw, 20px);
  margin: 34px 0 12px;
}

.dokument p, .dokument li { font-size: 15px; max-width: none; }

.dokument ul { margin: 0 0 16px; padding-left: 20px; }

.dokument li { margin-bottom: 6px; }

.dokument__wstep { color: var(--tekst-jasny); }

.dokument__data {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--linia);
  font-size: 13px;
  color: var(--tekst-jasny);
}

.dokument .btn--maly { color: #fff; }

.strona-tresci .nav a { font-size: 13.5px; }

/* ---------- RWD dla nowych elementów ---------- */

@media (max-width: 780px) {
  .stopka__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .stopka__ustawienia { justify-self: center; }

  .cookie-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cookie-bar__akcje { flex-wrap: wrap; }

  .cookie-bar__akcje .btn { flex: 1 1 auto; text-align: center; }

  .cookie-modal__panel { margin-top: 4vh; max-height: 90vh; }
}

.dokument .sekcja-label { justify-content: flex-start; }
