/* ========================================
   InvestičníKalkulačky.cz
   Main Stylesheet
   Mobile-First Approach
   ======================================== */

/* ========================================
   1. CUSTOM PROPERTIES (Design Tokens)
   ======================================== */

:root {
  /* PRIMARY COLOR - Pro VŠECHNY interaktivní prvky */
  --orange-prime: #FF7100;

  /* BACKGROUND COLORS */
  --deep-graphite: #1B1B1D;
  --white-soft: #F8F8F9;

  /* SECONDARY & ACCENT COLORS */
  --cool-steel: #A7B7C9;
  --ocean-tech-blue: #3A6EA5;

  /* TEXT COLORS */
  --grey-dark: #1B1B1D;
  --grey-medium: #6C6C73;
  --grey-light: #E6E6EA;
  --text-on-dark: #F8F8F9;

  /* STATES */
  --orange-hover: #E66600;
  --orange-active: #CC5A00;
  --orange-light: rgba(255, 113, 0, 0.1);

  /* SPACING SYSTEM (16px base grid) */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 80px;
  --spacing-5xl: 96px;

  /* SHADOWS */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-orange: 0 4px 16px rgba(255, 113, 0, 0.12);
}

/* ========================================
   2. RESET & BASE STYLES
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--grey-dark);
  background-color: var(--white-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }
}

/* ========================================
   3. TYPOGRAPHY
   ======================================== */

h1, .heading-1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--grey-dark);
  margin-bottom: 16px;
}

h2, .heading-2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--grey-dark);
  margin-bottom: 12px;
}

h3, .heading-3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--grey-dark);
  margin-bottom: 8px;
}

p {
  margin-bottom: 16px;
}

.text-large {
  font-size: 18px;
  line-height: 1.6;
}

.text-small {
  font-size: 14px;
  line-height: 1.5;
}

.text-caption {
  font-size: 12px;
  line-height: 1.4;
  color: var(--grey-medium);
}

@media (min-width: 1024px) {
  h1, .heading-1 {
    font-size: 40px;
  }

  h2, .heading-2 {
    font-size: 32px;
  }

  h3, .heading-3 {
    font-size: 24px;
  }
}

/* ========================================
   4. LINKS
   ======================================== */

a {
  color: var(--orange-prime);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--orange-hover);
  border-bottom-color: var(--orange-hover);
}

a:focus {
  outline: 2px solid var(--orange-light);
  outline-offset: 2px;
}

/* ========================================
   5. BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 2px solid transparent;
  font-family: inherit;
}

@media (min-width: 1024px) {
  .btn {
    min-height: 52px;
    padding: 14px 32px;
    font-size: 18px;
  }
}

.btn-large {
  min-height: 56px;
  padding: 16px 40px;
  font-size: 18px;
}

@media (min-width: 1024px) {
  .btn-large {
    min-height: 64px;
    padding: 20px 48px;
    font-size: 20px;
  }
}

/* Primary Button */
.btn-primary {
  background-color: var(--orange-prime);
  color: white;
  border-color: var(--orange-prime);
}

.btn-primary:hover {
  background-color: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-orange);
  color: white;
  border-bottom: 2px solid var(--orange-hover);
}

.btn-primary:active {
  background-color: var(--orange-active);
  transform: translateY(0);
}

.btn-primary:focus {
  outline: 3px solid var(--orange-light);
  outline-offset: 2px;
}

/* Secondary Button */
.btn-secondary {
  background-color: transparent;
  color: var(--orange-prime);
  border-color: var(--orange-prime);
}

.btn-secondary:hover {
  background-color: var(--orange-light);
  color: var(--orange-hover);
  border-color: var(--orange-hover);
  border-bottom: 2px solid var(--orange-hover);
}

/* Ghost Button */
.btn-ghost {
  background-color: transparent;
  color: var(--orange-prime);
  border: none;
  padding: 8px 16px;
  min-height: auto;
}

.btn-ghost:hover {
  background-color: var(--orange-light);
  color: var(--orange-hover);
}

/* Disabled Button */
.btn:disabled,
.btn[disabled] {
  background-color: var(--grey-light);
  color: var(--grey-medium);
  border-color: var(--grey-light);
  cursor: not-allowed;
  opacity: 0.6;
}

.btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* ========================================
   6. FORM ELEMENTS
   ======================================== */

.input,
.textarea,
.select,
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--grey-dark);
  background-color: white;
  border: 2px solid var(--grey-light);
  border-radius: 6px;
  transition: all 0.2s ease;
}

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

.input:focus,
.textarea:focus,
.select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--orange-prime);
  outline: 3px solid var(--orange-light);
  outline-offset: 0;
}

.input::placeholder,
.textarea::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--grey-medium);
  opacity: 0.7;
}

.input.error,
.textarea.error {
  border-color: #E53E3E;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-dark);
  margin-bottom: 6px;
}

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

/* ========================================
   7. LAYOUT
   ======================================== */

/* Container - funguje na všech stránkách */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 48px;
  }
}

.section {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--spacing-4xl);
    padding-bottom: var(--spacing-4xl);
  }
}

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

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

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

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

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   8. CARDS
   ======================================== */

.card {
  background-color: var(--white-soft);
  border: 1px solid var(--grey-light);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-clickable {
  cursor: pointer;
}

.card-clickable:hover {
  border-color: var(--orange-prime);
  box-shadow: var(--shadow-orange);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--orange-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--orange-prime);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--grey-dark);
  margin-bottom: 8px;
}

.card-description {
  font-size: 16px;
  color: var(--grey-medium);
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-cta {
  color: var(--orange-prime);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  text-decoration: none;
  border-bottom: none;
}

.card-cta:hover {
  color: var(--orange-hover);
  border-bottom: none;
}

.card-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.card-cta:hover svg {
  transform: translateX(3px);
}

/* ========================================
   9. HEADER
   ======================================== */

.header {
  position: sticky;
  top: 0;
  background-color: var(--white-soft);
  border-bottom: 1px solid var(--grey-light);
  z-index: 1000;
  height: 72px;
}

@media (min-width: 1024px) {
  .header {
    height: 80px;
  }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--grey-dark);
  font-weight: 600;
  font-size: 18px;
  border-bottom: none;
}

.header-logo svg {
  width: 32px;
  height: 32px;
  stroke: var(--orange-prime);
}

.header-logo:hover {
  color: var(--orange-prime);
  border-bottom: none;
}

.logo-text {
  display: none;
}

@media (min-width: 768px) {
  .logo-text {
    display: inline;
  }
}

.header-nav {
  display: none;
  gap: 8px;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }
}

.nav-link {
  color: var(--grey-dark);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: block;
  border-bottom: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-prime);
  background-color: var(--orange-light);
  border-bottom: none;
}

@media (max-width: 767px) {
  .nav-link {
    font-size: 18px;
    padding: 16px 24px;
  }
}

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
    margin-top: var(--spacing-sm);
  }
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--orange-prime);
  transition: all 0.3s ease;
  display: block;
}

.hamburger:hover span {
  background-color: var(--orange-hover);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background-color: var(--white-soft);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 20px;
}

.mobile-nav .btn {
  margin-top: 24px;
  width: 100%;
}

/* ========================================
   10. HERO SECTION
   ======================================== */

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background-color: var(--white-soft);
  padding: 48px 0;
}

@media (min-width: 1024px) {
  .hero {
    min-height: calc(100vh - 80px);
    padding: 80px 0;
  }
}

.hero-content {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.hero h1 {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 20px;
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 48px;
  }
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--grey-medium);
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    font-size: 20px;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .hero-cta {
    flex-direction: row;
    gap: 20px;
  }
}

.hero-visual {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.hero-visual svg,
.hero-visual img {
  width: 100%;
  height: auto;
}

/* ========================================
   11. CATEGORY SECTIONS
   ======================================== */

.section-categories {
  background-color: var(--deep-graphite);
  color: var(--text-on-dark);
}

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

.section-header h2 {
  color: inherit;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--cool-steel);
}

.section-categories .section-header h2 {
  color: var(--text-on-dark);
}

.category-card {
  background-color: rgba(248, 248, 249, 0.05);
  border: 1px solid rgba(167, 183, 201, 0.2);
  border-radius: 8px;
  padding: 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.category-card:hover {
  border-color: var(--orange-prime);
  background-color: rgba(248, 248, 249, 0.08);
  transform: translateY(-4px);
  box-shadow: var(--shadow-orange);
}

.category-card .card-icon {
  background-color: rgba(255, 113, 0, 0.15);
}

.category-card .card-icon svg {
  stroke: var(--orange-prime);
}

.category-card .card-title {
  color: var(--text-on-dark);
}

.category-card .card-description {
  color: var(--cool-steel);
}

.category-card .card-cta {
  color: var(--orange-prime);
}

.category-card:hover .card-cta {
  color: var(--orange-hover);
}

/* ========================================
   12. STEPS SECTION
   ======================================== */

.section-how-it-works {
  background-color: var(--white-soft);
}

.steps {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}

@media (min-width: 1024px) {
  .steps {
    overflow-x: visible;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background-color: white;
  border: 1px solid var(--grey-light);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
}

@media (min-width: 1024px) {
  .step {
    flex: 1;
  }
}

.step-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-prime);
  margin-bottom: 16px;
}

.step-icon {
  width: 64px;
  height: 64px;
  background-color: var(--orange-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--orange-prime);
}

.step h3 {
  margin-bottom: 12px;
}

.step p {
  color: var(--grey-medium);
  font-size: 16px;
  margin-bottom: 0;
}

/* ========================================
   13. BENEFITS SECTION
   ======================================== */

.section-benefits {
  background-color: var(--white-soft);
}

.benefit {
  text-align: center;
  padding: 24px;
}

@media (min-width: 768px) {
  .benefit {
    padding: 32px;
  }
}

.benefit-icon {
  width: 56px;
  height: 56px;
  background-color: var(--orange-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--orange-prime);
}

.benefit h3 {
  margin-bottom: 8px;
}

.benefit p {
  color: var(--grey-medium);
  margin-bottom: 0;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ========================================
   14. PAGE HERO
   ======================================== */

.page-hero {
  background-color: var(--deep-graphite);
  color: var(--text-on-dark);
  padding: 64px 0 48px;
  text-align: center;
}

@media (min-width: 1024px) {
  .page-hero {
    padding: 80px 0 64px;
  }
}

.page-hero h1 {
  color: var(--text-on-dark);
  margin-bottom: 16px;
}

.page-hero-subtitle {
  font-size: 18px;
  color: var(--cool-steel);
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .page-hero-subtitle {
    font-size: 20px;
  }
}

/* ========================================
   15. CALCULATOR CATEGORY SECTIONS
   ======================================== */

.section-calculator-category {
  background-color: var(--white-soft);
  padding: 64px 0;
}

.section-calculator-category:nth-child(even) {
  background-color: #FAFAFA;
}

.category-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.category-header .category-icon {
  width: 56px;
  height: 56px;
  background-color: var(--orange-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-header .category-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--orange-prime);
}

.category-header h2 {
  margin-bottom: 8px;
}

.category-header p {
  color: var(--grey-medium);
  font-size: 16px;
  margin-bottom: 0;
}

.calculator-card {
  background-color: white;
  border: 2px solid var(--grey-light);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.calculator-card:hover:not(.calculator-card-placeholder) {
  border-color: var(--orange-prime);
  box-shadow: var(--shadow-orange);
  transform: translateY(-2px);
}

.calculator-card .btn {
  margin-top: auto;
}

.calculator-card-placeholder {
  border-style: dashed;
  border-color: var(--cool-steel);
  opacity: 0.6;
  cursor: not-allowed;
}

.calculator-card-placeholder .card-icon {
  background-color: var(--grey-light);
}

.calculator-card-placeholder .card-icon svg {
  stroke: var(--grey-medium);
}

/* ========================================
   16. ARTICLES
   ======================================== */

.section-articles-category {
  background-color: var(--white-soft);
  padding: 64px 0;
}

.section-articles-category:nth-child(even) {
  background-color: #FAFAFA;
}

.article-card {
  background-color: white;
  border: 1px solid var(--grey-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  text-decoration: none;
}

.article-card:hover:not(.article-card-placeholder) {
  border-color: var(--orange-prime);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.article-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--grey-light);
  border-bottom: none;
}

.article-thumbnail:hover {
  border-bottom: none;
}

.article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-thumbnail img {
  transform: scale(1.05);
}

.article-content {
  padding: 20px 20px 0 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (max-width: 640px) {
  .article-content {
    padding: 16px 16px 0 16px;
  }
}

.article-category-tag {
  display: inline-block;
  width: fit-content;
  background-color: #FFF5E6;
  color: var(--orange-prime);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: none;
}

.article-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .article-title {
    font-size: 18px;
  }
}

.article-title a {
  color: var(--grey-dark);
  text-decoration: none;
  border-bottom: none;
}

.article-title a:hover {
  color: var(--orange-prime);
  border-bottom: none;
}

.article-excerpt {
  font-size: 15px;
  color: #4A5568;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

@media (max-width: 640px) {
  .article-excerpt {
    font-size: 14px;
  }
}

.article-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--orange-prime);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  border-bottom: none;
  margin: 0 0 20px 0;
  transition: all 0.3s ease;
  cursor: pointer;
  align-self: flex-start;
}

.article-button:hover {
  background-color: #E66500;
  color: white;
  border-bottom: none;
}

.article-button svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s ease;
}

.article-button:hover svg {
  transform: translateX(4px);
}

/* Zpětná kompatibilita - starý odkaz */
.article-link {
  color: var(--orange-prime);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border-bottom: none;
  margin-top: auto;
}

.article-link:hover {
  color: var(--orange-hover);
  border-bottom: none;
}

.article-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.article-link:hover svg {
  transform: translateX(3px);
}

.article-card-placeholder {
  border-style: dashed;
  border-color: var(--cool-steel);
  opacity: 0.6;
}

.placeholder-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--grey-light);
}

.placeholder-thumbnail svg {
  width: 48px;
  height: 48px;
  stroke: var(--grey-medium);
}

/* ========================================
   17. FOOTER
   ======================================== */

.footer {
  background-color: var(--deep-graphite);
  color: var(--text-on-dark);
  padding: 64px 0 24px;
}

.footer-content {
  display: grid;
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
  border-bottom: none;
}

.footer-logo svg,
.footer-logo img.logo-svg {
  width: 24px;
  height: 24px;
}

.footer-logo svg {
  stroke: var(--orange-prime);
}

.footer-logo:hover {
  color: var(--orange-prime);
  border-bottom: none;
}

.footer-tagline {
  color: var(--cool-steel);
  font-size: 14px;
  margin-bottom: 0;
}

.footer-nav h4 {
  color: var(--text-on-dark);
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: var(--cool-steel);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  border-bottom: none;
}

.footer-nav a:hover {
  color: var(--orange-prime);
  border-bottom: none;
}

.footer-social h4 {
  color: var(--text-on-dark);
  font-size: 16px;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-bottom: none;
}

.social-links a:hover {
  background-color: var(--orange-prime);
  transform: translateY(-2px);
  border-bottom: none;
}

.social-links svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-on-dark);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(167, 183, 201, 0.2);
  text-align: center;
}

.footer-bottom p {
  color: var(--cool-steel);
  font-size: 14px;
  margin-bottom: 0;
}

/* ========================================
   18. UPDATED HEADER STYLES
   ======================================== */

.header {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 16px 0;
}

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

@media (min-width: 1024px) {
  .header {
    height: 88px;
    padding: 0;
  }
}

/* Updated Logo */
.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .logo-icon {
    width: 44px;
    height: 44px;
  }
}

.logo-icon svg,
.logo-icon img.logo-svg {
  width: 24px;
  height: 24px;
}

.logo-icon svg {
  stroke: white;
  stroke-width: 2.5px;
}

@media (min-width: 1024px) {
  .logo-icon svg,
  .logo-icon img.logo-svg {
    width: 26px;
    height: 26px;
  }
}

.logo-text-wrapper {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.header-logo .logo-text {
  display: inline;
}

.logo-tld {
  font-size: 16px;
  font-weight: 600;
  color: var(--orange-prime);
}

@media (min-width: 768px) {
  .logo-tld {
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  .logo-tld {
    font-size: 20px;
  }
}

.header-logo:hover .logo-icon {
  transform: scale(1.05);
}

/* Updated Nav Links */
.header-nav {
  margin-left: auto;
  margin-right: 24px;
}

.nav-link {
  font-weight: 500;
  padding: 10px 20px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: var(--orange-prime);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.hamburger:hover {
  background-color: var(--orange-light);
}

.hamburger span {
  height: 2.5px;
  border-radius: 2px;
}

.mobile-menu {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mobile-nav .nav-link {
  padding: 16px 20px;
}

/* ========================================
   19. CALCULATOR CATEGORIES ON HOMEPAGE
   ======================================== */

.section-calculator-categories {
  background-color: var(--white-soft);
  padding: 64px 0;
}

@media (min-width: 1024px) {
  .section-calculator-categories {
    padding: 80px 0;
  }
}

.calculator-category-block {
  margin-bottom: 64px;
}

.calculator-category-block:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .calculator-category-block {
    margin-bottom: 80px;
  }
}

.calculator-category-block .category-header {
  padding-bottom: 24px;
  border-bottom: 2px solid var(--grey-light);
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .calculator-category-block .category-header {
    margin-bottom: 40px;
  }
}

.calculator-category-block .category-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

@media (min-width: 1024px) {
  .calculator-category-block .category-header h3 {
    font-size: 28px;
  }
}

.calculator-card .card-title {
  font-size: 18px;
}

@media (min-width: 1024px) {
  .calculator-card .card-title {
    font-size: 20px;
  }
}

.calculator-card .card-description {
  font-size: 15px;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .calculator-card .card-description {
    font-size: 16px;
  }
}

.calculator-card .btn {
  width: 100%;
}

/* ========================================
   20. FINAL CTA SECTION
   ======================================== */

.section-final-cta {
  background-color: var(--deep-graphite);
  padding: 80px 0;
}

@media (min-width: 1024px) {
  .section-final-cta {
    padding: 100px 0;
  }
}

.cta-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--text-on-dark);
  font-size: 32px;
  margin-bottom: 16px;
}

@media (min-width: 1024px) {
  .cta-content h2 {
    font-size: 40px;
  }
}

.cta-content p {
  color: var(--cool-steel);
  font-size: 18px;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
  }
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}

/* ========================================
   21. COMPONENTS PAGE
   ======================================== */

.components-page {
  background-color: var(--white-soft);
  padding: 48px 0;
}

.component-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--grey-light);
}

.component-section:last-child {
  border-bottom: none;
}

.component-title {
  font-size: 28px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--orange-prime);
}

.component-demo {
  margin-bottom: 40px;
  padding: 32px;
  background-color: white;
  border: 1px solid var(--grey-light);
  border-radius: 8px;
}

.component-demo:last-child {
  margin-bottom: 0;
}

.component-demo h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--grey-medium);
}

.demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.color-swatch {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.color-box {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  border: 1px solid var(--grey-light);
}

.color-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.color-info strong {
  font-size: 14px;
  color: var(--grey-dark);
}

.color-info span {
  font-size: 13px;
  color: var(--grey-medium);
  font-family: monospace;
}

/* ========================================
   22. ARTICLE DETAIL PAGE
   ======================================== */

.container-narrow {
  max-width: 800px;
}

.article-hero {
  background-color: var(--white-soft);
  padding: 40px 0 32px;
}

@media (min-width: 1024px) {
  .article-hero {
    padding: 56px 0 48px;
  }
}

.breadcrumbs {
  margin-bottom: 24px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  color: var(--grey-medium);
}

.breadcrumbs a {
  color: var(--grey-medium);
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: none;
}

.breadcrumbs a:hover {
  color: var(--orange-prime);
  border-bottom: none;
}

.breadcrumbs li[aria-current="page"] {
  color: var(--grey-dark);
  font-weight: 500;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.article-category {
  background-color: var(--orange-prime);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-date {
  color: var(--grey-medium);
}

.article-reading-time {
  color: var(--grey-medium);
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-reading-time svg {
  width: 16px;
  height: 16px;
  stroke: var(--grey-medium);
}

.article-hero h1 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .article-hero h1 {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .article-hero h1 {
    font-size: 48px;
  }
}

.article-perex {
  font-size: 18px;
  line-height: 1.6;
  color: var(--grey-medium);
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .article-perex {
    font-size: 20px;
    margin-bottom: 40px;
  }
}

.article-featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
}

@media (min-width: 1024px) {
  .article-featured-image {
    margin-bottom: 64px;
  }
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

@media (min-width: 1024px) {
  .article-content {
    padding: 0 0 80px;
  }
}

.article-body {
  margin-bottom: 48px;
}

.article-body h2 {
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 20px;
}

@media (min-width: 1024px) {
  .article-body h2 {
    font-size: 32px;
  }
}

.article-body h3 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 16px;
}

@media (min-width: 1024px) {
  .article-body h3 {
    font-size: 24px;
  }
}

.article-body p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

@media (min-width: 1024px) {
  .article-body p {
    font-size: 18px;
  }
}

.article-body ul,
.article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 12px;
}

@media (min-width: 1024px) {
  .article-body li {
    font-size: 18px;
  }
}

.article-body strong {
  font-weight: 600;
}

.article-body a {
  color: var(--orange-prime);
  border-bottom: 1px solid var(--orange-prime);
}

.article-body a:hover {
  color: var(--orange-hover);
  border-bottom-color: var(--orange-hover);
}

.highlight-box {
  background: linear-gradient(135deg, var(--orange-light) 0%, rgba(255, 113, 0, 0.05) 100%);
  border-left: 4px solid var(--orange-prime);
  padding: 24px;
  border-radius: 8px;
  margin: 32px 0;
}

.highlight-box p {
  font-size: 18px;
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .highlight-box p {
    font-size: 20px;
  }
}

.info-box {
  display: flex;
  gap: 16px;
  background-color: #EBF5FF;
  border: 1px solid var(--ocean-tech-blue);
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
}

.info-box-icon {
  width: 40px;
  height: 40px;
  background-color: var(--ocean-tech-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-box-icon svg {
  width: 22px;
  height: 22px;
  stroke: white;
}

.info-box-content h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.info-box-content p {
  font-size: 16px;
  margin-bottom: 12px;
}

.info-box-content p:last-child {
  margin-bottom: 0;
}

.article-cta-box {
  background: linear-gradient(135deg, var(--deep-graphite) 0%, #2A2A2D 100%);
  color: var(--text-on-dark);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin: 48px 0;
}

.article-cta-box h3 {
  color: var(--text-on-dark);
  font-size: 24px;
  margin-bottom: 12px;
}

@media (min-width: 1024px) {
  .article-cta-box h3 {
    font-size: 28px;
  }
}

.article-cta-box p {
  color: var(--cool-steel);
  font-size: 16px;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .article-cta-box p {
    font-size: 18px;
  }
}

.author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 32px;
  background-color: var(--white-soft);
  border-radius: 12px;
  border: 1px solid var(--grey-light);
}

.author-avatar {
  width: 64px;
  height: 64px;
  background-color: var(--orange-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-avatar svg {
  width: 32px;
  height: 32px;
  stroke: var(--orange-prime);
}

.author-info h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.author-info p {
  font-size: 15px;
  color: var(--grey-medium);
  margin-bottom: 0;
}

.section-related {
  background-color: var(--white-soft);
  padding: 64px 0;
}

@media (min-width: 1024px) {
  .section-related {
    padding: 80px 0;
  }
}

.section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 32px;
    margin-bottom: 48px;
  }
}

/* ========================================
   23. CALCULATOR DETAIL PAGE
   ======================================== */

.calculator-hero {
  background-color: var(--white-soft);
  padding: 40px 0 32px;
}

@media (min-width: 1024px) {
  .calculator-hero {
    padding: 56px 0 48px;
  }
}

.calculator-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.calculator-meta .calculator-icon {
  width: 48px;
  height: 48px;
  background-color: var(--orange-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calculator-meta .calculator-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--orange-prime);
}

.calculator-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--grey-medium);
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .calculator-description {
    font-size: 20px;
  }
}

.calculator-content {
  padding: 48px 0;
}

@media (min-width: 1024px) {
  .calculator-content {
    padding: 64px 0;
  }
}

.calculator-wrapper {
  background-color: white;
  border: 2px solid var(--grey-light);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 48px;
}

@media (min-width: 1024px) {
  .calculator-wrapper {
    padding: 56px;
  }
}

.calculator-placeholder {
  text-align: center;
  padding: 64px 32px;
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  background-color: var(--orange-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.placeholder-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--orange-prime);
}

.calculator-placeholder h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.calculator-placeholder p {
  font-size: 16px;
  color: var(--grey-medium);
  max-width: 500px;
  margin: 0 auto;
}

.section-calculator-info {
  background-color: var(--white-soft);
  padding: 64px 0;
}

@media (min-width: 1024px) {
  .section-calculator-info {
    padding: 80px 0;
  }
}

.info-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

@media (min-width: 1024px) {
  .info-content h2 {
    font-size: 32px;
  }
}

.info-content h3 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.info-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

@media (min-width: 1024px) {
  .info-content p {
    font-size: 18px;
  }
}

.info-content ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.info-content li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 12px;
}

@media (min-width: 1024px) {
  .info-content li {
    font-size: 18px;
  }
}

.related-article-cta {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 32px;
  background-color: white;
  border: 2px solid var(--grey-light);
  border-radius: 12px;
  margin-top: 48px;
  transition: all 0.3s ease;
}

.related-article-cta:hover {
  border-color: var(--orange-prime);
  box-shadow: var(--shadow-orange);
}

.related-article-cta .cta-icon {
  width: 56px;
  height: 56px;
  background-color: var(--orange-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.related-article-cta .cta-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--orange-prime);
}

.related-article-cta .cta-content h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.related-article-cta .cta-content p {
  font-size: 15px;
  color: var(--grey-medium);
  margin-bottom: 12px;
}

.related-article-cta .cta-content a {
  font-size: 15px;
  font-weight: 600;
}

/* ===========================================
   CALCULATOR DETAIL PAGE STYLES
   =========================================== */

.calculator-detail-hero {
  padding: 32px 0 24px;
  background-color: var(--white-soft);
}

.calculator-detail-hero .container {
  max-width: 1600px;
}

.detail-intro {
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.detail-intro h1 {
  margin: 24px 0 16px;
}

.intro-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--grey-dark);
  margin: 0;
}

/* Calculator Section - Completely isolated */
.calculator-section {
  background: #f1f5f9;
  padding: 0;
  margin: 0;
  min-height: 400px;
}

/* Kalkulačka je nyní plně izolovaná díky .site-wrapper scope */
#root {
  width: 100%;
  background: #f1f5f9;
}

/* Guides Section */
.guides-section {
  background: white;
  padding: 48px 0;
}

/* Calculator Guides */
.calculator-guides {
  margin-top: 0;
}

.guide-section {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.guide-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--grey-dark);
}

.guide-section p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.guide-steps {
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0;
}

.guide-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 48px;
  margin-bottom: 20px;
}

.guide-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background-color: var(--orange-prime);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.guide-section ul {
  padding-left: 24px;
}

.guide-section ul li {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Terminology */
.terminology {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.terminology dt {
  font-weight: 600;
  font-size: 16px;
  color: var(--orange-prime);
  margin-bottom: 6px;
}

.terminology dd {
  margin: 0;
  color: var(--grey-medium);
  line-height: 1.6;
  padding-left: 0;
}

/* Sidebar */
.calculator-sidebar {
  min-width: 0;
}

.sidebar-sticky {
  position: sticky;
  top: 100px;
}

.info-box,
.related-calculators,
.category-badge {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.info-box h3,
.related-calculators h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--grey-dark);
}

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

.info-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--grey-light);
}

.info-list li:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: var(--grey-medium);
  font-size: 14px;
}

.info-value {
  font-weight: 600;
  color: var(--grey-dark);
  font-size: 14px;
  text-align: right;
}

/* Related Calculators */
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-list li {
  margin-bottom: 12px;
}

.related-list li:last-child {
  margin-bottom: 0;
}

.related-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  color: var(--grey-dark);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.related-list a:hover {
  background-color: var(--orange-light);
  color: var(--orange-prime);
}

.related-list a svg {
  flex-shrink: 0;
  stroke: var(--orange-prime);
}

/* Category Badge */
.category-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
}

.badge-label {
  font-size: 14px;
  color: var(--grey-medium);
}

.badge-link {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--orange-light);
  color: var(--orange-prime);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.badge-link:hover {
  background-color: var(--orange-prime);
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .calculator-detail-hero {
    padding: 24px 0 16px;
  }

  .detail-intro h1 {
    font-size: 28px;
  }

  .intro-text {
    font-size: 16px;
  }

  .calculator-detail-content {
    padding: 32px 0;
  }

  .guide-section {
    padding: 24px 20px;
  }

  .guide-section h2 {
    font-size: 20px;
  }

  .guide-steps li {
    padding-left: 40px;
  }

  .sidebar-sticky {
    position: static;
  }

  .info-box,
  .related-calculators,
  .category-badge {
    padding: 20px;
  }
}
