/* ===== FONTS ===== */
@font-face {
  font-family: 'ISOCP';
  src: url('ISOCP.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #0F172A;
  color: #F8FAFC;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #334155;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: 'ISOCP', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: 0.5px;
}

.logo-text .red {
  color: #EF4444;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: #94A3B8;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: #22D3EE;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #22D3EE;
  color: #0F172A;
}

.btn-primary:hover {
  background: #67E8F9;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #22D3EE;
  color: #22D3EE;
}

.btn-outline:hover {
  background: #22D3EE;
  color: #0F172A;
}

/* ===== HERO (hlavná stránka) ===== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.58);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 4px 25px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.3rem;
  color: #E2E8F0;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== PAGE HERO (podstránky) ===== */
.page-hero {
  padding: 6rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-hero p {
  color: #94A3B8;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: #94A3B8;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ===== SLUŽBY GRID (hlavná stránka) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: #22D3EE;
  transform: translateY(-6px);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #22D3EE;
}

.service-card p {
  color: #94A3B8;
  font-size: 0.95rem;
}

/* ===== SLUŽBY DETAIL (stránka sluzby.html) ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: #1E293B;
  border-radius: 16px;
  border: 1px solid #334155;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail h2 {
  font-size: 1.8rem;
  color: #22D3EE;
  margin-bottom: 1rem;
}

.service-detail p {
  color: #94A3B8;
  margin-bottom: 1rem;
}

.service-detail ul {
  color: #94A3B8;
  padding-left: 1.2rem;
}

.service-detail ul li {
  margin-bottom: 0.45rem;
}

/* Kontajner na obrázok */
.service-image {
  width: 100%;
  max-width: 520px;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Samotný obrázok */
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.service-detail:hover .service-image img {
  transform: scale(1.04);
}

/* ===== BENEFITS ===== */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit {
  text-align: center;
  padding: 1.5rem;
}

.benefit-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #22D3EE;
  margin-bottom: 0.5rem;
}

/* ===== PORTFÓLIO ===== */
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* ← toto vycentruje posledný riadok */
  gap: 1.5rem;
}

.portfolio-card {
  background: #1E293B;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #334155;
  transition: all 0.3s;
  width: 100%;
  max-width: 360px;          /* pevná šírka karty */
  flex: 0 1 360px;
}

.portfolio-card:hover {
  border-color: #22D3EE;
  transform: translateY(-5px);
}

.portfolio-img {
  height: 220px;
  overflow: hidden;
  background: #334155;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s;
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-content h3 {
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: #94A3B8;
  font-size: 0.9rem;
}

/* ===== PARTNERI ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.partner-logo {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  max-width: 200px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.partner-logo:hover {
  border-color: #22D3EE;
  transform: translateY(-4px);
}

.partner-logo img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: brightness(0.9);
}

/* ===== CTA ===== */
.cta {
  background: #1E293B;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
  text-align: center;
  padding: 5rem 0;
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta p {
  color: #94A3B8;
  margin-bottom: 2rem;
}

/* ===== FOOTER ===== */
footer {
  background: #0F172A;
  border-top: 1px solid #334155;
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo .logo-img {
  height: 50px;
}

.footer-links h4 {
  margin-bottom: 1rem;
  color: #F8FAFC;
}

.footer-links a {
  display: block;
  color: #94A3B8;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #22D3EE;
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: #64748B;
  font-size: 0.9rem;
}

/* ===== KONTAKT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #22D3EE;
}

.contact-info p {
  color: #94A3B8;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.contact-form {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 2.5rem;
}

.contact-form h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: #94A3B8;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #F8FAFC;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #22D3EE;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ===== O NÁS ===== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: #94A3B8;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.value-card h3 {
  color: #22D3EE;
  margin-bottom: 0.8rem;
}

.value-card p {
  color: #94A3B8;
  font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .service-detail {
    grid-template-columns: 1fr;
    direction: ltr !important;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .service-detail:nth-child(even) > * {
    direction: ltr;
  }

  .service-image {
    max-width: 100%;
    height: 260px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.3rem;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  nav {
    display: none;
  }

  .hero {
    height: 80vh;
    min-height: 500px;
  }

  .logo-img {
    height: 50px;
  }

  .logo-text {
    font-size: 1.8rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}