/* ================================
   VARIABLES & BASE
==================================*/
:root {
  --main-color: #dc2626;
  --main-color-dark: #b91c1c;
  --main-color-soft: #fee2e2;

  --bg-color: #ffffff;
  --bg-soft: #f8fafc;
  --card: #ffffff;

  --text-color: #111827;
  --text-muted: #6b7280;
  --text-light: #f9fafb;

  --border: #e5e7eb;

  --ok: #16a34a;
  --err: #dc2626;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --container-width: 1200px;

  --transition: 0.25s ease;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

a,
button,
input,
textarea,
select {
  transition: all var(--transition);
}

:focus-visible {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

/* Utilities */
.flex { display: flex; }
.blok { display: block; }
.text-center { text-align: center; }

.container {
  width: min(100% - 2rem, var(--container-width));
  margin: 0 auto;
}
.text-bold{
  font-weight: 1000;}
/* ================================
   GRID LAYOUT
==================================*/
.grid-container {
  display: grid;
  grid-template-rows: 6em 1fr 6em;
  grid-template-columns: 6em 1fr 6em;
  gap: 0;
  min-height: 100vh;
}

.grid-item {
  background-color: transparent;
  padding: 0;
}

/* ================================
   HEADER & NAV
==================================*/
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 10px 40px;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 80px;
}

.header__logo {
  height: 56px;
}

.header__nav {
  display: block;
}

.header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.header__nav-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
  padding: 0.5rem 0;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background-color: var(--main-color);
  transition: width var(--transition);
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--main-color);
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
  width: 100%;
}

.header__nav-link.underlined {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header__logo-wrap {
            display: flex;
            align-items: center;
            gap: 15px;
            text-decoration: none;
            color: #333;
        }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
  cursor: pointer;
}

.hamburger__bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-color);
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}

.hamburger__bar:nth-child(1) { top: 14px; }
.hamburger__bar:nth-child(2) { top: 21px; }
.hamburger__bar:nth-child(3) { top: 28px; }

body.nav-open {
  overflow: hidden;
}

body.nav-open .hamburger__bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

body.nav-open .hamburger__bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .hamburger__bar:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ================================
   HOMEPAGE HERO
==================================*/
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  min-height: max(600px, calc(100vh - 80px));
  background:
    linear-gradient(rgba(17, 24, 39, 0.45), rgba(17, 24, 39, 0.45)),
    url("../img/bg.png") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 2rem 1rem;
}

.hero-content {
  max-width: 1000px;
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.hero-content p {
  margin: 0 0 2.5rem;
  font-size: clamp(1.3rem, 4vw, 2.4rem);
  font-style: italic;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  background: #fff;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}

.hero-btn:hover {
  transform: translateY(-2px);
  background: #f9fafb;
  color: var(--main-color);
  box-shadow: var(--shadow-md);
}

/* ================================
   SPONSORS
==================================*/
.sponsors {
  background: #fff;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.sponsors__container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.sponsors__logo {
  width: auto;
  height: 60px;
  object-fit: contain;
}

.bigger {
  height: 7rem;
}

.sponsors__text {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
}

/* ================================
   MAIN CONTENT
==================================*/
.main-content {
  padding: 2rem 0;
  min-height: 60vh;
}

.page-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-align: center;
  margin: 2rem 0;
  color: var(--text-color);
  line-height: 1.15;
}

.content-section {
  margin: 3rem 0;
}

.content-section h2,
.content-text h2 {
  font-size: 1.6rem;
  margin: 0 0 1rem;
  color: var(--text-color);
}

.content-section p,
.content-text p {
  line-height: 1.7;
  margin: 0 0 1rem;
  color: var(--text-color);
}

.content-section-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 2rem;
  align-items: start;
  margin: 3rem 0;
}

.content-image {
  display: flex;
  justify-content: center;
}

/* ================================
   ABOUT / O NĂS
==================================*/
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.grid-prvni-sloupce {
  grid-column: 1;
}

.img-onas {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.title-p {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.services-section {
        padding: 80px 0;
        background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    }

    .services-title {
        text-align: center;
        font-size: clamp(2rem, 4vw, 2.8rem);
        font-weight: 800;
        color: #111827;
        margin-bottom: 48px;
        letter-spacing: -0.02em;
    }

    .services-list {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .service-row {
        display: flex;
        align-items: stretch;
        width: 100%;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .service-row:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border-color: rgba(220, 38, 38, 0.2);
    }

    .service-row.active {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border-color: rgba(220, 38, 38, 0.25);
    }

    .service-side {
        width: 86px;
        min-width: 86px;
        background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
        color: #f9fafb;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 20px 0;
    }

    .service-side-icon {
        width: 52px;
        height: 52px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .service-toggle {
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        color: #f9fafb;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.25s ease, background 0.25s ease;
    }

    .service-toggle:hover {
        transform: scale(1.06);
        background: rgba(255, 255, 255, 0.22);
    }

    .toggle-arrow {
        transition: transform 0.25s ease;
    }

    .service-row.active .toggle-arrow {
        transform: rotate(180deg);
    }

    .service-main {
        flex: 1;
        display: grid;
        grid-template-columns: 1fr 320px;
        align-items: center;
        gap: 36px;
        padding: 28px;
        min-height: 300px;
    }

    .service-row .service-text {
        order: 1;
    }

    .service-row .service-image-wrap {
        order: 2;
    }

    .service-row.reverse {
        flex-direction: row-reverse;
    }

    .service-row.reverse .service-main {
        grid-template-columns: 320px 1fr;
    }

    .service-row.reverse .service-image-wrap {
        order: 1;
    }

    .service-row.reverse .service-text {
        order: 2;
    }

    .service-image-wrap {
        width: 320px;
        min-width: 320px;
        flex-shrink: 0;
    }

    .service-main-image {
        width: 100%;
        height: 235px;
        object-fit: cover;
        display: block;
        border-radius: 16px;
        border: 1px solid #e5e7eb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .service-text {
        flex: 1;
        text-align: center;
    }

    .service-badge {
        display: inline-block;
        margin-bottom: 14px;
        padding: 8px 14px;
        border-radius: 999px;
        background: #fee2e2;
        color: #b91c1c;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .service-text h3 {
        margin: 0 0 14px;
        color: #111827;
        font-size: clamp(1.7rem, 3vw, 2.8rem);
        line-height: 1.12;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .service-perex {
        margin: 0 auto;
        color: #6b7280;
        font-size: 1.05rem;
        line-height: 1.75;
        max-width: 760px;
    }

    .service-expand-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;
        transition: max-height 0.45s ease, opacity 0.3s ease, margin-top 0.3s ease;
        text-align: left;
    }

    .service-row.active .service-expand-content {
        max-height: 1400px;
        opacity: 1;
        margin-top: 24px;
    }

    .service-expand-content p {
        margin: 0 0 14px;
        color: #111827;
        line-height: 1.8;
    }

    .service-gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        margin-top: 22px;
    }

    .service-gallery img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        display: block;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .service-gallery img:hover {
        transform: scale(1.02);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .external-link {
        color: #dc2626;
        text-decoration: underline;
        font-weight: 600;
    }

    .external-link:hover {
        color: #b91c1c;
    }

/* ================================
   SERVICES SECTION
==================================*/
.services-section {
  background: linear-gradient(135deg, var(--main-color-dark), var(--main-color));
  padding: 5rem 0;
  color: #fff;
}

.services-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-align: center;
  margin: 0 0 3rem;
  color: #fff;
  line-height: 1.15;
}

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

.service-card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-color);
}

.service-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.service-icon-blue {
  color: #2563eb;
}

.service-content h3 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
  color: var(--text-color);
}

.service-content p {
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-muted);
}
/* ================================
   ARTICLES
==================================*/
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.article-card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.article-content {
  padding: 1.5rem;
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  color: var(--text-color);
}

.article-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.read-more {
  color: var(--main-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.read-more:hover {
  text-decoration: underline;
}



/* ================================
   LOGIN
==================================*/
.login-body {
  overflow-x: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #f3f4f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.login-logo .logo-image {
  height: 6rem;
}

.login-form-container {
  background: linear-gradient(135deg, var(--main-color-dark), var(--main-color));
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  min-width: 400px;
}

.login-title {
  color: #fff;
  font-size: clamp(1.8rem, 6vw, 3rem);
  text-align: center;
  margin: 0 0 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.form-group input {
  padding: 0.95rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: #fff;
  color: var(--text-color);
}

.form-group input:focus {
  border-color: var(--main-color-dark);
  outline: none;
}

.login-button {
  background: #fff;
  color: var(--main-color);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
}

.login-button:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

/* ================================
   ADMIN
==================================*/
.admin-controls {
  margin: 2rem 0;
  text-align: center;
}

.add-article-btn {
  background: var(--text-color);
  color: #fff;
  border: none;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.add-article-btn:hover {
  background: #1f2937;
}

.admin-grid .article-card {
  position: relative;
}

.admin-card.disabled {
  opacity: 0.65;
}

.admin-card.disabled .article-image {
  filter: grayscale(100%);
}

.admin-controls-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator.active {
  background: var(--ok);
}

.status-indicator.inactive {
  background: var(--err);
}

.admin-btn {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.show-btn {
  background: #2563eb;
  color: #fff;
}

.show-btn:hover {
  background: #1d4ed8;
}

.edit-btn {
  background: #f59e0b;
  color: #fff;
}

.edit-btn:hover {
  background: #d97706;
}

/* ================================
   CONTACT
==================================*/
.contact-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  margin: 3rem 0;
}


.contact-text {
  color: #111;
  font-weight: bold;
  text-decoration: none; 
  font-size: 20px;
  word-break: break-word; /* Rozbije dlouhĂ˝ email na vĂ­ce ĹĂĄdkĹŻ */
  overflow-wrap: break-word;
}

.contact-text:hover {
  color: var(--main-color);
}

.contact-info {
  background-color: #F8F8F8; 
  border-radius: 16px;
  padding: 2rem; /* PĹidĂĄn padding pro lepĹĄĂ­ vzhled */
}

.contact-info h2 {
  font-size: 1.8rem; 
  margin-bottom: 2rem; 
  color: var(--text-color);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  min-width: 0;
}

.contact-icon {
  font-size: 1.5rem;
  width: 4rem;
  flex-shrink: 0;
}

.social-links { 
  margin-top: 2rem; 
  display: flex; 
  flex-direction: row; 
  gap: 2rem; 
  justify-content:center; 
  align-items: center; }
.soc-img{
  height: 4rem; 
  justify-items: center;
}

.contact-form-section {
  background: #fff;
  background-image: url(../img/bg-index.png);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-form-section h2 {
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
  color: var(--text-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  font-weight: 700;
  color: var(--text-light);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-color);
  background: #fff;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

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

.submit-button {
  background: var(--bg-color); 
  color: var(--main-color); 
  border: none;
  padding: 1rem 5rem; /* ZmenĹĄeno z 10rem pro lepĹĄĂ­ stabilitu */
  border-radius: 10px; 
  font-size: 1rem; 
  font-weight: bold;
  cursor: pointer; 
  transition: background-color .3s ease; 
  display: block;
  margin: 0 0 2rem 0;
  align-self: center; 
}

.submit-button:hover {
  background: var(--main-color-dark);
  transform: translateY(-1px);
  color: var(--text-light);
}

.map-section {
  margin: 2rem 0;
}

.map-placeholder {
  width: 100%;
  min-height: 320px;
  background: #f3f4f6;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.map-image {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius-lg);
}

/* ================================
   FOOTERS
==================================*/
/* Modern footer */
.footer-new {
  margin-top: 5rem;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  padding: 0;
}

.footer-container {
  width: min(100% - 2rem, var(--container-width));
  margin: 0 auto;
  padding: 4rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  font-weight: 700;
  color: #fff;
}

.footer-section h4 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  font-weight: 700;
  color: #fff;
}

.footer-section h5 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: #fff;
}

.footer-section p {
  line-height: 1.7;
  margin: 0 0 1rem;
  color: #d1d5db;
}

.footer-logo-img {
  height: 3rem;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-item-footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: #d1d5db;
}

.contact-icon-footer {
  font-size: 1.1rem;
  width: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.social-media {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.social-link-footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
}

.social-link-footer:hover {
  color: #fff;
}

.social-icon {
  font-size: 1.1rem;
  width: 1.5rem;
}

.newsletter {
  margin-top: 1rem;
}

.newsletter p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #d1d5db;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.8rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.newsletter-input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 0;
}

.newsletter-btn {
  background: var(--main-color);
  color: #fff;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.newsletter-btn:hover {
  background: var(--main-color-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  background: rgba(0, 0, 0, 0.08);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright p {
  margin: 0;
  font-size: 0.85rem;
  color: #d1d5db;
}

.legal-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.legal-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.85rem;
}

.legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Simple footer */
.footer {
  background: #111827;
  color: #e5e7eb;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer a {
  color: #d1d5db;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ================================
   ZPRĂVY / ADMIN (zpravy.php)
==================================*/
.zpravy-page .container {
  max-width: 1100px;
}

.zpravy-page .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  position: static;
  border-bottom: 0;
  backdrop-filter: none;
  background: transparent;
}

.zpravy-page .title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0;
  line-height: 1.2;
}

.zpravy-page .badge {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.zpravy-page .badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--main-color);
}

.zpravy-page .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.zpravy-page .toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.zpravy-page .actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.zpravy-page button,
.zpravy-page .btn {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-color);
}

.zpravy-page button:hover,
.zpravy-page .btn:hover {
  border-color: #d1d5db;
}

.zpravy-page button.primary {
  background: var(--main-color);
  border-color: var(--main-color);
  color: #fff;
}

.zpravy-page button.primary:hover {
  background: var(--main-color-dark);
  border-color: var(--main-color-dark);
}

.zpravy-page button.ghost {
  background: #fff;
}

.zpravy-page button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.zpravy-page .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.zpravy-page .table thead th {
  text-align: left;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.zpravy-page .table tbody td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.9rem;
}

.zpravy-page .row-unread {
  background: #fff7f7;
}

.zpravy-page .status {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #fff;
}

.zpravy-page .status.read {
  border-color: #e2e8f0;
  color: #64748b;
}

.zpravy-page .status.unread {
  border-color: var(--main-color);
  color: var(--main-color);
  background: #fff;
}

.zpravy-page .email {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
}

.zpravy-page .email:hover {
  color: var(--main-color);
}

.zpravy-page .meta {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.zpravy-page .msg {
  white-space: pre-wrap;
  line-height: 1.5;
}

.zpravy-page .checkbox {
  width: 18px;
  height: 18px;
}

.zpravy-page .flash {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid;
}

.zpravy-page .flash.success {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #065f46;
}

.zpravy-page .flash.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #7f1d1d;
}

.zpravy-page .flash.info {
  border-color: var(--border);
  background: #f9fafb;
  color: #374151;
}

.zpravy-page .empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.zpravy-page .footer-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.zpravy-page .select-all {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ================================
   ARTICLE DETAIL (clanek.php)
==================================*/
.article-detail {
  max-width: 800px;
  margin: 0 auto;
}

.article-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin: 0 0 0.5em;
  color: var(--text-color);
  line-height: 1.15;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.article-detail-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 1.25rem 0;
  display: block;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.article-perex {
  font-size: 1.1rem;
  color: #374151;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.article-body p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  margin: 1rem 0;
}

.article-body a {
  color: var(--main-color);
  text-decoration: none;
  border-bottom: 1px dashed var(--main-color);
}

.article-body a:hover {
  text-decoration: underline;
}

.article-back {
  margin-top: 2rem;
}

.back-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.back-link:hover {
  text-decoration: underline;
}

/* ================================
   RESPONSIVE
==================================*/
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .content-section-with-image {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
 @media (max-width: 991px) {
        .service-main {
            grid-template-columns: 1fr 250px;
            gap: 24px;
            padding: 24px;
        }

        .service-row.reverse .service-main {
            grid-template-columns: 250px 1fr;
        }

        .service-image-wrap {
            width: 250px;
            min-width: 250px;
        }

        .service-main-image {
            height: 210px;
        }

        .service-text h3 {
            font-size: clamp(1.5rem, 3vw, 2.2rem);
        }

        .service-perex {
            font-size: 1rem;
        }
    }


@media (max-width: 768px) {
  .grid-container {
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .grid-item:first-child,
  .grid-item:nth-child(3),
  .grid-item:nth-child(5),
  .grid-item:last-child {
    display: none;
  }

  .hamburger {
    display: inline-block;
  }

  .header__logo {
    height: 48px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 360px);
    height: 100dvh;
    padding: 6rem 1.5rem 2rem;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    z-index: 1000;
  }

  body.nav-open .header__nav {
    transform: translateX(0);
  }

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header__nav-link {
    font-size: 1.05rem;
    padding: 0.25rem 0;
  }

  .hero {
    min-height: 70vh;
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-content p {
    font-size: clamp(1.1rem, 6vw, 1.6rem);
    margin-bottom: 2rem;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .hero-btn {
    min-width: 150px;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }

  .grid-2,
  .services-grid,
  .articles-grid,
  .contact-content,
  .form-row,
  .content-section-with-image,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .content-text,
  .content-image {
    width: 100%;
  }

  .sponsors__container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .sponsors__text {
    font-size: 1.25rem;
  }

  .bigger {
    height: 5rem;
  }

  .footer-section {
    text-align: left;
  }

  .footer-contact,
  .social-media {
    align-items: flex-start;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
  }

  .newsletter-input {
    width: 100%;
  }

  .footer-bottom-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .legal-links {
    gap: 0.85rem;
  }

  .map-section {
    display: none;
  }

  iframe.map-image {
    width: 100%;
    min-height: 320px;
  }

  .zpravy-page .header,
  .zpravy-page .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .zpravy-page .card {
    overflow-x: auto;
  }

  .article-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
  .services-section {
            padding: 60px 0;
        }

        .services-title {
            margin-bottom: 32px;
        }

        .service-row,
        .service-row.reverse {
            flex-direction: column;
        }

        .service-side {
            width: 100%;
            min-width: 100%;
            flex-direction: row;
            padding: 14px 18px;
        }

        .service-main,
        .service-row.reverse .service-main {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            min-height: unset;
            gap: 20px;
            padding: 20px;
        }

        .service-image-wrap {
            width: 100%;
            min-width: 100%;
        }

        .service-main-image {
            height: 220px;
        }

        .service-text {
            text-align: left;
            width: 100%;
        }

        .service-perex {
            margin: 0;
            max-width: 100%;
        }

        .service-gallery {
            grid-template-columns: 1fr;
        }
    
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, var(--container-width));
  }

  .header__nav-list {
    gap: 0.75rem;
  }

  .header__nav-link {
    font-size: 0.95rem;
  }

  .hero-btn {
    width: 100%;
    max-width: 280px;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .service-content,
  .article-content {
    padding: 1rem;
  }

  .login-form-container {
    min-width: auto;
    width: 100%;
    padding: 1.5rem;
  }

  .login-title {
    font-size: 1.8rem;
  }

  .footer-container {
    padding: 2.5rem 0 0;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .contact-item-footer,
  .footer-links a,
  .social-link-footer {
    font-size: 0.9rem;
  }

  .legal-links {
    gap: 0.75rem;
  }

  .legal-links a {
    font-size: 0.8rem;
  }

  .contact-info,
  .contact-form-section {
    padding: 1.25rem;
  }

  .contact-info h2,
  .contact-form-section h2 {
    font-size: 1.35rem;
    color: var(--text-light);
  }
}

/* ================================
   REDUCE MOTION
==================================*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ================================
   GALLERY DETAIL + LIGHTBOX
==================================*/
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.article-card {
  overflow: hidden;
}

.article-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

#simpleLightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

#simpleLightbox.is-open {
  display: flex;
}

.simple-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.simple-lightbox-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.simple-lightbox-image {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.simple-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(20%, -20%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr !important;
  }

  .article-image {
    height: auto;
    max-height: 220px;
  }

  #simpleLightbox {
    padding: 8px;
  }

  .simple-lightbox-content {
    padding: 8px;
  }

  .simple-lightbox-image {
    max-width: 96vw;
    max-height: 78vh;
    border-radius: 8px;
  }

  .simple-lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 26px;
    top: 4px;
    right: 4px;
    transform: none;
  }
}