.kontakt-page {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
}

.kontakt-page::before,
.kontakt-page::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
}

.kontakt-page::before {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: -90px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.2), rgba(20, 184, 166, 0));
}

.kontakt-page::after {
  width: min(36vw, 320px);
  height: min(36vw, 320px);
  left: -120px;
  bottom: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0));
}

.kontakt-page > * {
  position: relative;
  z-index: 1;
}

.kontakt-hero {
  margin-bottom: 12px;
  padding: 18px 20px;
  border-radius: 20px;
  background:
    linear-gradient(130deg, rgba(8, 47, 73, 0.96), rgba(14, 116, 144, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 10px, rgba(255, 255, 255, 0.02) 10px 20px);
  color: #ecfeff;
  box-shadow: 0 20px 45px rgba(8, 47, 73, 0.24);
}

.kontakt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.kontakt-hero h1 {
  margin: 0;
  color: #ecfeff;
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
}

.kontakt-hero p {
  margin: 8px 0 0;
  max-width: 780px;
  color: rgba(236, 254, 255, 0.9);
  line-height: 1.45;
  font-size: 0.95rem;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 12px;
}

.kontakt-card {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.03);
}

.kontakt-form-card {
  padding: 16px;
}

.kontakt-info-card {
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96)), #ffffff;
}

.kontakt-card-head h2 {
  margin: 0;
  font-size: 1.06rem;
  color: #0f172a;
}

.kontakt-card-head p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 0.9rem;
}

.kontakt-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.kontakt-field {
  display: grid;
  gap: 6px;
}

.kontakt-field > span {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kontakt-field-help {
  color: #64748b;
  font-size: 11px;
}

.kontakt-attachment-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kontakt-attachment-row input[type="file"] {
  flex: 1;
  min-width: 0;
}

.kontakt-attachment-clear {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(185, 28, 28, 0.3);
  background: #fee2e2;
  color: #b91c1c;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.12s ease,
    box-shadow 0.12s ease;
}

.kontakt-attachment-clear:hover {
  background: #fecaca;
  box-shadow: 0 6px 14px rgba(185, 28, 28, 0.2);
  transform: translateY(-1px);
}

.kontakt-field input,
.kontakt-field select,
.kontakt-field textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13px;
  background: #ffffff;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.kontakt-field select {
  color: #0f172a;
}

.kontakt-field select:invalid {
  color: #94a3b8;
}

.kontakt-field select option {
  color: #0f172a;
  background: #ffffff;
}

.kontakt-field select option[value=""] {
  color: #94a3b8;
}

.kontakt-field select option.kontakt-option-general {
  color: #0c4a6e;
  background: #e0f2fe;
}

.kontakt-field select option.kontakt-option-divider {
  color: #94a3b8;
  background: #f8fafc;
  font-weight: 700;
}

.kontakt-field select option.kontakt-option-page {
  color: #14532d;
  background: #ecfdf5;
}

.kontakt-field textarea {
  min-height: 100px;
  resize: vertical;
}

.kontakt-field input[readonly] {
  background: #f1f5f9;
  color: #475569;
  border-color: rgba(15, 23, 42, 0.18);
  cursor: not-allowed;
}

.kontakt-field input[readonly]:focus {
  transform: none;
}

.kontakt-field input:focus,
.kontakt-field select:focus,
.kontakt-field textarea:focus {
  outline: none;
  border-color: rgba(13, 148, 136, 0.95);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
  transform: translateY(-1px);
}

.kontakt-field input.kontakt-invalid,
.kontakt-field select.kontakt-invalid,
.kontakt-field textarea.kontakt-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
  background: #fff7f7;
}

.kontakt-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.kontakt-btn {
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease;
}

.kontakt-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.kontakt-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.kontakt-btn-primary {
  border-color: rgba(8, 47, 73, 0.6);
  color: #e0f2fe;
  background: linear-gradient(120deg, #0c4a6e, #0f766e);
}

.kontakt-btn-success {
  border-color: rgba(21, 128, 61, 0.45);
  color: #ecfdf3;
  background: linear-gradient(120deg, #15803d, #16a34a);
}

.kontakt-btn-ghost {
  background: rgba(241, 245, 249, 0.85);
}

.kontakt-btn-danger {
  border-color: rgba(185, 28, 28, 0.4);
  color: #fff7f7;
  background: linear-gradient(120deg, #b91c1c, #dc2626);
}

.kontakt-msg {
  min-height: 20px;
  font-size: 0.86rem;
  color: #334155;
}

.kontakt-msg[data-type="success"] {
  color: #065f46;
}

.kontakt-msg[data-type="error"] {
  color: #b91c1c;
}

.kontakt-info-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.35;
  font-size: 0.9rem;
}

.kontakt-info-list li + li {
  margin-top: 6px;
}

.kontakt-inbox {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)), #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.kontakt-inbox-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.kontakt-inbox-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.12rem;
}

.kontakt-inbox-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kontakt-inbox-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.kontakt-request-card {
  border: 1px solid rgba(14, 116, 144, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(236, 254, 255, 0.85), rgba(255, 255, 255, 0.98));
  overflow: hidden;
}

.kontakt-request-head {
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.kontakt-request-open {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 2px 0;
}

.kontakt-request-sender {
  font-weight: 650;
  color: #0f172a;
}

.kontakt-request-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.kontakt-request-category {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #155e75;
  background: rgba(34, 211, 238, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.kontakt-request-date {
  font-size: 12px;
  color: #475569;
  display: inline-flex;
  align-items: center;
  height: 24px;
  line-height: 1;
}

.kontakt-request-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease;
  margin: 0;
  vertical-align: middle;
}

.kontakt-request-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kontakt-request-check-mark {
  width: 10px;
  height: 6px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: translateY(-1px) rotate(-45deg);
  transition: border-color 0.14s ease;
}

.kontakt-request-check input:checked + .kontakt-request-check-mark {
  border-left-color: #15803d;
  border-bottom-color: #15803d;
}

.kontakt-request-delete {
  border: 1px solid rgba(185, 28, 28, 0.28);
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 8px;
  padding: 0 10px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.kontakt-request-delete:hover {
  background: #fecaca;
}

.kontakt-request-delete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.kontakt-request-body {
  padding: 0 14px 14px;
}

.kontakt-request-text {
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: #ffffff;
  line-height: 1.5;
  color: #1e293b;
  word-break: break-word;
}

.kontakt-request-attachment {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.kontakt-request-attachment-meta {
  font-size: 12px;
  font-weight: 700;
  color: #155e75;
}

.kontakt-request-attachment-loading {
  color: #64748b;
  font-size: 12px;
}

.kontakt-request-attachment-error {
  color: #b91c1c;
  font-size: 12px;
}

.kontakt-request-image {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.8), rgba(248, 250, 252, 0.95));
}

.kontakt-empty {
  border: 1px dashed rgba(15, 23, 42, 0.25);
  border-radius: 12px;
  padding: 16px;
  color: #64748b;
  background: rgba(248, 250, 252, 0.9);
}

.kontakt-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.kontakt-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.kontakt-confirm-card {
  position: relative;
  width: min(420px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.24);
  padding: 18px;
}

.kontakt-confirm-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
}

.kontakt-confirm-card p {
  margin: 8px 0 0;
  color: #475569;
  line-height: 1.45;
  font-size: 0.92rem;
}

.kontakt-confirm-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 960px) {
  .kontakt-page {
    padding: 18px;
  }

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

@media (max-width: 640px) {
  .kontakt-hero {
    padding: 18px;
    border-radius: 16px;
  }

  .kontakt-form-card,
  .kontakt-info-card,
  .kontakt-inbox {
    padding: 16px;
    border-radius: 14px;
  }
}
