:root {
  /* Colors - Soft & Approachable Palette */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  
  --brand: #10b981; /* Emerald */
  --brand-light: #ecfdf5;
  --brand-dark: #059669;
  --slider-neutral: #1e293b;
  
  --accent: #fbbf24; /* Warm Amber */
  --accent-dark: #d97706;
  
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --media-radius: 14px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.25rem; }

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 128px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #1e293b;
  padding: 0 20px;
}

.brand-logo {
  height: 94px;
  width: auto;
  display: block;
  background: transparent;
  padding: 0;
  transform: scale(1.12);
  transform-origin: center;
}

/* Navigation - Mobile First */
.nav {
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;
  background: white;
  flex-direction: column;
  padding: 20px;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  display: none; /* Controlled by JS toggle */
  box-shadow: var(--shadow-lg);
}

.nav.active {
  display: flex;
}

.nav-link {
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

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

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: transparent;
  position: relative;
  overflow: hidden;
}

.lang-link:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.lang-link.active {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18);
}

.lang-link:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.35);
  outline-offset: 2px;
}

.lang-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.lang-flag {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  display: block;
}

.lang-ru .lang-flag {
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 33.333%,
    #1d4ed8 33.333%,
    #1d4ed8 66.666%,
    #dc2626 66.666%,
    #dc2626 100%
  );
}

.lang-en .lang-flag {
  position: relative;
  background: repeating-linear-gradient(
    to bottom,
    #b91c1c 0,
    #b91c1c 2px,
    #ffffff 2px,
    #ffffff 4px
  );
}

.lang-en .lang-flag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 44%;
  height: 56%;
  background: #1e3a8a;
}

.lang-hy .lang-flag {
  background: linear-gradient(
    to bottom,
    #d90012 0%,
    #d90012 33.333%,
    #0033a0 33.333%,
    #0033a0 66.666%,
    #f2a800 66.666%,
    #f2a800 100%
  );
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.93rem;
  line-height: 1;
}

.mobile-menu-label {
  display: inline-block;
}

.mobile-menu-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.mobile-menu-icon span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-toggle.active .mobile-menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle.active .mobile-menu-icon span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .mobile-menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero Section */
.hero {
  padding: 40px 0 60px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 span {
  color: var(--brand);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-loss-question {
  margin-top: 2px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.post-problems-cta {
  margin: 30px auto 0;
  max-width: 900px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fffc 100%);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.post-problems-cta .hero-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  justify-items: stretch;
  align-items: stretch;
}

.post-problems-cta .hero-loss-question {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.3;
}

.post-problems-cta .btn {
  width: 100%;
}

@media (max-width: 767px) {
  .post-problems-cta {
    padding: 18px 14px;
  }

  .post-problems-cta .hero-actions {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 10px;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-primary);
  border-color: var(--text-primary);
}

.floating-contact-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1180;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.floating-contact-cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.floating-contact-cta:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.35);
  outline-offset: 2px;
}

.floating-contact-icon {
  font-size: 1rem;
  line-height: 1;
}

.floating-contact-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

/* Cards & Grid */
.grid {
  display: grid;
  gap: 24px;
}

.segment-switch {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.segment-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.segment-tab:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.segment-tab.active {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.segment-tab:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.35);
  outline-offset: 2px;
}

.problems-panel {
  display: none;
}

.problems-panel.active {
  display: grid;
}

.card {
  background: var(--bg-surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeIn 0.8s ease-out;
}

.card {
  animation: fadeIn 0.8s ease-out both;
}

.grid > .card:nth-child(1) { animation-delay: 0.1s; }
.grid > .card:nth-child(2) { animation-delay: 0.2s; }
.grid > .card:nth-child(3) { animation-delay: 0.3s; }
.grid > .card:nth-child(4) { animation-delay: 0.4s; }
.grid > .card:nth-child(5) { animation-delay: 0.5s; }
.grid > .card:nth-child(6) { animation-delay: 0.6s; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--brand-light);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Hero Media */
.hero-media {
  margin-top: 48px;
  position: relative;
}

.hero-image-container {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--media-radius);
  overflow: hidden;
}

.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
  .desktop-only {
    display: block;
  }
}

.full-banner {
  width: 100%;
  height: auto;
  border-radius: var(--media-radius);
  object-fit: contain;
}

@media (max-width: 767px) {
  :root {
    --mobile-fab-width: clamp(90px, calc((100vw - 36px) / 3), 140px);
    --mobile-fab-height: 44px;
  }

  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-inner {
    justify-content: center;
    padding: 12px 0;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand-logo {
    height: 92px;
    max-width: 100%;
  }

  .header-inner {
    position: relative;
  }

  .mobile-lang-switch {
    display: inline-flex !important;
    position: fixed !important;
    left: 8px !important;
    right: auto !important;
    bottom: 20px !important;
    margin: 0;
    width: var(--mobile-fab-width);
    height: var(--mobile-fab-height);
    padding: 3px;
    gap: 2px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    z-index: 1200;
  }

  .mobile-lang-switch .lang-link {
    min-width: 26px;
    height: 22px;
    padding: 1px;
    border-radius: 6px;
  }

  .mobile-lang-switch .lang-flag {
    width: 24px;
    height: 16px;
  }

  .mobile-lang-switch .lang-link:first-child {
    margin-left: 0;
  }

  .mobile-lang-switch .lang-link:last-child {
    margin-right: 0;
  }

  .mobile-lang-switch .lang-link:hover {
    transform: none;
  }

  .nav .lang-switch {
    width: 100%;
    margin: 8px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .nav .lang-switch::before {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    content: "🌐 Язык сайта";
  }

  html[lang="en"] .nav .lang-switch::before {
    content: "🌐 Site language";
  }

  html[lang="hy"] .nav .lang-switch::before {
    content: "🌐 Կայքի լեզու";
  }

  .mobile-menu-toggle {
    position: fixed !important;
    right: 8px !important;
    bottom: 20px !important;
    top: auto !important;
    left: auto !important;
    z-index: 1200;
    width: var(--mobile-fab-width);
    height: var(--mobile-fab-height);
    padding: 0 10px;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
  }

  .floating-contact-cta {
    left: 50%;
    right: auto;
    bottom: 20px;
    transform: translateX(-50%);
    width: var(--mobile-fab-width);
    height: var(--mobile-fab-height);
    padding: 0 10px;
    justify-content: center;
    font-size: 0.85rem;
    gap: 6px;
    white-space: nowrap;
  }

  .floating-contact-cta:hover {
    transform: translateX(-50%) translateY(-1px);
  }

  body {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }

  .page-hotels .hero-media {
    margin-top: 16px;
    width: 100%;
    order: 2; /* Ensure image is below text on mobile if needed, or adjust as preferred */
  }
  
  .page-hotels .hero-media img {
    width: 100%;
    max-width: 941px;
    max-height: none; /* Allow vertical image to grow */
    margin: 0 auto;
    border-radius: 10px;
  }

  .page-hotels-hero-container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .loss-audit-grid > * {
    min-width: 0;
  }

  .page-hotels .loss-audit-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-hotels .loss-audit-results {
    width: calc(100% + 40px);
    max-width: none;
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 24px;
  }

  .loss-audit-results {
    width: 100%;
    max-width: none;
    align-self: stretch;
    justify-self: stretch;
  }
}

@media (min-width: 768px) {
  .site-header .container {
    max-width: 1200px;
    padding: 0 20px;
  }

  .site-header .header-inner {
    height: 142px;
    padding: 16px 0;
  }

  .site-header .brand-logo {
    height: 96px;
    padding: 0;
    transform: scale(1.16);
  }

  body[data-page="home"] .hero {
    text-align: left;
  }

  body[data-page="home"] .hero-flex {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas:
      "headline media"
      "details media";
    align-items: center;
    gap: 60px;
  }

  body[data-page="home"] .home-hero-headline {
    grid-area: headline;
    max-width: none;
    margin: 0;
  }

  body[data-page="home"] .home-hero-details {
    grid-area: details;
    max-width: none;
    margin: 0;
  }

  body[data-page="home"] .hero-actions {
    justify-content: flex-start;
  }

  body[data-page="home"] .hero-media {
    grid-area: media;
    max-width: none;
    width: auto;
    margin: 0;
  }

  body[data-page="home"] .hero-image-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-radius: var(--media-radius);
    overflow: hidden;
  }

  body[data-page="home"] .hero-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    border-radius: var(--media-radius);
  }

  .page-hotels .hero {
    padding: 80px 0;
  }
  
  .page-hotels-hero-container {
    max-width: 1720px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-hotels .hero-flex {
    display: flex;
    flex-direction: column; /* Stack them to give full width to the banner */
    align-items: center;
    text-align: center;
  }
  
  .page-hotels .hero-content {
    max-width: 800px;
    margin-bottom: 40px;
  }

  .page-hotels .hero-media {
    width: 100%;
    max-width: 1672px;
  }

  .page-hotels .hero-media .full-banner {
    width: 100%;
    max-width: 1672px;
    margin: 0 auto;
    border-radius: var(--media-radius);
  }
}

@media (max-width: 767px) {
  body[data-page="home"] .hero-flex {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  body[data-page="home"] .home-hero-headline {
    order: 1;
  }

  body[data-page="home"] .hero-media {
    order: 2;
    margin-top: 0;
  }

  body[data-page="home"] .hero-image {
    max-height: 56vh;
  }

  body[data-page="home"] .home-hero-details {
    order: 3;
  }

  body[data-page="about"] .hero-flex {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  body[data-page="about"] .about-hero-headline {
    order: 1;
  }

  body[data-page="about"] .hero-media {
    order: 2;
    margin-top: 0;
  }

  body[data-page="about"] .hero-image {
    max-height: 56vh;
  }

  body[data-page="about"] .about-hero-details {
    order: 3;
  }
}

@media (min-width: 768px) {
  body[data-page="about"] .hero-flex {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas:
      "headline media"
      "details media";
    align-items: center;
    gap: 60px;
  }

  body[data-page="about"] .about-hero-headline {
    grid-area: headline;
    max-width: none;
    margin: 0;
  }

  body[data-page="about"] .about-hero-details {
    grid-area: details;
    max-width: none;
    margin: 0;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  body[data-page="about"] .hero-media {
    grid-area: media;
    max-width: none;
    width: auto;
    margin: 0;
    display: flex;
    align-items: stretch;
  }

  body[data-page="about"] .hero-image-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-radius: var(--media-radius);
    overflow: hidden;
    height: 100%;
    width: 100%;
  }

  body[data-page="about"] .hero-image {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: var(--media-radius);
  }
}

/* Responsive Overrides */
@media (min-width: 768px) {
  .hero {
    text-align: left;
    padding: 80px 0;
  }
  
  .hero-flex {
    display: flex;
    align-items: center;
    gap: 60px;
  }
  
  .hero-content {
    flex: 1;
    margin: 0;
  }
  
  .hero-media {
    flex: 1.2; /* Give slightly more room to the image on desktop for subconscious impact */
    margin: 0;
  }
  
  .hero-actions {
    flex-direction: row;
  }
  
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  
  .nav {
    display: flex;
    position: static;
    width: auto;
    background: transparent;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 24px;
    border-bottom: none;
    box-shadow: none;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .nav-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  
  .nav-link:hover, .nav-link.active {
    color: var(--brand);
  }
}

@media (min-width: 768px) and (max-width: 1240px) {
  html[lang="hy"] .site-header .container {
    max-width: 100%;
    padding: 0 12px;
  }

  html[lang="hy"] .site-header .header-inner {
    height: 124px;
    padding: 10px 0;
  }

  html[lang="hy"] .brand {
    padding: 0 12px;
  }

  html[lang="hy"] .site-header .brand-logo {
    height: 84px;
    transform: scale(1.08);
  }

  html[lang="hy"] .nav {
    gap: 12px;
  }

  html[lang="hy"] .nav-link {
    font-size: 0.84rem;
    padding: 8px 8px;
  }

  html[lang="hy"] .lang-switch {
    margin-left: 2px;
    gap: 4px;
  }

  html[lang="hy"] .lang-link {
    min-width: 40px;
    height: 32px;
    padding: 4px;
  }
}

/* Hotels Loss Audit Calculator */
.loss-audit-card h2 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.loss-word {
  color: #ef4444;
}

.revenue-growth-title {
  color: var(--brand);
}

.loss-audit-card > .loss-audit-head p {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.loss-audit-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.loss-audit-inputs label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.loss-audit-inputs input,
.loss-audit-inputs select {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.loss-audit-inputs input:focus,
.loss-audit-inputs select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-light);
  background: #fff;
}

.audit-custom-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -4px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.83rem;
  cursor: pointer;
}

.audit-custom-toggle:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.audit-custom-wrap {
  margin-top: -2px;
}

.audit-custom-wrap label {
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.loss-audit-results {
  background: #0f172a;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  align-self: start;
}

.loss-audit-results h3 {
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.loss-periods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.loss-period {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px;
}

.loss-period-label {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 4px;
  white-space: nowrap;
}

.loss-period-value {
  display: block;
  color: #fda4af;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.ota-share-target-note {
  margin: 8px 0 14px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.ota-share-target-note-value-before,
.ota-share-target-note-value-bad {
  color: #fda4af;
  font-weight: 800;
}

.ota-share-target-note-value-good {
  color: var(--brand);
  font-weight: 800;
}

.loss-scenario-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
}

.loss-scenario-label {
  display: block;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 10px;
  font-weight: 700;
}

.loss-scenario-range {
  width: 100%;
  accent-color: var(--range-accent, var(--slider-neutral));
}

.loss-scenario-range:disabled {
  opacity: 0.45;
}

.loss-audit-inputs label strong {
  color: var(--slider-neutral);
}

.audit-range-row {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.audit-range-row .loss-scenario-range {
  margin: 0;
}

.audit-stepper-btn {
  width: 42px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--slider-neutral);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.audit-stepper-btn:hover {
  border-color: #94a3b8;
}

.audit-stepper-btn:focus-visible {
  outline: 3px solid rgba(30, 41, 59, 0.2);
  outline-offset: 2px;
}

.audit-range-row-dark .audit-stepper-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}

.slider-scale {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  align-items: start;
  margin: 6px 0 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.slider-scale span {
  position: relative;
  text-align: center;
  font-size: 0.62rem;
  line-height: 1;
  color: #94a3b8;
  font-weight: 700;
}

.slider-scale span::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 1px;
  height: 6px;
  background: rgba(148, 163, 184, 0.55);
  transform: translateX(-50%);
}

.loss-whatif {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px;
}

.revenue-uplift {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px;
}

.revenue-uplift-card {
  background: #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 22px;
  overflow: visible;
}

.revenue-uplift-standalone {
  margin-top: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.revenue-uplift-card .loss-note-outside {
  color: #94a3b8;
  margin-top: 12px;
}

.revenue-uplift-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 6px;
  align-items: center;
}

.loss-whatif-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.loss-compare-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 6px;
  align-items: center;
}

.loss-compare-head {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.loss-compare-cell {
  font-size: 0.76rem;
  color: #94a3b8;
}

.loss-compare-value {
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 767px) {
  .audit-range-row {
    grid-template-columns: 48px 1fr 48px;
    gap: 10px;
  }

  .audit-stepper-btn {
    width: 48px;
    height: 42px;
    font-size: 1.3rem;
  }

  .audit-custom-toggle {
    width: 100%;
    margin-bottom: 10px;
  }

  html[lang="hy"] .loss-audit-results {
    padding: 14px;
    overflow: hidden;
  }

  html[lang="hy"] .loss-scenario-control,
  html[lang="hy"] .loss-whatif {
    padding: 10px;
  }

  html[lang="hy"] .loss-scenario-label,
  html[lang="hy"] .loss-whatif-title {
    font-size: 0.72rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  html[lang="hy"] .loss-whatif {
    overflow-x: auto;
  }

  html[lang="hy"] .loss-compare-grid {
    min-width: 380px;
    grid-template-columns: 1.18fr 1fr 1fr 1fr;
    gap: 6px;
  }

  html[lang="hy"] .loss-compare-head {
    font-size: 0.68rem;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  html[lang="hy"] .loss-compare-cell {
    font-size: 0.74rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  html[lang="hy"] .loss-compare-value {
    font-size: 0.8rem;
  }

  html[lang="hy"] .slider-scale span {
    font-size: 0.58rem;
  }

  html[lang="hy"] .revenue-uplift {
    overflow-x: auto;
  }

  html[lang="hy"] .revenue-uplift-grid {
    min-width: 300px;
    grid-template-columns: 1.2fr 1fr;
    gap: 8px;
  }

  html[lang="hy"] .revenue-uplift-grid .loss-compare-head {
    font-size: 0.68rem;
    text-transform: none;
    letter-spacing: 0;
  }

  html[lang="hy"] .revenue-uplift-grid .loss-compare-cell {
    font-size: 0.75rem;
  }
}

.loss-compare-value-before,
.loss-compare-value-bad {
  color: #fda4af;
}

.loss-compare-value-good {
  color: var(--brand);
}

.loss-whatif-saved {
  margin: 12px 0 0;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.loss-whatif-saved strong {
  color: #fda4af;
}

.loss-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.loss-metric {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px;
}

.loss-metric-label {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.loss-metric-value {
  font-size: 1rem;
  font-weight: 700;
}

.loss-note {
  margin: 10px 0 0;
  color: #cbd5e1;
  font-size: 0.84rem;
}

.loss-note-outside {
  margin-top: 10px;
  color: var(--text-muted);
}

.loss-note-quote {
  margin-top: 8px;
  font-style: italic;
}

@media (min-width: 900px) {
  .loss-audit-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: start;
  }

  .loss-audit-results {
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .loss-whatif {
    margin-top: 10px;
  }
}

/* Footer */
.site-footer {
  padding: 40px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-text a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
