/* ==========================================================================
   OÜ AT LANGUAGE SOLUTIONS - CORPORATE STYLESHEET
   Enterprise Multilingual Education & Citizenship Exam Preparation
   ========================================================================== */

:root {
  --color-primary-900: #0b1b2b;
  --color-primary-800: #12283e;
  --color-primary-700: #1e4976;
  --color-primary-600: #2563eb;
  --color-primary-500: #3b82f6;
  --color-accent-amber: #d97706;
  --color-accent-amber-hover: #b45309;
  --color-accent-amber-light: #fef3c7;
  --color-accent-cyan: #0284c7;
  --color-success: #059669;
  --color-success-light: #d1fae5;
  --color-bg-light: #f8fafc;
  --color-bg-subtle: #f1f5f9;
  --color-surface-white: #ffffff;
  --color-border-light: #e2e8f0;
  --color-border-medium: #cbd5e1;
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #64748b;
  --font-family-base: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-serif: 'Source Serif 4', Georgia, serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --transition-normal: 0.25s ease-in-out;
  --container-max: 1240px;
}

/* Modern CSS Reset & Baseline */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary-700);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--color-accent-amber);
}

input, button, textarea, select {
  font: inherit;
  font-size: 16px; /* Prevents auto-zoom on mobile */
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary-900);
  color: #ffffff;
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary-900);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.35rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

p.lead {
  font-size: clamp(1.05rem, 1.2vw + 0.5rem, 1.25rem);
  line-height: 1.7;
  color: var(--color-neutral-700);
}

/* Top Notification / Trust Bar */
.top-bar {
  background-color: var(--color-primary-900);
  color: #cbd5e1;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-badge {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(217, 119, 6, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.top-bar-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Main Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 48px;
  width: auto;
}

/* Navigation Links (Desktop) */
.nav-menu {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-neutral-700);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-700);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent-amber);
  border-radius: 2px;
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px; /* Touch friendly standard */
  min-width: 44px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent-amber);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-accent-amber-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.btn-secondary {
  background-color: var(--color-primary-900);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--color-primary-800);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--color-primary-700);
  color: var(--color-primary-700);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary-700);
  color: #ffffff;
}

.btn-white {
  background-color: #ffffff;
  color: var(--color-primary-900);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: var(--color-neutral-50);
  color: var(--color-accent-amber);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-neutral-100);
  border: 1px solid var(--color-border-light);
  padding: 0;
  cursor: pointer;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-primary-900);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--color-surface-white);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: 80px 24px 32px 24px;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 27, 43, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary-900);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-accent-amber);
}

/* Section Shared Utilities */
.section-padding {
  padding: 70px 0;
}

.section-padding-lg {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-badge {
  display: inline-block;
  background-color: rgba(30, 73, 118, 0.1);
  color: var(--color-primary-700);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
  border: 1px solid rgba(30, 73, 118, 0.2);
}

.section-badge-amber {
  background-color: rgba(217, 119, 6, 0.12);
  color: var(--color-accent-amber);
  border-color: rgba(217, 119, 6, 0.25);
}

/* Hero Section */
.hero-corporate {
  background: linear-gradient(135deg, #0b1b2b 0%, #12283e 50%, #1e4976 100%);
  color: #ffffff;
  padding: 80px 0 90px 0;
  position: relative;
  overflow: hidden;
}

.hero-corporate::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-corporate h1 {
  color: #ffffff;
}

.hero-corporate .lead {
  color: #cbd5e1;
  margin-bottom: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-item h4 {
  color: #fbbf24;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-stat-item p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
}

.hero-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.hero-card-list li svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: #34d399;
}

/* Feature Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.feature-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-medium);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: var(--color-neutral-100);
  color: var(--color-primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Client Stories / Verification Gallery (project-1 to project-5) */
.client-stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.client-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.client-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.client-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--color-neutral-200);
  overflow: hidden;
}

.client-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.client-card:hover .client-card-image-wrap img {
  transform: scale(1.03);
}

.client-badge-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(11, 27, 43, 0.88);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(217, 119, 6, 0.4);
}

.client-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.client-card-header {
  margin-bottom: 14px;
}

.client-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-900);
}

.client-card-loc {
  font-size: 0.85rem;
  color: var(--color-primary-700);
  font-weight: 600;
}

.client-card-meta {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.client-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.client-meta-label {
  color: var(--color-text-light);
}

.client-meta-val {
  font-weight: 700;
  color: var(--color-primary-900);
}

.client-quote {
  font-style: italic;
  color: var(--color-neutral-700);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  position: relative;
  padding-left: 16px;
  border-left: 3px solid var(--color-accent-amber);
}

/* Methodology Steps */
.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-primary-700);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-800) 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 50px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-banner p {
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 28px auto;
}

/* Forms */
.form-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary-900);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--color-text-main);
  background-color: #ffffff;
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
}

.form-check-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-helper {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 6px;
}

/* Accordion / FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.faq-button {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-900);
  background: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--color-accent-amber);
  color: #ffffff;
}

.faq-content {
  padding: 0 24px 20px 24px;
  display: none;
  color: var(--color-neutral-700);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-content {
  display: block;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.table-custom th,
.table-custom td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border-light);
}

.table-custom th {
  background-color: var(--color-bg-subtle);
  color: var(--color-primary-900);
  font-weight: 700;
}

.table-custom tr:last-child td {
  border-bottom: none;
}

.table-custom tr:hover td {
  background-color: var(--color-bg-light);
}

/* Hero Article Specific Styles (insights-hero.html) */
.article-header {
  background: linear-gradient(180deg, var(--color-primary-900) 0%, var(--color-primary-800) 100%);
  color: #ffffff;
  padding: 70px 0 60px 0;
}

.article-header h1 {
  color: #ffffff;
  max-width: 900px;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  color: #cbd5e1;
}

.article-content {
  padding: 60px 0;
}

.article-body {
  font-family: var(--font-family-base);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
}

.article-body h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-primary-900);
}

.article-body h3 {
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--color-primary-700);
}

.article-callout {
  background: #f0fdf4;
  border-left: 4px solid var(--color-success);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin: 32px 0;
}

.article-callout-warning {
  background: #fffbeb;
  border-left-color: var(--color-accent-amber);
}

.article-chart-wrapper {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
}

.chart-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-900);
  margin-bottom: 8px;
}

.chart-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

/* CSS Bar Chart Component */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-900);
}

.bar-track {
  width: 100%;
  height: 18px;
  background: var(--color-neutral-100);
  border-radius: 9px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--color-primary-700), var(--color-primary-500));
  transition: width 1s ease-in-out;
}

.bar-fill.amber {
  background: linear-gradient(90deg, var(--color-accent-amber), #f59e0b);
}

.bar-fill.green {
  background: linear-gradient(90deg, var(--color-success), #34d399);
}

/* References block */
.article-references {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--color-border-medium);
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.article-references ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Legal Documents Layout */
.legal-page-header {
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border-light);
  padding: 50px 0;
}

.legal-content-section {
  padding: 60px 0;
}

.legal-box {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-box h2 {
  font-size: 1.4rem;
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-light);
}

.legal-box h3 {
  font-size: 1.15rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-box ol, .legal-box ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-box li {
  margin-bottom: 8px;
}

/* Site Footer */
.site-footer {
  background-color: var(--color-primary-900);
  color: #94a3b8;
  padding-top: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-col p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: color var(--transition-normal);
}

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

.footer-requisites-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.footer-bottom-links a {
  color: #94a3b8;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Cookie Consent Banner & Modal */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 540px;
  background: rgba(11, 27, 43, 0.97);
  backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  z-index: 9999;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cookie-banner p {
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 44px;
}

.cookie-btn-accept {
  background-color: var(--color-accent-amber);
  color: #ffffff;
}

.cookie-btn-accept:hover {
  background-color: var(--color-accent-amber-hover);
}

.cookie-btn-reject {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.cookie-btn-reject:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cookie-btn-prefs {
  background-color: transparent;
  color: #93c5fd;
  text-decoration: underline;
  padding: 10px 8px;
}

/* Cookie Preferences Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 27, 43, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.modal-close {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-cookie-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

/* Responsive Breakpoints */
@media (min-width: 576px) {
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .client-stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .client-stories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .step-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

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