/* ==========================================================================
   ITA JEZIKOVNA ŠOLA — MODERN DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  --primary: #6f2aa8;
  --primary-hover: #5c1e90;
  --primary-dark: #3e1263;
  --primary-soft: #f4ecfa;
  --primary-glow: rgba(111, 42, 168, 0.18);

  --gold: #d97706;
  --gold-light: #fef3c7;
  --gold-dark: #b45309;

  --dark-bg: #191220;
  --dark-card: #241b2e;

  --ink: #201a26;
  --muted: #655d6e;
  --line: #e6dfeb;
  --white: #ffffff;
  --cream: #faf7fc;

  /* Vzdevki, ki jih uporabljajo posamezne strani */
  --text: var(--ink);
  --bg-alt: var(--cream);
  --brand-purple: var(--primary);
  --brand-teal: #0f766e;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 4px 12px rgba(58, 25, 75, 0.04);
  --shadow-md: 0 12px 30px rgba(58, 25, 75, 0.08);
  --shadow-lg: 0 20px 50px rgba(58, 25, 75, 0.14);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Container */
.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* Typography */
h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

h3 {
  font-size: 1.4rem;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.eyebrow.gold-eyebrow {
  color: var(--gold);
}

.eyebrow.light-eyebrow {
  color: #d8b4fe;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  text-align: center;
}

.text-center {
  text-align: center;
}

.section-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0.5rem auto 0;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  outline: none;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(111, 42, 168, 0.3);
}

.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-secondary:hover {
  background: #ebd8f7;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.25);
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--primary-dark);
  transform: translateX(4px);
}

.w-full {
  width: 100%;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #320c54, var(--primary));
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bar-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* Top Bar Contact Info */
.top-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-info-item {
  font-weight: 600;
  color: var(--muted);
}

.top-info-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.top-info-link:hover {
  color: var(--primary);
}

.top-bar-sep {
  margin: 0 0.4rem;
  opacity: 0.3;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(111, 42, 168, 0.08);
  transition: var(--transition);
}

.nav-container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand Logo */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 40px;
  max-height: 40px;
  max-width: 215px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .brand-logo-img {
  height: 60px;
  max-height: 60px;
  max-width: 320px;
}

.brand:hover .brand-logo-img {
  transform: scale(1.04);
}

.footer-logo-img {
  height: 50px;
  max-height: 50px;
  max-width: 270px;
}

/* Desktop Nav Links */
.desktop-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 1.5rem;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.89rem;
  font-weight: 650;
  color: var(--ink);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  box-shadow: var(--shadow-md);
}

.drawer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.5rem;
}

.drawer-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--cream);
}

.drawer-link:hover {
  color: var(--primary);
}

/* HERO SECTION */
.hero-section {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.grid-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 750;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(111, 42, 168, 0.15);
}

.highlight-purple {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 1.5rem 0 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 35px;
  background: var(--line);
}

/* Hero Visuals */
.hero-image-wrapper {
  position: relative;
}

.hero-img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 4px solid var(--white);
}

.hero-glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: float 4s ease-in-out infinite;
}

.floating-card-1 {
  bottom: -20px;
  left: -20px;
}

.floating-card-2 {
  top: 30px;
  right: -20px;
  animation-delay: 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.glass-icon {
  font-size: 1.5rem;
}

.glass-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}

.glass-text span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* HUB SECTION ("Kaj potrebujete?") */
.hub-section {
  padding: 5rem 0;
  background: var(--white);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.hub-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hub-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.purple-gradient {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.gold-gradient {
  background: linear-gradient(135deg, #b45309, #d97706);
}

.dark-gradient {
  background: linear-gradient(135deg, #111827, #1f2937);
}

.hub-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hub-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hub-card h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.hub-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.hub-link {
  margin-top: auto;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
}

/* ABOUT SECTION */
.about-section {
  padding: 6rem 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid-about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

.grid-about.single-col {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

.lead-p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}

.about-story-col p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.quote-box {
  background: var(--white);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.quote-box p {
  font-style: italic;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quote-box .author {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 800;
}

.about-points-col h3 {
  margin-bottom: 1.5rem;
}

.points-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* WHY ITA SECTION (standalone, e.g. Jezikovna šola page) */
.why-ita-section {
  padding: 6rem 0;
  background: var(--white);
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.why-ita-section.gold-theme .point-card {
  border-color: #fde68a;
}

.why-ita-section.gold-theme .point-icon {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.point-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.point-card:hover {
  transform: translateY(-2px);
  border-color: #c0a0e0;
}

.point-icon {
  font-size: 1.8rem;
  background: var(--primary-soft);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
}

.point-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.point-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* PROGRAMI SECTION */
.programs-section {
  padding: 6rem 0;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #d1b4ee;
}

.card-img-holder,
.prog-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img-holder img,
.prog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.program-card:hover .card-img-holder img,
.program-card:hover .prog-image img {
  transform: scale(1.05);
}

.card-badge,
.prog-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-body,
.prog-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.prog-meta,
.card-header-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.card-emoji {
  font-size: 1.6rem;
}

.program-features,
.prog-features {
  list-style: none;
  margin: 1.2rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.program-features li,
.prog-features li {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.card-footer,
.prog-footer {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.card-footer .btn,
.prog-footer .btn {
  font-size: 0.82rem;
  padding: 0.55rem 0.9rem;
  white-space: nowrap;
}

.lang-flags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-flags img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  vertical-align: middle;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-flags img:hover {
  transform: translateY(-2px) scale(1.15);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

/* SERVICES DETAILS SECTIONS (GOLD & DARK THEMES) */
.service-detail-section {
  padding: 5.5rem 0;
}

.gold-theme {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
}

.dark-theme {
  background: var(--dark-bg);
  color: var(--white);
}

.dark-theme h2 {
  color: var(--white);
}

.dark-theme p {
  color: rgba(255, 255, 255, 0.8);
}

.grid-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-detail.reverse {
  grid-template-columns: 1fr 1fr;
}

.media-frame {
  position: relative;
}

.media-frame img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.floating-badge-gold {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--white);
  color: var(--gold-dark);
  font-weight: 800;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.floating-badge-dark {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--dark-card);
  color: #d8b4fe;
  font-weight: 800;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.chk-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.chk-icon {
  background: var(--gold);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.price-hint {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.price-hint.light {
  color: rgba(255, 255, 255, 0.7);
}

.services-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.mini-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.mini-card h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.mini-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

/* URNIK IN CENIK TABBED MODULE */
.schedule-pricing-section {
  padding: 6rem 0;
  background: var(--cream);
}

.main-tab-switcher {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tab-btn {
  background: var(--white);
  border: 2px solid var(--line);
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Schedule Table */
.schedule-filter-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.loc-toggle {
  display: inline-flex;
  background: var(--white);
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.loc-btn {
  background: transparent;
  border: none;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.loc-btn.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.table-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.schedule-table th,
.schedule-table td {
  padding: 1.2rem 1.5rem;
}

.schedule-table th {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schedule-table tr:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.schedule-table td {
  font-size: 0.95rem;
}

.badge-spot {
  display: inline-block;
  background: #d1fae5;
  color: #065f46;
  font-weight: 750;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* Pricing & Calculator Grid */
.grid-pricing-calc {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #ffffff 0%, var(--primary-soft) 100%);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.card-type {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--muted);
}

.price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0.8rem 0;
}

.price-amount span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.price-features {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Calculator Box */
.calc-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.calc-box h3 {
  margin-bottom: 0.5rem;
}

.calc-box p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 750;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 0.95rem;
  color: var(--ink);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Form Validation Error Styles */
.form-group.has-error label {
  color: #dc2626 !important;
}

.form-control.is-invalid {
  border: 2px solid #ef4444 !important;
  background-color: #fef2f2 !important;
  color: #991b1b !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25) !important;
  animation: shakeError 0.35s ease-in-out;
}

@keyframes shakeError {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}

.field-error-msg {
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.83rem !important;
  color: #dc2626 !important;
  font-weight: 750 !important;
  margin-top: 0.45rem !important;
  background: #fff5f5;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border-left: 3px solid #ef4444;
}

.form-error-banner {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-left: 4px solid #ef4444;
  color: #991b1b;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
  animation: shakeError 0.35s ease-in-out;
}

.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.calc-result-box {
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.res-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.res-row.total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  border-top: 1px solid rgba(111, 42, 168, 0.15);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.calc-note {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

/* BLOG SECTION */
.blog-section {
  padding: 6rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.blog-img {
  position: relative;
  height: 180px;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-cat {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.blog-content p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.blog-content .btn-text {
  margin-top: auto;
}

/* CONTACT & FORM SECTION */
.contact-section {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.grid-contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.location-tabs {
  display: flex;
  gap: 0.6rem;
  margin: 1.5rem 0 1.2rem;
}

.loc-tab-btn {
  background: var(--white);
  border: 1.5px solid var(--line);
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.loc-tab-btn.active {
  background: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
}

.loc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.loc-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
}

.loc-card p {
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.map-preview-card {
  margin-top: 1.5rem;
  background: var(--white);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.map-placeholder span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

/* Contact Form Card */
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.form-card h3 {
  margin-bottom: 0.4rem;
}

.form-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.full-width {
  grid-column: 1 / -1;
}

.form-privacy-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
}

.form-success-box {
  text-align: center;
  padding: 2rem 1rem;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success-box h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.form-success-box p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* SITE FOOTER */
.site-footer {
  background: #150d1c;
  color: #d0c7d8;
  padding: 5rem 0 2.5rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand-title {
  color: var(--white);
}

.footer-desc {
  font-size: 0.88rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 12, 30, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: var(--transition);
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-card.large {
  max-width: 800px;
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: var(--cream);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--line);
}

.modal-info-box {
  background: var(--primary-soft);
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-info-box-header {
  font-weight: 750;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.modal-info-box-text {
  font-size: 0.92rem;
  color: var(--ink-light);
  line-height: 1.45;
}

.modal-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.form-control.highlight-field {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hidden {
  display: none !important;
}

/* RESPONSIVE BREAKPOINTS & MOBILE OPTIMIZATIONS */
@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--cream);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 12px;
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
  }

  .mobile-toggle:hover {
    background: var(--primary-soft);
  }

  .nav-container {
    height: 72px;
    padding: 0 1.2rem;
  }

  .brand-logo-img {
    height: 52px;
  }

  .grid-hero,
  .grid-about,
  .grid-detail,
  .grid-detail.reverse,
  .grid-pricing-calc,
  .grid-contact {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .points-grid {
    grid-template-columns: 1fr;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }

  .floating-card-1,
  .floating-card-2 {
    display: none;
  }
}

@media (max-width: 640px) {

  /* Announcement bar */
  .announcement-bar {
    font-size: 0.78rem;
    padding: 0.45rem 0;
  }

  .bar-content {
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
  }

  .bar-info {
    font-size: 0.78rem;
  }

  .bar-info .separator {
    display: none;
  }

  /* Header alignment for phones */
  .site-header {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  }

  .nav-container {
    height: 62px;
    padding: 0 0.85rem;
    gap: 0.5rem;
  }

  .brand {
    gap: 0;
  }

  .brand-logo-img {
    height: 40px;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .header-actions .btn-primary.btn-sm {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
    border-radius: 10px;
    white-space: nowrap;
  }

  .header-actions .btn-primary.btn-sm svg {
    display: none;
    /* Hide icon on narrow phones to keep header compact */
  }

  .mobile-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  /* Hero section mobile adjustments */
  .hero-section {
    padding: 2.2rem 0 3rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Typography scale on phones */
  h1 {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .lead-p {
    font-size: 0.98rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Cards & Layouts */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .services-mini-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 1.4rem 1.2rem;
    border-radius: 20px;
  }

  .location-tabs {
    width: 100%;
    display: flex;
  }

  .loc-tab-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  /* Modals on small phones */
  .modal-card {
    padding: 1.5rem 1.2rem;
    border-radius: 20px;
    max-height: 88vh;
  }
}

/* -------------------------------------------------------------------------- */
/* FILE ATTACHMENT DRAG & DROP STYLING                                       */
/* -------------------------------------------------------------------------- */
.file-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.optional-tag {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}

.file-input-hidden {
  display: none;
}

.file-upload-box {
  border: 2px dashed rgba(111, 42, 168, 0.25);
  background: var(--surface);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload-box:hover,
.file-upload-box.drag-over {
  border-color: var(--primary);
  background: rgba(111, 42, 168, 0.04);
}

.file-upload-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 550;
}

.file-upload-content svg {
  color: var(--primary);
}

.file-selected-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(111, 42, 168, 0.08);
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.btn-remove-file {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink);
  transition: background 0.2s;
  margin-left: 0.4rem;
}

.btn-remove-file:hover {
  background: var(--secondary);
  color: var(--white);
}

.highlight-field {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 12px;
  animation: pulseHighlight 1.5s ease;
}

@keyframes pulseHighlight {
  0% {
    outline-color: var(--primary);
  }

  50% {
    outline-color: var(--secondary);
  }

  100% {
    outline-color: transparent;
  }
}

/* -------------------------------------------------------------------------- */
/* LEGAL & GDPR MODAL STYLING                                                */
/* -------------------------------------------------------------------------- */
.legal-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(111, 42, 168, 0.1);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}

.legal-tab-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.legal-tab-btn:hover {
  color: var(--primary);
  background: rgba(111, 42, 168, 0.05);
}

.legal-tab-btn.active {
  color: var(--white);
  background: var(--primary);
}

.legal-modal-content {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.legal-section {
  margin-bottom: 1.4rem;
}

.legal-section h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.legal-section p,
.legal-section ul {
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.6;
}

.legal-section ul {
  margin-left: 1.2rem;
  margin-top: 0.3rem;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.legal-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.legal-link:hover {
  color: var(--white);
}

/* -------------------------------------------------------------------------- */
/* SCHEDULE (URNIK) STYLING                                                   */
/* -------------------------------------------------------------------------- */
.schedule-section {
  padding: 5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 6px 12px -6px rgba(0, 0, 0, 0.05);
}

.schedule-container {
  width: 100%;
}

.schedule-container.hidden {
  display: none !important;
}

.schedule-table-wrapper {
  margin-top: 2rem;
  background: var(--white);
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.schedule-badge-row {
  margin-bottom: 1.2rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.schedule-table th {
  background: rgba(111, 42, 168, 0.05);
  color: var(--primary-dark);
  font-weight: 800;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid rgba(111, 42, 168, 0.12);
  white-space: nowrap;
}

.schedule-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.sub-chip {
  display: inline-block;
  width: 100%;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  white-space: normal;
  word-break: break-word;
}

.sub-chip.purple {
  background: rgba(111, 42, 168, 0.12);
  color: var(--primary-dark);
}

.sub-chip.blue {
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
}

.sub-chip.green {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.sub-chip.orange {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.sub-chip.gold {
  background: rgba(234, 179, 8, 0.15);
  color: #a16207;
}

.sub-chip.teal {
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
}

.sub-chip.red {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.sub-chip.dark {
  background: rgba(30, 41, 59, 0.12);
  color: #1e293b;
}

/* -------------------------------------------------------------------------- */
/* PRICING (CENIK) PAGE STYLING                                              */
/* -------------------------------------------------------------------------- */
.pricing-section {
  padding: 4rem 0 6rem;
  background: var(--bg-alt);
}

.pricing-list {
  display: flex; 
  flex-direction: column; 
  gap: 3rem;
}

.pricing-unit-title {
  font-size: 1.6rem; 
  font-weight: 800; 
  color: var(--primary-dark); 
  margin-bottom: 1.5rem; 
  text-align: center;
}

.cenik-content {
  display: flex; 
  flex-direction: column; 
  gap: 2rem;
}

.cenik-table-card {
  background: var(--bg-alt); 
  border-radius: 20px; 
  padding: 2rem; 
  border: 1px solid var(--line); 
  box-shadow: var(--shadow-sm);
}

.cenik-card-title {
  font-size: 1.3rem; 
  font-weight: 800; 
  color: var(--primary-dark); 
  margin-bottom: 0.5rem;
}

.cenik-card-subtitle {
  font-size: 0.9rem; 
  color: var(--muted); 
  margin-bottom: 1.25rem;
}

.table-responsive {
  overflow-x: auto;
}

.schedule-table {
  width: 100%; 
  border-collapse: collapse; 
  background: var(--white); 
  border-radius: 12px; 
  overflow: hidden; 
  text-align: left;
}

.schedule-table thead tr {
  background: rgba(111, 42, 168, 0.08);
}

.schedule-table th {
  padding: 0.85rem 1rem; 
  border-bottom: 1px solid var(--line); 
  color: var(--primary-dark);
}

.schedule-table tbody tr {
  border-bottom: 1px solid var(--line);
}

.schedule-table tbody td {
  padding: 0.85rem 1rem;
}

.schedule-table tbody td:first-child {
  font-weight: 700;
}

.schedule-table tbody td:last-child {
  color: var(--primary); 
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.price-card.highlight-card {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 36px rgba(111, 42, 168, 0.12);
  position: relative;
}

.price-category {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 0.4rem;
  display: block;
}


.price-card-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.price-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-list li {
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(111, 42, 168, 0.12);
}

.price-title {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--primary-dark);
}

.price-details {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.price-installments-badge {
  background: rgba(111, 42, 168, 0.06);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--primary-dark);
  margin-top: auto;
  margin-bottom: 1.5rem;
  text-align: center;
}

.price-card-footer {
  margin-top: auto;
}

.discounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.discount-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.discount-box:hover {
  transform: translateY(-4px);
  border-color: #d1b4ee;
  box-shadow: var(--shadow-md);
}

.disc-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.discount-box h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.discount-box p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.sep {
  opacity: 0.4;
  font-size: 0.8rem;
}

/* -------------------------------------------------------------------------- */
/* WEB-NATIVE RESPONSIVE SCHEDULE GRID STYLING                                */
/* -------------------------------------------------------------------------- */
.urnik-loc-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.urnik-loc-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.urnik-loc-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(111, 42, 168, 0.25);
}

.urnik-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .urnik-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .urnik-grid>* {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media (min-width: 1024px) {
  .urnik-grid>* {
    flex: 0 0 calc(33.333% - 0.67rem);
  }
}

.urnik-day-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.urnik-day-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #d1b4ee;
}

.urnik-day-header {
  background: rgba(111, 42, 168, 0.06);
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(111, 42, 168, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.urnik-day-title {
  font-weight: 850;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.urnik-day-tag {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--white);
  color: var(--primary);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(111, 42, 168, 0.15);
}

.urnik-day-body {
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.urnik-slot {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: var(--bg-alt);
  font-size: 0.78rem;
  text-align: center;
}

.urnik-slot-time {
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--text);
  width: 100%;
}

.urnik-day-tag {
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--primary);
  background: rgba(111, 42, 168, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.urnik-day-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.urnik-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.65rem 0.85rem;
  background: var(--bg-alt);
  border-radius: 12px;
  gap: 0.35rem;
}

.urnik-slot-time {
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--muted);
  white-space: nowrap;
}

.urnik-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

/* -------------------------------------------------------------------------- */
/* UNIFIED DROPDOWN SUBMENU STYLING                                           */
/* -------------------------------------------------------------------------- */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chevron-icon {
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(111, 42, 168, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(21, 13, 28, 0.12);
  padding: 0.6rem;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(111, 42, 168, 0.06);
}

.dropdown-item .item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.dropdown-item .item-desc {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.1rem;
}

.dropdown-divider {
  height: 1px;
  background: rgba(111, 42, 168, 0.08);
  margin: 0.35rem 0;
}

/* Mobile drawer sublink styling */
.drawer-group {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(111, 42, 168, 0.06);
  padding-bottom: 0.4rem;
  margin-bottom: 0.4rem;
}

.drawer-link.main-unit {
  font-weight: 750;
  color: var(--primary-dark);
}

.drawer-sublinks {
  display: flex;
  flex-direction: column;
  padding-left: 0.8rem;
  gap: 0.25rem;
}

.drawer-sublink {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.drawer-sublink:hover {
  color: var(--primary);
}

/* ==========================================================================
   PROGRAMI — VRSTICA S KLJUČNIMI INFORMACIJAMI
   ========================================================================== */
.program-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.program-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   CENIK — OPOMBA NAD TABELO
   ========================================================================== */
.cenik-note {
  max-width: 720px;
  margin: 1.5rem auto 2.5rem;
  background: var(--primary-soft);
  border: 1px solid rgba(111, 42, 168, 0.16);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ==========================================================================
   POGOSTA VPRAŠANJA (FAQ)
   ========================================================================== */
.faq-section {
  padding: 4rem 0 6rem;
  background: var(--white);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  background: var(--white);
  border-color: rgba(111, 42, 168, 0.3);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.5rem;
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-toggle-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq-toggle-icon svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-toggle-icon {
  background: var(--primary);
  color: var(--white);
}

.faq-item[open] .faq-toggle-icon svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.4rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-answer p+p {
  margin-top: 0.7rem;
}

.faq-answer ul {
  list-style: none;
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.faq-answer li {
  font-weight: 700;
  color: var(--ink);
}

.faq-cta {
  max-width: 820px;
  margin: 2.5rem auto 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.faq-cta h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.faq-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.4rem;
}

.faq-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ==========================================================================
   KONTAKT — LOKACIJE, ZEMLJEVIDA IN OSNOVNI PODATKI
   ========================================================================== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.contact-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 750;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.contact-quick-link:hover {
  color: var(--primary);
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.map-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-card-head {
  padding: 1rem 1.25rem;
  font-weight: 750;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--line);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

/* Osnovni podatki o podjetju v nogi */
.footer-company {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-company h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.footer-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-company-grid strong {
  color: var(--white);
  font-weight: 750;
}

.footer-company-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   O NAS — VSEBINSKI BLOKI
   ========================================================================== */
.about-story {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text);
  line-height: 1.8;
}

.about-story p+p {
  margin-top: 1rem;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.about-value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.about-value-card h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.about-value-card p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

.about-promise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.about-promise-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1rem;
  color: var(--text);
}

.about-promise-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
}

.about-quote {
  max-width: 820px;
  margin: 3.5rem auto 0;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .faq-item summary {
    font-size: 0.98rem;
    padding: 1rem 1.1rem;
  }

  .faq-answer {
    padding: 0 1.1rem 1.2rem;
  }

  .program-meta-chip {
    font-size: 0.82rem;
    padding: 0.45rem 0.9rem;
  }

  .about-quote {
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   DOSTOPNOST — SKRITI NASLOVI ZA BRALNIKE ZASLONA
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   NASLOVNICA — PASICE ENOT
   ========================================================================== */
.portal-hero-section {
  padding: 2.5rem 0 4rem;
}

.portal-banner-list {
  max-width: 1140px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.portal-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.5rem 4rem;
  min-height: 220px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.portal-banner-card:hover {
  transform: translateY(-4px);
}

.portal-banner-text {
  max-width: 650px;
  z-index: 2;
}

.portal-banner-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.portal-banner-card h2 {
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.portal-banner-card p {
  font-size: clamp(0.98rem, 2.6vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.6;
}

.portal-banner-cta {
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.portal-banner-card.unit-jezikovna {
  background: linear-gradient(135deg, rgba(111, 42, 168, 0.94), rgba(47, 14, 76, 0.96)),
    url('./assets/images/hero-learning.jpg') center/cover no-repeat;
  box-shadow: 0 16px 40px rgba(111, 42, 168, 0.3);
}

.portal-banner-card.unit-jezikovna .portal-banner-cta {
  color: var(--primary-dark);
}

.portal-banner-card.unit-instrukcije {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.94), rgba(120, 53, 15, 0.96)),
    url('./assets/images/tutoring.jpg') center/cover no-repeat;
  box-shadow: 0 16px 40px rgba(217, 119, 6, 0.3);
}

.portal-banner-card.unit-instrukcije .portal-banner-cta {
  color: #78350f;
}

.portal-banner-card.unit-prevajanje {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.94), rgba(17, 94, 89, 0.96)),
    url('./assets/images/translations.jpg') center/cover no-repeat;
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.3);
}

.portal-banner-card.unit-prevajanje .portal-banner-cta {
  color: #115e59;
}

.portal-strapline {
  max-width: 820px;
  margin-top: 3.5rem;
}

.portal-strapline p {
  font-size: clamp(1.02rem, 3vw, 1.2rem);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  br.break-desktop {
    display: none;
  }
}

.portal-seo-block {
  max-width: 1140px;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.portal-seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.portal-seo-grid h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

@media (max-width: 820px) {
  .portal-banner-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.25rem 1.6rem;
    gap: 1.5rem;
    min-height: 0;
    border-radius: 22px;
  }

  .portal-banner-cta {
    width: 100%;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }

  .portal-banner-list {
    gap: 1.25rem;
  }

  .portal-hero-section {
    padding: 1.75rem 0 3rem;
  }

  .portal-strapline {
    margin-top: 2.5rem;
  }

  .portal-seo-block {
    margin-top: 3rem;
  }
}

/* ==========================================================================
   MOBILNE IZBOLJŠAVE (splošno)
   ========================================================================== */
/* "clip" namesto "hidden": hidden bi iz telesa naredil drsni zabojnik
   in bi lepljiva glava (position: sticky) nehala delovati. */
html,
body {
  overflow-x: clip;
}

/* Vsebina, ki je ni mogoče preliti, naj se raje prelomi kot razširi strani */
p,
li,
h1,
h2,
h3,
h4,
a,
td,
th,
summary {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Zgornja vrstica s kontakti */
.top-bar-container {
  flex-wrap: wrap;
}

.top-bar-right {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .top-bar {
    font-size: 0.75rem;
  }

  .top-bar-left {
    display: none;
  }

  .top-bar-container {
    justify-content: center;
  }

  .top-bar-right {
    justify-content: center;
    gap: 0.15rem;
  }
}

@media (max-width: 400px) {
  .top-bar-sep {
    display: none;
  }

  .top-bar-right {
    flex-direction: column;
    gap: 0.1rem;
    text-align: center;
  }
}

@media (max-width: 820px) {

  /* Odmiki sekcij */
  .contact-section {
    padding: 3rem 0;
  }

  .faq-section {
    padding: 2.5rem 0 3.5rem;
  }

  .site-footer {
    padding: 3rem 0 2rem;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  /* Kartice programov — informacijske značke */
  .program-meta-row {
    gap: 0.45rem;
    margin-top: 1.1rem;
  }

  /* Kontakt */
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin: 1.25rem 0;
  }

  .map-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
  }

  .map-card iframe {
    height: 220px;
  }

  .contact-quick-link {
    font-size: 1rem;
  }

  /* Pogosta vprašanja */
  .faq-cta {
    padding: 1.75rem 1.25rem;
    border-radius: 18px;
  }

  .faq-cta h3 {
    font-size: 1.25rem;
  }

  .faq-cta-actions {
    flex-direction: column;
  }

  .faq-cta-actions .btn {
    width: 100%;
  }

  /* Cenik */
  .cenik-note {
    margin: 1.1rem auto 1.75rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.95rem;
  }

  /* Noga */
  .footer-top-grid {
    padding-bottom: 2.5rem;
    gap: 2rem;
  }

  .footer-company {
    padding: 2rem 0;
  }

  .footer-company-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .footer-desc {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .footer-company-grid {
    grid-template-columns: 1fr;
  }
}

/* Modalna okna na telefonih */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0.75rem;
    align-items: flex-start;
  }

  .modal-card {
    padding-top: 3.25rem;
    width: 100%;
  }

  .modal-close {
    top: 0.85rem;
    right: 0.85rem;
  }

  .legal-tabs {
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0.6rem;
  }

  .legal-tab-btn {
    width: 100%;
    font-size: 0.88rem;
    padding: 0.55rem 0.9rem;
  }

  .legal-modal-content {
    max-height: 68vh;
  }

  .modal-card h2 {
    font-size: 1.35rem;
  }
}

/* Dotikljive tarče — minimalna višina za prste */
@media (hover: none) and (pointer: coarse) {

  .btn,
  .loc-tab-btn,
  .urnik-loc-btn,
  .faq-item summary {
    min-height: 44px;
  }
}

/* Razmik pod naslovom v pravnih zavihkih */
.legal-tab-content h2 {
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   CENIK — TABELE SE NA TELEFONIH PREOBLIKUJEJO V KARTICE
   ========================================================================== */
@media (max-width: 700px) {
  .schedule-table thead {
    display: none;
  }

  .schedule-table {
    background: transparent;
  }

  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr {
    display: block;
    width: 100%;
  }

  .schedule-table tr {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 0.85rem;
    overflow: hidden;
  }

  .schedule-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    text-align: right;
    padding: 0.65rem 0.9rem !important;
    border-bottom: 1px solid var(--line);
  }

  .schedule-table tr td:last-child {
    border-bottom: 0;
  }

  .schedule-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    max-width: 45%;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
  }
}

/* Gumb + opomba pod opisom storitve na telefonih */
@media (max-width: 820px) {
  .detail-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .detail-actions .btn {
    width: 100%;
  }

  .price-hint {
    text-align: center;
  }
}

/* Dodatne prilagoditve za tablice in ozke zaslone */
@media (max-width: 992px) {
  .services-mini-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 380px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }

  .container {
    width: calc(100% - 28px);
  }
}

/* ==========================================================================
   GUMBI — VSEBINA VEDNO CENTRIRANA (tudi ko se besedilo prelomi v dve vrstici)
   ========================================================================== */
.loc-tab-btn,
.urnik-loc-btn,
.portal-banner-cta,
.legal-tab-btn,
.filter-btn {
  text-align: center;
}

.loc-tab-btn,
.urnik-loc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ==========================================================================
   LEPLJIVA GLAVA
   Glava ima position:sticky, a je bila zavita v #header-container, ki je visok
   natanko toliko kot glava — zato se ni nikoli prijela. display:contents
   odstrani ovoj iz postavitve, da sticky deluje glede na telo strani.
   ========================================================================== */
#header-container {
  display: contents;
}

/* Zasidrane povezave (#urnik, #cenik, #prijava …) naj se ne skrijejo pod glavo */
section[id],
[id="prijava"],
[id="programi"] {
  scroll-margin-top: 84px;
}

@media (max-width: 640px) {

  section[id],
  [id="prijava"],
  [id="programi"] {
    scroll-margin-top: 70px;
  }
}
.info-kartica-vsebina ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.info-kartica-vsebina ul li { position: relative; padding-left: 1.5rem; }
.info-kartica-vsebina ul li::before { content: '✓'; position: absolute; left: 0; color: inherit; font-weight: bold; opacity: 0.7; }

.container-sm { width: min(850px, calc(100% - 40px)); margin: 0 auto; }
.container-md { width: min(1000px, calc(100% - 40px)); margin: 0 auto; }

.ita-section { padding: clamp(2.5rem, 8vw, 5rem) 0; }
.section-bg-cream { background: var(--cream); border-top: 1px solid var(--line); }
.section-bg-white { background: var(--white); border-top: 1px solid var(--line); }
