:root {
  --navy: #071f3d;
  --navy-soft: #0c2f5b;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --background: #ffffff;
  --surface: #f8fafc;
  --shadow: 0 20px 50px rgba(7, 31, 61, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

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

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

.language-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3svh, 28px);
  background:
    radial-gradient(circle at top left, rgba(7, 31, 61, 0.08), transparent 32%),
    #ffffff;
}

.language-box {
  width: min(100%, 680px);
  text-align: center;
}

.language-title {
  margin: 0 0 clamp(12px, 2svh, 18px);
  color: var(--navy);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.language-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  margin-bottom: clamp(12px, 2svh, 18px);
}

.language-card {
  min-height: clamp(96px, 15svh, 128px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(14px, 2.2vw, 22px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.language-card:hover,
.language-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(7, 31, 61, 0.35);
  box-shadow: 0 28px 70px rgba(7, 31, 61, 0.14);
  outline: none;
}

.language-flag {
  width: 64px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(7, 31, 61, 0.12);
}

.language-label {
  color: var(--navy);
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
}

.domain-name {
  margin: 0;
  color: var(--navy);
  font-size: clamp(19px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.logo-area {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 34px 24px 22px;
}

.logo {
  width: min(760px, 92vw);
  height: auto;
  display: block;
}


.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 24px;
  position: relative;
  z-index: 5;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(215, 169, 81, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, #06162d 0%, #071f3d 52%, #041225 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(6, 22, 45, 0.14);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.main-nav a:visited {
  color: #ffffff;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #06162d 0%, #071f3d 52%, #041225 100%);
  color: #ffffff;
  border-color: #d7a951;
  box-shadow: 0 16px 34px rgba(6, 22, 45, 0.2);
  outline: none;
}

.main-nav a[aria-current="page"] {
  box-shadow: 0 0 0 2px rgba(215, 169, 81, 0.28), 0 16px 34px rgba(6, 22, 45, 0.2);
}

.main-nav .nav-facebook,
.main-nav .nav-whatsapp {
  min-width: 116px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(6, 22, 45, 0.16);
}

.main-nav .nav-facebook,
.main-nav .nav-facebook:visited {
  background: linear-gradient(135deg, #1877f2 0%, #0b5fd3 100%);
  border-color: rgba(24, 119, 242, 0.72);
  color: #ffffff;
}

.main-nav .nav-whatsapp,
.main-nav .nav-whatsapp:visited {
  background: linear-gradient(135deg, #25d366 0%, #128c4a 100%);
  border-color: rgba(37, 211, 102, 0.76);
  color: #ffffff;
}

.main-nav .nav-facebook:hover,
.main-nav .nav-facebook:focus-visible,
.main-nav .nav-facebook:active {
  background: linear-gradient(135deg, #0b5fd3 0%, #0849a7 100%);
  border-color: #0b5fd3;
  color: #ffffff;
}

.main-nav .nav-whatsapp:hover,
.main-nav .nav-whatsapp:focus-visible,
.main-nav .nav-whatsapp:active {
  background: linear-gradient(135deg, #128c4a 0%, #0d6f3a 100%);
  border-color: #128c4a;
  color: #ffffff;
}


.hero {
  padding: clamp(44px, 8vw, 92px) 24px 36px;
  text-align: center;
}

.hero-inner,
.content-wrap {
  width: min(100%, 1080px);
  margin: 0 auto;
}


.hero h1 {
  margin: 0 auto 18px;
  max-width: 860px;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-list {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  text-align: left;
}

.hero-list li {
  position: relative;
  padding-left: 24px;
  margin: 8px 0;
}

.hero-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 800;
}

.content {
  padding: 20px 24px clamp(58px, 8vw, 96px);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.section-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.section-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.section-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
}

.section-card p:last-child {
  margin-bottom: 0;
}

.section-card:nth-child(1) {
  grid-column: 1 / -1;
}

.single-section .section-card {
  grid-column: 1 / -1;
}

.site-footer {
  padding: 34px 24px;
  background: var(--navy);
  color: #ffffff;
}

.footer-inner {
  width: min(100%, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-brand,
.footer-contact-title,
.footer-contact-phone,
.footer-contact-mail {
  margin: 0;
}

.footer-brand {
  justify-self: start;
}

.footer-contact {
  justify-self: center;
  text-align: center;
}

.footer-contact-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.footer-contact-mail {
  margin-top: 4px;
}

.footer-contact-mail a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.footer-contact-mail a:hover,
.footer-contact-mail a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  outline: none;
}

.footer-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  transition: background 180ms ease, transform 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.footer-flag {
  width: 32px;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 760px) {
  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-card:nth-child(1) {
    grid-column: auto;
  }

  .language-card {
    min-height: clamp(88px, 14svh, 118px);
  }

  .main-nav {
    align-items: stretch;
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .main-nav a {
    width: 100%;
    background: linear-gradient(135deg, #06162d 0%, #071f3d 52%, #041225 100%);
    color: #ffffff;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a[aria-current="page"] {
    background: linear-gradient(135deg, #06162d 0%, #071f3d 52%, #041225 100%);
    color: #ffffff;
    border-color: #d7a951;
  }

  .main-nav .nav-facebook,
  .main-nav .nav-facebook:visited,
  .main-nav .nav-facebook:hover,
  .main-nav .nav-facebook:focus-visible,
  .main-nav .nav-facebook:active {
    width: 100%;
    background: linear-gradient(135deg, #1877f2 0%, #0b5fd3 100%);
    border-color: rgba(24, 119, 242, 0.72);
    color: #ffffff;
  }

  .main-nav .nav-whatsapp,
  .main-nav .nav-whatsapp:visited,
  .main-nav .nav-whatsapp:hover,
  .main-nav .nav-whatsapp:focus-visible,
  .main-nav .nav-whatsapp:active {
    width: 100%;
    background: linear-gradient(135deg, #25d366 0%, #128c4a 100%);
    border-color: rgba(37, 211, 102, 0.76);
    color: #ffffff;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-brand,
  .footer-contact,
  .footer-links {
    justify-self: center;
  }
}


/* Formularz kontaktowy */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.contact-layout .section-card {
  grid-column: auto;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
  font-weight: 400;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(7, 31, 61, 0.08);
  outline: none;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  color: var(--muted) !important;
  font-weight: 700 !important;
}

.checkbox-row input {
  width: auto;
  margin-top: 4px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 12px 22px;
  color: #ffffff;
  background: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button-primary:hover,
.button-primary:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-2px);
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  outline: none;
}

.button-primary:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.button-secondary {
  color: var(--navy);
  background: #ffffff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: #ffffff;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-status.is-success {
  color: var(--navy);
}

.form-status.is-error {
  color: #b42318;
}

/* Panel admina */
.admin-page {
  min-height: 100vh;
  background: var(--surface);
}

.admin-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 24px;
}

.admin-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.admin-login {
  width: min(100%, 460px);
  margin: 10vh auto 0;
  padding: clamp(26px, 5vw, 42px);
}

.admin-login h1,
.admin-dashboard h1,
.admin-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.admin-login p,
.admin-card p {
  color: var(--muted);
}

.admin-login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.admin-login-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.admin-login-form input {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
}

.admin-error {
  min-height: 24px;
  margin: 0;
  color: #b42318 !important;
  font-weight: 800;
}

.admin-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 26px;
}

.admin-dashboard-header p {
  margin: 0;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 22px;
}

.stat-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
}

.admin-section {
  padding: clamp(22px, 4vw, 32px);
  margin-bottom: 24px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--navy);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-table td {
  color: var(--muted);
}

.admin-table code {
  color: var(--navy);
  background: var(--surface);
  border-radius: 8px;
  padding: 3px 6px;
}

.month-bar {
  display: block;
  width: min(260px, 45vw);
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.month-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
}

.admin-note {
  color: var(--muted);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .form-grid,
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-header {
    flex-direction: column;
  }

  .admin-actions {
    justify-content: flex-start;
  }
}

/* Rozbudowane treści informacyjne */
.rich-content {
  display: grid;
  gap: 24px;
}

.section-lead {
  margin: 0 0 22px;
  color: var(--navy) !important;
  font-size: clamp(18px, 2vw, 22px) !important;
  font-weight: 800;
}

.content-list,
.check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 16px;
}

.content-list li,
.check-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 30px;
}

.content-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--navy);
  font-weight: 900;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--navy);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: kfz-step;
  display: grid;
  gap: 14px;
}

.steps-list li {
  counter-increment: kfz-step;
  position: relative;
  min-height: 92px;
  padding: 20px 20px 20px 76px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.steps-list li::before {
  content: counter(kfz-step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--navy);
  font-size: 15px;
  font-weight: 900;
}

.steps-list h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
}

.steps-list p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .steps-list li {
    padding: 18px 18px 18px 66px;
  }

  .steps-list li::before {
    left: 18px;
    top: 20px;
  }
}
/* Zdjęcie na stronie wyboru języka i stronach głównych */
.language-visual {
  width: min(100%, 520px);
  margin: 0 auto clamp(12px, 2svh, 18px);
}

.language-visual img,
.home-media img {
  width: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(7, 31, 61, 0.16);
}

.language-visual img {
  height: clamp(96px, 18svh, 210px);
  object-position: center 52%;
}

.home-media {
  width: min(100%, 1080px);
  margin: 0 auto 46px;
  padding: 0 24px;
}

.home-media img {
  height: clamp(280px, 42vw, 540px);
}

/* Footer: ciemny granat + złoto z logo */
.site-footer {
  padding: clamp(34px, 5vw, 54px) 24px;
  background:
    radial-gradient(circle at top left, rgba(215, 169, 81, 0.16), transparent 34%),
    linear-gradient(135deg, #06162d 0%, #071f3d 52%, #041225 100%);
  color: #ffffff;
}

.footer-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.1fr) auto auto auto;
  align-items: center;
  gap: 26px;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.footer-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  flex: 0 0 auto;
}

.footer-brand,
.footer-contact-title,
.footer-contact-phone,
.footer-contact-mail {
  margin: 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-contact {
  justify-self: center;
  text-align: center;
}

.footer-contact-title {
  color: #d7a951;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-contact-mail {
  margin-top: 6px;
}

.footer-contact-mail a {
  color: #ffffff;
  font-weight: 800;
}

.footer-contact-mail a:hover,
.footer-contact-mail a:focus-visible {
  color: #d7a951;
  text-decoration: underline;
  outline: none;
}

.footer-share {
  justify-self: end;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid rgba(215, 169, 81, 0.78);
  border-radius: 999px;
  padding: 11px 18px;
  color: #d7a951;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.share-button:hover,
.share-button:focus-visible {
  transform: translateY(-2px);
  color: #06162d;
  background: #d7a951;
  border-color: #d7a951;
  outline: none;
}

.share-button-icon {
  font-size: 18px;
  line-height: 1;
}

.footer-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(215, 169, 81, 0.28);
  border-radius: 999px;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  background: rgba(215, 169, 81, 0.14);
  border-color: rgba(215, 169, 81, 0.74);
  transform: translateY(-2px);
  outline: none;
}

.footer-flag {
  width: 32px;
  height: auto;
  border-radius: 4px;
}

.footer-qr {
  width: 94px;
  height: 94px;
  padding: 7px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

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

  .footer-brand-block,
  .footer-contact,
  .footer-share,
  .footer-links {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .language-visual {
    margin-bottom: 22px;
  }

  .language-visual img,
  .home-media img {
    border-radius: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-brand-block {
    flex-direction: column;
  }
}

/* Rozszerzone zgody formularza kontaktowego */
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-consents {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(7, 31, 61, 0.09);
  border-radius: 18px;
  padding: 16px;
  background: #f8fafc;
}

.form-regulations {
  border-bottom: 1px solid rgba(7, 31, 61, 0.08);
  padding-bottom: 12px;
  color: var(--muted);
}

.form-regulations summary {
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

.form-regulations p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.form-status.is-success {
  color: #16703a;
}

.form-status.is-error {
  color: #b42318;
}

.contact-form button[disabled] {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}


/* Kompaktowy ekran wyboru języka: flaga i przyciski widoczne bez przewijania */
@media (max-height: 700px) {
  .language-page {
    align-items: center;
    padding-block: 10px;
  }

  .language-title {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 10px;
  }

  .language-visual {
    width: min(100%, 460px);
    margin-bottom: 10px;
  }

  .language-visual img {
    height: clamp(84px, 16svh, 150px);
    border-radius: 18px;
  }

  .language-card {
    min-height: 88px;
    padding: 12px;
    border-radius: 18px;
  }

  .domain-name {
    font-size: clamp(18px, 2.7vw, 26px);
  }
}

@media (max-width: 420px) {
  .language-page {
    padding-inline: 12px;
  }

  .language-actions {
    gap: 10px;
  }

  .language-flag {
    width: 58px;
  }
}

/* Zakładka Dlaczego ja / Warum ich */
.why-card {
  max-width: 920px;
  margin: 0 auto;
}

.why-list {
  margin-top: 16px;
}

.why-list li {
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.65;
}


/* Aktualizacja: wybór języka bez białych kart pod flagami */
.language-actions {
  width: min(100%, 320px);
  margin-left: auto;
  margin-right: auto;
}

.language-card {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.language-card:hover,
.language-card:focus-visible {
  transform: none;
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

.language-card:hover .language-flag,
.language-card:focus-visible .language-flag {
  transform: translateY(-2px) scale(1.04);
}

.language-flag {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.language-label {
  margin-top: 2px;
}

.page-media {
  width: min(100%, 1080px);
  margin: 0 auto 44px;
  padding: 0 24px;
}

.page-media img {
  width: 100%;
  height: clamp(260px, 40vw, 500px);
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(7, 31, 61, 0.14);
}

@media (max-width: 640px) {
  .language-actions {
    width: min(100%, 260px);
  }

  .page-media img {
    height: clamp(220px, 56vw, 340px);
    border-radius: 20px;
  }
}


/* Korekta ekranu wyboru języka: flagi bezpośrednio pod nagłówkiem */
body.language-page {
  overflow-x: hidden;
}

.language-box {
  width: min(100%, 720px);
}

.language-title {
  margin-bottom: clamp(22px, 4svh, 36px);
}

.language-actions {
  width: min(100%, 360px);
  gap: clamp(28px, 5vw, 46px);
  margin-bottom: clamp(28px, 4.8svh, 44px);
}

.language-card {
  gap: 12px;
}

.language-visual {
  width: min(100%, 560px);
  margin-top: 0;
  margin-bottom: 0;
}

.language-visual img {
  height: clamp(130px, 24svh, 230px);
}

@media (max-height: 740px) {
  .language-title {
    margin-bottom: clamp(14px, 2.6svh, 22px);
  }

  .language-actions {
    gap: clamp(18px, 4vw, 30px);
    margin-bottom: clamp(16px, 3svh, 24px);
  }

  .language-visual {
    width: min(100%, 500px);
  }

  .language-visual img {
    height: clamp(96px, 18svh, 150px);
    border-radius: 20px;
  }
}

@media (max-width: 420px) {
  .language-actions {
    width: min(100%, 300px);
    gap: 24px;
  }
}


.footer-contact-phone {
  margin-top: 8px;
}

.footer-contact-phone a {
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.footer-contact-phone a:hover,
.footer-contact-phone a:focus-visible {
  color: #d7a951;
  text-decoration: underline;
  outline: none;
}

.contact-direct-line {
  margin: 8px 0;
  font-weight: 700;
}

.contact-direct-line a {
  color: var(--navy);
  font-weight: 900;
}

.contact-direct-line a:hover,
.contact-direct-line a:focus-visible {
  text-decoration: underline;
  outline: none;
}


/* Zdjęcie w zakładce kontakt */
.contact-photo-section {
  padding-top: 0;
  padding-bottom: clamp(24px, 5vw, 44px);
}

.contact-photo-wrap {
  width: min(100%, 1120px);
}

.contact-photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(215, 169, 81, 0.28);
  border-radius: 28px;
  background: #071f3d;
  box-shadow: 0 22px 60px rgba(4, 18, 37, 0.16);
}

.contact-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
}

.contact-photo-section + .contact-section {
  padding-top: 0;
}

@media (max-width: 640px) {
  .contact-photo-card {
    border-radius: 20px;
  }
}


/* Dokumenty prawne i cookies */
.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: 340px;
}

.footer-legal a,
.footer-legal-button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  padding: 0;
  cursor: pointer;
}

.footer-legal a:hover,
.footer-legal a:focus-visible,
.footer-legal-button:hover,
.footer-legal-button:focus-visible {
  color: #d7a951;
  text-decoration: underline;
  outline: none;
}

.legal-hero {
  text-align: left;
  padding-bottom: clamp(54px, 8vw, 96px);
}

.legal-content {
  max-width: 920px;
}

.legal-content h1 {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.legal-kicker {
  margin: 0 0 10px;
  color: #d7a951;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.legal-lead {
  max-width: 820px !important;
  margin: 0 0 24px !important;
  color: var(--muted);
}

.legal-card {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(7, 31, 61, 0.07);
  margin-top: 18px;
}

.legal-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.18;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 16px;
}

.legal-card p {
  margin: 0 0 12px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card a,
.form-consents a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card code {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 7px;
  background: #eef2f7;
  color: var(--navy);
  font-size: 0.92em;
}

.cookie-consent {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  pointer-events: none;
}

.cookie-consent__panel {
  width: min(100%, 1040px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(215, 169, 81, 0.34);
  border-radius: 24px;
  background: linear-gradient(135deg, #06162d 0%, #071f3d 55%, #041225 100%);
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(3, 13, 28, 0.35);
  pointer-events: auto;
}

.cookie-consent h2 {
  margin: 0 0 8px;
  color: #d7a951;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.15;
}

.cookie-consent p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.cookie-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
}

.cookie-consent__links a {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__settings {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.cookie-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.cookie-row input {
  width: 18px;
  height: 18px;
  accent-color: #d7a951;
}

.cookie-row strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
}

.cookie-row small {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 3px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(100vw - 64px, 330px);
}

.cookie-btn {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  outline: none;
}

.cookie-btn--primary {
  border-color: rgba(215, 169, 81, 0.6);
  background: #d7a951;
  color: #06162d;
}

.cookie-btn--primary:hover,
.cookie-btn--primary:focus-visible {
  background: #f1c56a;
  color: #06162d;
}

@media (max-width: 820px) {
  .cookie-consent__panel {
    grid-template-columns: 1fr;
  }

  .cookie-consent__actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .cookie-btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 680px) {
  .footer-brand-block {
    align-items: center;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}


/* Poprawki: logo wyboru języka, opis usług i odstęp kontaktu */
.language-logo {
  width: min(460px, 86vw);
  height: auto;
  margin: 0 auto clamp(24px, 4.2svh, 38px);
}

.language-title {
  margin-bottom: clamp(24px, 4.4svh, 42px);
}

.language-actions {
  margin-bottom: clamp(30px, 5svh, 50px);
}

.service-inline-list {
  margin: 0 auto;
  max-width: 840px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
  text-align: center;
}

.contact-side-stack {
  display: grid;
  gap: clamp(30px, 4.5vw, 48px);
  align-content: start;
}

.contact-side-stack .contact-photo-card {
  margin-top: 0;
}

@media (max-height: 760px) {
  .language-logo {
    width: min(360px, 78vw);
    margin-bottom: clamp(14px, 2.4svh, 22px);
  }

  .language-title {
    margin-bottom: clamp(14px, 2.8svh, 24px);
  }

  .language-actions {
    margin-bottom: clamp(18px, 3svh, 26px);
  }
}

@media (max-width: 640px) {
  .language-logo {
    width: min(340px, 84vw);
  }

  .contact-side-stack {
    gap: 28px;
  }
}


/* Poprawka: okno ustawień cookies na desktopie */
@media (min-width: 821px) {
  .cookie-consent--settings {
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(2, 10, 24, 0.48);
    backdrop-filter: blur(8px);
  }

  .cookie-consent--settings .cookie-consent__panel {
    width: min(100%, 760px);
    margin: 0;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 22px;
    max-height: calc(100svh - 56px);
    overflow: auto;
  }

  .cookie-consent--settings .cookie-consent__content {
    display: grid;
    gap: 0;
  }

  .cookie-consent--settings .cookie-consent__settings {
    margin-top: 18px;
  }

  .cookie-consent--settings .cookie-row {
    padding: 14px 16px;
  }

  .cookie-consent--settings .cookie-consent__actions {
    min-width: 0;
    justify-content: flex-end;
  }
}

/* Poprawka: badge na stronach polityk */
.legal-content .legal-kicker {
  display: inline-flex;
  width: fit-content;
  max-width: none;
  margin: 0 0 12px !important;
  padding: 8px 12px;
  border: 1px solid rgba(215, 169, 81, 0.34);
  border-radius: 999px;
  background: rgba(215, 169, 81, 0.1);
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}
