/* =========================================================
   HRconsulting – arkusz stylów
   Kolory i podstawowe ustawienia zmienisz w sekcji :root
   ========================================================= */

:root {
  --red: #c8102e;
  --red-dark: #a00d25;
  --black: #111111;
  --gray-dark: #2b2b2b;
  --gray: #5f6368;
  --gray-light: #f4f4f5;
  --border: #e4e4e7;
  --white: #ffffff;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --header-h: 72px;
  --container: 1160px;
}

/* ---------- Podstawy ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  color: var(--black);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.accent {
  color: var(--red);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-dark);
}

.btn--outline {
  border-color: var(--black);
  color: var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn--small {
  padding: 9px 20px;
  font-size: 0.92rem;
}

/* ---------- Menu ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  width: 40px;
  height: 40px;
}

.logo__text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
}

.logo__text b {
  font-weight: 800;
  color: var(--red);
}

.logo--light .logo__text {
  color: var(--white);
}

/* Na ciemnym tle znak stoi na białym kafelku, żeby czarna część gradientu nie znikała */
.logo--light .logo__mark {
  width: 44px;
  height: 44px;
  padding: 5px;
  background: var(--white);
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a:not(.btn) {
  font-weight: 600;
  color: var(--gray-dark);
  position: relative;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s;
}

.nav a:not(.btn):hover::after {
  width: 100%;
}

/* Przycisk menu (hamburger) – widoczny tylko na telefonie */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 112px;
  background:
    radial-gradient(circle at 90% 10%, rgba(200, 16, 46, 0.06), transparent 45%),
    var(--white);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  margin-bottom: 24px;
}

.hero__lead {
  font-size: 1.13rem;
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__card {
  background: var(--black);
  color: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  border-top: 5px solid var(--red);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.hero__card-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin-bottom: 18px;
}

.service-list {
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-size: 1.08rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-list li:last-child {
  border-bottom: 0;
}

.service-list__num {
  color: var(--red);
  font-weight: 800;
  font-size: 0.9rem;
}

.hero__card-name {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.92rem;
  color: #d4d4d8;
}

/* ---------- Sekcje (wspólne) ---------- */
.section {
  padding: 104px 0;
}

.section--gray {
  background: var(--gray-light);
}

.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}

.section__head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section__lead {
  margin-top: 16px;
  font-size: 1.08rem;
  color: var(--gray);
}

/* ---------- Liczby ---------- */
.stats {
  background: var(--black);
  color: var(--white);
  padding: 48px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  border-left: 3px solid var(--red);
  padding-left: 20px;
}

.stat__num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat__label {
  margin-top: 6px;
  font-size: 0.92rem;
  color: #a1a1aa;
  line-height: 1.45;
}

/* ---------- O firmie ---------- */
.about-firm {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.about-firm__text p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.values {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 4px;
}

.values li {
  padding: 18px 0 18px 28px;
  border-top: 1px solid var(--border);
  position: relative;
  color: var(--gray);
}

.values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 2px;
}

.values strong {
  display: block;
  color: var(--black);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

/* ---------- Usługi ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.service:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
}

.service__icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(200, 16, 46, 0.08);
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 20px;
}

.service h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service p {
  color: var(--gray);
  font-size: 0.97rem;
}

/* ---------- O mnie ---------- */
.profile {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 88px;
}

.profile__photo {
  position: relative;
}

/* Czerwona ramka przesunięta za zdjęciem */
.profile__photo::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 3px solid var(--red);
  border-radius: 16px;
  z-index: -1;
}

.profile__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.15);
}

.profile__role {
  margin: 14px 0 24px;
  font-weight: 700;
  color: var(--red);
}

.profile__text > p:not(.eyebrow):not(.profile__role) {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tags li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gray-light);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--black);
}

.tags--small {
  margin-top: 0;
  gap: 8px;
}

.tags--small li {
  padding: 5px 12px;
  font-size: 0.84rem;
}

/* ---------- CV ---------- */
.cv {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.cv__title {
  font-size: 1.3rem;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cv__title::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--red);
}

.cv__col > .cv__title:not(:first-child) {
  margin-top: 48px;
}

.timeline {
  list-style: none;
  border-left: 2px solid var(--border);
  margin-left: 6px;
}

.timeline li {
  position: relative;
  padding: 0 0 32px 28px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--red);
}

.timeline__date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline h4 {
  font-size: 1.08rem;
  color: var(--black);
  line-height: 1.3;
  margin: 4px 0 2px;
}

.timeline__company {
  font-weight: 600;
  color: var(--gray-dark);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.timeline li > p:last-child:not(.timeline__company) {
  color: var(--gray);
  font-size: 0.95rem;
}

.timeline--compact li {
  padding-bottom: 22px;
}

.more {
  margin-top: 28px;
}

.more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 28px;
  list-style: none;
}

.more summary::-webkit-details-marker {
  display: none;
}

.more summary::before {
  content: "+ ";
}

.more[open] summary::before {
  content: "− ";
}

.checklist {
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 0 0 12px 28px;
  color: var(--gray-dark);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 800;
}

.cv__col > p {
  color: var(--gray-dark);
}

/* ---------- Kontakt ---------- */
.contact {
  background: var(--gray-light);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact__lead {
  margin: 18px 0 36px;
  color: var(--gray);
  font-size: 1.08rem;
}

.contact__list {
  list-style: none;
  display: grid;
  gap: 18px;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-weight: 600;
  color: var(--black);
}

.contact__list svg {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__list a,
.contact__list span {
  padding-top: 10px;
  overflow-wrap: anywhere;
}

.contact__list a:hover {
  color: var(--red);
}

.contact__list small {
  font-weight: 500;
  color: var(--gray);
  font-size: 0.9rem;
}

.form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px;
  border-top: 5px solid var(--red);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.form__row {
  margin-bottom: 20px;
}

.form label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--black);
  margin-bottom: 8px;
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form textarea {
  resize: vertical;
  min-height: 140px;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.1);
}

.form .is-invalid {
  border-color: var(--red);
  background: #fff6f7;
}

.form__consent {
  display: flex !important;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  color: var(--gray) !important;
  margin: 4px 0 24px !important;
  cursor: pointer;
}

.form__consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
}

.form__consent a {
  color: var(--red);
  text-decoration: underline;
}

.form__consent.is-invalid span {
  color: var(--red);
}

.form__trap {
  position: absolute;
  left: -9999px;
}

.form__submit {
  width: 100%;
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form__status {
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form__status.is-ok {
  color: #157f3b;
}

.form__status.is-error {
  color: var(--red);
}

/* ---------- Polityka prywatności ---------- */
.legal .container {
  max-width: 780px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal__date {
  color: var(--gray);
  margin: 12px 0 40px;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 40px 0 14px;
}

.legal p,
.legal li {
  color: var(--gray-dark);
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal a {
  color: var(--red);
  text-decoration: underline;
}

/* ---------- Stopka ---------- */
.footer {
  background: var(--black);
  color: #a1a1aa;
  padding-top: 72px;
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 0.8fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer__brand p {
  margin: 18px 0 22px;
  max-width: 300px;
}

.footer__title {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.footer__text {
  font-style: normal;
  line-height: 1.85;
}

.footer a:hover {
  color: var(--white);
}

.footer__links {
  list-style: none;
  line-height: 2.1;
}

.footer__social {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}

.footer__social:hover {
  background: var(--red);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  padding-bottom: 28px;
  font-size: 0.85rem;
}

/* =========================================================
   Responsywność
   ========================================================= */

/* Tablet */
@media (max-width: 960px) {
  .hero {
    padding: 64px 0 80px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__card {
    max-width: 520px;
  }

  .section {
    padding: 80px 0;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-firm,
  .cv {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 56px;
    margin-bottom: 64px;
  }

  .profile__photo {
    max-width: 340px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Telefon */
@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .hide-mobile {
    display: none;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:not(.btn)::after {
    display: none;
  }

  .nav .btn {
    margin-top: 16px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero__lead {
    font-size: 1.02rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__card {
    padding: 28px 22px;
  }

  .section {
    padding: 64px 0;
  }

  .section__head {
    margin-bottom: 36px;
  }

  .stats__grid {
    gap: 28px 16px;
  }

  .stat {
    padding-left: 14px;
  }

  .stat__num {
    font-size: 1.9rem;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .service {
    padding: 26px 22px;
  }

  .profile__photo {
    max-width: 280px;
    margin-right: 20px;
  }

  .logo__mark {
    width: 34px;
    height: 34px;
  }

  .logo__text {
    font-size: 1.12rem;
  }

  .form {
    padding: 28px 20px;
  }

  .footer {
    padding-top: 56px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
