/* /assets/css/design-tokens.css */
:root {
  color-scheme: light;

  --color-canvas: #f7f5f0;
  --color-surface: #fff;
  --color-text: #132033;
  --color-muted: #5d6b7c;
  --color-primary: #0f2d46;
  --color-primary-dark: #081827;
  --color-accent: #b08a47;
  --color-border: #e4dfd6;
  --color-success: #1f7a4d;

  /* Backwards-compatible semantic aliases during component migration. */
  --bg: var(--color-canvas);
  --surface: var(--color-surface);
  --text: var(--color-text);
  --muted: var(--color-muted);
  --primary: var(--color-primary);
  --primary-dark: var(--color-primary-dark);
  --accent: var(--color-accent);
  --border: var(--color-border);
  --success: var(--color-success);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --type-display: clamp(2.75rem, 5vw, 4rem);
  --type-h1: clamp(2.5rem, 4.5vw, 3.75rem);
  --type-h2: clamp(2rem, 3.4vw, 2.75rem);
  --type-h3: clamp(1.25rem, 2vw, 1.5rem);
  --type-body-lg: 1.125rem;
  --type-body: 1rem;
  --type-article: 1.0625rem;
  --type-small: .875rem;
  --leading-tight: 1.08;
  --leading-heading: 1.16;
  --leading-body: 1.65;
  --leading-article: 1.7;
  --tracking-display: -.035em;
  --tracking-heading: -.025em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --radius: var(--radius-lg);

  --shadow-sm: 0 10px 22px rgba(15, 45, 70, .1);
  --shadow-md: 0 18px 45px rgba(15, 45, 70, .12);
  --shadow-lg: 0 24px 60px rgba(8, 24, 39, .16);
  --shadow: var(--shadow-md);

  --content-max: 1160px;
  --content-wide: 1480px;
  --max: var(--content-max);
}

/* /assets/css/base.css */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterCyrillicVariable.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterLatinVariable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, p, ul, ol, figure) {
  overflow-wrap: break-word;
}

:where(h1, h2, h3) {
  text-wrap: balance;
}

:where(p, li) {
  text-wrap: pretty;
}

:where(img, svg, video) {
  display: block;
  max-width: 100%;
}

:where(input, select, textarea, button) {
  font-family: inherit;
}

:where(input, select, textarea) {
  font-size: 1rem;
}

:where(main [id]) {
  scroll-margin-top: 7.5rem;
}

:where(button, [role="button"], .btn) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:where(button, [role="button"], .btn, a):active {
  transform: translateY(1px);
}

.container {
  width: min(100% - 2rem, var(--content-max));
  margin-inline: auto;
}

@media (max-width: 900px) {
  :where(main [id]) { scroll-margin-top: 6rem; }
}

@media (max-width: 620px) {
  :root {
    --type-display: clamp(2.25rem, 10vw, 2.75rem);
    --type-h1: clamp(2.125rem, 9vw, 2.5rem);
    --type-h2: clamp(1.75rem, 7vw, 2.125rem);
  }
}

/* /assets/css/pages/home.css */
* { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.6;
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    .container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

    .topbar { background: var(--primary-dark); color: #fff; font-size: 14px; }
    .topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
    .topbar a { color: #fff; opacity: 0.95; }

    header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
    }

    .nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
    .logo { display: flex; align-items: center; gap: 12px; color: var(--primary); }
    .logo-mark {
      width: 44px;
      height: 44px;
      border-radius: 8px;
      border: 2px solid var(--accent);
      background: #fff;
      color: var(--primary);
      display: grid;
      place-items: center;
      position: relative;
      box-shadow: 0 10px 22px rgba(15, 45, 70, 0.10);
      font-family: Georgia, "Times New Roman", serif;
      line-height: 1;
    }
    .logo-mark .s { font-size: 30px; font-weight: 500; transform: translateX(-3px); }
    .logo-mark .t { position: absolute; font-size: 25px; font-weight: 600; color: var(--accent); right: 8px; bottom: 6px; }
    .logo-text { display: grid; gap: 1px; line-height: 1; }
    .logo-name { font-size: 28px; letter-spacing: -0.045em; font-weight: 700; color: var(--primary); }
    .logo-name .tax { color: var(--accent); }
    .logo-tagline { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 800; color: var(--primary); margin-top: 5px; }

    .nav-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-weight: 600; font-size: 15px; }
    .nav-links a:hover { color: var(--primary); }
    .lang-switch { display: inline-flex; border: 1px solid var(--border); background: #fff; border-radius: 999px; overflow: hidden; }
    .lang-switch button { border: 0; background: transparent; padding: 8px 11px; font-weight: 900; color: var(--muted); cursor: pointer; }
    .menu-btn { display: none; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 9px 11px; font-size: 22px; cursor: pointer; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border-radius: 999px;
      padding: 13px 22px;
      font-weight: 800;
      border: 1px solid transparent;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
      white-space: nowrap;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn-primary { background: var(--primary); color: #fff; box-shadow: 0 14px 28px rgba(15, 45, 70, 0.22); }
    .btn-primary:hover { background: var(--primary-dark); }
    .btn-secondary { background: #fff; color: var(--primary); border-color: var(--border); }

    .hero {
      position: relative;
      overflow: hidden;
      padding: 110px 0 90px;
      background:
        linear-gradient(to right, rgba(247, 245, 240, 0.98) 0%, rgba(247, 245, 240, 0.95) 30%, rgba(247, 245, 240, 0.80) 48%, rgba(247, 245, 240, 0.30) 72%, rgba(247, 245, 240, 0.06) 100%),
        url('/images/sofia_tax_accounting_services.webp') right center / cover no-repeat;
    }
    .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 100%); pointer-events: none; }
    .hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; min-height: 520px; }
    .hero-content { max-width: 640px; }
    .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(176, 138, 71, 0.10); color: var(--primary); border: 1px solid rgba(176, 138, 71, 0.28); border-radius: 999px; padding: 8px 13px; font-weight: 800; font-size: 14px; margin-bottom: 22px; }
    h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.03; letter-spacing: -0.06em; margin-bottom: 22px; }
    .hero p { font-size: 20px; color: var(--muted); max-width: 620px; margin-bottom: 30px; }
    .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
    .hero-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 620px; }
    .hero-point { background: rgba(255, 255, 255, 0.84); border: 1px solid var(--border); border-radius: 16px; padding: 14px; font-weight: 700; color: #25354a; font-size: 14px; }
    @media (min-width: 901px) {
      html:is([lang="es"], [lang="ru"]) .hero-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    section { padding: 76px 0; }
    .section-head { max-width: 760px; margin-bottom: 34px; }
    .section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
    h2 { font-size: clamp(31px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.045em; margin-bottom: 14px; }
    .section-head p { color: var(--muted); font-size: 18px; }
    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
    .steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .highlight-grid, .contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
    .bulgaria-grid { align-items: center; }

    .service-card, .pricing-card, .step-card, .faq-item {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 26px;
      box-shadow: 0 10px 30px rgba(19, 32, 51, 0.05);
    }
    .service-card h3, .step-card h3, .faq-item h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -0.02em; }
    .service-card p, .step-card p, .faq-item p { color: var(--muted); }

    a.service-card {
      display: block;
      color: inherit;
      text-decoration: none;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
    a.service-card:hover {
      transform: translateY(-4px);
      border-color: rgba(176, 138, 71, 0.55);
      box-shadow: 0 16px 36px rgba(15, 45, 70, 0.10);
    }
    .service-card .learn-more {
      display: inline-flex;
      margin-top: 16px;
      color: var(--primary);
      font-weight: 900;
      font-size: 14px;
    }
    .service-card .learn-more::after { content: " →"; color: var(--accent); }

    .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(176, 138, 71, 0.08); color: var(--primary); border: 1px solid rgba(176, 138, 71, 0.35); margin-bottom: 18px; }
    .icon svg { width: 24px; height: 24px; stroke: var(--primary); stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    .icon svg .gold { stroke: var(--accent); }

    .highlight { background: var(--primary-dark); color: #fff; position: relative; overflow: hidden; }
    .highlight h2 { color: #fff; }
    .highlight p { color: rgba(255, 255, 255, 0.78); font-size: 18px; }
    .check-list { display: grid; gap: 14px; }
    .check-item { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.13); border-radius: 18px; padding: 16px; }
    .check-item span { color: var(--accent); font-weight: 900; }

    .pricing { background: #fff; }
    .pricing-card { display: flex; flex-direction: column; position: relative; }
    .pricing-card.featured { border-color: rgba(15, 45, 70, 0.35); box-shadow: var(--shadow); transform: translateY(-8px); }
    .badge { position: absolute; top: 18px; right: 18px; background: var(--accent); color: #2d2104; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 900; }
    .pricing-card h3 { font-size: 24px; margin-bottom: 8px; }
    .pricing-card .for { color: var(--muted); min-height: 52px; margin-bottom: 18px; }
    .price { font-size: 42px; line-height: 1; font-weight: 900; color: var(--primary); letter-spacing: -0.04em; margin-bottom: 6px; }
    .price small { font-size: 15px; color: var(--muted); font-weight: 700; }
    ul { list-style: none; display: grid; gap: 11px; margin: 22px 0 26px; color: #314258; }
    li { display: flex; gap: 10px; align-items: flex-start; }
    li::before { content: "✓"; color: var(--success); font-weight: 900; }
    .pricing-card .btn { margin-top: auto; width: 100%; }

    .step-number { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 900; margin-bottom: 16px; }

    .contact { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
    .contact h2, .contact p { color: #fff; }
    .contact p { opacity: 0.82; }
    form { background: #fff; color: var(--text); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 14px; }
    .form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    label { display: grid; gap: 7px; font-weight: 800; font-size: 14px; }
    input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; font: inherit; color: var(--text); background: #fbfdff; }
    textarea { min-height: 120px; resize: vertical; }
    .fine-print { font-size: 13px; color: var(--muted); }

    footer { background: #081827; color: rgba(255, 255, 255, 0.75); padding: 34px 0; font-size: 14px; }

    .footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
    .footer-links a { color: rgba(255,255,255,.82); font-weight: 700; }
    .footer-links a:hover { color: #fff; }
    .footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
    footer strong { color: #fff; }

    @media (max-width: 900px) {
      .highlight-grid, .contact-grid { grid-template-columns: 1fr; }
      .bulgaria-grid { align-items: start; }
      .hero { padding: 80px 0 60px; background: linear-gradient(to bottom, rgba(247, 245, 240, 0.98) 0%, rgba(247, 245, 240, 0.93) 38%, rgba(247, 245, 240, 0.78) 62%, rgba(247, 245, 240, 0.44) 100%), url('/images/sofia_tax_accounting_services.webp') 72% center / cover no-repeat; }
      .hero-grid { min-height: 420px; }
      .grid-3, .pricing-grid, .steps-grid, .faq-grid { grid-template-columns: 1fr 1fr; }
      .hero-points { grid-template-columns: 1fr; }
      .nav-links { display: none; position: absolute; left: 16px; right: 16px; top: 74px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; }
      .nav-links.open { display: flex; }
      .menu-btn { display: block; }
    }

    @media (max-width: 620px) {
      .topbar-inner { font-size: 13px; }
      .logo-mark { width: 39px; height: 39px; }
      .logo-mark .s { font-size: 27px; }
      .logo-mark .t { font-size: 22px; right: 7px; bottom: 5px; }
      .logo-name { font-size: 24px; }
      .logo-tagline { display: none; }
      .hero { padding: 64px 0 44px; background: linear-gradient(to bottom, rgba(247, 245, 240, 0.99) 0%, rgba(247, 245, 240, 0.96) 48%, rgba(247, 245, 240, 0.86) 100%), url('/images/sofia_tax_accounting_services.webp') 78% center / cover no-repeat; }
      .grid-3, .pricing-grid, .steps-grid, .faq-grid, .form-row { grid-template-columns: 1fr; }
      .pricing-card.featured { transform: none; }
      .hero-actions .btn { width: 100%; }
    }

/* /assets/css/shared-layout.css */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 11px 16px;
  border-radius: 8px;
  background: #fff;
  color: #0f2d46;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(8, 24, 39, .22);
  transform: translateY(-160%);
  transition: transform .15s ease;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.st-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1000;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px;
  color: #132033;
  background: #fff;
  border: 1px solid #e4dfd6;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(8, 24, 39, .18);
}

.st-cookie-banner[hidden] { display: none; }
.st-cookie-inner { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.st-cookie-copy { display: grid; gap: 4px; }
.st-cookie-title { color: #0f2d46; font-size: 15px; font-weight: 900; }
.st-cookie-text { color: #5d6b7c; font-size: 13px; line-height: 1.4; }
.st-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.st-cookie-btn {
  padding: 9px 14px;
  color: #0f2d46;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e4dfd6;
  border-radius: 999px;
}
.st-cookie-btn.primary { color: #fff; background: #0f2d46; border-color: #0f2d46; }
.st-cookie-btn:hover { transform: translateY(-1px); }
.st-cookie-link { color: #0f2d46; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.cookie-settings-link {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  .st-cookie-banner { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 12px; }
  .st-cookie-inner { grid-template-columns: 1fr; }
  .st-cookie-actions { justify-content: stretch; }
  .st-cookie-btn { flex: 1 1 128px; }
}

.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(176, 138, 71, .65);
  outline-offset: 3px;
}

input,
select,
textarea {
  font-size: 16px;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border, #e4dfd6);
}

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

header .container.nav {
  width: min(100% - 48px, 1480px);
}

header .logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: var(--primary, #0f2d46);
  text-decoration: none;
}

header .logo-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--accent, #b08a47);
  border-radius: 8px;
  background: #fff;
  color: var(--primary, #0f2d46);
  box-shadow: 0 10px 22px rgba(15, 45, 70, .1);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

header .logo-mark .s { font-size: 30px; font-weight: 500; transform: translateX(-3px); }
header .logo-mark .t { position: absolute; right: 8px; bottom: 6px; color: var(--accent, #b08a47); font-size: 25px; font-weight: 600; }
header .logo-text { display: grid; gap: 1px; line-height: 1; }
header .logo-name { color: var(--primary, #0f2d46); font-size: 28px; font-weight: 700; letter-spacing: -.045em; }
header .logo-name .tax { color: var(--accent, #b08a47); }
header .logo-tagline { margin-top: 5px; color: var(--primary, #0f2d46); font-size: 9px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }

header .nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted, #5d6b7c);
  font-size: 15px;
  font-weight: 600;
}

header .nav-links > a:not(.nav-cta):not(.nav-phone) { color: inherit; text-decoration: none; white-space: nowrap; }
header .nav-links > a:not(.nav-cta):not(.nav-phone):hover { color: var(--primary, #0f2d46); }
.nav-dropdown { position: relative; }
.nav-dropdown summary { color: inherit; cursor: pointer; list-style: none; white-space: nowrap; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { display: inline-block; margin-left: 6px; content: "▾"; transition: transform .15s ease; }
.nav-dropdown[open] summary::after { transform: rotate(180deg); }
.nav-dropdown-panel { position: absolute; top: calc(100% + 14px); left: 50%; z-index: 80; display: grid; width: 290px; padding: 10px; background: #fff; border: 1px solid var(--border, #e4dfd6); border-radius: 14px; box-shadow: 0 18px 44px rgba(8, 24, 39, .18); transform: translateX(-50%); }
.nav-dropdown-panel a { padding: 10px 12px; color: var(--primary, #0f2d46); border-radius: 8px; text-decoration: none; }
.nav-dropdown-panel a:hover, .nav-dropdown-panel a:focus-visible { background: #f7f5f0; }
header .lang-switch { display: inline-flex; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--border, #e4dfd6); border-radius: 999px; background: #fff; }
header .lang-option { display: inline-flex; min-width: 38px; align-items: center; justify-content: center; padding: 8px 11px; color: var(--muted, #5d6b7c); font-size: 13px; font-weight: 900; line-height: 1; text-decoration: none; }
header .lang-current { background: var(--primary, #0f2d46); color: #fff; }
header .nav-cta { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 0 24px; border-radius: 999px; background: var(--primary, #0f2d46); color: #fff; font-size: 16px; font-weight: 900; text-decoration: none; white-space: nowrap; }
header .menu-btn { display: none; border: 1px solid var(--border, #e4dfd6); border-radius: 50%; background: #fff; color: var(--primary, #0f2d46); cursor: pointer; font-size: 22px; }

.nav-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--primary, #0f2d46); text-decoration: none; white-space: nowrap; }
.nav-phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.nav-phone-desktop { min-height: 46px; padding: 0 16px; border: 1px solid rgba(176, 138, 71, .55); border-radius: 999px; font-weight: 800; }
.nav-phone-compact, .nav-phone-menu, .nav-language-compact { display: none; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted, #5d6b7c); font-size: 14px; font-weight: 700; }
.breadcrumbs a { color: var(--primary, #0f2d46); }
.breadcrumbs [aria-current="page"] { color: var(--muted, #5d6b7c); }

.guide-byline a { color: var(--primary, #0f2d46); font-weight: 800; }
.guide-dates { margin-top: 8px; }
.guide-sources-section { padding: 54px 0; background: #f7f5f0; }
.guide-sources-card { padding: 28px; background: #fff; border: 1px solid var(--border, #e4dfd6); border-radius: 18px; }
.guide-sources-card h2 { margin: 0 0 10px; color: var(--primary, #0f2d46); }
.guide-sources-card p { color: var(--muted, #5d6b7c); }
.guide-sources-card ul { display: grid; gap: 10px; margin: 20px 0 0; padding-left: 22px; }
.guide-sources-card li { flex-wrap: wrap; }
.guide-sources-card li > * { min-width: 0; overflow-wrap: anywhere; }
.guide-sources-card a { color: var(--primary, #0f2d46); font-weight: 800; }
.guide-sources-card span { color: var(--muted, #5d6b7c); }

.site-footer { padding: 64px 0 0; background: #081827; color: rgba(255, 255, 255, .72); font-size: 15px; }
.footer-main { display: grid; grid-template-columns: minmax(240px, 1.05fr) minmax(0, 2.25fr); gap: 64px; padding-bottom: 56px; }
.footer-brand { align-self: start; }
.footer-logo { display: inline-flex; margin-bottom: 16px; color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.045em; line-height: 1; text-decoration: none; }
.footer-logo span { color: var(--accent, #b08a47); }
.footer-brand p { max-width: 320px; color: rgba(255, 255, 255, .68); line-height: 1.65; }
.footer-contact { display: grid; gap: 6px; margin-top: 20px; font-style: normal; }
.footer-address { max-width: 34ch; color: rgba(255, 255, 255, .84); line-height: 1.55; }
.footer-contact a { display: inline-flex; min-height: 28px; align-items: center; width: fit-content; color: #fff; font-weight: 750; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .42); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.footer-contact a:hover,
.footer-contact a:focus-visible { color: #d4b87b; text-decoration-color: currentColor; }
.footer-navigation { display: grid; grid-template-columns: .8fr 1.25fr 1fr; gap: 36px; }
.footer-group h2 { margin: 0 0 18px; color: #d4b87b; font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.site-footer .footer-list { display: grid; gap: 7px; margin: 0; padding: 0; color: inherit; list-style: none; }
.site-footer .footer-list li { display: block; margin: 0; }
.site-footer .footer-list li::before { content: none; }
.site-footer .footer-list a,
.site-footer .cookie-settings-link { display: inline-flex; min-height: 28px; align-items: center; width: fit-content; color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 650; line-height: 1.35; text-align: left; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .38); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.site-footer .footer-list a:hover,
.site-footer .footer-list a:focus-visible,
.site-footer .cookie-settings-link:hover,
.site-footer .cookie-settings-link:focus-visible { color: #fff; text-decoration-color: currentColor; }
.site-footer :where(a, button):focus-visible { outline-color: #d4b87b; }
.footer-meta { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-meta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 22px; color: rgba(255, 255, 255, .58); font-size: 13px; }
.footer-meta strong { color: rgba(255, 255, 255, .82); }

@media (max-width: 1600px) and (min-width: 901px) {
  header .nav { gap: 14px; }
  header .nav-links { gap: 14px; font-size: 14px; }
  header .logo { gap: 9px; }
  header .logo-tagline { letter-spacing: .18em; }
  header .nav-cta { min-height: 50px; padding: 0 18px; font-size: 15px; }
  .nav-phone-desktop { padding: 0 12px; font-size: 14px; }
}

@media (max-width: 1360px) {
    header .nav { position: relative; min-height: 76px; padding-right: 52px; }
  header .nav-links { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; padding: 12px 18px 18px; border: 1px solid var(--border, #e4dfd6); border-radius: 0 0 18px 18px; background: #fff; box-shadow: 0 18px 45px rgba(15, 45, 70, .12); flex-direction: column; gap: 0; }
  header .nav-links.open { display: flex; }
  header .nav-links {
    max-height: calc(100vh - 76px);
    max-height: var(--menu-height, calc(100dvh - 76px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-dropdown { width: 100%; }
  .nav-dropdown summary { padding: 10px 0; }
  .nav-dropdown-panel { position: static; width: 100%; margin-top: 4px; padding: 4px 0 4px 14px; border: 0; border-left: 2px solid var(--accent, #b08a47); border-radius: 0; box-shadow: none; transform: none; }
  header .nav-links.open > a:not(.nav-cta):not(.nav-phone) { display: flex; min-height: 48px; align-items: center; border-bottom: 1px solid var(--border, #e4dfd6); }
  header .nav-links .lang-switch-links { display: none; }
  header .menu-btn { position: absolute; top: 50%; right: 0; display: block; width: 44px; height: 44px; padding: 0; transform: translateY(-50%); }
  .nav-phone-desktop { display: none; }
  .nav-phone-menu { display: inline-flex; order: 20; width: 100%; min-height: 52px; margin-top: 10px; padding: 0 18px; border-radius: 12px; background: var(--primary, #0f2d46); color: #fff; font-weight: 800; }
  header .nav-cta { order: 21; width: 100%; min-height: 52px; margin-top: 10px; }
  .footer-main { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 620px) {
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .pricing-card { min-width: 0; }
  header .logo-mark { width: 39px; height: 39px; }
  header .logo-name { font-size: 24px; }
  header .logo-tagline { display: none; }
  .site-footer { padding-top: 48px; }
  .footer-main { gap: 36px; padding-bottom: 40px; }
  .footer-navigation { grid-template-columns: 1fr; gap: 32px; }
  .footer-meta-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* /assets/css/components.css */
/* SofiaTax shared UI components */
h1 {
  font-size: var(--type-h1);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}

h2 {
  font-size: var(--type-h2);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}

h3 {
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}

.btn:active,
button:active {
  transform: translateY(1px);
}

.hero,
.guide-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.hero-media { z-index: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

/*
 * Desktop hero artwork is illustration, not photography. Keep the authored
 * 16:9 composition intact inside a bounded art frame instead of cropping it
 * differently whenever translated copy makes a hero taller or shorter.
 */
@media (min-width: 901px) {
  .hero {
    min-height: 600px;
    padding-block: 64px;
  }

  body.home-page .hero {
    padding-block: 72px;
  }

  .hero-grid,
  .hero-layout {
    min-height: 472px;
  }

  .hero-media {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .hero-media img {
    max-height: 640px;
    object-fit: contain;
    object-position: right center;
    transform: none;
  }

  body.home-page .hero-media img,
  body.about-page .hero-media img {
    max-height: 700px;
  }
}

.hero-overlay {
  z-index: 1;
  background: linear-gradient(to right, rgba(247, 245, 240, 0.98) 0%, rgba(247, 245, 240, 0.95) 30%, rgba(247, 245, 240, 0.80) 48%, rgba(247, 245, 240, 0.30) 72%, rgba(247, 245, 240, 0.06) 100%);
}

@media (min-width: 901px) and (max-width: 1100px) {
  .hero-overlay {
    background: linear-gradient(to right, rgba(247, 245, 240, 0.99) 0%, rgba(247, 245, 240, 0.96) 48%, rgba(247, 245, 240, 0.82) 66%, rgba(247, 245, 240, 0.42) 82%, rgba(247, 245, 240, 0.10) 100%);
  }
}

.hero > .container,
.guide-hero > .container,
.hero-grid,
.hero-layout {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-media img { object-position: 72% center; }
  body.home-page .hero-media img,
  body.about-page .hero-media img {
    object-position: 68% 72%;
    transform: scale(1.16);
    transform-origin: 68% 100%;
  }
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(247, 245, 240, 0.98) 0%, rgba(247, 245, 240, 0.93) 38%, rgba(247, 245, 240, 0.78) 62%, rgba(247, 245, 240, 0.44) 100%);
  }
}

@media (max-width: 620px) {
  .hero .breadcrumbs-current,
  .hero .breadcrumbs-separator-current { display: none; }
  .hero .hero-actions .btn-secondary { display: none; }
  .hero-media img { object-position: 78% center; }
  body.home-page .hero-media img,
  body.about-page .hero-media img {
    object-position: 67% 74%;
    transform: scale(1.18);
    transform-origin: 67% 100%;
  }
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(247, 245, 240, 0.99) 0%, rgba(247, 245, 240, 0.96) 48%, rgba(247, 245, 240, 0.86) 100%);
  }
}

/* Final on-page SEO and content components */
.trust-section, .related-guides-section { background: #f7f5f0; }
.trust-card { background: #fff; border: 1px solid var(--border, #e4dfd6); border-radius: var(--radius, 22px); padding: 28px; box-shadow: 0 10px 30px rgba(19,32,51,.05); display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
.trust-card.compact { display: block; }
.trust-facts { display: grid; gap: 12px; }
.trust-facts span { background: rgba(176,138,71,.10); border: 1px solid rgba(176,138,71,.28); border-radius: 999px; padding: 10px 14px; font-weight: 800; color: var(--primary, #0F2D46); }
.related-guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-guide-card { display: block; background: #fff; border: 1px solid var(--border, #e4dfd6); border-radius: 18px; padding: 20px; font-weight: 900; color: var(--primary, #0F2D46); box-shadow: 0 10px 26px rgba(19,32,51,.05); }
.related-guide-card:hover { border-color: rgba(176,138,71,.55); transform: translateY(-2px); }
.privacy-note { margin: 4px 0 2px; }
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-card { display: block; background: #fff; border: 1px solid var(--border, #e4dfd6); border-radius: 20px; padding: 24px; box-shadow: 0 10px 28px rgba(19,32,51,.05); }
.guide-card h2, .guide-card h3 { font-size: 24px; margin-bottom: 10px; }
.guide-card p { color: var(--muted, #5d6b7c); }
.guide-content { background: #fff; }
.guide-content h2 { margin-top: 28px; }
.guide-disclaimer { background: rgba(176,138,71,.10); border: 1px solid rgba(176,138,71,.28); border-radius: 18px; padding: 18px; }
@media (max-width: 900px) { .trust-card, .related-guides-grid, .guide-list { grid-template-columns: 1fr; } }

.editorial-note-thin-guide{margin-top:1rem;padding:12px 14px;border-left:4px solid #c79a4a;background:rgba(255,255,255,.76);border-radius:12px}.privacy-note a{color:inherit;text-decoration:underline;text-underline-offset:2px}


/* Language switch - URL based, styled like the original segmented control */
.nav-links .lang-switch-links,
.simple-links .lang-switch-links {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border, #d7ded6);
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(24,51,34,.06);
  flex: 0 0 auto;
}
.nav-links .lang-switch-links .lang-option,
.simple-links .lang-switch-links .lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 8px 11px;
  border: 0;
  background: transparent;
  color: var(--muted, #647067);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .04em;
  line-height: 1;
  text-decoration: none;
}
.nav-links .lang-switch-links .lang-current,
.simple-links .lang-switch-links .lang-current {
  background: var(--primary, #183322);
  color: #fff;
}
.nav-links .lang-switch-links a.lang-option:not(.lang-current):hover,
.simple-links .lang-switch-links a.lang-option:not(.lang-current):hover {
  background: rgba(176,138,71,.13);
  color: var(--primary, #183322);
}
.lang-switch-links a.lang-option:focus-visible {
  outline: 3px solid var(--accent, #b08a47);
  outline-offset: -3px;
}
@media (max-width: 900px) {
  .nav-links .lang-switch-links,
  .simple-links .lang-switch-links {
    margin-top: 6px;
  }
}

/* Funnel-style header navigation */
.nav-funnel {
  gap: 26px;
}
.nav-funnel > a:not(.nav-cta) {
  white-space: nowrap;
}
.nav-funnel .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 36px rgba(10, 37, 58, .20);
  white-space: nowrap;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.nav-funnel .nav-cta:hover,
.nav-funnel .nav-cta:focus-visible {
  color: #fff;
  background: #082033;
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(10, 37, 58, .26);
}
.nav-funnel .nav-cta:focus-visible {
  outline: 3px solid rgba(180, 139, 67, .35);
  outline-offset: 3px;
}
.nav-funnel .lang-switch-links {
  flex: 0 0 auto;
}
@media (max-width: 1120px) {
  .nav-funnel { gap: 16px; font-size: 14px; }
  .nav-funnel .nav-cta { min-height: 54px; padding: 0 22px; font-size: 16px; }
}
@media (max-width: 900px) {
  .nav-funnel .nav-cta { width: 100%; min-height: 52px; margin-top: 6px; }
}

/* Wider header bar, matching the earlier funnel-navigation UX */
.topbar .container,
header .container.nav {
  width: min(100% - 48px, 1480px);
}
@media (max-width: 900px) {
  .topbar .container,
  header .container.nav {
    width: min(100% - 32px, var(--max, 1160px));
  }
}

/* Responsive click-to-call controls */
.nav-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}
.nav-phone svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.nav-phone-desktop {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(180, 139, 67, .65);
  border-radius: 999px;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.nav-phone-desktop:hover,
.nav-phone-desktop:focus-visible {
  border-color: var(--accent);
  background: rgba(180, 139, 67, .08);
  transform: translateY(-1px);
}
.nav-phone-desktop:focus-visible,
.nav-phone-compact:focus-visible,
.nav-phone-menu:focus-visible {
  outline: 3px solid rgba(180, 139, 67, .3);
  outline-offset: 3px;
}
.nav-phone-compact,
.nav-phone-menu,
.nav-language-compact {
  display: none;
}
@media (max-width: 1600px) and (min-width: 901px) {
  .nav-phone-desktop {
    width: 44px;
    padding: 0;
  }
  .nav-phone-desktop .phone-number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
@media (max-width: 1360px) {
  header .nav {
    position: relative;
    padding-right: 156px;
  }
  .nav-phone-desktop {
    display: none;
  }
  .nav-phone-compact {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 52px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface, #fff);
    transform: translateY(-50%);
  }
  .nav-language-compact {
    appearance: none;
    padding: 0;
    text-align: center;
    text-align-last: center;
    cursor: pointer;
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 104px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface, #fff);
    color: var(--primary);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
  }
  .nav-language-compact:focus-visible {
    outline: 3px solid rgba(180, 139, 67, .3);
    outline-offset: 3px;
  }
  .nav-phone-compact > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  header .menu-btn {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    transform: translateY(-50%);
  }
  header .menu-btn.is-open {
    font-size: 28px;
    line-height: 1;
  }
  header .nav-links.open {
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 18px;
  }
  header .nav-links.open > a:not(.nav-cta):not(.nav-phone) {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid var(--border);
  }
  header .nav-links.open .lang-switch-links {
    display: none;
  }
  .nav-phone-menu {
    display: inline-flex;
    order: 20;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
  }
  .nav-funnel .nav-cta {
    order: 21;
    margin-top: 10px;
  }
}

/* Russian headings need more room than their English equivalents. */
html[lang="ru"] main, html[lang="ru"] main :where(h1,h2,h3,p) { overflow-wrap: anywhere; }
html[lang="ru"] .hero h1 { font-size: clamp(2rem, 3.7vw, 3.125rem); }
html[lang="ru"] .hero p { font-size: 18px; }
@media (max-width: 620px) {
  html[lang="ru"] .euro-capital-service .hero { padding-block: 24px; }
  html[lang="ru"] .euro-capital-service .hero h1 { font-size: 30px; }
  html[lang="ru"] .euro-capital-service .hero p { font-size: 17px; line-height: 1.5; }
}

@media (max-width: 360px) {
  header .logo { gap: 8px; }
  header .logo-mark { width: 34px; height: 34px; }
  header .logo-name { font-size: 20px; }
  header .nav { padding-right: 144px; }
  .nav-phone-compact { right: 48px; }
  .nav-language-compact { right: 96px; }
}
