/* ============================================================
   ReFiDa — Global Styles
   ============================================================ */

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

/* ---------- Design Tokens ---------- */
:root {
  --primary: #3b9edd;
  --primary-dark: #2a7ab8;
  --foreground: #0f172a;
  --muted: #64748b;
  --muted-bg: #f1f5f9;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --accent-bg: #f8fafc;
  --hero-bg: #0a1628;
  --footer-bg: #0f172a;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .14);
  --max-w: 1280px;
  --nav-h: 72px;
  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Layout Helpers ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

main {
  flex: 1;
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav__logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav__logo-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--primary);
  line-height: 1;
}

.nav__logo-sub {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
}

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

.nav__links a {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .85);
  transition: color var(--transition), background var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, .12);
}

/* When nav is scrolled, switch to dark colors */
.nav.scrolled .nav__links a {
  color: var(--foreground);
}

.nav.scrolled .nav__links a:hover,
.nav.scrolled .nav__links a.active {
  color: var(--primary);
  background: rgba(59, 158, 221, .08);
}

.nav.scrolled .nav__logo-sub {
  color: var(--muted);
}

.nav__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
}

.nav__hamburger:hover {
  background: var(--muted-bg);
  color: var(--foreground);
}

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

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 8px 24px 20px;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.nav__mobile a:last-child {
  border-bottom: none;
}

.nav__mobile a.active {
  color: var(--primary);
}

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100vh;
  background: var(--hero-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero__glow-1 {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(30, 80, 160, .45), transparent);
  pointer-events: none;
}

.hero__glow-2 {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 40% at 70% 60%, rgba(20, 60, 130, .3), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 140px 24px 80px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .5);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero__title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}

.hero__title span {
  color: var(--primary);
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, .5);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.65;
}

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

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: center;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.hero__stat-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
}

.hero__stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  margin-top: 4px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 158, 221, .4);
}

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .16);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--muted-bg);
  transform: translateY(-1px);
}

/* ---------- SECTION DEFAULTS ---------- */
.section {
  padding: 80px 0;
}

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

.section--accent {
  background: var(--accent-bg);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--foreground);
}

/* ---------- SERVICE CARDS ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all 300ms ease;
  display: block;
  height: 100%;
}

a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 158, 221, .25);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(59, 158, 221, .1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 300ms ease;
}

a.card:hover .card__icon {
  background: var(--primary);
  color: var(--white);
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 12px;
}

.card__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.card__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

a.card:hover .card__link svg {
  transform: translateX(4px);
}

.card__link svg {
  transition: transform var(--transition);
}

/* ---------- WHY US GRID ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

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

.why-item {
  text-align: center;
}

.why-item__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: rgba(59, 158, 221, .1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.why-item__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-item__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--primary);
  border-radius: 24px;
  padding: 64px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .cta-banner {
    padding: 40px 32px;
  }
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transform: translate(30%, -30%);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 192px;
  height: 192px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  transform: translate(-30%, 30%);
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.cta-banner__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner__text {
  color: rgba(255, 255, 255, .72);
  line-height: 1.65;
  margin-bottom: 32px;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.btn-cta-white:hover {
  background: rgba(255, 255, 255, .9);
  transform: translateY(-1px);
}

.btn-cta-outline {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .2);
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, .2);
  transform: translateY(-1px);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, .8);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

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

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer__brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.footer__brand-sub {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 16px;
  margin-top: 2px;
}

.footer__brand-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.65;
}

.footer__heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

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

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

.footer__contact-item svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, .3);
  margin-top: 2px;
}

.footer__contact-item a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .3);
}

/* ---------- INNER PAGE HERO ---------- */
.page-hero {
  background: var(--hero-bg);
  padding: calc(var(--nav-h) + 64px) 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(30, 80, 160, .4), transparent);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 16px;
}

.page-hero__title {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.page-hero__title span {
  color: var(--primary);
}

.page-hero__subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, .5);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ---------- CONTENT BLOCKS ---------- */
.content-block {
  display: grid;
  gap: 64px;
  align-items: center;
}

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

.content-block--reverse>*:first-child {
  order: 2;
}

.content-block--reverse>*:last-child {
  order: 1;
}

@media (max-width: 767px) {
  .content-block--reverse>* {
    order: unset;
  }
}

.content-block__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.content-block__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.content-block__text {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.list-check {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.list-check li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(59, 158, 221, .12);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%233b9edd'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414L8 15.414l-4.707-4.707a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* DB content (WYSIWYG) — style bare HTML inside content-block */
.content-block h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.content-block h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  margin-bottom: 12px;
}

.content-block p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.content-block p a {
  color: var(--primary);
  font-weight: 600;
}

.content-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.content-block li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.content-block li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(59, 158, 221, .12);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%233b9edd'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414L8 15.414l-4.707-4.707a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* ---------- CONTACT FORM ---------- */
.contact-grid {
  display: grid;
  gap: 48px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
}

.form-control {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--foreground);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 158, 221, .15);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-item__icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 158, 221, .1);
  border-radius: var(--radius);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item__label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-info-item__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
}

/* ---------- TABLE ---------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: var(--muted-bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 20px;
  text-align: left;
}

td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--foreground);
  border-top: 1px solid var(--border);
}

tr:hover td {
  background: var(--accent-bg);
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

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

.breadcrumb span::before {
  content: '/';
  margin-right: 8px;
}

/* ---------- MAP PLACEHOLDER ---------- */
.map-placeholder {
  background: var(--muted-bg);
  border-radius: var(--radius-xl);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-xl);
}

/* ---------- ICON HELPER ---------- */
.icon {
  display: inline-block;
  vertical-align: middle;
}

/* ---------- UTILITY ---------- */
.text-center {
  text-align: center;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-48 {
  margin-top: 48px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-32 {
  margin-bottom: 32px;
}

/* ---------- FILE LIST (Formuláře) ---------- */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.file-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.file-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(59, 158, 221, .1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-item__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
}

.file-item__desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.file-item__dl {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}

/* ---------- LINK LIST (Odkazy) ---------- */
.link-group {
  margin-bottom: 48px;
}

.link-group__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  transition: all var(--transition);
}

.link-list a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(4px);
}

.link-list a svg {
  color: var(--primary);
  flex-shrink: 0;
}

.link-list a span.ext {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- SIGN-IN PAGE ---------- */
.sign-page {
  background: var(--hero-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.sign-in-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 24px;
}

.sign-in-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.sign-in-box h1 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 32px;
}

.sign-in-box .flash {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
}

.sign-in-box .flash.error {
  background: #fee2e2;
  color: #991b1b;
}

.sign-in-box .flash.success {
  background: #d1fae5;
  color: #065f46;
}

/* ---------- GLOBAL FLASH ---------- */
.flash-global {
  max-width: var(--max-w);
  margin: 16px auto;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}

.flash-success {
  background: #d1fae5;
  color: #065f46;
}

.flash-error {
  background: #fee2e2;
  color: #991b1b;
}

.flash-info {
  background: #dbeafe;
  color: #1e40af;
}

/* ---------- ANIMATIONS ---------- */
.js-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- SERVICES CAROUSEL ---------- */
.services-carousel {
  position: relative;
}

.services-carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0;
}

.services-carousel__track::-webkit-scrollbar {
  display: none;
}

.services-carousel__slide {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--white);
  aspect-ratio: 4/3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-carousel__slide:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.services-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.services-carousel__slide:hover img {
  transform: scale(1.05);
}

.services-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 22, 42, .85) 0%, rgba(15, 22, 42, .3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.services-carousel__overlay h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.services-carousel__overlay p {
  font-size: 0.85rem;
  opacity: .8;
  margin-bottom: 8px;
}

.services-carousel__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.2s;
}

.services-carousel__slide:hover .services-carousel__link {
  color: var(--white);
}

.services-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}

.services-carousel__btn:hover {
  background: var(--primary);
  color: var(--white);
}

.services-carousel__btn:hover svg {
  stroke: var(--white);
}

.services-carousel__btn--prev {
  left: -16px;
}

.services-carousel__btn--next {
  right: -16px;
}

@media (max-width: 768px) {
  .services-carousel__slide {
    flex: 0 0 85%;
  }

  .services-carousel__btn {
    display: none;
  }
}