/* Modern styles for Kulle PK-Q, s.r.o. */
:root {
  --primary: #1a365d;
  --primary-light: #2b4a7c;
  --accent: #3182ce;
  --accent-hover: #2b6cb0;
  --bg: #f7fafc;
  --surface: #ffffff;
  --text: #2d3748;
  --text-muted: #4a5568;
  --border: #e2e8f0;
  --footer-bg: #1a202c;
  --success: #38a169;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.4rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  height: 2.85rem;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  text-decoration: none;
}

.logo-mark {
  display: block;
  height: 2.8rem;
  width: auto;
  flex-shrink: 0;
  opacity: 1;
  transform: none;
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-0.45rem);
  transition: max-width 0.4s ease, opacity 0.35s ease, transform 0.4s ease, margin-left 0.4s ease;
}

.logo.is-expanded .logo-text {
  max-width: 16rem;
  margin-left: 0.65rem;
  opacity: 1;
  transform: translateX(0);
}

.logo-legal {
  color: #90cdf4;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1;
  position: relative;
  top: -0.08em;
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.lang-switch a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.lang-switch a:hover,
.lang-switch a.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}


/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Main content */
main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.page-title {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.85rem;
  font-weight: 700;
}

.page-title--logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  font-size: 2.52rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-title--logo span {
  font-size: 1.38rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  position: relative;
  top: -0.05em;
}

.page-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.content-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.content-card p {
  margin-bottom: 1rem;
  text-align: justify;
  color: var(--text);
}

.content-card p:last-child {
  margin-bottom: 0;
}

h2, h3 {
  color: var(--primary);
  margin: 1.75rem 0 0.75rem;
  font-weight: 600;
}

h2 {
  font-size: 1.35rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
}

h3 {
  font-size: 1.15rem;
}

/* Methods grid */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.method-card {
  background: linear-gradient(145deg, #edf2f7, #e2e8f0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.5rem 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.method-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.method-img {
  width: 100%;
  max-width: 130px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  background: transparent;
}

.method-abbr {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.method-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Info table */
.info-table {
  width: 100%;
  max-width: 36rem;
  border-collapse: collapse;
  margin: 1.25rem auto 1.75rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-table td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table td:first-child {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  text-align: left;
  padding-right: 1.25rem;
}

.info-table td:last-child {
  text-align: left;
  padding-left: 0.5rem;
}

/* Lists */
.service-list {
  list-style: none;
  width: 100%;
  max-width: 36rem;
  margin: 0.75rem auto 1.25rem;
  padding: 0 0 0 0.75rem;
  text-align: left;
  box-sizing: border-box;
}

.service-list > li {
  margin-bottom: 0.75rem;
}

.service-list .category {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
  text-align: left;
}

.service-list ul {
  list-style: disc;
  margin-left: 1.6rem;
  padding-left: 0.4rem;
  color: var(--text);
  text-align: left;
}

.service-list ul li {
  margin-bottom: 0.25rem;
  text-align: left;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.contact-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
  color: var(--primary);
}

.contact-card .role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  margin-top: 0;
  line-height: 1.3;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card p {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.contact-card--center {
  text-align: center;
}

.contact-card--center h3,
.contact-card--center .role,
.contact-card--center p {
  text-align: center;
}

/* Locations with maps */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.location-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.location-card h3 {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.location-address {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.5;
  font-size: 0.95rem;
  min-height: 4.5em;
}

.map-embed {
  width: 100%;
  max-width: 420px;
  height: 240px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e2e8f0;
  flex-shrink: 0;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-caption-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.map-caption-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #a0aec0;
  padding: 1.1rem 1.25rem 0.55rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: #a0aec0;
  text-decoration: none;
  line-height: 1.5;
}

.footer-col a:hover {
  color: #90cdf4;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0.7rem auto 0;
  padding-top: 0.5rem;
  border-top: 1px solid #2d3748;
  text-align: center;
  font-size: 0.85rem;
  color: #718096;
}

/* Utility */
.highlight {
  color: var(--accent);
  font-weight: 600;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1rem;
  }

  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    justify-content: center;
  }


  .header-inner {
    position: relative;
  }

  main {
    padding: 1.5rem 1rem 2.5rem;
  }

  .content-card {
    padding: 1.25rem 1.25rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-table {
    width: 100%;
  }

  .info-table td {
    padding: 0.4rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .methods-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo {
    font-size: 1.45rem;
    height: 2.85rem;
  }

  .logo-mark {
    height: 2.8rem;
  }

  .page-title--logo {
    font-size: 2.04rem;
  }

  .page-title--logo span {
    font-size: 1.14rem;
  }

  .logo-legal {
    display: none;
  }
}

/* Clickable method cards */
.method-card--clickable {
  cursor: pointer;
}

.method-card--clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Method detail overlay */
.method-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0);
  backdrop-filter: blur(0);
  visibility: hidden;
  pointer-events: none;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, visibility 0.35s;
}

.method-overlay.is-open {
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
  visibility: visible;
  pointer-events: auto;
}

.method-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(820px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: hidden;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 0.85rem 1.35rem 1.5rem;
  transform: translateY(28px) scale(0.94);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.method-modal-body {
  overflow: auto;
  padding-right: 0.65rem;
  scrollbar-width: thin;
  scrollbar-color: #a0aec0 transparent;
}

.method-modal-body::-webkit-scrollbar {
  width: 6px;
}

.method-modal-body::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.method-modal-body::-webkit-scrollbar-thumb {
  background: #a0aec0;
  border-radius: 99px;
}

.method-overlay.is-open .method-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.method-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 1.7rem;
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.method-modal-close:hover {
  background: var(--border);
}

.method-modal h2 {
  margin: 0 2rem 1rem 0;
  border-bottom: none;
  padding-bottom: 0;
}

.method-gallery {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 420px;
  background: #1a365d;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  transition: opacity 0.25s ease;
}

.gallery-image.is-fading {
  opacity: 0;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.85rem;
  height: 1.85rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery-nav.prev { left: 0.6rem; }
.gallery-nav.next { right: 0.6rem; }

.gallery-nav:hover {
  background: #fff;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.7rem 0 1rem;
}

.gallery-dot {
  width: 0.55rem;
  height: 0.55rem;
  border: none;
  border-radius: 50%;
  background: #cbd5e0;
  cursor: pointer;
  padding: 0;
}

.gallery-dot.is-active {
  background: var(--accent);
}

.method-modal-text {
  margin: 0;
  text-align: justify;
  color: var(--text);
}

@media (max-width: 768px) {
  .method-modal {
    padding: 1.2rem 1rem 1.1rem;
  }

  .method-gallery {
    height: 240px;
  }
}
