.contact-subhero .subhero-bg {
  background: url("../img/zaklad.webp") center 44% / cover no-repeat;
}

.contact-subhero .subhero-content {
  bottom: 11%;
}

.contact-address {
  padding-top: 88px;
  padding-bottom: 40px;
}

.contact-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #7a9d1e;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  border-radius: 999px;
  background: rgba(172, 207, 62, 0.88);
}

.company-address-box {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid #dde4cd;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.08);
  padding: clamp(22px, 4vw, 42px);
}

.company-address-box h1 {
  margin: 14px 0 10px;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.1;
  font-weight: 300;
}

.company-address-box p {
  color: #4f555a;
  line-height: 1.78;
  font-size: 1.04rem;
}

.department-directory {
  padding-top: 26px;
  padding-bottom: 70px;
  background: #fafafa;
}

.department-directory-box {
  border: 1px solid #dde3d1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.08);
  padding: clamp(18px, 3.8vw, 34px);
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 20px;
  align-items: start;
}

.dept-menu {
  display: grid;
  gap: 8px;
}

.dept-btn {
  text-align: left;
  border: 1px solid #d8dfc8;
  background: #fff;
  color: #43502f;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.dept-btn:hover {
  transform: translateX(2px);
  border-color: rgba(172, 207, 62, 0.8);
}

.dept-btn.is-active {
  background: rgba(172, 207, 62, 0.16);
  border-color: rgba(172, 207, 62, 0.8);
  color: #5c7b10;
}

.dept-detail {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: clamp(6px, 1.6vw, 14px) clamp(4px, 1vw, 10px);
  align-self: stretch;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.dept-detail h2 {
  margin: 12px 0 14px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.18;
  font-weight: 500;
  color: #16210d;
}

.dept-lines {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.dept-line {
  color: #4f565b;
  line-height: 1.66;
}

.dept-line a {
  color: #5b7c11;
  font-weight: 700;
}

.dept-line a:hover {
  text-decoration: underline;
}

.contact-form-section {
  padding-top: 70px;
  padding-bottom: 96px;
}

.contact-form-wrap {
  border: 1px solid #dde4cd;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.08);
  padding: clamp(20px, 4vw, 42px);
}

.contact-form-wrap h2 {
  margin: 14px 0 18px;
  font-size: clamp(1.7rem, 3.1vw, 2.7rem);
  line-height: 1.15;
  font-weight: 400;
}

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

.contact-form-grid label {
  display: grid;
  gap: 8px;
  color: #2f342f;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form-grid input,
.contact-form-grid select,
.contact-form-grid textarea {
  width: 100%;
  border: 1px solid #d6decb;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-size: 0.96rem;
  padding: 12px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-grid input:focus,
.contact-form-grid select:focus,
.contact-form-grid textarea:focus {
  border-color: rgba(172, 207, 62, 0.9);
  box-shadow: 0 0 0 3px rgba(172, 207, 62, 0.2);
}

.field-full {
  grid-column: 1 / -1;
}

.checkbox-line {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #4f555a !important;
}

.checkbox-line input {
  width: 18px !important;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0 !important;
}

.form-submit-wrap {
  display: flex;
}

.form-submit-btn {
  border: none;
  border-radius: 999px;
  background: var(--color-lime);
  color: #17220e;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 13px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.form-feedback {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: #1d6e4d;
}

.form-feedback.is-error {
  color: #a23b3b;
}

@media (max-width: 980px) {
  .department-directory-box {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 560px) {
  .contact-address {
    padding-top: 66px;
    padding-bottom: 30px;
  }

  .department-directory {
    padding-bottom: 56px;
  }

  .contact-form-section {
    padding-top: 56px;
    padding-bottom: 70px;
  }
}
