:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --border: rgba(148, 163, 184, 0.24);
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body.seo-site {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.08), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #f6f8fb 100%);
}

.seo-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 140px;
}

.seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.seo-breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.seo-hero-card,
.seo-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.seo-hero-card {
  padding: 28px;
  margin-bottom: 22px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.92));
}

.seo-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
  font-weight: 700;
}

.seo-hero-card h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.seo-summary,
.seo-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.seo-card code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.seo-aliases {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.detail-top-actions {
  align-items: center;
}

.seo-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
}

.seo-button:hover {
  background: var(--accent-dark);
}

.seo-button-muted {
  color: var(--text);
  background: #e2e8f0;
}

.seo-button-muted:hover {
  background: #cbd5e1;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.seo-card {
  padding: 24px;
  margin-bottom: 22px;
}

.seo-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.seo-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.seo-fact {
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.seo-fact dt {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.seo-fact dd {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.seo-contact-list,
.seo-language-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-contact-list li {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.seo-contact-list li:last-child,
.seo-language-list li:last-child {
  border-bottom: 0;
}

.seo-contact-label {
  color: var(--muted);
  font-weight: 700;
}

.seo-contact-value a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
}

.seo-language-list li {
  display: grid;
  grid-template-columns: minmax(88px, 120px) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.seo-language-code {
  display: inline-flex;
  align-items: center;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.seo-language-value {
  line-height: 1.5;
  word-break: break-word;
}

.seo-muted,
.seo-footnote,
.seo-index-meta,
.seo-index-alt {
  color: var(--muted);
}

.seo-footnote {
  margin: 16px 0 0;
  font-size: 14px;
}

.seo-index-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.seo-index-group {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.seo-index-group h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.seo-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-index-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.seo-index-item:last-child {
  border-bottom: 0;
}

.seo-index-item a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.seo-index-item a:hover,
.seo-breadcrumbs a:hover,
.seo-contact-value a:hover {
  text-decoration: underline;
}

.seo-index-meta,
.seo-index-alt {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
}

.header-lang {
  position: fixed;
  right: 12px;
  bottom: 92px;
  z-index: 1200;
  max-width: 220px;
}

.lang-trigger {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 14px;
  min-width: 168px;
  max-width: 250px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 10px;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lang-trigger-label {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.lang-trigger-flag,
.lang-item-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
}

.lang-trigger-flag img,
.lang-item-flag img {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.lang-trigger-caret {
  color: var(--muted);
}

.lang-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 380px;
  max-width: min(92vw, 380px);
  max-height: 440px;
  background: #ebedf0;
  border: 1px solid #d7dce3;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  padding: 10px;
}

.lang-search-wrap {
  position: sticky;
  top: 0;
  padding-bottom: 8px;
  background: #ebedf0;
}

.lang-search-wrap input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #e3e5ea;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
}

.lang-list {
  max-height: 355px;
  overflow-y: auto;
  padding-right: 2px;
}

.lang-item {
  width: 100%;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
}

.lang-item:hover,
.lang-item.is-active {
  background: rgba(37, 99, 235, 0.08);
}

.detail-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(246, 248, 251, 0), rgba(246, 248, 251, 0.92) 34%, rgba(246, 248, 251, 0.98));
}

.detail-bottom-bar-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

.detail-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 26px rgba(37, 99, 235, 0.24);
}

.detail-contact-button:hover {
  background: var(--accent-dark);
}

.seo-related-card {
  margin-bottom: 22px;
}

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

.seo-related-group h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--muted);
}

.seo-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-related-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 14px;
}

.seo-related-list li:last-child {
  border-bottom: 0;
}

.seo-related-list a {
  color: var(--accent);
  text-decoration: none;
}

.seo-related-list a:hover {
  text-decoration: underline;
}

.seo-site-footer {
  margin-top: 40px;
  padding: 28px;
  border-top: 2px solid var(--border);
  text-align: center;
}

.seo-footer-inner {
  max-width: 640px;
  margin: 0 auto;
}

.seo-footer-brand {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.seo-footer-brand a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.seo-footer-brand a:hover {
  text-decoration: underline;
}

.seo-footer-cta {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.seo-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}

.seo-footer-links a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.seo-footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .seo-grid,
  .seo-index-layout,
  .seo-facts,
  .seo-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .seo-shell {
    width: min(100% - 20px, 100%);
    padding: 18px 0 132px;
  }

  .seo-hero-card,
  .seo-card,
  .seo-index-group {
    border-radius: 18px;
  }

  .seo-hero-card,
  .seo-card {
    padding: 18px;
  }

  .seo-contact-list li,
  .seo-language-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .header-lang {
    bottom: 88px;
  }

  .lang-trigger {
    min-width: 56px;
    width: 56px;
    padding: 10px 8px;
    justify-content: center;
  }

  .lang-trigger-label,
  .lang-trigger-caret {
    display: none;
  }

  .seo-button {
    width: 100%;
  }

  .detail-top-actions .seo-button {
    width: calc(50% - 6px);
  }

  .detail-bottom-bar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .detail-bottom-bar-inner {
    width: 100%;
  }

  .detail-contact-button {
    width: 100%;
    min-width: 0;
  }
}