/* Shared six-language header. Native details keeps navigation usable without JS. */
.nav { gap: 20px; }
.nav > .brand { flex-shrink: 0; white-space: nowrap; }
.nav > .primary-navigation { min-width: 0; gap: 16px; }
.nav > .nav-cta { flex-shrink: 0; }
.nav > .language-menu { display: block; position: relative; flex: 0 0 auto; z-index: 60; visibility: visible; }
.language-menu > summary {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 10px 13px; border: 1px solid #10284e; border-radius: 10px;
  color: #fffdf8; background: #10284e; cursor: pointer;
  font-family: var(--font-sans); font-size: 13px; font-weight: 650;
  line-height: 1.3; letter-spacing: 0; list-style: none; white-space: nowrap;
  box-shadow: 0 3px 10px #10284e0d; transition: background .18s, box-shadow .18s;
}
.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu > summary::marker { content: ""; }
.language-menu > summary:hover, .language-menu[open] > summary { background: #1b385f; box-shadow: 0 4px 16px #10284e20; }
.language-menu .language-globe { color: #e4c68f; flex-shrink: 0; }
.language-menu .language-chevron { flex-shrink: 0; transition: transform .18s; }
.language-menu[open] .language-chevron { transform: rotate(180deg); }
.language-menu .language-code { display: none; }
.nav .language-menu > .language-switcher {
  position: absolute; top: calc(100% + 10px); right: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  width: 210px; max-width: calc(100vw - 36px); padding: 8px;
  border: 1px solid #d7d2c8; border-radius: 12px;
  color: #10284e; background: #fffdf8; box-shadow: 0 16px 40px #07152d26;
  font-family: var(--font-sans); font-size: 14px; line-height: 1.4; letter-spacing: 0;
}
.nav .language-menu:not([open]) > .language-switcher { display: none; }
.nav .language-switcher a {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 46px; padding: 11px 12px; border-radius: 7px;
  color: #10284e; font: inherit; font-weight: 600;
  white-space: nowrap; text-decoration: none;
}
.nav .language-switcher a:hover { background: #f0ece3; color: #10284e; }
.nav .language-switcher a[aria-current="page"] { background: #e9eef5; color: #10284e; }
.nav .language-option-code { font-size: 11px; font-weight: 650; color: #627186; letter-spacing: .03em; }
.nav a[aria-current="page"] .language-option-code { color: #10284e; font-size: 15px; }
.language-menu > summary:focus-visible, .language-switcher a:focus-visible,
.footer-languages a:focus-visible { outline: 3px solid #075bc7; outline-offset: 3px; }
.footer-languages {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 20px; margin-top: 26px; padding: 18px 12px 0;
  border-top: 1px solid #ffffff33; font-size: 13px;
}
.footer-languages a { display: inline-flex; align-items: center; min-height: 44px;
  color: inherit; text-underline-offset: 4px; }
.footer-languages a[aria-current="page"] { font-weight: 700; text-decoration: underline; }
.footer-languages a:focus-visible { outline-color: #f0c477; }

html[lang="ru"] .eyebrow, html[lang="ru"] .section-tag,
html[lang="ru"] .nav-cta { letter-spacing: .035em; }
html[lang="ru"] h1 { overflow-wrap: break-word; }
html[lang="ru"] .hero h1 { font-size: clamp(40px, 5.1vw, 72px); }
html[lang="ru"] .subhero h1, html[lang="ru"] .guide-hero h1 {
  font-size: clamp(34px, 4.5vw, 64px);
}
html:not([lang="en"]) .button {
  white-space: normal; text-align: center; max-width: 100%; overflow-wrap: break-word;
}
html:not([lang="en"]) .dropdown { min-width: 270px; }
html:not([lang="en"]) th, html:not([lang="en"]) td { overflow-wrap: anywhere; }

/* Japanese uses system CJK fonts: no remote font request or Latin-only fallback dependency. */
html[lang="ja"] body {
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, system-ui, sans-serif;
  --font-serif: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
  font-family: var(--font-sans); line-height: 1.85; line-break: strict; word-break: normal;
}
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3,
html[lang="ja"] h4, html[lang="ja"] h5, html[lang="ja"] h6 {
  font-family: var(--font-sans); font-weight: 600; line-height: 1.45;
  letter-spacing: .01em; overflow-wrap: break-word;
}
html[lang="ja"] i, html[lang="ja"] em { font-style: normal; }
html[lang="ja"] .hero h1 { font-size: clamp(34px, 3.7vw, 54px); }
html[lang="ja"] .subhero h1, html[lang="ja"] .guide-hero h1,
html[lang="ja"] .error-copy h1 { font-size: clamp(30px, 3.5vw, 50px); }
html[lang="ja"] .section-head h2, html[lang="ja"] .service-section .section-head h2,
html[lang="ja"] .intro h2, html[lang="ja"] .process h2,
html[lang="ja"] .business-sector-head h2,
html[lang="ja"] .seo-service-overview > .shell > .section-head h2 {
  font-size: clamp(27px, 3vw, 42px); line-height: 1.5;
}
html[lang="ja"] .eyebrow, html[lang="ja"] .section-tag,
html[lang="ja"] .button, html[lang="ja"] .nav-cta,
html[lang="ja"] label, html[lang="ja"] .mobile-menu-panel p,
html[lang="ja"] .mobile-menu-panel .mobile-apply { letter-spacing: .035em; }
html[lang="ja"] .mobile-menu-panel a, html[lang="ja"] .nav .dropdown a,
html[lang="ja"] .faq summary { font-family: var(--font-sans); font-size: 18px; line-height: 1.6; }
html[lang="ja"] .guide-copy p, html[lang="ja"] .guide-copy li { line-height: 1.95; }
html[lang="ja"] .button, html[lang="ja"] .mobile-menu-panel .mobile-apply { line-height: 1.65; }
html[lang="ja"] .eyebrow, html[lang="ja"] .section-tag,
html[lang="ja"] .proof span, html[lang="ja"] .button,
html[lang="ja"] .contact label, html[lang="ja"] .contact .consent,
html[lang="ja"] .footer-top > div, html[lang="ja"] .footer-bottom {
  font-size: 12px; line-height: 1.7;
}
html[lang="ja"] .contact input, html[lang="ja"] .contact select,
html[lang="ja"] .contact textarea { font-size: 16px; line-height: 1.6; }
html[lang="ja"] .contact .consent { align-items: flex-start; }
html[lang="ja"] .contact .consent input { flex: 0 0 16px; margin-top: 3px; }
html[lang="ja"] .brand { font-family: Manrope, system-ui, sans-serif; }

@media (max-width: 1360px) {
  .nav { height: 76px; gap: 16px; }
  .nav > .primary-navigation, .nav > .nav-cta { display: none; }
  .nav > .brand { order: 1; flex: 0 1 auto; min-width: 0; }
  .nav > .language-menu { order: 2; margin-left: auto; }
  .nav > .mobile-menu { order: 3; display: block; margin-left: 0; flex: 0 0 48px; }
  /* The master stylesheet has these rules only below 900px. */
  .mobile-menu summary {
    cursor: pointer; background: #0d1e3c; border-radius: 9px;
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 0 12px; list-style: none;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { background: #fffdf8; width: 100%; height: 2px; transition: all .2s; }
  .mobile-menu[open] summary span:first-child { transform: translateY(7px) rotate(45deg); }
  .mobile-menu[open] summary span:nth-child(2) { opacity: 0; }
  .mobile-menu[open] summary span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu-panel {
    color: #fffdf8; background: #0d1e3c; padding: 22px 24px 34px;
    position: fixed; top: 76px; left: 0; right: 0; overflow: auto;
    max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px);
    box-shadow: 0 25px 60px #07101f55;
  }
  .mobile-menu-panel p { color: #d0a45f; letter-spacing: .14em; text-transform: uppercase;
    margin: 18px 0 7px; font-size: 12px; font-weight: 800; }
  .mobile-menu-panel a { font-family: var(--font-serif); border-bottom: 1px solid #41516b;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    min-height: 48px; padding: 14px 0; font-size: 22px; overflow-wrap: break-word; }
  .mobile-menu-panel small { color: #d0a45f; font-family: var(--font-sans); font-size: 11px;
    white-space: nowrap; flex-shrink: 0; }
  .mobile-menu-panel .mobile-apply { color: #07152d; font-family: var(--font-sans);
    letter-spacing: .1em; text-transform: uppercase; background: #b1956d; border: 0;
    margin-top: 22px; padding: 16px 18px; font-size: 12px; line-height: 1.5; font-weight: 800; }
}
@media (max-width: 560px) {
  .nav { gap: 8px; }
  .nav > .brand { font-size: 16px; gap: 6px; letter-spacing: -.6px; }
  .nav .brand-badge { flex-basis: 28px; width: 28px; height: 28px; font-size: 18px; }
  .language-menu > summary { min-width: 54px; padding: 9px; gap: 5px; }
  html[lang="ru"] .hero h1 { font-size: clamp(34px, 9vw, 48px); }
  html[lang="ru"] .subhero h1, html[lang="ru"] .guide-hero h1 { font-size: 34px; }
  html[lang="ja"] .hero h1 { font-size: clamp(30px, 8.6vw, 39px); }
  html[lang="ja"] .subhero h1, html[lang="ja"] .guide-hero h1,
  html[lang="ja"] .error-copy h1 { font-size: 29px; }
  html[lang="ja"] .mobile-menu-panel a { font-size: 17px; }
}
@media (max-width: 380px) {
  .nav .brand-badge { display: none; }
}
@media (forced-colors: active) {
  .language-menu > summary, .nav .language-menu > .language-switcher { border: 1px solid ButtonText; }
  .nav .language-switcher a[aria-current="page"] { outline: 1px solid LinkText; outline-offset: -2px; }
}

/* v22: the caption and specialist note each have their own space. */
.hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 30px 44px; min-height: 0; padding-top: 40px; padding-bottom: 38px; }
.hero-copy { min-width: 0; }
.hero-photo { display: flex; flex-direction: column; align-items: stretch; height: auto; width: 100%; max-width: 520px; margin-inline: auto; padding: 0; }
.hero-photo .hero-editorial { width: 100%; height: 450px; flex: 0 0 auto; box-shadow: 0 18px 50px #1822391a; }
.hero-photo .hero-editorial figcaption { left: 20px; right: 20px; bottom: 20px; padding: 13px 16px; overflow-wrap: break-word; }
.hero-photo .hero-editorial figcaption span { letter-spacing: .07em; line-height: 1.55; }
.hero-photo .hero-editorial figcaption b { margin-top: 4px; }
.hero-photo .concierge-note { position: static; width: 100%; min-width: 0; padding: 14px 18px; border: 1px solid #ded9ce; border-top: 0; box-shadow: none; gap: 12px; }
.hero-photo .concierge-note > div { min-width: 0; }
.hero-photo .concierge-note b { font-size: 12px; line-height: 1.5; }
.hero-photo .concierge-note small { font-size: 12px; line-height: 1.5; }
.hero-photo .status-dot { flex-shrink: 0; }
.hero-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 44px; align-items: center; padding-top: 8px; }
.hero-bottom .proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; }
.hero-bottom .proof > div { margin: 0; padding: 5px 20px; border: 0; border-left: 1px solid var(--line); min-width: 0; }
.hero-bottom .proof > div:first-child { border-left: 0; padding-left: 0; }
.hero-bottom .proof > div:last-child { padding-right: 0; }
.hero-bottom .proof strong { font-size: 20px; line-height: 1.35; }
.hero-bottom .proof span { font-size: 11px; line-height: 1.55; letter-spacing: .035em; margin-top: 9px; overflow-wrap: break-word; }
.hero-rates { width: 100%; max-width: 520px; min-width: 0; margin-inline: auto; padding: 16px 20px; background: #10284e; color: #fffdf8; border-radius: 14px; }
.hero-rates-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hero-rates-head h2 { font-family: var(--font-sans); font-size: 12px; font-weight: 650; line-height: 1.5; letter-spacing: .04em; margin: 0; color: #e4c68f; }
.hero-rates-head a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px -8px -10px 0; color: #e4c68f; font-size: 22px; flex-shrink: 0; border-radius: 8px; }
.hero-rates-head a:hover { background: #ffffff12; }
.hero-rates-head a:focus-visible { outline: 2px solid #e4c68f; outline-offset: 2px; }
.hero-rates-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-rates-values > div { min-width: 0; }
.hero-rates-values > div + div { border-left: 1px solid #ffffff29; padding-left: 20px; }
.hero-rates-values span { display: block; color: #c5cfdf; font-size: 11px; line-height: 1.5; letter-spacing: .08em; }
.hero-rates-values strong { display: block; font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.4; font-weight: 600; white-space: nowrap; margin-top: 3px; }
.hero-rates-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 16px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #ffffff29; color: #c5cfdf; font-size: 11px; line-height: 1.5; }
.hero-rates-meta b { font-weight: 500; }
.hero-rates > p { color: #c5cfdf; font-size: 11px; line-height: 1.5; margin: 5px 0 0; }
.hero-rates.rates-unavailable [data-rate-status] { color: #f1d59d; }
html[lang="ja"] .hero-rates-head h2 { font-size: 12px; line-height: 1.6; }
html[lang="ja"] .hero-rates-meta, html[lang="ja"] .hero-rates > p,
html[lang="ja"] .hero-bottom .proof span { font-size: 12px; }
/* Seven guides form two complete rows and one full-width feature. */
.seo-knowledge-grid > .seo-knowledge-wide { grid-column: 1 / -1; display: grid; grid-template-columns: .7fr 1.3fr; gap: 32px; align-items: center; padding-right: 74px; position: relative; }
.seo-knowledge-grid > .seo-knowledge-wide h3 { margin: 0; }
.seo-knowledge-grid > .seo-knowledge-wide::after { content: "↗"; position: absolute; right: 30px; top: 50%; transform: translateY(-50%); color: #d6b980; font-size: 27px; }
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-grid, .hero-bottom { column-gap: 28px; }
  .hero-bottom .proof > div { padding-inline: 12px; }
  .hero-bottom .proof strong { font-size: 18px; }
  .hero-photo .hero-editorial { height: 420px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 44px; gap: 30px; }
  .hero-photo { max-width: 650px; }
  .hero-photo .hero-editorial { height: 450px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 26px; padding-top: 0; }
  .hero-rates { max-width: none; }
  .hero-rates-values strong { font-size: 24px; }
}
@media (max-width: 720px) {
  .seo-knowledge-grid > .seo-knowledge-wide { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
  .nav > .language-menu { flex-shrink: 0; }
  .language-menu > summary { padding: 10px; gap: 6px; min-width: 72px; }
  .language-menu .language-current { display: none; }
  .language-menu .language-code { display: inline; font-size: 12px; }
  .language-menu .language-globe { width: 16px; height: 16px; }
  .hero-grid { padding-top: 32px; padding-bottom: 32px; }
  .hero-photo .hero-editorial { height: 350px; }
  .hero-photo .hero-editorial figcaption { left: 16px; right: 16px; bottom: 16px; padding: 12px 14px; }
  .hero-bottom .proof strong { font-size: 18px; }
  .hero-bottom .proof > div { padding-inline: 12px; }
  .hero-bottom .proof span { font-size: 10px; letter-spacing: .015em; }
  .hero-rates { padding: 16px; }
  .hero-rates-values { gap: 12px; }
  .hero-rates-values > div + div { padding-left: 12px; }
  .hero-rates-values strong { font-size: 21px; }
}
@media (max-width: 420px) {
  .hero-bottom .proof { grid-template-columns: 1fr; gap: 0; }
  .hero-bottom .proof > div, .hero-bottom .proof > div:first-child, .hero-bottom .proof > div:last-child { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 14px; align-items: center; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); }
  .hero-bottom .proof span { margin: 0; font-size: 11px; }
  .hero-rates-values strong { font-size: 19px; }
}

/* v23: consistent hero rhythm, independent of display width and translation length. */
.hero-grid { align-items: end; row-gap: 28px; padding-top: 36px; padding-bottom: 32px; }
.hero-copy h1 { font-size: clamp(48px, 4.8vw, 68px); line-height: 1.02; letter-spacing: -.035em; text-wrap: pretty; }
.hero-copy .lede { margin: 24px 0; }
.hero-copy .hero-actions { column-gap: 24px; row-gap: 12px; }
.hero-bottom { align-items: start; padding-top: 0; }
.hero-bottom .proof { padding-top: 16px; }
.hero-bottom .proof span { font-size: 12px; line-height: 1.55; }
.hero-rates-meta, .hero-rates > p, .hero-rates-values span { font-size: 12px; }
.hero + .seo-service-overview { padding-top: 54px; }
html[lang="de"] .hero h1 { font-size: clamp(44px, 4.1vw, 60px); hyphens: auto; }
html[lang="de"] h1 { overflow-wrap: break-word; hyphens: auto; }
html[lang="de"] .subhero h1, html[lang="de"] .guide-hero h1 { font-size: clamp(34px, 4.5vw, 64px); }
html[lang="de"] .hero .text-link { white-space: normal; }
html[lang="de"] .primary-navigation { gap: 13px; }
html[lang="de"] .eyebrow, html[lang="de"] .section-tag { letter-spacing: .07em; }
html[lang="de"] h2, html[lang="de"] h3 { overflow-wrap: break-word; hyphens: auto; }
html[lang="de"] .hero-rates-head h2 { hyphens: none; }
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-copy h1 { font-size: 54px; }
  html[lang="de"] .hero h1 { font-size: 46px; }
  .hero-actions .text-link { white-space: normal; }
}
@media (max-width: 900px) {
  .hero-grid { align-items: start; }
  .hero-copy h1 { font-size: clamp(44px, 7.2vw, 60px); }
  .hero-bottom .proof { padding-top: 0; }
  .hero + .seo-service-overview { padding-top: 40px; }
}
@media (max-width: 560px) {
  .hero-grid { row-gap: 26px; padding-top: 30px; }
  .hero-copy h1 { font-size: clamp(39px, 9.6vw, 50px); line-height: 1.04; }
  html[lang="de"] .hero h1 { font-size: clamp(36px, 8.8vw, 46px); }
  .hero-copy .lede { margin: 22px 0; }
  .hero-bottom .proof span { font-size: 11px; }
  .hero-rates-meta { flex-direction: column; gap: 4px; }
}

/* v24: SVG flags retain native-language text and accessible language names. */
.language-flag {
  display: inline-block; width: 24px; height: 18px; flex: 0 0 24px;
  object-fit: cover; border-radius: 2px; vertical-align: middle;
  box-shadow: 0 0 0 1px #7b849338;
}
.nav .language-switcher a { justify-content: flex-start; gap: 10px; }
.nav .language-option-code { margin-left: auto; }
.footer-languages a { gap: 8px; }
/* Keep complete words in the German hero: Georgien must not become Geor-gien. */
html[lang="de"] .hero h1 {
  -webkit-hyphens: none; hyphens: none; word-break: normal;
  overflow-wrap: normal; text-wrap: balance;
}
/* Scope the floating WhatsApp layout to the supplied Elfsight app only.
   Smartsupp retains its existing bottom-right placement. */
.bankaccount-whatsapp {
  position: fixed; left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 64px; height: 64px; z-index: 9999;
  pointer-events: none;
}
.bankaccount-whatsapp > * { pointer-events: auto; }
.bankaccount-whatsapp .eapp-whatsapp-chat-root-layout-component {
  left: max(20px, env(safe-area-inset-left)) !important;
  right: auto !important;
  bottom: max(20px, env(safe-area-inset-bottom)) !important;
  top: auto !important;
  max-width: calc(100vw - 40px) !important;
  align-items: flex-start !important;
  pointer-events: auto;
}
@media (max-width: 560px) {
  .language-menu > summary { min-width: 78px; }
  .language-menu .language-flag { width: 20px; height: 15px; flex-basis: 20px; }
  .bankaccount-whatsapp {
    left: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .bankaccount-whatsapp .eapp-whatsapp-chat-root-layout-component {
    left: max(16px, env(safe-area-inset-left)) !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    max-width: calc(100vw - 32px) !important;
  }
}
