:root {
  --bg: #edf5ff;
  --surface: #ffffff;
  --surface-strong: #fff9db;
  --text: #14345a;
  --muted: #49627f;
  --line: #c7d8ee;
  --brand: #0057b7;
  --brand-dark: #003f88;
  --accent: #ffd700;
  --accent-deep: #f0c400;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(0, 55, 128, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 87, 183, 0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(255, 215, 0, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(0, 87, 183, 0.05), rgba(255, 215, 0, 0.06)),
    var(--bg);
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--brand-dark);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background:
    linear-gradient(90deg, rgba(0, 87, 183, 0.06) 0%, rgba(255, 255, 255, 0.7) 42%, rgba(255, 248, 214, 0.78) 100%),
    rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 87, 183, 0.14);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  display: block;
  width: 158px;
  max-width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.locale-switcher {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.locale-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 87, 183, 0.12);
  background: rgba(0, 87, 183, 0.06);
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

.locale-link:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 87, 183, 0.22);
  background: rgba(0, 87, 183, 0.1);
}

.locale-flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(20, 52, 90, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  flex: 0 0 auto;
}

.locale-flag-de {
  background: linear-gradient(
    180deg,
    #111111 0 33.33%,
    #c62828 33.33% 66.66%,
    #f2c94c 66.66% 100%
  );
}

.locale-flag-ua {
  background: linear-gradient(
    180deg,
    #0057b7 0 50%,
    #ffd700 50% 100%
  );
}

.locale-link-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(0, 87, 183, 0.2);
}

.locale-link-active span:last-child {
  color: inherit;
}

.locale-link-de {
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.07) 0 33.33%,
    rgba(198, 40, 40, 0.08) 33.33% 66.66%,
    rgba(242, 201, 76, 0.16) 66.66% 100%
  );
  border-color: rgba(17, 17, 17, 0.14);
}

.locale-link-ua {
  background: linear-gradient(
    180deg,
    rgba(0, 87, 183, 0.1) 0 50%,
    rgba(255, 215, 0, 0.18) 50% 100%
  );
}

.locale-link-de.locale-link-active {
  color: #111111;
  background: linear-gradient(
    180deg,
    #111111 0 33.33%,
    #c62828 33.33% 66.66%,
    #f2c94c 66.66% 100%
  );
  border-color: #111111;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.18);
}

.locale-link-de.locale-link-active span:last-child {
  color: #111111;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.locale-link-ua.locale-link-active {
  background: linear-gradient(
    180deg,
    #0057b7 0 50%,
    #ffd700 50% 100%
  );
  border-color: #0057b7;
  color: #14345a;
  box-shadow: 0 10px 22px rgba(0, 87, 183, 0.22);
}

.nav-links a {
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 600;
}

.hero {
  padding: 64px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: rgba(255, 215, 0, 0.55);
  padding: 6px 10px;
  border-radius: 999px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.7rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.lead {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 58ch;
}

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

.hero-points,
.result-block ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.upload-card,
.step-card,
.result-card,
.legal-card {
  background: var(--surface);
  border: 1px solid rgba(0, 87, 183, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.upload-card {
  padding: 22px;
}

.analyze-form {
  display: grid;
  gap: 16px;
}

.bot-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.file-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 87, 183, 0.06), rgba(255, 215, 0, 0.12));
  border: 1px solid rgba(0, 87, 183, 0.12);
}

.file-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.file-preview-name {
  color: var(--muted);
  word-break: break-word;
}

.image-preview,
.pdf-preview {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.image-preview {
  max-height: 420px;
  object-fit: contain;
}

.pdf-preview {
  min-height: 420px;
}

.upload-zone {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1.5px dashed var(--brand);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0, 87, 183, 0.1) 0 50%, rgba(255, 215, 0, 0.14) 50% 100%);
  cursor: pointer;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.upload-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 87, 183, 0.22);
}

.upload-subtitle,
.fine-print,
.status-box,
.legal-card p {
  color: var(--muted);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.primary-button,
.secondary-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.primary-button {
  padding: 14px 22px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 87, 183, 0.25);
}

.secondary-button {
  padding: 10px 16px;
  background: rgba(255, 215, 0, 0.22);
  color: var(--brand-dark);
  font-weight: 700;
}

.status-box {
  min-height: 24px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(91, 103, 115, 0.08);
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hourglass {
  position: relative;
  width: 16px;
  height: 24px;
  border: 2px solid var(--brand-dark);
  border-radius: 4px;
  flex: 0 0 auto;
}

.hourglass::before,
.hourglass::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 8px;
  background: #ff0000;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.hourglass::before {
  top: 2px;
  animation: sand-top 1.2s infinite ease-in-out;
}

.hourglass::after {
  bottom: 2px;
  transform: rotate(180deg);
  animation: sand-bottom 1.2s infinite ease-in-out;
}

.status-loading {
  color: var(--brand-dark);
  background: rgba(0, 87, 183, 0.11);
}

.status-success {
  color: #0b5f3f;
  background: rgba(16, 185, 129, 0.12);
}

.status-error {
  color: var(--danger);
  background: rgba(180, 35, 24, 0.1);
}

.section {
  padding: 24px 0 56px;
}

.section-accent {
  padding-top: 0;
}

.section-head {
  margin-bottom: 22px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  padding: 24px;
}

.faq-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid rgba(0, 87, 183, 0.12);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.faq-card p {
  margin: 0;
  color: var(--muted);
}

.step-card > strong {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.35);
  color: var(--brand-dark);
  margin-bottom: 14px;
}

.result-card {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.result-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.result-block {
  padding: 20px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(0, 87, 183, 0.12);
}

.alert-block {
  border-color: rgba(180, 35, 24, 0.25);
}

.disclaimer-block {
  background: rgba(91, 103, 115, 0.08);
}

.reply-box {
  white-space: pre-wrap;
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--line);
  font-family: "Consolas", "Courier New", monospace;
  overflow-x: auto;
}

.result-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.result-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.email-compose {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.email-label {
  font-weight: 700;
  color: var(--brand-dark);
}

.email-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.admin-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.email-input:focus {
  outline: 2px solid rgba(0, 87, 183, 0.18);
  border-color: var(--brand);
}

.hidden {
  display: none;
}

.legal-card {
  padding: 28px;
}

.translation-block {
  margin: 18px 0 22px;
  padding: 16px 18px;
  border-left: 4px solid rgba(0, 87, 183, 0.65);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 87, 183, 0.05), rgba(255, 215, 0, 0.16));
}

.translation-block h2,
.translation-block h3 {
  color: var(--brand-dark);
}

.site-footer {
  border-top: 1px solid rgba(0, 87, 183, 0.14);
  background:
    linear-gradient(180deg, rgba(0, 87, 183, 0.06) 0 50%, rgba(255, 215, 0, 0.1) 50% 100%);
  padding: 28px 0 40px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
}

.cookie-banner-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 87, 183, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(0, 55, 128, 0.18);
}

.cookie-banner-inner p {
  margin: 0;
  color: var(--muted);
}

.cookie-copy {
  display: grid;
  gap: 8px;
}

.cookie-copy-secondary {
  font-size: 0.95rem;
  opacity: 0.92;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
}

.site-author {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.section-head-left {
  text-align: left;
}

.section-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.article-grid-full {
  margin-top: 28px;
}

.article-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 87, 183, 0.14);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.article-card h3 {
  margin-bottom: 0;
  font-size: 1.32rem;
}

.article-card h3 a,
.article-card-link {
  text-decoration: none;
}

.article-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.article-card p {
  margin: 0;
}

.article-card-meta {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.article-category-chip,
.category-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.article-category-chip {
  color: var(--brand-dark);
  background: rgba(255, 215, 0, 0.34);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 28px;
}

.category-filter {
  color: var(--brand-dark);
  background: rgba(0, 87, 183, 0.08);
  border: 1px solid rgba(0, 87, 183, 0.12);
}

.category-filter-active {
  color: white;
  background: var(--brand);
}

.article-card-link {
  font-weight: 700;
  color: var(--brand);
}

.partners-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.partner-note,
.partner-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 87, 183, 0.14);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.partner-note {
  padding: 24px;
  align-self: stretch;
  grid-row: span 2;
}

.partner-note ul,
.partner-about ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.partner-card {
  padding: 24px;
  display: grid;
  gap: 22px;
}

.partner-card-head {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.partner-logo {
  display: block;
  width: 100%;
  aspect-ratio: 831 / 679;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(0, 87, 183, 0.14);
  background: #fff;
}

.partner-logo-schweizdaten {
  aspect-ratio: auto;
  min-height: 140px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.schweizdaten-badge {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #ea2b1f;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.schweizdaten-wordmark {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
}

.schweizdaten-wordmark-dark {
  color: #1d2c44;
}

.schweizdaten-wordmark-accent {
  color: #ea4b31;
}

.partner-card-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.partner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.partner-site,
.partner-details span,
.partner-note p {
  color: var(--muted);
}

.partner-card-copy h2,
.partner-about h3,
.partner-note h2 {
  margin-bottom: 0;
}

.partner-card-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.partner-site a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.partner-card-copy p,
.partner-note p,
.partner-about ul,
.partner-note ul {
  margin-top: 0;
}

.partner-card-body {
  display: grid;
  gap: 18px;
}

.partner-details {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 87, 183, 0.06);
  border: 1px solid rgba(0, 87, 183, 0.1);
}

.partner-details strong {
  color: var(--brand-dark);
}

.partner-actions {
  display: flex;
  justify-content: flex-start;
}

.article-cover {
  display: grid;
  gap: 4px;
  min-height: 126px;
  padding: 18px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, rgba(0, 87, 183, 0.9), rgba(0, 63, 136, 0.84));
}

.article-cover-logo-shell {
  display: inline-flex;
  width: fit-content;
  max-width: min(100%, 280px);
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(7, 31, 66, 0.18);
}

.article-cover-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 42px;
  object-fit: contain;
}

.article-cover-logo-shell-hero {
  max-width: min(100%, 360px);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.article-cover-logo-hero {
  height: 54px;
}

.article-cover strong {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.article-cover span {
  opacity: 0.95;
}

.article-cover-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-cover-hero {
  margin-bottom: 18px;
  min-height: 180px;
  align-content: end;
}

.cover-jobcenter {
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.34), transparent 28%),
    linear-gradient(135deg, #0453a4, #0a3777);
}

.cover-warning {
  background:
    radial-gradient(circle at top right, rgba(255, 244, 180, 0.34), transparent 26%),
    linear-gradient(135deg, #c68808, #8c4e00);
}

.cover-school {
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.28), transparent 26%),
    linear-gradient(135deg, #2a72b5, #1c4e7e);
}

.cover-contract {
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.22), transparent 30%),
    linear-gradient(135deg, #21466e, #142f4d);
}

.cover-migration {
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.28), transparent 30%),
    linear-gradient(135deg, #006a7a, #004955);
}

.cover-health {
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.22), transparent 28%),
    linear-gradient(135deg, #0c6f79, #094852);
}

.cover-guide {
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.28), transparent 28%),
    linear-gradient(135deg, #5b59a6, #31306f);
}

.article-shell {
  display: grid;
  gap: 28px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.article-hero,
.article-content,
.article-cta-box,
.article-related {
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(0, 87, 183, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-weight: 600;
}

.article-content p:first-child {
  font-size: 1.08rem;
}

.article-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.article-content ul,
.article-content ol {
  margin: 16px 0;
  padding-left: 22px;
}

.article-content li + li {
  margin-top: 10px;
}

.article-section + .article-section {
  margin-top: 8px;
}

.article-cta-box {
  background:
    linear-gradient(135deg, rgba(0, 87, 183, 0.09), rgba(255, 215, 0, 0.16)),
    var(--surface);
}

.article-cta-box .primary-button {
  width: fit-content;
}

.article-related h2 {
  margin-bottom: 20px;
}

.ad-slot {
  display: grid;
  gap: 10px;
  margin: 0 auto 32px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(0, 87, 183, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.ad-slot-home {
  width: min(1120px, calc(100% - 32px));
}

.ad-slot-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.adsense-slot {
  min-height: 120px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px dashed rgba(0, 87, 183, 0.22);
  background: linear-gradient(135deg, rgba(0, 87, 183, 0.04), rgba(255, 215, 0, 0.08));
}

.ad-consent-note {
  margin: 0;
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

.feedback-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.feedback-page-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.feedback-list {
  display: grid;
  gap: 16px;
}

.feedback-carousel-shell {
  display: grid;
  gap: 14px;
}

.feedback-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.feedback-carousel-button {
  min-width: 52px;
  padding-inline: 0;
}

.feedback-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}

.feedback-card-carousel {
  min-height: 220px;
  scroll-snap-align: start;
}

.feedback-cta {
  justify-content: flex-start;
}

.feedback-card,
.feedback-form-card,
.admin-feedback-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 87, 183, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.feedback-card,
.feedback-form-card {
  padding: 24px;
}

.feedback-card-head,
.admin-feedback-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 14px;
}

.feedback-card-head span,
.admin-feedback-head span,
.admin-feedback-meta {
  color: var(--muted);
}

.feedback-card p,
.admin-feedback-card p {
  margin: 0;
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.feedback-locked-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(0, 87, 183, 0.14);
  background: linear-gradient(135deg, rgba(0, 87, 183, 0.05), rgba(255, 215, 0, 0.12));
}

.feedback-locked-card h2,
.feedback-locked-card p {
  margin: 0;
}

.feedback-page-form,
.feedback-page-list {
  position: sticky;
  top: 24px;
}

.feedback-page-list {
  display: grid;
  gap: 16px;
}

.admin-field textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.admin-field textarea:focus {
  outline: 2px solid rgba(0, 87, 183, 0.18);
  border-color: var(--brand);
}

.feedback-empty {
  margin: 0;
}

.admin-shell {
  width: min(1120px, calc(100% - 32px));
}

.admin-login-card,
.admin-panel,
.admin-report-card,
.admin-table-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 87, 183, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.admin-login-card,
.admin-panel {
  padding: 28px;
}

.admin-panel {
  display: grid;
  gap: 24px;
}

.admin-panel-head,
.admin-report-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-range-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field span {
  font-weight: 700;
  color: var(--brand-dark);
}

.admin-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.admin-field input:focus {
  outline: 2px solid rgba(0, 87, 183, 0.18);
  border-color: var(--brand);
}

.admin-stats-grid,
.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-stat-card,
.admin-summary-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(0, 87, 183, 0.12);
  background: linear-gradient(135deg, rgba(0, 87, 183, 0.06), rgba(255, 215, 0, 0.12));
}

.admin-stat-card span,
.admin-summary-card span {
  color: var(--muted);
  font-weight: 700;
}

.admin-summary-card-link {
  text-decoration: none;
  color: inherit;
}

.admin-summary-card-link:hover {
  transform: translateY(-1px);
}

.admin-summary-card-active {
  border-color: rgba(0, 87, 183, 0.34);
  box-shadow: 0 14px 30px rgba(0, 87, 183, 0.12);
}

.admin-stat-card strong,
.admin-summary-card strong {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.1;
}

.admin-stat-card-wide {
  grid-column: span 4;
}

.admin-report-card,
.admin-table-card {
  padding: 24px;
}

.admin-preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-summary-grid-feedback {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-alert {
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
}

.admin-alert-error {
  color: var(--danger);
  background: rgba(180, 35, 24, 0.1);
  border: 1px solid rgba(180, 35, 24, 0.16);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(0, 87, 183, 0.12);
  text-align: left;
}

.admin-table th {
  color: var(--brand-dark);
}

.admin-feedback-list {
  display: grid;
  gap: 16px;
}

.admin-feedback-card {
  padding: 20px;
}

.admin-feedback-head strong {
  display: block;
  margin-bottom: 4px;
}

.admin-feedback-status {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-feedback-status-pending {
  background: rgba(244, 197, 66, 0.18);
  color: #7c5a00;
}

.admin-feedback-status-approved {
  background: rgba(43, 138, 87, 0.12);
  color: #1f6a43;
}

.admin-feedback-status-rejected {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.admin-feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.92rem;
}

.admin-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.admin-feedback-actions form {
  margin: 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .steps,
  .faq-grid,
  .result-columns,
  .footer-grid,
  .partners-layout,
  .partner-card-head,
  .article-grid,
  .feedback-layout,
  .feedback-page-layout,
  .admin-stats-grid,
  .admin-summary-grid,
  .admin-range-form {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 32px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-hero,
  .article-content,
  .article-cta-box,
  .article-related,
  .admin-login-card,
  .admin-panel,
  .admin-report-card,
  .admin-table-card {
    padding: 22px;
  }

  .admin-panel-head,
  .admin-report-head {
    flex-direction: column;
  }

  .feedback-page-form,
  .feedback-page-list {
    position: static;
  }

  .admin-stat-card-wide {
    grid-column: auto;
  }
}

@keyframes sand-top {
  0% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.35);
    opacity: 0.8;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes sand-bottom {
  0% {
    transform: rotate(180deg) scaleY(0.35);
    opacity: 0.8;
  }
  50% {
    transform: rotate(180deg) scaleY(1);
    opacity: 1;
  }
  100% {
    transform: rotate(180deg) scaleY(0.35);
    opacity: 0.8;
  }
}
