/* NOREM - strona kontaktowa. Wspólne style marki pozostają w styles.css. */

.contact-page {
  --contact-warm: #f7f4f0;
  --contact-warm-strong: #eee9e3;
  --contact-danger: #a33b35;
  --contact-success: #187a58;
  --hero-photo: url("../../assets/generated/faq-hero-norem.png");
  --cta-photo: url("../../assets/generated/faq-cta-norem.png");
}

.contact-page .main-nav {
  gap: 29px;
  transform: translateX(-52px);
}

.contact-page .main-nav a:first-child::after {
  display: none;
}

.contact-page .main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  border-top: 1px solid currentColor;
}

.contact-page main {
  background: var(--page);
}

/* Hero */
.contact-hero {
  position: relative;
  overflow: hidden;
  background: #f9f8f6;
}

.contact-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #fff 0 19%,
    rgba(255, 255, 255, 0.98) 25%,
    rgba(255, 255, 255, 0.9) 31%,
    rgba(255, 255, 255, 0.56) 38%,
    rgba(255, 255, 255, 0.12) 45%,
    transparent 51%
  );
}

.contact-hero__inner {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding-block: 120px;
}

.contact-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
}

.contact-kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-hero h1 {
  max-width: 9ch;
  font-size: clamp(50px, 5.2vw, 74px);
  font-weight: 680;
  line-height: 0.98;
  letter-spacing: -0.048em;
}

.contact-hero__lead {
  max-width: 49ch;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.contact-response {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.contact-response svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.5;
}

.contact-hero__image {
  position: absolute;
  z-index: 0;
  top: 0;
  right: calc((100vw - min(100vw, var(--maxw))) / -2);
  bottom: 0;
  left: calc(
    30vw - (100vw - min(100vw, var(--maxw))) / 2
  );
  background: var(--hero-photo) center / cover no-repeat;
}

/* Główny panel */
.contact-main {
  padding-block: var(--section-space);
  scroll-margin-top: 76px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(340px, 0.72fr);
  align-items: start;
  gap: clamp(20px, 3vw, 40px);
}

.contact-form-panel,
.contact-sidebar {
  min-width: 0;
  border-radius: var(--radius);
}

.contact-form-panel {
  padding: clamp(30px, 4vw, 56px);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form-head h2,
.contact-sidebar__intro h2,
.contact-routes h2 {
  font-size: clamp(31px, 3vw, 44px);
}

.contact-form-head p,
.contact-sidebar__intro p,
.contact-routes header > p {
  max-width: 61ch;
  margin-top: 13px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.contact-form {
  margin-top: 34px;
}

.contact-form[hidden],
.contact-success[hidden] {
  display: none !important;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.contact-field--wide {
  grid-column: 1 / -1;
}

.contact-field label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.contact-field label span {
  color: var(--muted);
  font-weight: 450;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.contact-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
  border-color: #b6bbc0;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 123, 199, 0.13);
}

.contact-field input[aria-invalid="true"],
.contact-field select[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] {
  border-color: var(--contact-danger);
  background: #fffafa;
}

.contact-helper {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.contact-error {
  color: var(--contact-danger);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.contact-error:empty {
  display: none;
}

.contact-message-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.contact-message-meta > p:last-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.contact-consent {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-consent label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.contact-consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-checkbox {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid #aab0b5;
  border-radius: 5px;
  background: #fff;
}

.contact-checkbox svg {
  width: 15px;
  height: 15px;
  opacity: 0;
  stroke-width: 2.4;
}

.contact-consent input:checked + .contact-checkbox {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.contact-consent input:checked + .contact-checkbox svg {
  opacity: 1;
}

.contact-consent input:focus-visible + .contact-checkbox {
  outline: 3px solid rgba(47, 123, 199, 0.35);
  outline-offset: 3px;
}

.contact-consent a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-consent > .contact-error {
  margin: 7px 0 0 34px;
}

.contact-form-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.contact-submit {
  min-width: 250px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 24px;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

.contact-submit:hover:not(:disabled) {
  background: #10283d;
  transform: translateY(-1px);
}

.contact-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.contact-submit svg {
  width: 18px;
  height: 18px;
}

.contact-form-actions > p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.contact-form-actions > p svg {
  width: 15px;
  height: 15px;
}

.contact-form-status {
  margin-top: 14px;
  color: var(--contact-success);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.contact-form-status:empty {
  display: none;
}

.contact-form-status[data-state="error"] {
  color: var(--contact-danger);
}

.contact-form-status[data-state="loading"] {
  color: var(--muted);
}

.contact-success {
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  padding-block: 60px;
  text-align: center;
}

.contact-success > span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf5ef;
  color: var(--contact-success);
}

.contact-success > span svg {
  width: 34px;
  height: 34px;
  stroke-width: 2;
}

.contact-success h2 {
  margin-top: 24px;
  font-size: 34px;
}

.contact-success p {
  max-width: 48ch;
  margin-top: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.contact-success button {
  min-height: 46px;
  margin-top: 24px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* Bezpośredni kontakt */
.contact-sidebar {
  padding: clamp(28px, 3vw, 42px);
  background: var(--contact-warm);
}

.contact-sidebar__intro h2 {
  font-size: 31px;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-method {
  min-height: 128px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: start;
  gap: 14px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  transition:
    background-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.contact-method:hover {
  background: #fff;
  transform: translateY(-2px);
}

.contact-method > span,
.company-card > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--contact-warm-strong);
}

.contact-method > span svg,
.company-card > span svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.45;
}

.contact-method small,
.company-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.contact-method strong,
.company-card strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.contact-method p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.contact-method > svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  transition: transform 0.2s var(--ease);
}

.contact-method:hover > svg {
  transform: translate(2px, -2px);
}

.company-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  margin: 28px 0 0;
  padding-top: 26px;
  border-top: 1px solid #ddd7d0;
  font-style: normal;
}

.company-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.contact-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
  padding: 15px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.contact-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

/* Szybkie ścieżki */
.contact-routes {
  padding-block: var(--section-space);
}

.contact-routes__panel {
  margin-inline: auto;
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.contact-route-grid > a {
  min-width: 0;
  min-height: 116px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.contact-route-grid > a + a {
  border-left: 1px solid var(--line);
}

.contact-route-grid > a:hover {
  background: var(--surface-soft);
}

.contact-route-grid > a > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--contact-warm);
}

.contact-route-grid > a > span svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.4;
}

.contact-route-grid h3 {
  font-size: 16px;
}

.contact-route-grid p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.contact-route-grid > a > svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s var(--ease);
}

.contact-route-grid > a:hover > svg {
  transform: translateX(3px);
}

.contact-page .cta-copy .btn {
  font-size: 15px;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .contact-page .main-nav {
    gap: 20px;
    transform: translateX(-18px);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }

  .contact-form-panel {
    padding: 34px;
  }
}

@media (max-width: 1080px) and (min-width: 761px) {
  .contact-page .main-nav {
    gap: 15px;
    transform: none;
  }

  .contact-page .header-action {
    width: 42px;
    padding-inline: 0;
  }

  .contact-page .header-action > span:not(.cart-count) {
    display: none;
  }
}

@media (max-width: 940px) {
  .contact-hero::after {
    background: linear-gradient(
      180deg,
      #f9f8f6 0 40%,
      rgba(249, 248, 246, 0.94) 48%,
      rgba(249, 248, 246, 0.48) 60%,
      transparent 76%
    );
  }

  .contact-hero__inner {
    min-height: 720px;
    align-items: flex-start;
    padding-block: 360px;
  }

  .contact-hero h1 {
    max-width: 12ch;
  }

  .contact-hero__copy {
    width: auto;
    margin-inline: var(--container-gutter);
    padding: 0;
  }

  .contact-hero__image {
    top: 39%;
    right: 0;
    left: 0;
    background-position: center;
  }

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

  .contact-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .contact-sidebar__intro,
  .contact-methods {
    grid-column: 1 / -1;
  }

  .contact-methods {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }

  .company-card,
  .contact-note {
    margin-top: 0;
  }

  .company-card {
    padding-top: 0;
    border-top: 0;
  }

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

  .contact-route-grid > a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .contact-page .main-nav {
    gap: 4px;
    transform: translateY(-8px);
  }

  .contact-page .main-nav a[aria-current="page"]::after {
    display: none;
  }

  .contact-page .main-nav a[aria-current="page"] {
    background: var(--surface-soft);
  }

  .contact-main {
    padding-block: 54px;
  }

  .contact-form-panel {
    padding: 28px 22px;
  }

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

  .contact-field--wide {
    grid-column: auto;
  }

  .contact-form-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .contact-submit {
    width: 100%;
  }

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

  .contact-sidebar__intro,
  .contact-methods {
    grid-column: auto;
  }

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

  .company-card {
    padding-top: 24px;
    border-top: 1px solid #ddd7d0;
  }

  .contact-routes {
    padding-bottom: 54px;
  }
}

@media (max-width: 620px) {
  .contact-hero__inner {
    min-height: 650px;
    padding-block: 290px;
  }

  .contact-kicker {
    margin-bottom: 13px;
    font-size: 12px;
  }

  .contact-hero h1 {
    font-size: 42px;
  }

  .contact-hero__lead {
    margin-top: 18px;
    font-size: 16px;
  }

  .contact-hero__image {
    top: 45%;
    background-position: center;
  }

  .contact-layout {
    padding-inline: 12px;
  }

  .contact-form-panel,
  .contact-sidebar {
    padding: 24px 18px;
  }

  .contact-form-head h2,
  .contact-sidebar__intro h2,
  .contact-routes h2 {
    font-size: 29px;
  }

  .contact-form {
    margin-top: 28px;
  }

  .contact-field input,
  .contact-field select,
  .contact-field textarea {
    min-height: 54px;
  }

  .contact-routes__panel {
    width: calc(100% - 24px);
    padding: 26px 16px;
  }

  .contact-route-grid > a {
    grid-template-columns: 46px minmax(0, 1fr) 17px;
    padding: 18px 4px;
  }

  .contact-route-grid > a > span {
    width: 46px;
    height: 46px;
  }

  .contact-page .cta-copy .btn {
    width: 100%;
    padding-inline: 15px;
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  .contact-hero h1 {
    font-size: 38px;
  }

  .contact-method {
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    padding: 16px;
  }

  .contact-method > span,
  .company-card > span {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-field input,
  .contact-field select,
  .contact-field textarea,
  .contact-submit,
  .contact-method,
  .contact-method > svg,
  .contact-route-grid > a,
  .contact-route-grid > a > svg {
    transition: none;
  }
}
