/* ==========================================================================
   Premium Financial Design System (Inspired by Stripe, Apple, T-Bank, Revolut)
   Minimalist, Ultra-Clean, Confident, Monochrome & Restrained
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  
  --text-primary: #111827;     /* High contrast near-black */
  --text-secondary: #4b5563;   /* Refined neutral body */
  --text-tertiary: #9ca3af;    /* Subtle captions */
  --text-quaternary: #d1d5db;
  
  --accent: #0f172a;           /* Understated slate black accent */
  --accent-blue: #2563eb;      /* Precise corporate blue for links/actions */
  --accent-blue-hover: #1d4ed8;
  
  --border-light: #f3f4f6;
  --border-subtle: #e5e7eb;
  --border-focus: #111827;

  /* Elevation */
  --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 35px -10px rgba(0, 0, 0, 0.08);

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-fast);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  display: inline-block;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  margin-left: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-item:hover {
  color: var(--text-primary);
}

.btn-nav {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--text-primary);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.btn-nav:hover {
  background-color: #000000;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 72px 0 64px;
}

.hero-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.hero-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

/* Calculator Card Frame (Clean & Polished) */
.calculator-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 36px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

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

.calculator-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.calculator-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
}

.widget-viewport {
  min-height: 380px;
  position: relative;
}

/* Widget Preloader */
.widget-preloader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 0.88rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.calculator-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.footer-features {
  display: flex;
  align-items: center;
  gap: 20px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Check OSAGO Card (Placed right below calculator)
   ========================================================================== */
.check-osago-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 36px;
  max-width: 960px;
  margin: 32px auto 0;
  position: relative;
}

.check-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.check-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.check-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.check-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.check-tab {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

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

.check-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
  background: var(--bg-secondary);
}

.check-pane {
  display: none;
}

.check-pane.active {
  display: block;
}

.check-input-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.input-huge {
  flex: 1;
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.input-huge:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.input-huge::placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
  letter-spacing: 0;
}

.select-huge {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  min-width: 170px;
}

.select-huge:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--text-primary);
}

.btn-check-run {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 24px;
  background: var(--text-primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-check-run:hover {
  background: #000000;
  transform: translateY(-1px);
}

.check-tip {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-top: 10px;
}

.check-loading {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.check-loading-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.check-progress-bar {
  height: 4px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.check-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-blue);
  transition: width 0.4s ease;
}

.check-results-box {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.check-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.res-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.res-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.res-source {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.res-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.res-status-badge.active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.res-status-badge.expired {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.res-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.res-row:last-child {
  border-bottom: none;
}

.res-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.res-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.btn-apply-check-data {
  width: 100%;
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--text-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-apply-check-data:hover {
  background: #000000;
  transform: translateY(-1px);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.4s ease-in-out;
  border-color: #ef4444 !important;
}

/* Logo Strip (Monochrome, Understated) */
.logos-section {
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--border-light);
}

.logos-caption {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px 48px;
  opacity: 0.75;
}

.logo-item {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  transition: opacity var(--transition-fast);
}

.logo-item:hover {
  opacity: 1;
  color: var(--text-primary);
}

/* Core Values (Clean 3-Column Grid) */
.section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.section-heading {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.feature-item:hover {
  border-color: var(--border-subtle);
  transform: translateY(-2px);
}

.feature-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Checklist Strip */
.checklist-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 64px 0;
}

.checklist-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.checklist-text {
  max-width: 380px;
}

.checklist-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.checklist-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checklist-items {
  display: flex;
  align-items: center;
  gap: 20px;
}

.check-chip {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-subtle);
}

/* FAQ Accordion (Clean Minimalist List) */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-row {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-row:first-child {
  border-top: 1px solid var(--border-subtle);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

.faq-btn:hover {
  color: var(--accent-blue);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-row.active .faq-icon {
  transform: rotate(45deg);
  color: var(--text-primary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-body-text {
  padding-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Simple CTA Bar */
.bottom-cta {
  padding: 64px 0;
  text-align: center;
}

.bottom-cta-inner {
  background: var(--text-primary);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 48px 32px;
}

.bottom-cta-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.bottom-cta-desc {
  font-size: 1rem;
  color: #9ca3af;
  margin-bottom: 28px;
}

.btn-cta-white {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  background-color: #ffffff;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.btn-cta-white:hover {
  background-color: #f3f4f6;
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 48px 0 40px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-legal {
  max-width: 820px;
  margin-bottom: 24px;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .checklist-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .checklist-items {
    flex-wrap: wrap;
    width: 100%;
  }

  .check-chip {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }
}

@media (max-width: 640px) {
  .nav-menu {
    display: none;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .calculator-card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }

  .check-osago-card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }

  .check-input-row {
    flex-direction: column;
  }

  .btn-check-run {
    padding: 14px 20px;
  }

  .check-cards-grid {
    grid-template-columns: 1fr;
  }

  .calculator-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
