/* ================================================
   KONTAKT PAGE STYLES
   ================================================ */

/* Reuse page-hero from produkty if already loaded,
   else declare it here */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-hero__heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-hero__desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ------------------------------------------------
   Contact bar
   ------------------------------------------------ */
.contact-bar {
  background: linear-gradient(180deg, #1a1d22 0%, #1e2228 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.contact-bar__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  transition: background var(--t) var(--ease);
  text-decoration: none;
  color: inherit;
}

.contact-bar__item:last-child {
  border-right: none;
}

.contact-bar__item:is(a):hover {
  background: rgba(252, 119, 8, 0.04);
}

.contact-bar__icon {
  width: 44px;
  height: 44px;
  background: rgba(252, 119, 8, 0.10);
  border: 1px solid rgba(252, 119, 8, 0.20);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-bar__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-bar__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ------------------------------------------------
   Main contact section
   ------------------------------------------------ */
.contact-main {
  background: linear-gradient(180deg, #121518 0%, #1a1d22 100%);
}

.contact-main__grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}

/* Form card */
.contact-main__card {
  background: linear-gradient(180deg, #1a1d22 0%, #2a2d32 100%);
  border: 2px solid rgba(252, 119, 8, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(252, 119, 8, 0.12);
  padding: 48px 56px;
}

.contact-main__heading {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contact-main__subheading {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* Form row: 2 cols */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Checkbox */
.form-group--checkbox {
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  margin-top: 2px;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-label input:checked ~ .checkbox-box {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input:checked ~ .checkbox-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.checkbox-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ------------------------------------------------
   Sidebar
   ------------------------------------------------ */
.contact-main__sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.contact-sidebar__promo {
  background: linear-gradient(180deg, #1a1d22 0%, #2a2d32 100%);
  border: 1px solid rgba(252, 119, 8, 0.25);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 0 50px rgba(252, 119, 8, 0.10);
}

.contact-sidebar__promo-icon {
  width: 52px;
  height: 52px;
  background: rgba(252, 119, 8, 0.10);
  border: 1px solid rgba(252, 119, 8, 0.20);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.contact-sidebar__promo-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-sidebar__promo-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.contact-sidebar__list {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.contact-sidebar__list-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}

.contact-sidebar__list ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.contact-sidebar__list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}

.contact-sidebar__list-item svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-sidebar__company {
  padding: 20px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-sidebar__company-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ------------------------------------------------
   FAQ
   ------------------------------------------------ */
.faq {
  background: #0f1114;
}

.faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
  max-width: 680px;
  margin-inline: auto;
}

.faq__item {
  background: linear-gradient(180deg, #1a1d22 0%, #1e2228 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t) var(--ease);
}

.faq__item[open],
.faq__item:hover {
  border-color: rgba(252, 119, 8, 0.25);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--t) var(--ease);
}

.faq__question::-webkit-details-marker { display: none; }

.faq__item[open] .faq__question {
  color: var(--accent);
}

.faq__arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--t) var(--ease), color var(--t) var(--ease);
}

.faq__item[open] .faq__arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq__answer {
  padding: 0 28px 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.faq__answer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */
@media (max-width: 1200px) {
  .contact-main__grid {
    grid-template-columns: 1fr 360px;
  }
}

@media (max-width: 1024px) {
  .contact-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-bar__item:nth-child(2) {
    border-right: none;
  }

  .contact-bar__item:nth-child(3) {
    border-top: 1px solid var(--border);
  }

  .contact-bar__item:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: none;
  }

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

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

  .contact-sidebar__company {
    grid-column: 1 / -1;
  }

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

@media (max-width: 768px) {
  .contact-bar__grid {
    grid-template-columns: 1fr;
  }

  .contact-bar__item {
    border-right: none !important;
    border-top: 1px solid var(--border);
  }

  .contact-bar__item:first-child {
    border-top: none;
  }

  .contact-main__card {
    padding: 32px 24px;
  }

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

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