/* ===== DINAMONT — Modern Redesign ===== */
/* Preserve all class names and structure, only restyle */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  background: #f5f5f7;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- IMAGES (global) ---------- */
img {
  width: 100%;
  max-width: 100%;
  display: block;
  height: auto;
}

/* ---------- MATERIAL ICONS ---------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  margin-right: 6px;
  font-size: 1.15em;
}

/* ---------- TYPOGRAPHY ---------- */
h2 {
  text-align: center;
  color: #b71c1c;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #b71c1c, #e53935);
  margin: 12px auto 0;
  border-radius: 2px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

p {
  font-size: 1rem;
  text-align: left;
  line-height: 1.7;
  color: #3a3a4a;
}

strong {
  font-weight: 700;
  color: #b71c1c;
}

li {
  margin: 12px 0;
  font-size: 1rem;
  color: #3a3a4a;
  line-height: 1.7;
}

ul {
  padding-left: 1.5rem;
}

address, Address {
  font-style: normal;
}

/* ---------- HEADER ---------- */
header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
  padding: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  max-width: 1300px;
  margin: 0 auto;
}

.top2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.top2 > img {
  width: 60px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(183,28,28,0.25));
}

.top3 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header p {
  color: rgba(255,255,255,0.8);
  padding: 0;
  margin: 2px 0;
  font-size: 0.8rem;
  text-align: center;
}

.nazev {
  text-align: center;
  color: #e53935 !important;
  font-size: 1.6rem !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px !important;
}

.top4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.top4 p {
  text-align: center;
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.55) !important;
}

/* Hero image (hidden on mobile, shown on desktop) */
.obr {
  display: none;
}

/* ---------- NAVIGATION ---------- */
nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
}

nav a {
  text-decoration: none;
  padding: 8px 18px;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
  letter-spacing: 0.01em;
}

nav a:hover {
  color: #fff;
  background: rgba(229,57,53,0.12);
}

nav a.actual {
  color: #e53935;
  background: rgba(229,57,53,0.1);
  font-weight: 600;
}

/* ---------- MAIN ---------- */
main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

main article {
  text-align: justify;
  flex-direction: column;
  flex: 1;
  margin: 0;
  padding: 0;
}

/* ---------- SECTION: prvni ---------- */
.prvni {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  margin-bottom: 40px;
}

.bila {
  background: #ffffff;
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bila:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.bila h2 {
  text-align: center;
  margin-bottom: 24px;
}

.bila p {
  margin-bottom: 16px;
}

.bila p:last-child {
  margin-bottom: 0;
}

/* Links inside .bila (service links) */
.bila a {
  display: inline-block;
  color: white;
  background: linear-gradient(135deg, #b71c1c, #e53935);
  text-decoration: none;
  margin: 6px 0 12px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(183,28,28,0.2);
}

.bila a:hover {
  background: linear-gradient(135deg, #c62828, #ef5350);
  box-shadow: 0 4px 16px rgba(183,28,28,0.35);
  transform: translateY(-1px);
}

.bila p .odkazy {
  text-decoration: underline;
  color: #b71c1c;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  font-weight: 600;
}

.bila p .odkazy:hover {
  color: #e53935;
  transform: none;
  box-shadow: none;
}

/* Services list */
.zdroje {
  margin-top: 8px;
}

.zdroje h3 {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f0f0f0;
}

.zdroje h3:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* ---------- SECTION: druha (image gallery) ---------- */
.druha {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.druha article {
  padding: 0;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.druha article:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

.druha img {
  border: none;
  border-radius: 0;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.druha article:hover img {
  transform: scale(1.03);
}

/* ---------- SECTION: treti (material info) ---------- */
.treti {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.flex2 {
  flex: 2;
}

.flex1 {
  flex: 1;
}

.flex2 article,
.flex1 article {
  background: #ffffff;
  padding: 28px 24px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
}

.flex1 article {
  overflow: hidden;
  padding: 0;
}

.flex1 article img {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- BLOKY (drone page) ---------- */
.bloky {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

.blok {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  transition: all 0.25s ease;
}

.blok:hover {
  background: #fff;
  border-color: #e53935;
  box-shadow: 0 4px 16px rgba(229,57,53,0.08);
}

.blok p {
  margin: 8px 0;
  font-size: 0.95rem;
  text-align: left;
}

/* ---------- FOOTER ---------- */
footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: rgba(255,255,255,0.85);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

footer article {
  margin: 0;
}

footer p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  text-align: center;
  margin: 6px 0;
}

footer .material-symbols-outlined {
  color: #e53935;
}

footer address,
footer Address {
  font-style: normal;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE: TABLET (600px+)
   ============================================ */
@media (min-width: 600px) {
  .druha {
    grid-template-columns: repeat(3, 1fr);
  }

  .bloky {
    grid-template-columns: 1fr 1fr;
  }

  footer {
    flex-direction: row;
    justify-content: center;
    gap: 48px;
  }

  footer article {
    margin: 0;
  }
}

/* ============================================
   RESPONSIVE: DESKTOP (1000px+)
   ============================================ */
@media (min-width: 1000px) {
  .top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
  }

  .top2 {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .top2 > img {
    width: 55px;
  }

  .top3 {
    align-items: flex-start;
  }

  .top4 {
    flex-direction: row;
    gap: 20px;
  }

  .top4 p {
    text-align: left;
  }

  header p {
    text-align: left;
  }

  .nazev {
    text-align: left;
    font-size: 1.5rem !important;
  }

  header img {
    display: block;
  }

  nav {
    flex-direction: row;
    gap: 4px;
    margin-top: 0;
  }

  /* Hero image */
  .obr {
    display: block;
    border: none;
    position: relative;
    top: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px;
    overflow: hidden;
  }

  .obr img {
    border-radius: 20px;
    max-height: 420px;
    object-fit: cover;
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  }

  /* Main padding on desktop */
  main {
    padding: 40px 40px 40px;
    max-width: 1200px;
  }

  /* Prvni - side by side */
  .prvni {
    display: flex;
    flex-direction: row;
    gap: 28px;
    padding: 0;
  }

  .prvni > .bila {
    flex: 1;
  }

  /* Druha */
  .druha {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .druha img {
    height: 280px;
  }

  /* Treti (material) */
  .treti {
    flex-direction: row;
    gap: 28px;
  }

  .flex2 {
    display: flex;
    flex: 2;
  }

  .flex1 {
    display: flex;
    flex: 1;
  }

  .flex1 article {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  /* h2 sizing */
  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* ============================================
   RESPONSIVE: WIDE (1400px+)
   ============================================ */
@media (min-width: 1400px) {
  .top {
    max-width: 1400px;
  }

  main {
    max-width: 1300px;
  }

  .obr {
    max-width: 1300px;
  }
}

/* ============================================
   FOCUS STATES (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #e53935;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f7;
}

::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background: rgba(229,57,53,0.15);
  color: #1a1a2e;
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  header { position: static; }
  .obr { display: none; }
  .bila { box-shadow: none; border: 1px solid #ddd; }
}