/* ============================================================
   hrd.pl — partner tools brand stylesheet
   Style w duchu consultingservice.pl, branding hrd.pl
   ============================================================ */

:root {
  --brand-navy:      #0d1c3f;
  --brand-navy-2:    #13264e;
  --brand-red:       #e63946;
  --brand-red-dark:  #c1121f;
  --brand-gold:      #f4c430;
  --brand-blue:      #1e6fb8;
  --brand-blue-dark: #155a99;

  --ink:        #1f2937;
  --ink-muted:  #6b7280;
  --bg:         #ffffff;
  --bg-soft:    #f6f8fb;
  --bg-dark:    #0a162e;
  --border:     #e5e7eb;

  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;

  --shadow-sm:  0 1px 2px rgba(13,28,63,.06);
  --shadow:     0 6px 24px rgba(13,28,63,.08);
  --shadow-lg:  0 20px 50px rgba(13,28,63,.15);

  --container:  1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-blue-dark); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--brand-navy); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

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

/* ----------------- Top nav ----------------- */
.hrd-topbar {
  background: var(--brand-navy);
  color: #cdd6e6;
  font-size: 13px;
}
.hrd-topbar .container { display: flex; justify-content: flex-end; gap: 22px; padding-top: 8px; padding-bottom: 8px; }
.hrd-topbar a { color: #cdd6e6; }
.hrd-topbar a:hover { color: #fff; text-decoration: none; }

.hrd-header {
  background: var(--brand-navy);
  position: relative;
  color: #fff;
}
.hrd-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.hrd-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em;
}
.hrd-logo:hover { color: #fff; text-decoration: none; }
.hrd-logo .dot { color: var(--brand-red); }

.hrd-nav { display: flex; gap: 26px; }
.hrd-nav a {
  color: #fff; font-weight: 500; font-size: 15px;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.hrd-nav a:hover { color: #fff; border-bottom-color: var(--brand-red); text-decoration: none; }

.hrd-burger { display: none; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

@media (max-width: 960px) {
  .hrd-burger { display: block; }
  .hrd-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--brand-navy-2); padding: 14px 24px; z-index: 50; }
  .hrd-nav.open { display: flex; }
  .hrd-nav a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ----------------- Hero ----------------- */
.hrd-hero {
  background: var(--brand-navy);
  color: #fff;
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}
.hrd-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 400px at 20% -10%, rgba(30,111,184,.25), transparent 60%),
              radial-gradient(900px 300px at 90% 0%, rgba(230,57,70,.18), transparent 55%);
  pointer-events: none;
}
.hrd-hero .container { position: relative; z-index: 1; }
.hrd-hero h1 .accent { color: var(--brand-red); }
.hrd-hero p.lead { font-size: 1.1rem; max-width: 720px; color: #d6dcea; margin-top: 14px; }
.hrd-hero .meta {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; color: #e8edf7;
  margin-bottom: 16px;
}
.hrd-hero .meta .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--brand-gold); }

.hrd-wave { display: block; width: 100%; height: 70px; }
.hrd-wave path { fill: var(--bg); }

/* ----------------- Sections ----------------- */
section { padding: 56px 0; }
section.alt { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { display: inline-block; }
.section-title h2::after {
  content: ""; display: block; width: 64px; height: 3px;
  background: var(--brand-gold); margin: 10px auto 0; border-radius: 2px;
}
.section-title p { color: var(--ink-muted); max-width: 640px; margin: 12px auto 0; }

/* ----------------- Cards ----------------- */
.hrd-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.hrd-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hrd-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(30,111,184,.1); color: var(--brand-blue);
  margin-bottom: 14px;
}
.hrd-card h3 { margin-bottom: 8px; }
.hrd-card p { color: var(--ink-muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ----------------- Tool panel ----------------- */
.hrd-tool {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 28px;
  margin-top: -40px; position: relative; z-index: 2;
}
.hrd-tool .form-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
@media (max-width: 720px) { .hrd-tool .form-row { grid-template-columns: 1fr; } }

label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--brand-navy); font-size: 14px; }
input[type=text], input[type=email], input[type=url], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(30,111,184,.15);
}

/* ----------------- Buttons ----------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; font: inherit; font-weight: 600;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .1s, background .15s, color .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: var(--brand-red-dark); color: #fff; text-decoration: none; }
.btn-secondary { background: var(--brand-blue); color: #fff; }
.btn-secondary:hover { background: var(--brand-blue-dark); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--brand-navy); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }
.btn-dark { background: var(--brand-navy); color: #fff; }
.btn-dark:hover { background: var(--brand-navy-2); color: #fff; }

.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ----------------- Status pills / badges ----------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pill.ok    { background: #dcfce7; color: #166534; }
.pill.warn  { background: #fef3c7; color: #92400e; }
.pill.err   { background: #fee2e2; color: #991b1b; }
.pill.info  { background: #dbeafe; color: #1e40af; }

/* ----------------- Result blocks ----------------- */
.result-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; background: #fff; margin-bottom: 14px;
  border-left: 4px solid var(--brand-blue);
}
.result-card.success { border-left-color: #16a34a; }
.result-card.error   { border-left-color: #dc2626; }
.result-card.warn    { border-left-color: #d97706; }
.result-card pre {
  background: var(--bg-soft); border-radius: var(--radius-sm);
  padding: 12px 14px; overflow: auto; font-size: 13.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 0;
}

table.hrd-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.hrd-table th, .hrd-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.hrd-table th { background: var(--bg-soft); font-weight: 700; color: var(--brand-navy); font-size: 14px; }
.hrd-table tr:last-child td { border-bottom: 0; }

/* ----------------- About hrd.pl strip ----------------- */
.hrd-about {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-2) 100%);
  color: #fff; padding: 56px 0; text-align: center;
}
.hrd-about h2 { color: #fff; }
.hrd-about p { color: #d6dcea; max-width: 760px; margin: 0 auto 24px; }
.hrd-about .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 760px; margin: 26px auto; }
.hrd-about .stat .n { font-size: 2rem; font-weight: 800; color: var(--brand-gold); }
.hrd-about .stat .l { color: #cdd6e6; font-size: 14px; }
@media (max-width: 720px) { .hrd-about .stats { grid-template-columns: repeat(2, 1fr); } }

/* ----------------- Footer ----------------- */
.hrd-footer {
  background: #07112a; color: #aab3c5;
  padding: 48px 0 24px; font-size: 14.5px;
}
.hrd-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.hrd-footer a { color: #cdd6e6; }
.hrd-footer a:hover { color: #fff; text-decoration: none; }
.hrd-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.hrd-footer ul { list-style: none; padding: 0; margin: 0; }
.hrd-footer ul li { padding: 4px 0; }
.hrd-footer .legal { padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8892a8; }
@media (max-width: 860px) { .hrd-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .hrd-footer .cols { grid-template-columns: 1fr; } }

/* ----------------- Utility ----------------- */
.text-muted { color: var(--ink-muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hidden { display: none !important; }

/* ----------------- Loader ----------------- */
.spinner { width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid rgba(30,111,184,.2); border-top-color: var(--brand-blue);
  animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
