/* ==================================================
   KOLORY I PODSTAWOWE USTAWIENIA
================================================== */

:root {
  --primary: #243746;
  --primary-dark: #182934;

  --accent: #a9502d;
  --accent-dark: #8f3f20;
  --accent-light: #f0ddd2;

  --background: #fffcf7;
  --surface: #ffffff;
  --soft: #f7f1e7;

  --text: #2c2925;
  --muted: #6a5f55;
  --border: #e1d4c3;
  --white: #ffffff;

  --success-background: #e7f3e8;
  --success-text: #285e35;
  --error-background: #f9e5e1;
  --error-text: #932d22;

  --container: 1120px;

  --radius-small: 10px;
  --radius-medium: 18px;
  --radius-large: 26px;

  --shadow-small: 0 10px 28px rgba(44, 41, 37, 0.09);
  --shadow-large: 0 24px 55px rgba(44, 41, 37, 0.15);

  --transition: 0.2s ease;
}

/* ==================================================
   USTAWIENIA OGÓLNE
================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

a,
button,
input,
textarea {
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(169, 80, 45, 0.45);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.14;
}

h1 {
  max-width: 690px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5.4vw, 4rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.2rem;
}

.container {
  width: min(calc(100% - 44px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: var(--soft);
}

.eyebrow {
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #f3c9b4;
}

.section-intro {
  color: var(--muted);
  font-size: 1.06rem;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  border-radius: var(--radius-small);
  background: var(--primary);
  color: var(--white);
  padding: 11px 17px;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==================================================
   PRZYCISKI
================================================== */

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

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

.button-primary {
  background: var(--accent);
  color: var(--white);
}

.button-primary:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-small);
}

.button-secondary {
  border-color: var(--primary);
  background: transparent;
  color: var(--primary);
}

.button-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.button-light {
  background: var(--white);
  color: var(--primary);
}

.button-light:hover {
  background: var(--soft);
  box-shadow: var(--shadow-small);
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent-dark);
}

/* ==================================================
   NAGŁÓWEK
================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(225, 212, 195, 0.9);
  background: rgba(255, 252, 247, 0.97);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  width: 205px;
  height: 66px;
  align-items: center;
  overflow: hidden;
  text-decoration: none;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.16);
  transform-origin: left center;
}

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

.main-nav a {
  color: var(--text);
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav .header-phone {
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

.main-nav .header-phone::before {
  margin-right: 6px;
  color: var(--accent);
  content: "☎";
}

.main-nav .nav-contact {
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  padding: 10px 18px;
}

.main-nav .nav-contact:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--primary);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==================================================
   PIERWSZY EKRAN
================================================== */

.hero {
  overflow: hidden;
  padding: 54px 0 62px;
  background:
    radial-gradient(
      circle at 92% 5%,
      rgba(169, 80, 45, 0.12),
      transparent 28%
    ),
    linear-gradient(180deg, var(--soft), var(--background));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: 58px;
}

.hero-content {
  max-width: 610px;
}

.hero-intro {
  max-width: 590px;
  margin-bottom: 29px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin: 27px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  list-style: none;
}

.trust-list li::before {
  margin-right: 7px;
  color: var(--accent);
  content: "✓";
  font-weight: 900;
}

.hero-photo {
  position: relative;
}

.hero-photo > img {
  width: 100%;
  height: 500px;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-large);
  object-fit: cover;
  object-position: center;
}

.hero-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  max-width: 270px;
  flex-direction: column;
  border-radius: var(--radius-medium);
  background: var(--primary);
  color: var(--white);
  padding: 17px 20px;
  box-shadow: var(--shadow-small);
}

.hero-badge strong {
  color: #f3c9b4;
}

.hero-badge span {
  font-size: 0.88rem;
}

/* ==================================================
   USŁUGI
================================================== */

.offer-grid {
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 70px;
}

.offer-photo img {
  width: 100%;
  height: 510px;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-large);
  object-fit: cover;
}

.offer-content {
  max-width: 600px;
}

.service-list {
  margin-top: 31px;
  border-top: 1px solid var(--border);
}

.service-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 17px;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.service-list article > span {
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 850;
}

.service-list h3 {
  font-size: 1.13rem;
}

.service-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ==================================================
   O NAS I PRZEBIEG WSPÓŁPRACY
================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
}

.about-heading {
  max-width: 460px;
}

.about-copy {
  max-width: 610px;
}

.about-copy p {
  color: var(--muted);
}

.about-copy .about-lead {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 750;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 52px;
  border-top: 1px solid var(--border);
}

.process article {
  min-height: 190px;
  border-right: 1px solid var(--border);
  padding: 27px 24px 10px 0;
}

.process article:not(:first-child) {
  padding-left: 24px;
}

.process article:last-child {
  border-right: 0;
}

.process article > span {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 21px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
}

.process h3 {
  font-size: 1.06rem;
}

.process p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

/* ==================================================
   KONTAKT
================================================== */

.contact-section {
  background: var(--primary);
  color: var(--white);
  padding: 76px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 75px;
}

.contact-copy {
  padding-top: 12px;
}

.contact-copy h2 {
  max-width: 520px;
  color: var(--white);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 520px;
  color: #e0e6e9;
}

.contact-details {
  display: grid;
  gap: 17px;
  margin: 31px 0;
  font-style: normal;
}

.contact-details div {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 13px;
}

.contact-details span {
  display: block;
  margin-bottom: 3px;
  color: #f3c9b4;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-details a,
.contact-details strong {
  color: var(--white);
  font-size: 1.05rem;
  text-decoration: none;
}

.contact-details a:hover {
  color: #f3c9b4;
}

/* ==================================================
   FORMULARZ
================================================== */

.form-card {
  border-radius: var(--radius-large);
  background: var(--surface);
  color: var(--text);
  padding: 38px;
  box-shadow: var(--shadow-large);
}

.form-card > h3 {
  margin-bottom: 4px;
  font-size: 1.55rem;
}

.form-intro {
  margin-bottom: 25px;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 17px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--background);
  color: var(--text);
  padding: 12px 14px;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(169, 80, 45, 0.14);
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.privacy-check input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

.privacy-check a {
  color: var(--primary);
  font-weight: 750;
}

.submit-button {
  width: 100%;
}

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

.form-status {
  display: none;
  margin: 17px 0 0;
  border-radius: var(--radius-small);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

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

.form-status.is-error {
  background: var(--error-background);
  color: var(--error-text);
}

.website-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ==================================================
   STOPKA
================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-brand {
  display: flex;
  width: 165px;
  height: 52px;
  align-items: center;
  overflow: hidden;
}

.footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.14);
  transform-origin: left center;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner nav {
  display: flex;
  gap: 20px;
}

.footer-inner nav a {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-inner nav a:hover {
  color: var(--accent);
}

/* ==================================================
   IMPRESSUM I DATENSCHUTZ
================================================== */

.legal-header {
  padding: 58px 0 34px;
  background: var(--soft);
}

.legal-header h1 {
  margin-bottom: 8px;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
}

.legal-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-content {
  max-width: 820px;
  padding-top: 55px;
  padding-bottom: 75px;
}

.legal-content section {
  margin-bottom: 34px;
}

.legal-content h2 {
  margin-bottom: 10px;
  font-size: 1.42rem;
}

.legal-content h3 {
  margin-top: 25px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content a {
  color: var(--primary);
  overflow-wrap: anywhere;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-notice {
  border-left: 4px solid var(--accent);
  background: var(--soft);
  padding: 18px 20px;
}

/* ==================================================
   TABLETY I MNIEJSZE KOMPUTERY
================================================== */

@media (max-width: 1080px) {
  .main-nav {
    gap: 17px;
  }

  .main-nav .header-phone {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 38px;
  }

  .offer-grid {
    gap: 45px;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .menu-toggle + .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 22px;
    left: 22px;
    display: none;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--background);
    padding: 11px;
    box-shadow: var(--shadow-large);
  }

  .menu-toggle + .main-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .menu-toggle + .main-nav a {
    border-radius: var(--radius-small);
    padding: 12px 14px;
  }

  .menu-toggle + .main-nav a:hover {
    background: var(--soft);
  }

  .menu-toggle + .main-nav .header-phone {
    display: block;
  }

  .menu-toggle + .main-nav .nav-contact {
    margin-top: 4px;
    text-align: center;
  }

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

  .hero-content {
    max-width: 680px;
  }

  .hero-photo > img {
    height: 490px;
  }

  .offer-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 35px;
  }

  .offer-photo img {
    height: 470px;
  }

  .about-grid {
    gap: 45px;
  }

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

  .process article:nth-child(2) {
    border-right: 0;
  }

  .process article:nth-child(3),
  .process article:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .contact-grid {
    gap: 45px;
  }
}

/* ==================================================
   TELEFONY
================================================== */

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .section,
  .contact-section {
    padding: 62px 0;
  }

  .header-inner {
    min-height: 76px;
  }

  .brand {
    width: 175px;
    height: 58px;
  }

  .hero {
    padding: 43px 0 55px;
  }

  .hero-grid,
  .offer-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 38px;
  }

  .hero-photo > img {
    height: min(500px, 90vw);
  }

  .hero-badge {
    right: 13px;
    bottom: 13px;
    left: 13px;
    max-width: none;
  }

  .offer-grid {
    gap: 38px;
  }

  .offer-photo img {
    height: min(460px, 100vw);
  }

  .about-grid {
    gap: 12px;
  }

  .process {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .process article,
  .process article:not(:first-child) {
    min-height: auto;
    border-top: 1px solid var(--border);
    border-right: 0;
    padding: 22px 0;
  }

  .process article:first-child {
    border-top: 1px solid var(--border);
  }

  .process article > span {
    margin-bottom: 14px;
  }

  .contact-copy {
    padding-top: 0;
  }

  .form-card {
    padding: 29px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(2.55rem, 13vw, 3.45rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .trust-list {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-photo > img {
    height: 380px;
  }

  .offer-photo img {
    height: 360px;
  }

  .form-card {
    padding: 23px;
  }

  .contact-copy .button {
    width: 100%;
  }

  .footer-inner nav {
    flex-wrap: wrap;
  }
}

/* ==================================================
   OGRANICZENIE ANIMACJI
================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* Consent interface: styles are scoped to preserve the existing page design. */
.cookie-banner[hidden], .cookie-banner [hidden], [data-cookie-settings][hidden] {
  display: none;
}
.cookie-banner {
  position: fixed;
  z-index: 2000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  width: min(960px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 26px 30px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-medium);
  background: var(--background);
  color: var(--text);
  box-shadow: var(--shadow-large);
}
.cookie-banner .eyebrow { margin-bottom: 8px; }
.cookie-banner h2 { margin-bottom: 12px; font-size: 1.5rem; }
.cookie-banner p { margin-bottom: 10px; font-size: 0.9rem; line-height: 1.5; }
.cookie-banner a { color: var(--primary); text-decoration: underline; }
.cookie-banner .cookie-status { color: var(--muted); font-size: 0.82rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cookie-choice { flex: 1 1 200px; background: var(--primary); color: var(--white); }
.cookie-choice:hover { background: var(--primary-dark); }
.cookie-close, .cookie-settings {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0;
}
.cookie-close { width: 100%; padding: 8px; }
.cookie-settings:hover, .cookie-close:hover { color: var(--accent); }
@media (max-width: 600px) {
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 20px; }
  .cookie-actions { flex-direction: column; }
  .cookie-choice { flex: none; width: 100%; }
}
