body {
  margin: 0;
  font-family: "General Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f5f0;
  color: #0f172a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
main {
  width: min(980px, 100%);
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.08);
  padding: 40px 36px 48px;
  line-height: 1.65;
  position: relative;
}
h1 {
  margin-top: 0;
  font-size: 30px;
  letter-spacing: 0.03em;
  color: #0f172a;
}
h2 {
  margin-top: 32px;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: #0f172a;
}
p {
  margin: 12px 0;
  font-size: 16px;
  color: #1e293b;
}
address {
  font-style: normal;
  margin: 12px 0;
  font-size: 16px;
  white-space: pre-line;
  color: #1e293b;
}
a {
  color: #0f172a;
}
a.button-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #cbd5f5;
  background: #f8fafc;
  text-decoration: none;
  font-size: 14px;
  margin-top: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
a.button-link:hover,
a.button-link:focus {
  border-color: #94a3b8;
  background: #e2e8f0;
  transform: translateY(-1px);
}
.card {
  margin-top: 32px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
}
form.contact-form {
  display: grid;
  gap: 18px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #0f172a;
}
.form-control,
textarea.form-control {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #cbd5f5;
  background: #ffffff;
  color: #0f172a;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus,
textarea.form-control:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}
.form-control[disabled],
textarea.form-control[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.submit-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #7c3aed;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.submit-button:hover:not([disabled]),
.submit-button:focus:not([disabled]) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.submit-button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}
.form-feedback {
  font-size: 14px;
  color: #dc2626;
  margin-top: -6px;
  min-height: 20px;
}
.success-message {
  font-size: 15px;
  line-height: 1.7;
  padding: 12px 0 4px;
  color: #15803d;
}
.close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #cbd5f5;
  background: #ffffff;
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.close-button:focus,
.close-button:hover {
  border-color: #7c3aed;
  background: #f3e8ff;
  transform: translateY(-1px);
}

.legal-meta {
  font-size: 14px;
  color: #475569;
  margin-top: 6px;
}

.lang-nav {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  margin-bottom: 10px;
}

.lang-btn {
  border: 1px solid #cbd5f5;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover,
.lang-btn:focus {
  border-color: #94a3b8;
  background: #e2e8f0;
  outline: none;
}

.lang-btn[aria-pressed="true"] {
  border-color: #7c3aed;
  background: #ede9fe;
  color: #4c1d95;
  font-weight: 600;
}

.lang-block {
  margin-top: 28px;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-top: 12px;
}

.info-item {
  margin: 0;
  font-size: 16px;
  color: #1e293b;
}

address.info-item {
  white-space: normal;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.panel {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  background: #fdfdfd;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.panel h1,
.panel h2,
.panel h3 {
  margin-top: 0;
  color: #0f172a;
}

.panel h2 {
  margin-top: 28px;
  font-size: 20px;
}

.panel h3 {
  margin-top: 20px;
  font-size: 17px;
}

.panel--primary h1 {
  font-size: 30px;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.panel--secondary {
  background: #f8f5ff;
  border-color: #e2d6ff;
  box-shadow: 0 12px 32px rgba(76, 29, 149, 0.08);
}

.panel--secondary h2 {
  font-size: 24px;
}

.card--subtle {
  margin-top: 24px;
  background: #f8fafc;
}

.contact-card {
  margin-top: 40px;
}

.split-grid + .card {
  margin-top: 44px;
}

.button-link {
  margin-top: 24px;
}

@media (max-width: 640px) {
  main {
    padding: 28px 20px 36px;
  }

  .lang-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .panel {
    padding: 24px;
  }
}
