/* ===== CSS Variables & Reset ===== */
:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --primary-dark: #0e2f44;
  --accent: #e67e22;
  --accent-light: #f39c12;
  --success: #27ae60;
  --danger: #e74c3c;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --bg: #f8f9fa;
  --bg-alt: #ecf0f1;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

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

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

.nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  background: var(--primary);
  color: var(--white);
}

.nav a i {
  font-size: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* ===== Hero Section ===== */
.hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

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

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-text h1 span {
  color: var(--accent-light);
}

.hero-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-feature i {
  color: var(--accent-light);
}

/* ===== Login Card ===== */
.login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  max-width: 420px;
  margin-left: auto;
}

.login-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.login-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(41, 128, 185, 0.1);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  width: 100%;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 82, 118, 0.3);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.login-divider {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 16px 0;
  position: relative;
}

.login-divider::before,
.login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--bg-alt);
}

.login-divider::before { left: 0; }
.login-divider::after { right: 0; }

/* ===== Page Header (Subpages) ===== */
.page-header {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--accent-light);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  background: rgba(41, 128, 185, 0.1);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.card-icon.blue {
  background: rgba(41, 128, 185, 0.1);
  color: var(--primary-light);
}

.card-icon.orange {
  background: rgba(230, 126, 34, 0.1);
  color: var(--accent);
}

.card-icon.green {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success);
}

.card-icon.red {
  background: rgba(231, 76, 60, 0.1);
  color: var(--danger);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.9rem;
}

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

/* ===== Content Blocks ===== */
.content-block {
  margin-bottom: 50px;
}

.content-block h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

.content-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 20px 0 10px;
}

.content-block p {
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.8;
}

.content-block ul {
  margin: 10px 0 20px 0;
}

.content-block ul li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--text);
}

.content-block ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--success);
  font-size: 0.85rem;
}

/* ===== Alert/Warning Box ===== */
.alert {
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.alert i {
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.alert-warning {
  background: rgba(231, 76, 60, 0.08);
  border-left: 4px solid var(--danger);
  color: #922b21;
}

.alert-info {
  background: rgba(41, 128, 185, 0.08);
  border-left: 4px solid var(--primary-light);
  color: var(--primary-dark);
}

.alert-success {
  background: rgba(39, 174, 96, 0.08);
  border-left: 4px solid var(--success);
  color: #1e7e34;
}

/* ===== Price Table ===== */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 20px 0 30px;
}

.price-table thead th {
  background: var(--primary);
  color: var(--white);
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--bg-alt);
  font-size: 0.95rem;
}

.price-table tbody tr:nth-child(even) {
  background: var(--bg);
}

.price-table tbody tr:hover {
  background: rgba(41, 128, 185, 0.05);
}

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

.price-tag {
  font-weight: 700;
  color: var(--primary);
}

/* ===== Legislation List ===== */
.legislation-list {
  display: grid;
  gap: 16px;
}

.legislation-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
  border-left: 4px solid var(--primary-light);
}

.legislation-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.legislation-item .law-badge {
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.legislation-item .law-badge.norm {
  background: var(--accent);
}

.legislation-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
}

.legislation-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== Revision Intervals Table ===== */
.intervals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.interval-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.interval-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.interval-card .interval-years {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.interval-card .interval-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.interval-card .interval-desc {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-info-cards {
  display: grid;
  gap: 20px;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-card i {
  font-size: 1.3rem;
  color: var(--primary-light);
  margin-top: 2px;
}

.contact-info-card h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-brand span {
  color: var(--accent-light);
}

.footer-desc {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-light);
  padding-left: 4px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

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

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===== GDPR Cookie Bar ===== */
.gdpr-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: var(--white);
  padding: 18px 0;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gdpr-bar.visible {
  transform: translateY(0);
}

.gdpr-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.gdpr-bar p {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.6;
  flex: 1;
}

.gdpr-bar p a {
  color: var(--accent-light);
  text-decoration: underline;
}

.gdpr-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.gdpr-btn {
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.gdpr-btn-accept {
  background: var(--success);
  color: var(--white);
}

.gdpr-btn-accept:hover {
  background: #2ecc71;
}

.gdpr-btn-settings {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.gdpr-btn-settings:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.stat-box {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-box .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-box .stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Services Overview (Home) ===== */
.services-overview {
  padding: 80px 0;
  background: var(--white);
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* ===== Form Messages ===== */
.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
  display: block;
}

.form-message.error {
  background: rgba(231, 76, 60, 0.1);
  color: var(--danger);
  border: 1px solid var(--danger);
  display: block;
}

/* ===== Checkbox ===== */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.checkbox-group label a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .login-card {
    margin: 0 auto;
    max-width: 100%;
  }

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

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    gap: 4px;
    overflow-y: auto;
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    padding: 12px 16px;
    font-size: 1rem;
  }

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

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gdpr-bar .container {
    flex-direction: column;
    text-align: center;
  }

  .price-table {
    font-size: 0.85rem;
  }

  .price-table thead th,
  .price-table tbody td {
    padding: 10px 12px;
  }

  .page-header h1 {
    font-size: 1.7rem;
  }

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

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }

  .login-card {
    padding: 24px;
  }

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

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

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

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Overlay ===== */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ===== GDPR Detail Modal ===== */
.gdpr-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gdpr-modal.active {
  display: flex;
}

.gdpr-modal-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  color: var(--text);
}

.gdpr-modal-content h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 18px;
}

.gdpr-modal-content p {
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.7;
}

.gdpr-modal-content .gdpr-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-alt);
}

.gdpr-modal-content .gdpr-option:last-child {
  border-bottom: none;
}

.gdpr-toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.gdpr-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.gdpr-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-alt);
  border-radius: 24px;
  transition: var(--transition);
}

.gdpr-toggle .slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.gdpr-toggle input:checked + .slider {
  background: var(--success);
}

.gdpr-toggle input:checked + .slider::before {
  transform: translateX(20px);
}

.gdpr-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.gdpr-modal-buttons .btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* ===== Map Page ===== */
.map-section {
  padding: 40px 0 80px;
}

.map-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.map-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-checkbox {
  cursor: pointer;
  user-select: none;
}

.filter-checkbox input[type="checkbox"] {
  display: none;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
}

.filter-badge.blue {
  background: rgba(41, 128, 185, 0.12);
  color: var(--primary-light);
  border-color: var(--primary-light);
}

.filter-badge.orange {
  background: rgba(230, 126, 34, 0.12);
  color: var(--accent);
  border-color: var(--accent);
}

.filter-badge.green {
  background: rgba(39, 174, 96, 0.12);
  color: var(--success);
  border-color: var(--success);
}

.filter-badge.red {
  background: rgba(231, 76, 60, 0.12);
  color: var(--danger);
  border-color: var(--danger);
}

.filter-checkbox input:not(:checked) + .filter-badge {
  opacity: 0.4;
  border-color: var(--bg-alt);
}

.filter-checkbox:hover .filter-badge {
  transform: translateY(-1px);
}

.map-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.map-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.9rem;
}

.map-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 2px solid var(--bg-alt);
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.map-search input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(41, 128, 185, 0.1);
}

.map-count {
  font-size: 0.9rem;
  color: var(--text-light);
  white-space: nowrap;
}

.map-count strong {
  color: var(--primary);
  font-weight: 700;
}

/* Map Container */
.map-container {
  width: 100%;
  height: 65vh;
  min-height: 400px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 1;
}

/* Leaflet custom marker */
.custom-marker {
  background: none !important;
  border: none !important;
}

/* Override MarkerCluster default colors to avoid confusion with profession colors */
.marker-cluster-small {
  background-color: rgba(26, 82, 118, 0.25);
}
.marker-cluster-small div {
  background-color: rgba(26, 82, 118, 0.5);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.marker-cluster-medium {
  background-color: rgba(26, 82, 118, 0.35);
}
.marker-cluster-medium div {
  background-color: rgba(26, 82, 118, 0.6);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.marker-cluster-large {
  background-color: rgba(26, 82, 118, 0.45);
}
.marker-cluster-large div {
  background-color: rgba(26, 82, 118, 0.7);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

/* Map tooltip */
.map-tooltip {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

/* Legend */
.map-legend {
  margin-top: 16px;
}

.legend-items {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.legend-pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.legend-pin.blue { background: #2980b9; }
.legend-pin.orange { background: #e67e22; }
.legend-pin.green { background: #27ae60; }
.legend-pin.red { background: #e74c3c; }

/* Detail Panel */
.technician-detail {
  margin-top: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

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

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
}

.detail-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.detail-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.detail-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.detail-body {
  padding: 24px;
}

.detail-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-alt);
}

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

.detail-row > i {
  color: var(--primary-light);
  font-size: 1rem;
  margin-top: 3px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.detail-row strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.detail-row span,
.detail-row a {
  font-size: 0.95rem;
  color: var(--text);
}

.detail-row a {
  color: var(--primary-light);
}

.detail-row a:hover {
  text-decoration: underline;
}

/* Equipment list in detail panel */
.zarizeni-list {
  margin-bottom: 8px;
}

.zarizeni-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-alt);
}

.zarizeni-item:last-child {
  border-bottom: 2px solid var(--bg-alt);
}

.zarizeni-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.zarizeni-info {
  flex: 1;
  min-width: 0;
}

.zarizeni-druh {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.zarizeni-cinnost {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.zarizeni-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
}

.zarizeni-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--primary-light);
  margin-top: 4px;
}

.zarizeni-link:hover {
  text-decoration: underline;
}

/* Map feedback section */
.map-feedback {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 36px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.map-feedback-icon {
  font-size: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.map-feedback-text {
  flex: 1;
}

.map-feedback-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.map-feedback-text p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Map Responsive */
@media (max-width: 768px) {
  .map-section {
    padding: 24px 0 50px;
  }

  .map-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .map-filters {
    justify-content: center;
  }

  .map-search {
    max-width: 100%;
  }

  .map-count {
    text-align: center;
  }

  .map-container {
    height: 50vh;
    min-height: 300px;
    border-radius: var(--radius-sm);
  }

  .map-feedback {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .detail-body {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .filter-badge {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .map-container {
    height: 45vh;
  }

  .legend-items {
    gap: 12px;
  }
}

/* ===== Stats / Zajímavosti Section ===== */
.stats-section {
  background: var(--white);
}

.stats-block {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
}

.stats-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.stats-block h3 i {
  margin-right: 8px;
  color: var(--primary-light);
}

.stats-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Stats cards (4 columns) */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
}

.stats-card.blue { border-top-color: var(--primary-light); }
.stats-card.orange { border-top-color: var(--accent); }
.stats-card.green { border-top-color: var(--success); }
.stats-card.red { border-top-color: var(--danger); }

.stats-card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.stats-card.blue .stats-card-icon { color: var(--primary-light); }
.stats-card.orange .stats-card-icon { color: var(--accent); }
.stats-card.green .stats-card-icon { color: var(--success); }
.stats-card.red .stats-card-icon { color: var(--danger); }

.stats-card-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stats-card-label {
  font-size: 0.82rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  margin-bottom: 12px;
}

.stats-card-bar {
  height: 4px;
  background: var(--bg-alt);
  border-radius: 2px;
  overflow: hidden;
}

.stats-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s ease;
}

.stats-bar-fill.blue { background: var(--primary-light); }
.stats-bar-fill.orange { background: var(--accent); }
.stats-bar-fill.green { background: var(--success); }
.stats-bar-fill.red { background: var(--danger); }

/* Combos */
.stats-combos {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-combo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  box-shadow: var(--shadow);
}

.stats-combo-row.highlight {
  border: 2px solid var(--accent-light);
  background: rgba(243, 156, 18, 0.04);
}

.stats-combo-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.combo-plus {
  font-weight: 700;
  color: var(--text-light);
  font-size: 0.9rem;
}

.stats-combo-count {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  margin-left: 16px;
  font-size: 0.95rem;
}

.stats-combo-note {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Stats table */
.stats-table-wrap {
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.stats-table th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-table th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.stats-table th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.stats-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--bg-alt);
}

.stats-table tbody tr:hover {
  background: rgba(41, 128, 185, 0.04);
}

.stats-table tfoot td {
  padding: 12px 16px;
  background: var(--bg-alt);
  font-weight: 700;
  border-bottom: none;
}

.stats-table .filter-badge {
  font-size: 0.8rem;
}

/* Region bar in table */
.stats-table-region th:last-child,
.stats-table-region td:last-child {
  width: 40%;
}

.stats-region-bar {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
  min-width: 60px;
}

/* Stats tabs */
.stats-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 2px solid var(--bg-alt);
  padding-bottom: 0;
}

.stats-tab {
  padding: 10px 20px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.stats-tab:hover {
  color: var(--primary);
}

.stats-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary-light);
}

.stats-tab i {
  margin-right: 4px;
}

.stats-tab-content {
  display: none;
  padding-top: 16px;
}

.stats-tab-content.active {
  display: block;
}

/* Stats responsive */
@media (max-width: 768px) {
  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-block {
    padding: 20px 16px;
  }

  .stats-combo-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .stats-combo-count {
    margin-left: 0;
  }

  .stats-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .stats-tab {
    padding: 8px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .stats-table-region th:last-child,
  .stats-table-region td:last-child {
    width: 30%;
  }

  .stats-card-number {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stats-card {
    padding: 16px 10px;
  }

  .stats-card-number {
    font-size: 1.3rem;
  }

  .stats-table {
    font-size: 0.85rem;
  }

  .stats-table th,
  .stats-table td {
    padding: 8px 10px;
  }
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--white);
  padding: 32px 0;
}

.cta-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.cta-banner p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
}

.cta-banner .btn-accent {
  background: var(--white);
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 1.4rem;
  padding: 20px 48px;
}

.cta-banner .btn-accent:hover {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Quote Modal ===== */
.quote-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.quote-modal.active {
  display: flex;
}

.quote-modal-content {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--text);
}

.quote-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--bg-alt);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
  border-radius: var(--radius) var(--radius) 0 0;
}

.quote-modal-header h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quote-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.quote-modal-close:hover {
  background: var(--danger);
  color: var(--white);
}

.quote-modal-content form {
  padding: 8px 28px 28px;
}

.quote-form-section {
  padding-top: 20px;
  margin-top: 12px;
  border-top: 1px solid var(--bg-alt);
}

.quote-form-section:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 12px;
}

.quote-form-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-form-section h4 i {
  color: var(--accent);
  font-size: 0.9rem;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

/* ===== CTA Banner & Quote Modal Responsive ===== */
@media (max-width: 768px) {
  .cta-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner h2 {
    font-size: 1.3rem;
  }

  .quote-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .quote-modal-content {
    max-height: 95vh;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .quote-modal-header {
    padding: 18px 20px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .quote-modal-header h3 {
    font-size: 1.05rem;
  }

  .quote-modal-content form {
    padding: 8px 20px 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
