/* BashUnit — светлая и тёмная темы, палитра логотипа (технологии + Башкортостан) */

:root {
  --brand-blue: #1b4d6b;
  --brand-blue-dark: #143a52;
  --brand-gold: #b8894f;
  --brand-gold-light: #e8d4b8;
  --brand-green: #4b6b3f;
  --brand-green-light: #e8f0e4;
  --brand-teal: #2c4c58;
  --flag-blue: #0057b8;
  --flag-white: #ffffff;
  --flag-green: #007a3d;
  --accent: #1b4d6b;
  --accent-hover: #256389;
  --accent-2: #4b6b3f;
  --on-accent: #ffffff;
  --radius: 12px;
  --radius-lg: 18px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Manrope", var(--font);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-pad: clamp(1rem, 4vw, 2rem);
  --touch-min: 44px;
  --header-h: 4.5rem;
  --header-logo-mark: 2.65rem;
  --gradient-brand: linear-gradient(
    135deg,
    var(--brand-blue) 0%,
    var(--brand-teal) 50%,
    var(--brand-green) 100%
  );
  --gradient-cta: linear-gradient(
    135deg,
    var(--brand-blue) 0%,
    #2a5f7a 50%,
    var(--brand-green) 100%
  );
}

:root,
[data-theme="light"] {
  color-scheme: light;
  --accent-soft: rgba(27, 77, 107, 0.08);
  --accent-ring: rgba(27, 77, 107, 0.2);
  --accent-2-soft: rgba(75, 107, 63, 0.1);
  --gold-soft: rgba(184, 137, 79, 0.12);
  --bg: #f4f7fb;
  --bg-alt: #eaf0f6;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --text: #1a2e3b;
  --text-soft: #3d5163;
  --muted: #5f7385;
  --border: rgba(27, 77, 107, 0.12);
  --border-strong: rgba(27, 77, 107, 0.22);
  --shadow: 0 1px 3px rgba(27, 77, 107, 0.06), 0 4px 12px rgba(27, 77, 107, 0.04);
  --shadow-md: 0 8px 24px rgba(27, 77, 107, 0.1);
  --shadow-lg: 0 20px 48px rgba(27, 77, 107, 0.12);
  --shadow-glow: 0 8px 32px rgba(27, 77, 107, 0.15);
  --header-bg: rgba(255, 255, 255, 0.92);
  --nav-bg: rgba(255, 255, 255, 0.98);
  --nav-overlay-bg: rgba(26, 46, 59, 0.35);
  --footer-bg: #ffffff;
  --input-bg: #ffffff;
  --selection-bg: rgba(27, 77, 107, 0.18);
  --section-stripe: rgba(27, 77, 107, 0.03);
  --lang-sep: rgba(27, 77, 107, 0.25);
  --logo-shadow: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
  --flag-stripe-mid: #e8eef5;
  --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --hero-visual-bg: linear-gradient(
    160deg,
    rgba(232, 240, 248, 0.9) 0%,
    #ffffff 45%,
    rgba(232, 240, 228, 0.85) 100%
  );
  --cta-band-bg: linear-gradient(
    135deg,
    rgba(27, 77, 107, 0.06) 0%,
    #ffffff 40%,
    rgba(75, 107, 63, 0.08) 100%
  );
  --page-bg-radial-1: radial-gradient(ellipse 80% 50% at 0% 0%, rgba(27, 77, 107, 0.08), transparent 50%);
  --page-bg-radial-2: radial-gradient(ellipse 60% 45% at 100% 5%, rgba(184, 137, 79, 0.1), transparent 45%);
  --page-bg-radial-3: radial-gradient(ellipse 70% 40% at 50% 100%, rgba(75, 107, 63, 0.08), transparent 50%);
  --page-bg-linear: linear-gradient(180deg, #f8fafc 0%, var(--bg) 40%, #eef3f8 100%);
  --page-bg-dot: rgba(27, 77, 107, 0.06);
  --glass-shine: rgba(184, 137, 79, 0.05);
  --glass-shine-2: rgba(27, 77, 107, 0.04);
  --flash-error-bg: #fef2f2;
  --flash-error-color: #b91c1c;
  --meta-theme-color: #f4f7fb;
}

[data-theme="dark"] {
  color-scheme: dark;
  --brand-on-dark: #b8d4e8;
  --accent-soft: rgba(120, 175, 220, 0.12);
  --accent-ring: rgba(120, 175, 220, 0.35);
  --accent-2-soft: rgba(130, 180, 110, 0.12);
  --gold-soft: rgba(200, 160, 100, 0.14);
  --bg: #0e1419;
  --bg-alt: #141c24;
  --surface: #1a2430;
  --surface-elevated: #212d3a;
  --text: #e6edf5;
  --text-soft: #b4c4d4;
  --muted: #8496a8;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 8px 32px rgba(90, 168, 255, 0.12);
  --header-bg: rgba(20, 28, 36, 0.92);
  --nav-bg: rgba(26, 36, 48, 0.98);
  --nav-overlay-bg: rgba(0, 0, 0, 0.55);
  --footer-bg: #141c24;
  --input-bg: #1a2430;
  --selection-bg: rgba(120, 175, 220, 0.28);
  --section-stripe: rgba(120, 175, 220, 0.04);
  --lang-sep: rgba(255, 255, 255, 0.2);
  --logo-shadow: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
  --flag-stripe-mid: #2a3545;
  --brand-green-light: rgba(75, 107, 63, 0.22);
  --gradient-surface: linear-gradient(180deg, #212d3a 0%, #1a2430 100%);
  --hero-visual-bg: linear-gradient(
    160deg,
    rgba(30, 45, 60, 0.95) 0%,
    #1a2430 45%,
    rgba(35, 55, 42, 0.9) 100%
  );
  --cta-band-bg: linear-gradient(
    135deg,
    rgba(90, 168, 255, 0.1) 0%,
    #1a2430 40%,
    rgba(75, 107, 63, 0.14) 100%
  );
  --page-bg-radial-1: radial-gradient(ellipse 80% 50% at 0% 0%, rgba(90, 168, 255, 0.1), transparent 50%);
  --page-bg-radial-2: radial-gradient(ellipse 60% 45% at 100% 5%, rgba(200, 160, 100, 0.08), transparent 45%);
  --page-bg-radial-3: radial-gradient(ellipse 70% 40% at 50% 100%, rgba(75, 107, 63, 0.1), transparent 50%);
  --page-bg-linear: linear-gradient(180deg, #121a22 0%, var(--bg) 40%, #0a1016 100%);
  --page-bg-dot: rgba(255, 255, 255, 0.05);
  --glass-shine: rgba(200, 160, 100, 0.06);
  --glass-shine-2: rgba(90, 168, 255, 0.05);
  --flash-error-bg: rgba(220, 38, 38, 0.15);
  --flash-error-color: #fca5a5;
  --meta-theme-color: #0e1419;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 0.75rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  position: relative;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection-bg);
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0.75rem;
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    var(--page-bg-radial-1),
    var(--page-bg-radial-2),
    var(--page-bg-radial-3),
    var(--page-bg-linear);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(var(--page-bg-dot) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, black 0%, transparent 90%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1040px, calc(100% - 2 * var(--page-pad)));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
  min-width: 0;
}

.container.narrow {
  width: min(560px, calc(100% - 2 * var(--page-pad)));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header .header-inner {
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  flex-wrap: nowrap;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-drawer-tools {
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0.85rem 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.nav-drawer-tools__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.lang-switch--drawer {
  display: inline-flex;
  flex: 1;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.theme-toggle--drawer {
  width: var(--touch-min, 48px);
  height: var(--touch-min, 48px);
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle--drawer .theme-toggle__icon {
  flex-shrink: 0;
}

.lang-link {
  color: var(--muted);
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
}

.lang-link:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.lang-link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.lang-sep {
  color: var(--lang-sep);
  user-select: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.theme-toggle__icon {
  width: 1.15rem;
  height: 1.15rem;
  display: none;
}

[data-theme="light"] .theme-toggle__icon--moon,
[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

.theme-toggle__icon--sun {
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.theme-toggle__icon--moon {
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M21 14.5A8.5 8.5 0 0 1 9.5 3 10 10 0 1 0 21 14.5z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M21 14.5A8.5 8.5 0 0 1 9.5 3 10 10 0 1 0 21 14.5z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-brand__mark-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.logo-brand__mark-wrap .theme-logo__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--logo-shadow);
}

.logo--footer .logo-brand__mark-wrap {
  width: 2.75rem;
  aspect-ratio: 52 / 62;
}

.logo--footer .logo-brand__mark-wrap .theme-logo__img {
  position: static;
}

.theme-logo__img {
  height: auto;
  max-width: 100%;
}

.page-hero__mark .theme-logo__img {
  width: 100%;
  height: auto;
}

.nav-brand-mini__mark {
  display: inline-flex;
  line-height: 0;
}

.nav-brand-mini__mark .theme-logo__img {
  width: 36px;
  height: auto;
}

.logo-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1.12;
}

.logo-brand__name {
  font-size: 0.92rem;
  color: var(--brand-blue);
}

[data-theme="dark"] .logo-brand__name {
  color: var(--brand-on-dark, var(--text));
}

.logo-brand__sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.25;
  white-space: normal;
}

@media (max-width: 520px) {
  :root {
    --header-h: 4.15rem;
    --header-logo-mark: 2.4rem;
  }
}

.logo--header {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  padding: 0.4rem 0.95rem 0.4rem 0.5rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(calc(100vw - 8.5rem), 18rem);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease);
}

.logo--header:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.logo--header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.logo--header .logo-brand {
  gap: 0.6rem;
  min-width: 0;
}

.logo--header .logo-brand__mark-wrap {
  width: var(--header-logo-mark);
  height: auto;
  aspect-ratio: 52 / 62;
  flex-shrink: 0;
}

.logo--header .logo-brand__mark-wrap .theme-logo__img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

.logo--header .logo-brand__text {
  display: flex;
  min-width: 0;
}

.logo--header .logo-brand__name {
  font-size: 1rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo--header .logo-brand__sub {
  font-size: 0.58rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 10.5rem;
}

@media (max-width: 400px) {
  .logo--header .logo-brand__sub {
    display: none;
  }
}

@media (max-width: 640px) {
  .logo--header {
    padding: 0.35rem 0.7rem 0.35rem 0.45rem;
    max-width: min(calc(100vw - 7.5rem), 15.5rem);
  }

  .logo--header .logo-brand__name {
    font-size: 0.92rem;
    max-width: min(9rem, 38vw);
  }
}

.logo--footer {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: inline-flex;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease, top 0.25s var(--ease), bottom 0.25s var(--ease);
}

.nav-toggle::before {
  top: 15px;
}

.nav-toggle::after {
  bottom: 15px;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--text);
  border-radius: 1px;
  transition: opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"]::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-overlay {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 18;
  background: var(--nav-overlay-bg);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.header-inner {
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding-block: 0.65rem;
  min-height: var(--header-h);
}

.nav {
  position: fixed;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  padding: 0.85rem;
  border-radius: var(--radius-lg);
  background: var(--nav-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  left: var(--page-pad);
  right: var(--page-pad);
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 0.5rem);
  max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px) - 1.5rem);
  transform: translateY(-8px) scale(0.98);
}

.nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (min-width: 640px) {
  .nav {
    left: auto;
    right: var(--page-pad);
    width: min(320px, calc(100% - 2 * var(--page-pad)));
    transform: translateX(12px) scale(0.98);
  }

  .nav.is-open {
    transform: translateX(0) scale(1);
  }
}

.nav-panel-title {
  margin: 0;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border-bottom: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-brand-mini {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem 0.65rem;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}

.nav-brand-mini__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.nav-brand-mini__name {
  line-height: 1.2;
}

.nav-brand-mini__slogan {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
}

.nav-brand-mini__mark .theme-logo__img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.nav-link--accent {
  justify-content: center;
  margin-top: 0.35rem;
  min-height: var(--touch-min);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--gradient-cta);
  color: var(--on-accent) !important;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.nav-link--accent:hover,
.nav-link--accent.is-active {
  filter: brightness(1.08);
  background: var(--gradient-cta);
  color: var(--on-accent) !important;
}

.lang-link {
  min-width: 2.25rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

.main {
  padding-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 3rem 0;
  position: relative;
}

.section:nth-of-type(even) {
  background: var(--section-stripe);
}

.section--alt {
  background: var(--bg-alt);
}

.section--tight {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.section--tight-top {
  padding-top: 0.5rem;
}

.section--contact {
  position: relative;
}

.section--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(90, 168, 255, 0.08), transparent 70%);
}

.section-title {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
}

.section-title::before {
  content: "";
  width: 3px;
  height: 1em;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.page-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.page-lead {
  max-width: 40rem;
  font-size: 1.02rem;
  margin: 0;
}

.page-hero .hero-flag-line--page {
  margin-bottom: 0.85rem;
}

.section-title--inline::before {
  display: none;
}

.section-title--inline {
  margin-bottom: 0.35rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  position: relative;
}

.hero--landing,
.hero--home {
  padding-top: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero-home {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 56rem;
  margin-inline: auto;
}

.hero-home--split {
  max-width: 1080px;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-home--split {
    grid-template-columns: 1.05fr 0.75fr;
    gap: 2.5rem;
  }
}

.hero-home__main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-home__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  background: var(--hero-visual-bg);
  border: 1px solid var(--border);
}

.hero-logo {
  width: min(240px, 72vw);
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(27, 77, 107, 0.18));
}

[data-theme="dark"] .hero-logo {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.hero-logo-caption {
  margin: 1rem 0 0;
  max-width: 18rem;
  line-height: 1.4;
}

.section--home-services {
  padding-top: 0;
  padding-bottom: 3.5rem;
}

.home-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.home-quick-link {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.home-quick-link:hover {
  color: var(--text);
  border-color: rgba(197, 160, 118, 0.35);
  background: var(--gold-soft);
}

.page-hero__panel {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 768px) {
  .page-hero__panel {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}

.page-hero__mark {
  display: flex;
  justify-content: center;
  opacity: 0.92;
}

.page-hero__mark img {
  width: min(100px, 22vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.page-title {
  font-family: var(--font-display);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
}

.eyebrow {
  color: var(--brand-gold);
}

.accent-strong {
  color: var(--brand-blue);
  font-weight: 700;
}

.stat-value.accent,
.hero-stat__value.accent-strong {
  color: var(--brand-blue);
  font-weight: 800;
}

[data-theme="dark"] .accent-strong,
[data-theme="dark"] .stat-value.accent,
[data-theme="dark"] .hero-stat__value.accent-strong {
  color: var(--brand-on-dark, #b8d4e8);
}

.hero-home .hero-flag-line {
  width: min(200px, 70%);
  margin-bottom: 0;
}

.hero-home__intro {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-home .hero-title {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  line-height: 1.15;
  margin: 0;
  max-width: 22em;
  text-wrap: balance;
}

.hero-home .hero-lead {
  margin: 0;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.65;
  max-width: 42rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero-stat {
  margin: 0;
  padding: 1rem 1.1rem;
  text-align: center;
}

.hero-stat__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stat__value {
  display: block;
  margin: 0.4rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero-stat__label {
  display: block;
}

.hero-home .hero-actions {
  margin-top: 0;
  gap: 0.75rem;
}

.hero-services {
  padding: 1.35rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-services::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--flag-blue) 0%,
    var(--flag-blue) 33.33%,
    var(--flag-stripe-mid) 33.33%,
    var(--flag-stripe-mid) 66.66%,
    var(--flag-green) 66.66%,
    var(--flag-green) 100%
  );
}

.hero-services__title {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .hero-services__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
  }
}

.hero-services__list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
}

.hero-services__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.footer-menu-hint {
  margin-top: 0.75rem;
}

.hero--landing::before {
  content: none;
}

.hero-flag-line,
.hero-flag-line--page {
  width: min(180px, 55%);
  height: 3px;
}

.hero-flag-line {
  grid-column: 1 / -1;
  border-radius: 2px;
  margin: 0 0 0.25rem;
  background: linear-gradient(
    90deg,
    var(--flag-blue) 0%,
    var(--flag-blue) 33.33%,
    var(--flag-stripe-mid) 33.33%,
    var(--flag-stripe-mid) 66.66%,
    var(--flag-green) 66.66%,
    var(--flag-green) 100%
  );
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.hero-title {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  line-height: 1.18;
  margin: 0 0 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-lead {
  font-size: 1rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.btn--more {
  border-color: rgba(0, 122, 61, 0.25);
}

.btn--more:hover {
  border-color: rgba(0, 122, 61, 0.55);
  color: var(--accent-2);
}

.hero-keypoints {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0;
}

@media (min-width: 900px) {
  .hero-keypoints {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.keypoint {
  padding: 0.15rem 0;
  border-radius: 0;
}

.keypoint::before {
  content: none;
}

.keypoint-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.keypoint-value {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  margin-left: 0;
}

.keypoint-value,
.keypoint-kicker {
  margin: 0;
}

.hero-keypoints .keypoint {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.hero-keypoints .keypoint:nth-child(-n + 2) {
  border-top: none;
  padding-top: 0.15rem;
}

@media (min-width: 900px) {
  .hero-keypoints .keypoint {
    border-top: none;
    padding-top: 0.15rem;
    border-left: 1px solid var(--border);
    padding-left: 0.9rem;
  }

  .hero-keypoints .keypoint:first-child {
    border-left: none;
    padding-left: 0;
  }
}

.hero-scroll {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.hero-scroll__dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(0, 122, 61, 0.30);
  background:
    linear-gradient(
      180deg,
      rgba(0, 87, 184, 0.16) 0%,
      rgba(0, 87, 184, 0.16) 33%,
      rgba(255, 255, 255, 0.0) 33%,
      rgba(255, 255, 255, 0.0) 66%,
      rgba(0, 122, 61, 0.16) 66%,
      rgba(0, 122, 61, 0.16) 100%
    );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.hero-scroll:hover .hero-scroll__dot {
  border-color: rgba(0, 122, 61, 0.55);
}

.hero-scroll__text {
  max-width: 26rem;
}

.glass-card {
  position: relative;
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  overflow: hidden;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    var(--glass-shine) 0%,
    transparent 45%,
    var(--glass-shine-2) 100%
  );
}

.case-card:hover,
.team-card:hover,
.review-card:hover {
  transform: translateY(-2px);
}

.hero-card--what::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--flag-blue) 0%,
    var(--flag-blue) 33.33%,
    var(--flag-stripe-mid) 33.33%,
    var(--flag-stripe-mid) 66.66%,
    var(--flag-green) 66.66%,
    var(--flag-green) 100%
  );
}

.glass-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.case-card:hover {
  border-color: rgba(90, 168, 255, 0.25);
}

.checklist {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.checklist li {
  margin-bottom: 0.4rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.link {
  color: var(--accent);
  font-weight: 500;
  transition: color 0.15s ease;
}

.link:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.link--arrow::after {
  content: " →";
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.link--arrow:hover::after {
  transform: translateX(3px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: var(--gradient-cta);
  color: var(--on-accent);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: filter 0.15s ease, transform 0.15s var(--ease), box-shadow 0.15s ease;
}

.btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(27, 77, 107, 0.35);
}

.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--brand-blue);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-soft);
}

.btn--small {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.btn--wide {
  width: 100%;
  padding: 0.65rem 1.1rem;
}

.btn:focus-visible,
.nav-link:focus-visible,
.lang-link:focus-visible,
.filter-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.about-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.about-lead {
  font-size: 1.02rem;
  margin: 0 0 1rem;
  line-height: 1.65;
}

.about-mission {
  margin: 0;
  line-height: 1.6;
}

.values-title {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.values-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.values-icon {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 0.15rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stats-grid--page {
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat {
  text-align: center;
  padding: 1rem 0.5rem;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
}

.section--hub {
  padding-top: 1.5rem;
}

.hub-lead {
  margin: -0.35rem 0 1.25rem;
  max-width: 36rem;
}

.hub-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 600px) {
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 7.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hub-card:hover {
  border-color: rgba(90, 168, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hub-card--accent {
  border-color: rgba(90, 168, 255, 0.22);
  background: linear-gradient(165deg, rgba(20, 32, 58, 0.98), rgba(11, 16, 32, 0.98));
}

.hub-card__label {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.hub-card__desc {
  font-size: 0.9rem;
  line-height: 1.45;
  flex: 1;
  margin: 0;
}

.hub-card__arrow {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 0.25rem;
}

.hub-card__arrow::after {
  content: " →";
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.contact-alt {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.92rem;
}

.accent {
  color: var(--accent);
}

.accent-strong {
  color: var(--accent);
  font-weight: 600;
}

.cards-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .cases-preview,
  .cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card-title {
  margin: 0.45rem 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.form input[type="checkbox"] {
  accent-color: var(--accent);
}

.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid rgba(90, 168, 255, 0.22);
  margin-top: 0.25rem;
}

.case-media {
  border-radius: 8px;
  overflow: hidden;
  margin: -0.15rem -0.15rem 0.65rem;
  aspect-ratio: 16 / 10;
  background: rgba(231, 237, 248, 0.06);
  border: 1px solid var(--border);
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 1rem;
}

.case-media-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.case-media-placeholder--bot::before {
  background: linear-gradient(145deg, #4f46c8 0%, #2563eb 55%, #1d4ed8 100%);
}

.case-media-placeholder--app::before {
  background: linear-gradient(145deg, #059669 0%, #10b981 55%, #34d399 100%);
}

.case-media-placeholder--site::before {
  background: linear-gradient(145deg, #d97706 0%, #f59e0b 55%, #fbbf24 100%);
}

.case-media-placeholder--webapp::before {
  background: linear-gradient(145deg, #0891b2 0%, #06b6d4 55%, #22d3ee 100%);
}

.case-media-placeholder__letter {
  position: relative;
  z-index: 1;
  font-size: clamp(2.75rem, 14vw, 4.25rem);
  font-weight: 800;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.96);
  line-height: 1;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  user-select: none;
}

.case-detail__media .case-media-placeholder__letter {
  font-size: clamp(3.5rem, 16vw, 6rem);
}

.case-media-placeholder__label {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.82);
  user-select: none;
}

.case-result {
  margin-top: 0.65rem;
}

.case-meta {
  font-size: 0.88rem;
}

.cards-grid--team .team-card {
  display: flex;
  flex-direction: column;
}

.team-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(231, 237, 248, 0.10);
  color: var(--text);
}

.team-role {
  margin: 0 0 0.5rem;
}

.team-bio {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  flex: 1;
}

.partners-teaser-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
}

.partners-teaser-copy {
  flex: 1;
  min-width: min(100%, 280px);
}

.partners-benefits {
  margin-top: 1rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-quote {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(197, 160, 118, 0.35);
  font-family: Georgia, "Times New Roman", serif;
}

.review-head {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.review-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(231, 237, 248, 0.08);
  border: 1px solid var(--border);
  padding: 4px;
}

.review-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.contact-intro {
  margin-bottom: 1.25rem;
}

.contact-intro .section-title {
  margin-bottom: 0.5rem;
}

.form {
  padding: 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.3rem;
}

.form-row--inline {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.45rem;
}

.form-row label {
  font-weight: 500;
  font-size: 0.85rem;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="tel"],
.form input[type="url"],
.form input[type="search"],
.form input[type="file"],
.form select,
.form textarea,
.input-control,
.dash-case-editor input[type="text"],
.dash-case-editor input[type="email"],
.dash-case-editor input[type="url"],
.dash-case-editor input[type="file"],
.dash-case-editor select,
.dash-case-editor textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form textarea {
  resize: vertical;
  min-height: 110px;
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.input-control:focus,
.dash-case-editor input:focus,
.dash-case-editor select:focus,
.dash-case-editor textarea:focus {
  outline: none;
  border-color: rgba(197, 160, 118, 0.55);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.form input::placeholder,
.input-control::placeholder,
.dash-case-editor input::placeholder,
.dash-case-editor textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.form-errors,
.errorlist {
  color: #b91c1c;
  margin: 0;
  padding-left: 1rem;
  font-size: 0.88rem;
}

.messages {
  position: relative;
  z-index: 2;
  margin-top: 0.75rem;
}

.flash {
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  border: 1px solid var(--border);
  font-size: 0.92rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.25rem;
  margin-top: 1rem;
  background: var(--footer-bg);
}

.footer-brand {
  max-width: 22rem;
}

.footer-tagline {
  margin: 0.5rem 0 0;
  line-height: 1.55;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.9fr 1fr;
    gap: 2rem;
  }
}

.footer-title {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.3rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 1.75rem;
  font-size: 0.82rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.25rem 0;
  padding: 0.5rem;
}

.filter-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border);
}

.filter-btn.is-active {
  color: var(--text);
  border-color: rgba(197, 160, 118, 0.45);
  background: var(--gold-soft);
  font-weight: 600;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.two-col {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.info-block p {
  margin-top: 0;
}

.narrow-text {
  max-width: 36rem;
}

[data-animate] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

.cases-root {
  min-height: 100px;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ——— Смартфоны и узкие экраны ——— */

@media (max-width: 640px) {
  :root {
    --page-pad: 1rem;
    --radius-lg: 12px;
    --touch-min: 48px;
  }

  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .header-end {
    gap: 0.4rem;
  }

  .lang-switch--header {
    display: none;
  }

  .header-end > .theme-toggle:not(.theme-toggle--dash) {
    display: none;
  }

  .page--dashboard .header-end .nav-toggle {
    display: none;
  }

  .nav-drawer-tools {
    display: flex;
  }

  .nav {
    left: 0;
    right: 0;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding-top: 0.65rem;
    transform: translateY(-100%);
  }

  .nav.is-open {
    transform: translateY(0);
  }

  body.nav-open {
    overflow: hidden;
  }

  .lang-switch--drawer .lang-link {
    flex: 1;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.88rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .main {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  .container {
    width: min(1040px, calc(100% - 2 * var(--page-pad)));
  }

  .messages {
    margin-top: 0.5rem;
  }

  .flash {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: var(--touch-min);
    justify-content: center;
  }

  .btn {
    min-height: 2.75rem;
  }

  .nav-link {
    font-size: 1.02rem;
  }

  .hero--home,
  .hero--landing {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .hero-home {
    gap: 1.35rem;
  }

  .hero-home--split {
    gap: 1.25rem;
  }

  .hero-home__visual {
    padding: 1.15rem 1rem;
  }

  .hero-logo {
    width: min(168px, 52vw);
  }

  .hero-home .hero-title {
    max-width: none;
    font-size: clamp(1.45rem, 6.2vw, 1.85rem);
    line-height: 1.18;
  }

  .hero-home .hero-lead {
    font-size: 0.95rem;
  }

  .hero-tagline {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .hero-home .hero-actions {
    flex-direction: column;
  }

  .hero-home .hero-actions .btn {
    width: 100%;
    min-height: var(--touch-min);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 0.5rem;
  }

  .hero-stat {
    padding: 0.75rem 0.55rem;
  }

  .hero-stat__label {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  .hero-stat__value {
    font-size: 1.2rem;
  }

  .hero-services__list {
    grid-template-columns: 1fr;
  }

  .home-quick-links {
    gap: 0.4rem;
  }

  .home-quick-link {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
    justify-content: center;
    text-align: center;
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
  }

  .section-head-block {
    margin-bottom: 1.35rem;
  }

  .section-lead {
    font-size: 0.95rem;
  }

  .pillars-grid,
  .services-grid,
  .process-timeline {
    gap: 0.75rem;
  }

  .page-hero__panel {
    padding: 1.1rem 1rem;
    gap: 1rem;
  }

  .page-hero__mark .theme-logo__img {
    width: min(72px, 18vw);
  }

  .page-hero .page-lead {
    max-width: none;
  }

  .cta-band {
    padding: 1.25rem 1.1rem;
  }

  .cta-band__actions {
    width: 100%;
  }

  .cta-band__actions .btn {
    width: 100%;
    min-height: var(--touch-min);
    justify-content: center;
  }

  .glass-card {
    padding: 1.15rem 1.2rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: 1.3rem;
    flex-wrap: wrap;
  }

  .page-title {
    font-size: clamp(1.45rem, 6vw, 1.75rem);
  }

  .page-lead {
    font-size: 0.95rem;
  }

  .partners-teaser-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.2rem;
    gap: 1rem;
  }

  .partners-teaser-inner .btn {
    width: 100%;
    min-height: var(--touch-min);
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 0.35rem;
    margin: 1rem 0;
    padding: 0.5rem 0.65rem;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    min-height: 2.25rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
  }

  .form {
    padding: 1.15rem;
  }

  .form input[type="text"],
  .form input[type="email"],
  .form input[type="password"],
  .form input[type="tel"],
  .form input[type="file"],
  .form select,
  .form textarea,
  .chat-form .chat-input {
    font-size: 16px;
    padding: 0.65rem 0.75rem;
    min-height: var(--touch-min);
  }

  .form textarea {
    min-height: 7.5rem;
  }

  .form-row--inline {
    grid-template-columns: 1.35rem 1fr;
    gap: 0.55rem;
    align-items: flex-start;
  }

  .form-row--inline input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
  }

  .btn--wide {
    min-height: var(--touch-min);
    font-size: 1rem;
  }

  .pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .pagination .btn {
    width: 100%;
    min-height: var(--touch-min);
    justify-content: center;
  }

  .pagination .muted {
    text-align: center;
    order: -1;
  }

  .site-footer {
    padding: 2rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.15rem 0;
  }

  .footer-bottom {
    text-align: center;
    line-height: 1.5;
  }

  .header-inner {
    gap: 0.35rem;
    padding-block: 0.55rem;
  }

  .nav {
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    width: auto;
    max-height: calc(
      100dvh - var(--header-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1rem
    );
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  }

  .two-col {
    gap: 1.25rem;
  }

  .breadcrumb {
    font-size: 0.82rem;
    line-height: 1.45;
    word-break: break-word;
  }

  .case-detail__hero {
    gap: 1rem;
  }

  .case-detail__media {
    aspect-ratio: 16 / 11;
  }

  .case-detail__result {
    font-size: 1.05rem;
  }

  .case-order-cta {
    width: 100%;
    align-items: stretch;
  }

  .case-order-cta .btn {
    width: 100%;
    min-height: var(--touch-min);
    justify-content: center;
  }

  .order-room__head {
    padding: 1rem 1.1rem;
  }

  .order-room__head-row {
    flex-direction: column;
    align-items: stretch;
  }

  .order-room__head-row .order-status {
    align-self: flex-start;
  }

  .order-summary {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.75rem;
  }

  .order-token {
    font-size: 0.72rem;
  }

  .chat-messages {
    max-height: min(360px, 45vh);
    padding: 0.85rem 1rem;
  }

  .chat-msg {
    max-width: 92%;
  }

  .chat-form {
    padding: 0.85rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  }

  .chat-form__row {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-form__row .form-row {
    min-width: 100%;
  }

  .chat-form__row .btn {
    width: 100%;
  }

  .support-grid {
    gap: 1.5rem;
  }

  .stats-grid--page {
    margin-top: 1rem;
  }

  .hub-card {
    min-height: auto;
    padding: 1.1rem 1.15rem;
  }

  .cards-grid {
    gap: 0.85rem;
  }

  .team-photo {
    width: 64px;
    height: 64px;
  }

  .auth-gate__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-gate__actions .btn {
    width: 100%;
    min-height: var(--touch-min);
    justify-content: center;
  }

  .case-card:hover,
  .team-card:hover,
  .review-card:hover,
  .hub-card:hover {
    transform: none;
  }

  .hub-card {
    min-height: auto;
  }

  .page-cta {
    flex-direction: column;
  }

  .page-cta .btn {
    width: 100%;
    min-height: var(--touch-min);
    justify-content: center;
  }

  .account-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .account-actions .btn,
  .account-actions .account-logout .btn {
    width: 100%;
    min-height: var(--touch-min);
    justify-content: center;
  }

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

  .page-hero__panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .page-hero__mark {
    justify-self: center;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 380px) {
  :root {
    --page-pad: 0.85rem;
    --header-h: 4rem;
    --header-logo-mark: 2.2rem;
  }

  .logo--header {
    max-width: min(calc(100vw - 6.75rem), 13rem);
  }

  .logo--header .logo-brand__name {
    max-width: min(7.5rem, 36vw);
    font-size: 0.86rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stat__value {
    font-size: 1.1rem;
  }

  .home-quick-link {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .order-summary {
    grid-template-columns: 1fr;
  }

  .hero-keypoints {
    grid-template-columns: 1fr 1fr;
  }

  .filter-btn {
    padding: 0.4rem 0.75rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .case-card:hover,
  .team-card:hover,
  .review-card:hover,
  .hub-card:hover,
  .case-card--link:hover {
    transform: translateY(-2px);
  }
}

/* ——— Кейсы: детальная страница, заказ, чат ——— */

.container.narrow-wide {
  width: min(920px, calc(100% - 2 * var(--page-pad)));
}

.breadcrumb {
  margin-bottom: 1.25rem;
}

.text-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

.text-link:hover {
  color: var(--accent-hover);
}

.rich-text {
  line-height: 1.65;
  color: var(--muted);
}

.rich-text .text-link {
  color: var(--accent-hover);
}

.case-detail__hero {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .case-detail__hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.case-detail__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: rgba(231, 237, 248, 0.06);
}

.case-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-detail__media--gallery {
  aspect-ratio: auto;
  background: transparent;
  border: none;
  overflow: visible;
}

.case-gallery__viewport {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.case-gallery__track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-radius: var(--radius-lg);
}

.case-gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
}

.case-gallery__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(231, 237, 248, 0.06);
}

.case-gallery__media img,
.case-gallery__media .case-media-placeholder,
.case-gallery__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-gallery__media .case-media-placeholder {
  min-height: 100%;
}

.case-gallery__caption {
  margin: 0.45rem 0 0;
  text-align: center;
}

.case-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.case-gallery__nav--prev {
  left: 0.5rem;
}

.case-gallery__nav--next {
  right: 0.5rem;
}

.case-gallery__footer {
  margin-top: 0.65rem;
  text-align: center;
}

.case-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.case-gallery__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.case-gallery__dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.case-gallery__hint {
  margin: 0;
}

.case-detail__head .page-title {
  margin: 0.5rem 0 0.35rem;
}

.case-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin: 0.85rem 0 1rem;
}

.case-detail__meta-item {
  margin: 0;
}

.case-detail__meta dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.case-detail__meta dd {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  font-weight: 500;
}

.case-detail__result-card {
  padding: 1rem 1.15rem;
  margin: 0 0 1rem;
  border-left: 3px solid var(--accent);
}

.case-detail__result-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.case-detail__result {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.35;
}

.case-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.case-detail__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.case-detail__action-icon {
  font-size: 1.05em;
  line-height: 1;
}

.pill--accent {
  background: rgba(91, 141, 255, 0.14);
  border-color: rgba(91, 141, 255, 0.35);
  color: var(--accent-hover);
}

.case-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.case-tech-list__item {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(231, 237, 248, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
}

.case-block--task {
  border-top: 3px solid rgba(91, 141, 255, 0.55);
}

.case-block--solution {
  border-top: 3px solid rgba(72, 199, 142, 0.55);
}

.case-detail__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .case-detail__grid {
    grid-template-columns: 1fr minmax(300px, 360px);
    align-items: start;
  }

  .case-order-card {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.case-block {
  margin-bottom: 1rem;
}

.case-block__title {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.case-stack {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.case-order-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.form-hint {
  margin: 0.25rem 0 0;
}

.case-card--link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.case-card__summary {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.5;
}

.case-card__more {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
}

.order-room__head {
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
}

.order-room__head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.order-status {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.order-status--pending {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.order-status--approved {
  color: var(--accent-2);
  border-color: rgba(87, 215, 138, 0.35);
  background: var(--accent-2-soft);
}

.order-status--rejected {
  color: #ff8a8a;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.order-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
}

.order-summary div {
  margin: 0;
}

.order-summary dt {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}

.order-summary dd {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
}

.order-token {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
  word-break: break-all;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-soft);
}

.order-state {
  padding: 1.5rem;
}

.order-admin-note {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border-left: 3px solid rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.08);
  color: var(--text);
}

.order-chat {
  padding: 0;
  overflow: hidden;
}

.order-chat__head {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.chat-messages {
  max-height: min(420px, 50vh);
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  -webkit-overflow-scrolling: touch;
}

.chat-msg {
  max-width: 88%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.chat-msg--customer {
  align-self: flex-end;
  border-color: rgba(27, 77, 107, 0.2);
  background: rgba(27, 77, 107, 0.06);
}

.chat-msg--staff {
  align-self: flex-start;
  border-color: rgba(75, 107, 63, 0.25);
  background: var(--brand-green-light);
}

.chat-msg__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.chat-msg__author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.chat-msg__body {
  font-size: 0.92rem;
  color: var(--text);
}

.chat-msg__file {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.chat-form {
  padding: 1rem 1.25rem 1.15rem;
  border-top: 1px solid var(--border);
  gap: 0.65rem;
}

.chat-form .chat-input {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
}

.chat-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
}

.chat-form__row .form-row {
  flex: 1;
  min-width: min(100%, 200px);
}

.chat-form__row .btn {
  min-height: var(--touch-min);
}

.chat-empty {
  text-align: center;
  margin: 0;
  padding: 1rem 0;
}

/* Auth, order, support, account */
.auth-form,
.auth-admin-form {
  margin-top: 0;
}

.auth-admin-form {
  margin-top: 1rem;
}

.auth-switch {
  margin: 1rem 0 0;
  text-align: center;
}

.auth-user-banner {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.order-case-ref {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
}

.glass-card--compact {
  padding: 0.85rem 1rem;
}

.case-detail__grid--single {
  grid-template-columns: 1fr;
}

.case-order-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.support-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.faq-list dt {
  font-weight: 600;
  margin-top: 1rem;
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: 0.35rem 0 0;
}

.support-history {
  margin-top: 1.5rem;
}

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

.support-list__item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.support-list__item:last-child {
  border-bottom: none;
}

.support-reply {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid var(--accent);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.account-orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.account-order__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.nav-link--muted {
  opacity: 0.75;
}

.nav-logout-form {
  margin: 0;
  padding: 0;
}

.nav-link--button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0.65rem 1rem;
}

.auth-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.auth-gate {
  margin-top: 1rem;
}

.support-message {
  margin: 0.5rem 0 0;
  white-space: pre-wrap;
}

.account-logout {
  display: inline;
  margin: 0;
}

.pill--pending {
  color: #fbbf24;
}

.pill--approved {
  color: #34d399;
}

.pill--rejected {
  color: #f87171;
}

.pill--open {
  color: #38bdf8;
}

.pill--closed {
  color: var(--muted);
}

/* Концепция компании — блоки главной */
.section-head-block {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-title--block::before {
  display: none;
}

.section-lead {
  margin: 0.5rem 0 0;
  font-size: 1.02rem;
  line-height: 1.6;
}

.hero-tagline {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-green);
}

.pillars-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
}

.pillar-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--brand-blue);
}

.pillar-card__icon--gold {
  background: var(--gold-soft);
  color: var(--brand-gold);
}

.pillar-card__icon--green {
  background: var(--accent-2-soft);
  color: var(--brand-green);
}

.pillar-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display);
  color: var(--text);
}

.pillar-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.services-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100%;
}

.service-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.service-card__title {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-display);
}

.service-card__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  flex: 1;
}

.process-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.process-step__num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--gradient-cta);
  color: var(--on-accent);
  font-size: 0.95rem;
}

.process-step__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

.process-step__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.section--cta {
  padding-bottom: 4rem;
}

.cta-band {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--cta-band-bg);
  border-color: var(--border-strong);
}

@media (min-width: 768px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-band__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-family: var(--font-display);
}

.cta-band__lead {
  margin: 0;
  max-width: 32rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.auth-user-banner {
  background: var(--bg-alt);
  border-color: var(--border);
}

.flash--success {
  background: var(--brand-green-light);
  border-color: rgba(75, 107, 63, 0.25);
  color: var(--brand-green);
}

.flash--error {
  background: var(--flash-error-bg);
  border-color: rgba(220, 38, 38, 0.2);
  color: var(--flash-error-color);
}

.flash--info {
  background: rgba(27, 77, 107, 0.08);
  border-color: var(--border);
  color: var(--brand-blue);
}

.support-reply {
  background: rgba(27, 77, 107, 0.06);
  border-left-color: var(--brand-blue);
}

.account-telegram {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
}

.account-telegram__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.account-telegram__btn {
  margin-top: 0.65rem;
}

.account-telegram__hint {
  margin: 0.65rem 0 0;
}

.account-notifications {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
}

.account-notifications__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.account-notifications__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.account-notification {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.account-notification:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.account-notification--unread {
  border-left: 3px solid var(--accent);
  padding-left: 0.65rem;
}

.account-notification__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.account-notification__title {
  margin: 0 0 0.25rem;
}

.account-notification__body {
  margin: 0 0 0.5rem;
  white-space: pre-wrap;
}

.account-notification__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.account-notification__actions form {
  margin: 0;
}

.account-profile {
  margin-bottom: 2rem;
}

.account-profile__email {
  margin: 0 0 1rem;
}

.error-page__code {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: clamp(3.5rem, 14vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(
    135deg,
    var(--brand-blue) 0%,
    var(--brand-green) 55%,
    var(--brand-gold, #c9a227) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.error-page__panel {
  align-items: center;
}

@media (max-width: 767px) {
  .error-page__actions {
    flex-direction: column;
  }

  .error-page__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
