/* ==========================================================================
   AUTOŠKOLA MILTNER
   ========================================================================== */


/* --------------------------------------------------------------------------
   0) Project palette
   -------------------------------------------------------------------------- */

:root {
  --project: #1E4E9A;
  --project-dark: #173F7D;
  --project-deep: #0F2F5F;
  --project-night: #071B35;

  --accent: #F26A21;
  --accent-dark: #D94D0C;
  --accent-deep: #B2420D;
  --accent-soft: #FFF1E8;

  --bg-body: #FFFFFF;
  --bg-soft: #F4F6F9;
  --bg-soft-blue: #EEF3FA;
  --bg-card: #FFFFFF;
  --bg-dark: #111111;
  --bg-deep: #071B35;

  --text-body: #111827;
  --text-heading: #0D1B2E;
  --text-muted: #667085;
  --text-soft: #98A2B3;
  --text-light: #FFFFFF;

  --border-base: rgba(15, 47, 95, .13);
  --border-soft: rgba(15, 47, 95, .08);
  --border-light: rgba(255, 255, 255, .16);

  --shadow-xs: 0 8px 25px rgba(15, 47, 95, .07);
  --shadow-soft: 0 18px 50px rgba(15, 47, 95, .10);
  --shadow-card: 0 24px 70px rgba(15, 47, 95, .15);
  --shadow-accent: 0 16px 35px rgba(242, 106, 33, .28);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --header-height: 88px;
}


/* --------------------------------------------------------------------------
   1) Base
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  background: var(--bg-body);
  color: var(--text-body);
}

body {
  overflow-x: hidden;
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

a:hover {
  color: var(--project);
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--text-heading);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.045em;
}

p {
  margin-top: 0;
}

.text-muted {
  color: var(--text-muted) !important;
}

.section,
.home-section {
  position: relative;
  padding: 6rem 0;
}

.section-soft-bg,
.home-section--soft,
.section--soft {
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(30, 78, 154, .06),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 15%,
      rgba(242, 106, 33, .05),
      transparent 28%
    ),
    var(--bg-soft);
}

.section-head {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}

.section-head h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.section-head p:not(.section-kicker) {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.section-kicker,
.kicker {
  margin-bottom: .8rem;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.section-kicker::after,
.kicker::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: .7rem;
  border-radius: 999px;
  background: var(--accent);
}

.text-center .section-kicker::after,
.section-head.text-center .section-kicker::after {
  margin-right: auto;
  margin-left: auto;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--project);
  font-size: .86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.link-more:hover {
  color: var(--accent);
  transform: translateX(3px);
}


/* --------------------------------------------------------------------------
   2) Header / navigation
   -------------------------------------------------------------------------- */

#site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1000;
  background: linear-gradient(
    180deg,
    rgba(7, 27, 53, .88),
    rgba(7, 27, 53, .55) 65%,
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

#site-header .navbar,
.site-nav {
  min-height: var(--header-height);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
}

.navbar-brand img {
  width: auto;
  max-height: 62px;
}

.navbar-nav {
  align-items: center;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, .9) !important;
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
  padding-right: .85rem !important;
  padding-left: .85rem !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #FFFFFF !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: .85rem;
  bottom: .25rem;
  left: .85rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}

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

.dropdown-menu {
  margin-top: .75rem;
  padding: .6rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
}

.dropdown-item {
  border-radius: 9px;
  color: var(--text-heading);
  font-size: .88rem;
  font-weight: 700;
  padding: .7rem .85rem;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  color: var(--project);
  background: var(--bg-soft-blue);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #FFFFFF;
  font-weight: 800;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent);
}

.navbar-toggler {
  padding: .55rem .7rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(242, 106, 33, .22);
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   Subpage hero
   ========================================================================== */

.subpage-hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */
.subpage-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Title
   -------------------------------------------------------------------------- */
.subpage-hero__title {
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 12px 45px;
    color: #fff;
    font-weight: 700;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, .35),
        0 5px 15px rgba(0, 0, 0, .20);
    background: linear-gradient(
        90deg,
        rgba(10, 35, 58, 0) 0%,
        rgba(10, 35, 58, .38) 12%,
        rgba(10, 35, 58, .68) 28%,
        rgba(10, 35, 58, .76) 50%,
        rgba(10, 35, 58, .68) 72%,
        rgba(10, 35, 58, .38) 88%,
        rgba(10, 35, 58, 0) 100%
    );
}

/* --------------------------------------------------------------------------
   3) Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 50px;
  padding: .8rem 1.25rem;
  border-radius: 7px;
  font-size: .86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .035em;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-project,
.bg-project {
  color: #FFFFFF !important;
  background: linear-gradient(
    135deg,
    var(--accent),
    #FF7D35
  ) !important;
  border: 1px solid var(--accent) !important;
  box-shadow: var(--shadow-accent);
}

.btn-project:hover,
.btn-project:focus,
.bg-project:hover {
  color: #FFFFFF !important;
  background: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
  box-shadow: 0 18px 42px rgba(242, 106, 33, .34);
}

.btn-outline-project {
  color: var(--project) !important;
  background: transparent !important;
  border: 1px solid var(--project) !important;
}

.btn-outline-project:hover,
.btn-outline-project:focus {
  color: #FFFFFF !important;
  background: var(--project) !important;
}

.hero-btn-light,
.btn-cta-light,
.btn-outline-secondary {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .4) !important;
  backdrop-filter: blur(8px);
}

.hero-btn-light:hover,
.btn-cta-light:hover,
.btn-outline-secondary:hover {
  color: var(--project-deep) !important;
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
}


/* --------------------------------------------------------------------------
   4) Hero
   -------------------------------------------------------------------------- */

.hero-stage {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  background: var(--project-night);
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slider .hero-slide {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: heroFade 21s infinite;
  will-change: opacity, transform;
}

.hero-slider .slide-1 {
  opacity: 1;
  animation-delay: 0s;
}

.hero-slider .slide-2 {
  animation-delay: 7s;
}

.hero-slider .slide-3 {
  animation-delay: 14s;
}

@keyframes heroFade {
  0% {
    opacity: 0;
    transform: scale(1.03);
  }

  5% {
    opacity: 1;
  }

  30% {
    opacity: 1;
    transform: scale(1);
  }

  36% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: scale(1.03);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 76% 50%,
      transparent 0%,
      rgba(7, 27, 53, .10) 35%,
      rgba(7, 27, 53, .55) 67%
    ),
    linear-gradient(
      90deg,
      rgba(7, 27, 53, .96) 0%,
      rgba(7, 27, 53, .88) 30%,
      rgba(7, 27, 53, .58) 54%,
      rgba(7, 27, 53, .18) 78%,
      rgba(7, 27, 53, .08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 27, 53, .12) 0%,
      rgba(7, 27, 53, .30) 100%
    );
}

.hero-stage::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 70px;
  bottom: 30px;
  left: -230px;
  width: 410px;
  border: 32px solid rgba(242, 106, 33, .48);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-stage::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 95px;
  bottom: 55px;
  left: -255px;
  width: 410px;
  border: 18px solid rgba(255, 255, 255, .09);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  min-height: 790px;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 3rem;
}

.hero-copy {
  max-width: 780px;
}

.hero-kicker {
  margin-bottom: 1.1rem;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.hero-title {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  font-size: clamp(3.5rem, 6.2vw, 6.3rem);
  font-weight: 950;
  line-height: .94;
  letter-spacing: -.065em;
}

.hero-title .hero-accent {
  color: var(--accent);
}

.hero-text {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.hero-btn-main,
.hero-btn-light {
  min-height: 58px;
  padding-right: 1.55rem;
  padding-left: 1.55rem;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  max-width: 840px;
  margin-top: 3.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: rgba(255, 255, 255, .7);
  font-size: .78rem;
  line-height: 1.35;
}

.hero-benefit strong {
  display: block;
  margin-bottom: .15rem;
  color: #FFFFFF;
  font-size: .88rem;
}

.hero-benefit-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: #FFFFFF;
  background: rgba(255, 255, 255, .07);
}

.hero-benefit-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* --------------------------------------------------------------------------
   5) Course intro / Skupina B
   -------------------------------------------------------------------------- */

.home-courses {
  position: relative;
  padding: 6rem 0;
}

.courses-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: center;
}

.courses-intro-copy h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.courses-intro-copy h2 span {
  display: block;
  color: var(--accent);
}

.courses-intro-copy p {
  max-width: 34rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.courses-intro-copy .btn {
  margin-top: 1rem;
}

.course-feature-card {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(30, 78, 154, .10),
      transparent 35%
    ),
    #FFFFFF;
  box-shadow: var(--shadow-card);
}

.course-feature-copy {
  padding: 2.4rem 0 1rem 2.4rem;
}

.course-label {
  margin-bottom: .55rem;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.course-feature-copy h3 {
  margin-bottom: .4rem;
  color: var(--project-deep);
  font-size: clamp(2.2rem, 3vw, 3.3rem);
}

.course-subtitle {
  color: var(--project) !important;
  font-size: .92rem;
  font-weight: 800;
}

.course-feature-copy p:last-child {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.7;
}

.course-feature-image {
  min-height: 335px;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 1rem 1rem 0;
}

.course-feature-image img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  object-position: center bottom;
}

.course-feature-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .88);
}

.course-feature-points > div {
  padding: 1.25rem;
  border-right: 1px solid var(--border-soft);
}

.course-feature-points > div:last-child {
  border-right: 0;
}

.course-feature-points span {
  display: block;
  margin-bottom: .35rem;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 900;
}

.course-feature-points strong {
  display: block;
  color: var(--project-deep);
  font-size: .9rem;
}

.course-feature-points small {
  display: block;
  margin-top: .2rem;
  color: var(--text-muted);
  font-size: .74rem;
  line-height: 1.4;
}


/* --------------------------------------------------------------------------
   6) Services
   -------------------------------------------------------------------------- */

.home-services {
  position: relative;
  padding: 6rem 0;
  background: #FFFFFF;
}

.autoskola-services-grid,
.services-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 3.5rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  box-shadow: var(--shadow-xs);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(30, 78, 154, .18);
  box-shadow: var(--shadow-card);
}

.service-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft-blue);
}

.service-card-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(7, 27, 53, .18)
  );
}

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

.service-card:hover .service-card-image img {
  transform: scale(1.04);
}

.service-card-number {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #FFFFFF;
  background: var(--accent);
  box-shadow: 0 10px 25px rgba(242, 106, 33, .25);
  font-size: .76rem;
  font-weight: 900;
}

.service-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
}

.service-card-kicker {
  margin-bottom: .55rem !important;
  color: var(--accent) !important;
  font-size: .72rem !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.service-card h3 {
  margin-bottom: .85rem;
  color: var(--project-deep);
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.service-card p {
  margin-bottom: 1.4rem;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: auto;
  color: var(--project);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .055em;
}

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

.service-card-link span {
  transition: transform .2s ease;
}

.service-card-link:hover span {
  transform: translateX(4px);
}


/* --------------------------------------------------------------------------
   7) Numbers / highlights
   -------------------------------------------------------------------------- */

.home-numbers {
  padding: 2.4rem 0;
  color: #FFFFFF;
  background:
    linear-gradient(
      120deg,
      var(--project-night),
      var(--project-deep) 55%,
      var(--project)
    );
}

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

.number-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 100px;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, .14);
}

.number-item:last-child {
  border-right: 0;
}

.number-item > span:last-child {
  display: block;
}

.number-item strong {
  display: block;
  margin-bottom: .15rem;
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
}

.number-item small {
  display: block;
  color: rgba(255, 255, 255, .68);
  font-size: .76rem;
  line-height: 1.35;
}

.number-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color: var(--accent);
}

.number-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* --------------------------------------------------------------------------
   8) Benefits
   -------------------------------------------------------------------------- */

.home-benefits {
  padding: 6rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3.5rem;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.benefit-card {
  min-height: 300px;
  padding: 2rem 1.4rem;
  background: #FFFFFF;
  text-align: center;
  transition:
    background-color .2s ease,
    transform .2s ease;
}

.benefit-card:hover {
  z-index: 2;
  background: var(--bg-soft-blue);
}

.benefit-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(30, 78, 154, .18);
  border-radius: 50%;
  color: var(--project);
  background: #FFFFFF;
}

.benefit-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h3 {
  margin-bottom: .7rem;
  color: var(--project-deep);
  font-size: 1rem;
  line-height: 1.3;
}

.benefit-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: .84rem;
  line-height: 1.65;
}


/* --------------------------------------------------------------------------
   9) Process
   -------------------------------------------------------------------------- */

.home-process {
  position: relative;
  padding: 6rem 0;
  background: #FFFFFF;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 3.5rem;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 34px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--project)
  );
}

.process-item {
  position: relative;
  z-index: 2;
  padding: 0 1.3rem;
  text-align: center;
}

.process-number {
  width: 68px;
  height: 68px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem !important;
  border: 5px solid #FFFFFF;
  border-radius: 50%;
  color: #FFFFFF !important;
  background: var(--project);
  box-shadow: 0 10px 28px rgba(30, 78, 154, .22);
  font-size: .8rem !important;
  font-weight: 900;
}

.process-item:first-child .process-number,
.process-item:last-child .process-number {
  background: var(--accent);
}

.process-item h3 {
  margin-bottom: .7rem;
  color: var(--project-deep);
  font-size: 1.05rem;
}

.process-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: .84rem;
  line-height: 1.65;
}


/* --------------------------------------------------------------------------
   10) About
   -------------------------------------------------------------------------- */

.home-about {
  padding: 6rem 0;
  background:
    linear-gradient(
      120deg,
      var(--project-night),
      var(--project-deep)
    );
  color: #FFFFFF;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 4.5rem;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  min-height: 490px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .32);
}

.about-media::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -22px;
  bottom: -22px;
  width: 65%;
  height: 65%;
  border: 4px solid var(--accent);
  border-radius: var(--radius-xl);
}

.about-media-badge {
  position: absolute;
  right: -30px;
  bottom: 35px;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-accent);
}

.about-media-badge strong {
  color: #FFFFFF;
  font-size: 2rem;
  line-height: 1;
}

.about-media-badge span {
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.35;
}

.about-copy .section-kicker {
  color: var(--accent);
}

.about-copy h2 {
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.about-copy p {
  color: rgba(255, 255, 255, .72);
  font-size: .98rem;
  line-height: 1.85;
}

.about-copy .btn {
  margin-top: .7rem;
}


/* --------------------------------------------------------------------------
   11) Testimonials
   -------------------------------------------------------------------------- */

.home-testimonials {
  padding: 6rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 3.5rem;
}

.testimonial-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  color: rgba(30, 78, 154, .08);
  font-family: Georgia, serif;
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
}

.testimonial-stars {
  margin-bottom: 1.2rem;
  color: var(--accent);
  font-size: .95rem;
  letter-spacing: .1em;
}

.testimonial-card blockquote {
  position: relative;
  z-index: 2;
  margin: 0 0 1.7rem;
  color: var(--text-body);
  font-size: .93rem;
  font-style: normal;
  line-height: 1.75;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: auto;
}

.testimonial-avatar {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #FFFFFF;
  background: linear-gradient(
    135deg,
    var(--project),
    var(--project-dark)
  );
  font-weight: 900;
}

.testimonial-author strong {
  display: block;
  color: var(--project-deep);
  font-size: .88rem;
}

.testimonial-author small {
  display: block;
  margin-top: .15rem;
  color: var(--text-muted);
  font-size: .73rem;
}

.testimonials-action {
  margin-top: 2rem;
  text-align: center;
}


/* --------------------------------------------------------------------------
   12) CTA
   -------------------------------------------------------------------------- */

.home-cta {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #FFFFFF;
  background: var(--project-night);
}

.cta-media,
.cta-media img,
.cta-overlay {
  position: absolute;
  inset: 0;
}

.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 27, 53, .97) 0%,
      rgba(15, 47, 95, .88) 45%,
      rgba(30, 78, 154, .56) 100%
    );
}

.home-cta::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: -60%;
  right: -13%;
  width: 500px;
  height: 900px;
  border: 38px solid rgba(242, 106, 33, .28);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(10deg);
}

.home-cta .container {
  position: relative;
  z-index: 3;
}

.cta-copy {
  max-width: 700px;
}

.home-cta .section-kicker {
  color: var(--accent);
}

.home-cta .section-kicker::after {
  background: var(--accent);
}

.cta-copy h2 {
  margin-bottom: 1.2rem;
  color: #FFFFFF;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: .98;
}

.cta-copy p {
  max-width: 560px;
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, .78);
  font-size: 1.08rem;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}


/* --------------------------------------------------------------------------
   13) Footer
   -------------------------------------------------------------------------- */

#site-footer,
.site-footer {
  color: rgba(255, 255, 255, .7);
  background: var(--project-night);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

#site-footer h2,
#site-footer h3,
#site-footer h4,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: #FFFFFF;
}

#site-footer a,
.site-footer a {
  color: rgba(255, 255, 255, .72);
}

#site-footer a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.footer-logo img {
  max-height: 68px;
  width: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
}


/* --------------------------------------------------------------------------
   14) CMS content
   -------------------------------------------------------------------------- */

.cms-content {
  max-width: 820px;
  color: var(--text-body);
  line-height: 1.8;
}

.cms-content > * + * {
  margin-top: 1.25em;
}

.cms-content h2,
.cms-content h3,
.cms-content h4 {
  margin-top: 1.8em;
  color: var(--project-deep);
}

.cms-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.cms-content h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.cms-content a {
  color: var(--project);
  text-decoration: underline;
  text-decoration-color: rgba(30, 78, 154, .35);
  text-underline-offset: .2em;
}

.cms-content a:hover {
  color: var(--accent);
}

.cms-content img {
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.cms-content blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--project-deep);
  background: var(--accent-soft);
}

.cms-content ul,
.cms-content ol {
  padding-left: 1.4rem;
}

.cms-content li + li {
  margin-top: .45rem;
}


/* --------------------------------------------------------------------------
   15) Forms
   -------------------------------------------------------------------------- */

.form-control,
.form-select {
  min-height: 52px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  background: #FFFFFF;
}

textarea.form-control {
  min-height: 160px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--project);
  box-shadow: 0 0 0 .22rem rgba(30, 78, 154, .12);
}

.form-label {
  color: var(--project-deep);
  font-size: .84rem;
  font-weight: 800;
}


/* --------------------------------------------------------------------------
   16) Cookie preferences button
   -------------------------------------------------------------------------- */

#open_preferences_center {
  position: fixed;
  right: 0;
  bottom: 75px;
  z-index: 1001;
  width: 70px;
  height: 62px;
  padding-top: 2px;
  border-radius: 30px 0 0 30px;
  color: #FFFFFF;
  background: var(--accent);
  box-shadow: var(--shadow-accent);
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
}

#open_preferences_center:hover {
  color: #FFFFFF;
  background: var(--accent-dark);
}


/* --------------------------------------------------------------------------
   17) Gallery category
   -------------------------------------------------------------------------- */

.gallery-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-category-card {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--project-night);
  box-shadow: var(--shadow-soft);
}

.gallery-category-card a {
  display: block;
  height: 100%;
  color: #FFFFFF;
}

.gallery-category-card img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  transition: transform .3s ease;
}

.gallery-category-card:hover img {
  transform: scale(1.045);
}

.gallery-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(7, 27, 53, .04),
      rgba(7, 27, 53, .92)
    );
}

.gallery-category-card-content {
  position: absolute;
  z-index: 2;
  right: 1.4rem;
  bottom: 1.3rem;
  left: 1.4rem;
}

.gallery-category-card-content h3 {
  margin-bottom: .45rem;
  color: #FFFFFF;
  font-size: 1.4rem;
}

.gallery-category-card-content span {
  color: rgba(255, 255, 255, .72);
  font-size: .84rem;
  font-weight: 700;
}


/* --------------------------------------------------------------------------
   18) Responsive – large tablets
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .autoskola-services-grid,
  .services-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefit-card:nth-child(4),
  .benefit-card:nth-child(5) {
    grid-column: span 1;
  }

  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 0;
  }

  .process-grid::before {
    display: none;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .number-item:nth-child(2) {
    border-right: 0;
  }

  .number-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }
}


/* --------------------------------------------------------------------------
   19) Responsive – tablets / navigation
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  :root {
    --header-height: 76px;
  }

  #site-header {
    position: fixed;
    background: rgba(7, 27, 53, .96);
    backdrop-filter: blur(14px);
  }

  .navbar-brand img {
    max-height: 52px;
  }

  .navbar-collapse {
    margin-top: .7rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-md);
    background: rgba(7, 27, 53, .98);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
  }

  .navbar-nav {
    align-items: stretch;
  }

  .nav-link {
    padding: .8rem .65rem !important;
  }

  .nav-link::after {
    display: none;
  }

  .hero-stage,
  .hero-content {
    min-height: 740px;
  }

  .hero-stage::before,
  .hero-stage::after {
    opacity: .45;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(7, 27, 53, .96),
        rgba(7, 27, 53, .76)
      );
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-title {
    font-size: clamp(3.2rem, 9vw, 5rem);
  }

  .courses-intro-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .course-feature-card {
    max-width: 760px;
  }

  .about-media {
    max-width: 760px;
  }

  .about-media-badge {
    right: 20px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-item:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin-right: auto;
    margin-left: auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
  }

  .gallery-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* --------------------------------------------------------------------------
   20) Responsive – mobile
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
  .section,
  .home-section,
  .home-courses,
  .home-services,
  .home-benefits,
  .home-process,
  .home-about,
  .home-testimonials {
    padding: 4rem 0;
  }

  .section-head h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-stage,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 2.5rem;
  }

  .hero-title {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
    gap: .8rem;
    margin-top: 2rem;
  }

  .hero-benefit {
    font-size: .78rem;
  }

  .hero-stage::before,
  .hero-stage::after {
    display: none;
  }

  .courses-intro-copy h2 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .course-feature-card {
    grid-template-columns: 1fr;
  }

  .course-feature-copy {
    padding: 1.8rem 1.8rem 0;
  }

  .course-feature-image {
    min-height: 240px;
    padding-top: 0;
  }

  .course-feature-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-feature-points > div:nth-child(2) {
    border-right: 0;
  }

  .course-feature-points > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border-soft);
  }

  .autoskola-services-grid,
  .services-cards,
  .benefits-grid,
  .numbers-grid,
  .process-grid,
  .gallery-category-grid {
    grid-template-columns: 1fr;
  }

  .number-item {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }

  .number-item:last-child {
    border-bottom: 0;
  }

  .benefit-card {
    min-height: auto;
  }

  .process-item,
  .process-item:last-child {
    max-width: none;
    padding: 0 0 2rem;
    grid-column: auto;
  }

  .process-number {
    margin-bottom: 1rem !important;
  }

  .about-media img {
    min-height: 320px;
  }

  .about-media::after {
    right: -10px;
    bottom: -10px;
  }

  .about-media-badge {
    right: 14px;
    bottom: 18px;
  }

  .about-copy h2 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .cta-copy h2 {
    font-size: clamp(2.4rem, 11vw, 3.5rem);
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .home-cta::after {
    display: none;
  }
}


/* --------------------------------------------------------------------------
   21) Small mobile
   -------------------------------------------------------------------------- */

@media (max-width: 575.98px) {
  .container {
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .navbar-brand img {
    max-width: 190px;
    max-height: 48px;
  }

  .hero-title {
    font-size: clamp(2.65rem, 14vw, 3.8rem);
  }

  .hero-benefit-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .course-feature-points {
    grid-template-columns: 1fr;
  }

  .course-feature-points > div {
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .course-feature-points > div:last-child {
    border-bottom: 0;
  }

  .service-card-body,
  .testimonial-card {
    padding: 1.4rem;
  }

  .about-media-badge {
    position: relative;
    right: auto;
    bottom: auto;
    width: max-content;
    max-width: 100%;
    margin: -30px auto 0;
  }

  .gallery-category-card,
  .gallery-category-card img {
    min-height: 300px;
  }
}


/* --------------------------------------------------------------------------
   22) Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slider .hero-slide {
    animation: none;
    opacity: 0;
    transform: none;
  }

  .hero-slider .slide-1 {
    opacity: 1;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================================
   TERMÍNY KURZŮ
   ========================================================================== */

.course-terms {
    padding: 80px 0;
    background: var(--bg-body, #ffffff);
}

.course-terms-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* --------------------------------------------------------------------------
   Jednotlivý termín
   -------------------------------------------------------------------------- */

.course-term {
    position: relative;
    padding: 42px;
    margin-bottom: 32px;
    background: #ffffff;
    border: 1px solid rgba(15, 47, 87, 0.10);
    border-radius: 24px;
    box-shadow:
        0 20px 50px rgba(15, 47, 87, 0.08),
        0 3px 10px rgba(15, 47, 87, 0.04);
}

.course-term:last-child {
    margin-bottom: 0;
}

.course-term-next {
    background:
        linear-gradient(
            135deg,
            rgba(240, 138, 36, 0.06),
            rgba(255, 255, 255, 1) 55%
        );
    border-color: rgba(240, 138, 36, 0.20);
}


/* --------------------------------------------------------------------------
   Nadpis termínu
   -------------------------------------------------------------------------- */

.course-term > h2 {
    margin: 0 0 12px;
    color: var(--project-deep, #0f2f57);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.course-term > p {
    margin: 0 0 30px;
    color: var(--text-muted, #667085);
    font-size: 18px;
    line-height: 1.6;
}

.course-term > p strong {
    color: var(--project, #f08a24);
    font-weight: 800;
}


/* --------------------------------------------------------------------------
   Seznam poboček
   -------------------------------------------------------------------------- */

.course-locations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}


/* --------------------------------------------------------------------------
   Karta pobočky
   -------------------------------------------------------------------------- */

.course-location {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 250px;
    padding: 28px;
    background: var(--bg-soft, #f7f8fa);
    border: 1px solid rgba(15, 47, 87, 0.08);
    border-radius: 18px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.course-location:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 138, 36, 0.28);
    box-shadow:
        0 18px 35px rgba(15, 47, 87, 0.08);
}

.course-location h3 {
    margin: 0 0 16px;
    color: var(--project-deep, #0f2f57);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.course-location p {
    margin: 0 0 10px;

    color: var(--text-body, #1f2937);

    font-size: 16px;
    line-height: 1.55;
}

.course-location p:last-of-type {
    margin-bottom: 22px;
}


/* --------------------------------------------------------------------------
   Stav termínu
   -------------------------------------------------------------------------- */

.course-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    margin-top: auto;
    margin-bottom: 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.course-status::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}


/* Volný termín */

.course-status-open {
    color: #18723b;
    background: #e8f7ee;
    border: 1px solid rgba(24, 114, 59, 0.14);
}

.course-status-open::before {
    background: #2fa85f;
    box-shadow: 0 0 0 4px rgba(47, 168, 95, 0.12);
}

/* Naplněná kapacita */

.course-status-full {
    color: #9b2c2c;
    background: #fff0f0;
    border: 1px solid rgba(155, 44, 44, 0.14);
}

.course-status-full::before {
    background: #d84a4a;
    box-shadow: 0 0 0 4px rgba(216, 74, 74, 0.12);
}


/* --------------------------------------------------------------------------
   Tlačítko přihlášení
   -------------------------------------------------------------------------- */

.course-location .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    background: var(--project, #f08a24);
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow:
        0 10px 24px rgba(240, 138, 36, 0.24);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.course-location .btn:hover {
    color: #ffffff;
    background: var(--project-dark, #d97818);
    transform: translateY(-2px);
    box-shadow:
        0 14px 30px rgba(240, 138, 36, 0.30);
}
.course-location .btn:focus-visible {
    outline: 3px solid rgba(240, 138, 36, 0.28);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Poznámka k termínu
   -------------------------------------------------------------------------- */

.course-term-note {
    margin-top: 26px;
    padding: 20px 22px;
    color: var(--text-body, #1f2937);
    background: rgba(240, 138, 36, 0.07);
    border-left: 4px solid var(--project, #f08a24);
    border-radius: 0 12px 12px 0;
    font-size: 15px;
    line-height: 1.65;
}

.course-term-note p {
    margin: 0 0 10px;
}

.course-term-note p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Prázdný stav
   -------------------------------------------------------------------------- */

.course-terms-empty {
    padding: 36px;
    color: var(--text-muted, #667085);
    background: #ffffff;
    border: 1px dashed rgba(15, 47, 87, 0.18);
    border-radius: 18px;
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
}

/* --------------------------------------------------------------------------
   CKEditor tables
   -------------------------------------------------------------------------- */

figure.table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;

  overflow-x: auto;

  border: 0;
  border-radius: var(--radius-md);

  background: #fff;

  box-shadow: var(--shadow-soft);
}

figure.table > table {
  width: 100%;
  min-width: 600px;
  margin: 0;

  border-collapse: collapse;
  border-spacing: 0;

  color: var(--text-body);

  font-size: .9rem;
  line-height: 1.45;
}

figure.table th,
figure.table td {
  padding: .55rem .75rem;

  border: 1px solid var(--border-base);

  vertical-align: middle;
}

figure.table th {
  background: var(--project);

  color: #fff;

  font-weight: 800;
  text-align: left;
}
figure.table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, .16);
}

figure.table tbody tr:hover td {
  background: rgba(242, 106, 33, .28);
}

figure.table td:first-child {
  font-weight: 700;
}

figure.table p {
  margin: 0;
}

@media (max-width: 767.98px) {
  
  figure.table {
    margin-inline: 0;
    border-radius: var(--radius-sm);
  }

  figure.table > table {
    min-width: 560px;
    font-size: .82rem;
  }

  figure.table th,
  figure.table td {
    padding: .45rem .55rem;
  }

}

/* --------------------------------------------------------------------------
   Responzivita
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
    .course-terms {
        padding: 60px 0;
    }
    .course-term {
        padding: 30px;
        border-radius: 20px;
    }
    .course-locations {
        grid-template-columns: 1fr;
    }
    .course-location {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .course-terms {
        padding: 44px 0;
    }
    .course-terms-inner {
        width: min(100% - 28px, 1180px);
    }
    .course-term {
        padding: 22px;
        margin-bottom: 22px;
        border-radius: 16px;
    }
    .course-term > h2 {
        font-size: 27px;
    }
    .course-term > p {
        margin-bottom: 22px;
        font-size: 16px;
    }
    .course-locations {
        gap: 16px;
    }
    .course-location {
        padding: 22px;
        border-radius: 14px;
    }
    .course-location h3 {
        font-size: 21px;
    }
    .course-location .btn {
        width: 100%;
    }
    .course-term-note {
        padding: 16px 18px;
    }
}