@font-face {
  font-family: "Kyselka Sans";
  src: url("assets/fonts/KyselkaSans-Regular.woff") format("woff"),
    url("assets/fonts/KyselkaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  font-synthesis: none;
}

@font-face {
  font-family: "Kyselka Sans";
  src: url("assets/fonts/KyselkaSans-Bold.woff") format("woff"),
    url("assets/fonts/KyselkaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  font-synthesis: none;
}

@font-face {
  font-family: "Kyselka Headline";
  src: url("assets/fonts/KyselkaHeadline-Headline.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  font-synthesis: none;
}

:root {
  --brand: #e6215a;
  --brand-dark: #500800;
  --brand-soft: #fbdbdb;
  --brand-green: #00554b;
  --brand-green-soft: #dcefed;
  --menu-hover-bg: #fbdbdb;
  --text-heading: #262626;
  --text-body: #4d4d4d;
  --text-muted: #6c757d;
  --line: #fbdbdb;
  --white: #ffffff;
  --page: #fbdbdb;
  font-family: "Kyselka Sans", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text-body);
  font-size: 1rem;
  font-weight: 400;
  font-synthesis: none;
}

h1,
h2,
h3 {
  font-family: "Kyselka Sans", sans-serif;
  font-weight: 700;
}

.maintenance-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.2)),
    url("assets/hero-station.png") center / cover no-repeat;
  padding: 28px;
}

.maintenance-card {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.34);
}

.maintenance-image {
  min-height: 620px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.2)),
    url("assets/hero-station.png") center / cover no-repeat;
}

.maintenance-content {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 64px);
}

.maintenance-eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.maintenance-content h1 {
  margin: 0;
  color: var(--text-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.98;
}

.maintenance-content > p:not(.maintenance-eyebrow) {
  margin: 22px 0 0;
  color: var(--text-body);
  font-size: 1.12rem;
  line-height: 1.75;
}

.admin-login {
  display: grid;
  gap: 14px;
  margin-top: 36px;
  border-top: 5px solid var(--brand);
  background: #f8fafc;
  padding: 24px;
}

.admin-login h2 {
  margin: 0 0 4px;
  color: var(--text-heading);
  font-size: 1.55rem;
}

.admin-login label {
  display: grid;
  gap: 7px;
  color: var(--text-heading);
  font-size: 0.92rem;
  font-weight: 800;
}

.admin-login input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: white;
  padding: 10px 12px;
}

.admin-login a {
  display: inline-grid;
  place-items: center;
  min-height: 50px;
  border: 0;
  background: var(--brand-green);
  color: white;
  text-decoration: none;
  font-weight: 900;
  padding: 12px 18px;
}

.admin-login a:hover,
.admin-login a:focus-visible {
  background: var(--brand);
}

.breaking-bar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  background: #eed665;
  color: #111827;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
}

.breaking-bar[hidden] {
  display: none;
}

.breaking-label {
  align-self: stretch;
  display: grid;
  place-items: center;
  background: #111827;
  color: #eed665;
  padding: 0 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.breaking-track {
  overflow: hidden;
  white-space: nowrap;
}

.breaking-track span {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  font-weight: 850;
  animation: breaking-scroll 22s linear infinite;
}

@keyframes breaking-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.event-modal[hidden] {
  display: none;
}

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: event-modal-fade 180ms ease-out both;
}

.event-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.event-modal-card {
  position: relative;
  width: min(560px, 100%);
  background: white;
  border-top: 8px solid var(--brand);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
  padding: 34px;
  animation: event-modal-card-in 220ms ease-out both;
}

.event-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  background: #f1f5f9;
  color: var(--text-heading);
  font-size: 1.5rem;
  cursor: pointer;
}

#eventModalEyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

#eventModalTitle {
  margin: 0;
  color: var(--text-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.04;
}

#eventModalText {
  margin-top: 18px;
  color: var(--text-body);
  font-size: 1.08rem;
  line-height: 1.75;
}

#eventModalLink {
  display: inline-flex;
  margin-top: 24px;
  background: var(--brand);
  color: white;
  padding: 13px 18px;
  text-decoration: none;
  font-weight: 850;
}

#eventModalLink[hidden] {
  display: none;
}

@keyframes event-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes event-modal-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

a {
  color: inherit;
}

.privacy-page {
  max-width: 860px;
  padding: 72px 0;
}

.privacy-kicker {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.privacy-page h1 {
  margin: 0 0 24px;
  color: var(--text-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.privacy-page h2 {
  margin: 34px 0 10px;
  color: var(--text-heading);
  font-size: 1.35rem;
}

.privacy-page p {
  max-width: 760px;
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.75;
}

button,
input {
  font: inherit;
  font-family: inherit;
}

button {
  cursor: pointer;
}

.site {
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 445px;
  background: #0f172a;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.2) 42%, rgba(15, 23, 42, 0.12) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.1) 54%, rgba(15, 23, 42, 0.5) 100%),
    url("assets/hero-station.png") center / cover no-repeat;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, 0.1) 46% 47%, transparent 47% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 130px);
}

.hero-slide-alt {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.54) 0%, rgba(15, 23, 42, 0.16) 46%, rgba(15, 23, 42, 0.2) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.14) 46%, rgba(15, 23, 42, 0.56) 100%),
    url("assets/hero-station.png") center 42% / cover no-repeat;
  filter: saturate(0.86) contrast(1.08);
}

.hero-slide.active {
  opacity: 1;
}

.brand-panel {
  position: absolute;
  z-index: 2;
  top: 64px;
  left: 0;
  width: max-content;
  max-width: calc(100% - 28px);
  background: #f7f7f7;
  padding: 16px 22px 18px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.16);
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 0.8vw, 12px);
  font-family: "Kyselka Headline", "Kyselka Sans", sans-serif;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0;
}

.institution-mark {
  display: block;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-institution-mark {
  width: clamp(48px, 4.8vw, 72px);
  height: clamp(48px, 4.8vw, 72px);
}

.brand-wordmark-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.brand-wordmark-text span + span {
  margin-left: 0.3em;
}

.brand-wordmark-text span {
  color: inherit;
  font-size: clamp(1.8rem, 3.45vw, 3.55rem);
  font-weight: 400;
  line-height: 0.95;
}

.hero-tools {
  position: absolute;
  z-index: 2;
  top: 92px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(620px, calc(100% - 480px));
  min-width: 500px;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.16);
}

.search-field {
  position: relative;
  flex: 1;
  min-height: 56px;
  display: flex;
  align-items: center;
  background: var(--menu-hover-bg);
  color: var(--brand-green);
  padding: 0 56px 0 20px;
}

.search-field span {
  position: absolute;
  top: 18px;
  color: var(--brand-green);
  pointer-events: none;
  transition: transform 160ms ease, font-size 160ms ease, color 160ms ease;
}

.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-heading);
  min-height: 56px;
  padding-top: 16px;
  outline: 0;
}

.search-field:focus-within span,
.search-field:has(input:not(:placeholder-shown)) span {
  color: var(--brand);
  font-size: 0.74rem;
  transform: translateY(-14px);
}

.search-field input:focus + strong,
.search-field input:not(:placeholder-shown) + strong {
  color: var(--brand);
}

.search-field strong {
  position: absolute;
  right: 18px;
  font-size: 1.75rem;
  line-height: 1;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  padding: 0 16px;
  background: var(--brand-green);
  color: white;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  transition: background 180ms ease;
}

.tool-button:hover,
.tool-button:focus-visible {
  background: var(--brand);
}

.main-nav {
  position: relative;
  z-index: 5;
  min-height: 60px;
  background: var(--brand-green);
  border-bottom: 1px solid var(--brand-green);
}

.mobile-nav-head {
  display: none;
}

.nav-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: 60px;
}

.nav-item {
  position: relative;
  min-width: 0;
}

.nav-toggle {
  width: 100%;
  height: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: var(--brand-green);
  color: white;
  padding: 0 20px;
  text-align: left;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.nav-direct {
  cursor: pointer;
}

.nav-icon {
  width: 25px;
  height: 25px;
  color: var(--brand);
  line-height: 1;
}

.nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-title {
  font-family: "Kyselka Sans", sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-item:hover .nav-toggle,
.nav-item.open .nav-toggle,
.nav-toggle:focus-visible {
  background: white;
  color: var(--brand);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: clamp(340px, 24vw, 430px);
  max-width: calc(100vw - 2rem);
  border: 1px solid #cbd5e1;
  background: white;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.nav-item:nth-last-child(-n + 2) .dropdown {
  left: auto;
  right: 0;
}

.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  border-bottom: 1px solid #e2e8f0;
  background: var(--menu-hover-bg);
  color: #334155;
  padding: 0 20px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 150ms ease, color 150ms ease;
}

.dropdown a:last-child {
  border-bottom: 0;
}

.dropdown a::before {
  content: "›";
  color: var(--brand);
  margin-right: 12px;
  font-size: 1.35rem;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: var(--brand);
  color: white;
}

.dropdown a:hover::before,
.dropdown a:focus-visible::before {
  color: white;
}

.content-band {
  background: var(--page);
  padding-bottom: 64px;
}

.content-frame {
  width: min(1280px, 100%);
  margin: 0 auto;
  background: white;
  padding: 42px 0 80px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  width: min(1100px, calc(100% - 96px));
  margin: 0 auto;
}

.quick-links a {
  position: relative;
  z-index: 0;
  height: 143px;
  display: grid;
  grid-template-rows: 70px 52px;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: white;
  text-align: center;
  text-decoration: none;
  padding: 15px 5px;
  row-gap: 6px;
  overflow: hidden;
  transform-origin: center;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.quick-links a:hover,
.quick-links a:focus-visible {
  z-index: 3;
  background: var(--menu-hover-bg);
  color: var(--brand);
  transform: scale(1.06);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.quick-icon {
  display: block;
  font-size: 3.6rem;
  line-height: 1;
  color: currentColor;
  align-self: center;
  justify-self: center;
  transition: color 180ms ease, background-color 180ms ease;
}

.quick-svg-icon {
  display: grid;
  place-items: center;
  width: 90px;
  height: 70px;
  align-self: center;
  justify-self: center;
}

.quick-svg-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.quick-fill-icon svg {
  fill: currentColor;
}

.quick-line-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.quick-city-icon {
  width: 90px;
  height: 70px;
  opacity: 1;
}

.quick-city-icon svg {
  transform: translateY(2px);
}

.quick-burning-log-icon {
  width: 90px;
  height: 70px;
}

.quick-burning-image {
  display: block;
  width: 90px;
  height: 70px;
  object-fit: contain;
  transform: translateY(1px);
}

.quick-burning-log-icon svg {
  transform: translateY(1px);
}

.quick-shield-icon {
  width: 90px;
  height: 70px;
}

.quick-hzs-image {
  display: block;
  width: 90px;
  height: 70px;
  object-fit: contain;
  transform: translateY(1px) scale(1.16);
}

.quick-shield-icon svg {
  transform: translateY(3px);
}

.quick-avjsdh-icon {
  width: 90px;
  height: 70px;
}

.quick-avjsdh-icon svg {
  transform: translateY(2px);
}

.quick-book-icon,
.quick-prevention-icon,
.quick-prevention-mask,
.quick-prevention-image,
.quick-protection-icon {
  width: 90px;
  height: 70px;
}

.quick-book-icon svg {
  transform: translateY(2px);
}

.quick-prevention-icon svg {
  transform: translateY(0);
  stroke-width: 4.2;
}

.quick-prevention-mask {
  display: block;
  background: currentColor;
  -webkit-mask: url("assets/prevence-hasicak-mask.png") center / contain no-repeat;
  mask: url("assets/prevence-hasicak-mask.png") center / contain no-repeat;
  transform: translateY(0);
}

.quick-prevention-image {
  display: block;
  object-fit: contain;
  transform: translateY(0);
}

.quick-protection-icon svg {
  transform: translateY(1px);
}

.quick-avjsdh-icon text {
  fill: currentColor;
  font-family: "Kyselka Sans", sans-serif;
  font-size: 24px;
  font-weight: 900;
}

.quick-image-icon {
  display: block;
  width: 136px;
  height: 62px;
  background: currentColor;
  mask: url("assets/mesto-klasterec-silueta.svg") center / contain no-repeat;
  -webkit-mask: url("assets/mesto-klasterec-silueta.svg") center / contain no-repeat;
}

.quick-links a:hover .quick-icon,
.quick-links a:focus-visible .quick-icon {
  color: var(--brand-green);
}

.quick-links a:hover .quick-burning-image,
.quick-links a:focus-visible .quick-burning-image,
.quick-links a:hover .quick-hzs-image,
.quick-links a:focus-visible .quick-hzs-image,
.quick-links a:hover .quick-prevention-image,
.quick-links a:focus-visible .quick-prevention-image {
  filter: brightness(0) saturate(100%) invert(21%) sepia(38%) saturate(1341%) hue-rotate(132deg) brightness(87%) contrast(101%);
}

.quick-links strong {
  font-family: "Kyselka Sans", sans-serif;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 52px;
  margin-top: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
  max-width: 100%;
  padding: 0 8px;
  text-wrap: balance;
}

.quick-links a.quick-text-only {
  grid-template-rows: 1fr;
  row-gap: 0;
}

.quick-links a.quick-text-only strong {
  align-items: center;
  justify-items: center;
  min-height: 0;
  margin-top: 0;
  font-family: "Kyselka Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
  padding: 0 14px;
}

.quick-links a[data-quick-icon="city-text"] strong {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 12px;
  font-family: "Kyselka Headline", "Kyselka Sans", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 0.98;
}

.quick-links a[data-quick-icon="city-text"]::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.quick-links a[data-quick-icon="city-text"]:hover::before,
.quick-links a[data-quick-icon="city-text"]:focus-visible::before {
  transform: scaleY(1);
}

.main-grid {
  width: min(1100px, calc(100% - 96px));
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.news-section h1,
.aside-column h2,
.section-heading h2 {
  color: var(--text-heading);
  letter-spacing: 0;
}

.news-section h1 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5vw, 3.5rem);
  line-height: 1;
}

.section-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-link {
  color: var(--brand-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

.news-grid {
  display: grid;
  gap: 0;
}

.news-card {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.news-card:first-child {
  border-top: 1px solid var(--line);
}

.news-card-with-image {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 22px;
  align-items: start;
}

.news-card-image {
  grid-row: span 5;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--menu-hover-bg);
}

.news-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.date {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.news-card h2 {
  margin: 12px 0 16px;
  color: var(--text-heading);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.16;
}

.news-card p,
.section-heading p,
.info-card p,
.vehicle-card p {
  color: var(--text-body);
  line-height: 1.8;
}

@media (max-width: 700px) {
  .news-card-with-image {
    display: block;
  }

  .news-card-image {
    margin-bottom: 18px;
  }
}

.detail-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 0.95rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.aside-column {
  display: grid;
  gap: 24px;
}

.aside-column h2 {
  margin-bottom: 22px;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1;
}

.side-block {
  border-top: 5px solid var(--brand);
  background: #fff;
  padding: 26px 0 0;
}

.event-item,
.summary-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.mini-calendar {
  margin-top: 22px;
  background: #f8fafc;
  padding: 18px;
}

.calendar-title {
  margin-bottom: 12px;
  color: var(--text-heading);
  font-weight: 800;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  color: var(--text-body);
  font-size: 0.88rem;
}

.calendar-grid span {
  padding: 7px 0;
  background: white;
}

.calendar-grid .calendar-weekday {
  color: var(--brand);
  font-weight: 900;
}

.calendar-grid .muted {
  color: #a8b2c0;
}

.calendar-grid .today {
  background: var(--brand);
  color: white;
  font-weight: 900;
}

.visitor-block dl {
  margin: 0;
}

.visitor-block dl div,
.weather-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--text-body);
}

.visitor-block dt,
.visitor-block dd {
  margin: 0;
}

.visitor-block dt {
  color: var(--text-heading);
  font-weight: 800;
}

.weather-row {
  align-items: center;
}

.weather-row strong {
  color: var(--text-heading);
}

.weather-widget {
  background: linear-gradient(135deg, var(--brand-green) 0%, #00483f 100%);
  color: #fff;
  padding: 20px;
  box-shadow: 0 16px 34px rgba(9, 35, 48, 0.16);
}

.weather-widget-loading {
  background: var(--menu-hover-bg);
  color: var(--text-heading);
  box-shadow: none;
}

.weather-widget-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.weather-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.weather-widget-main strong {
  display: block;
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quick-city-title {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(162px, 78%, 184px);
  aspect-ratio: 356 / 159;
  text-align: center;
  transition: transform 180ms ease;
}

.quick-city-fallback {
  display: grid;
  gap: 0;
  color: #fff;
  font: inherit;
  line-height: 0.98;
  transition: opacity 180ms ease, color 180ms ease;
}

.quick-city-fallback span {
  display: block;
  font: inherit;
  line-height: 1.02;
}

.quick-city-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 180ms ease;
}

.quick-city-title.is-wordmark-loaded .quick-city-fallback {
  opacity: 0;
}

.quick-city-title.is-wordmark-loaded .quick-city-logo-white {
  opacity: 1;
}

.quick-city-logo-pink {
  opacity: 0;
}

.quick-links a.quick-text-only:hover .quick-city-title,
.quick-links a.quick-text-only:focus-visible .quick-city-title {
  transform: scale(1.02);
}

.quick-links a.quick-text-only:hover .quick-city-title.is-wordmark-loaded .quick-city-logo-white,
.quick-links a.quick-text-only:focus-visible .quick-city-title.is-wordmark-loaded .quick-city-logo-white {
  opacity: 0;
}

.quick-links a.quick-text-only:hover .quick-city-title.is-wordmark-loaded .quick-city-logo-pink,
.quick-links a.quick-text-only:focus-visible .quick-city-title.is-wordmark-loaded .quick-city-logo-pink {
  opacity: 1;
}

.quick-links a.quick-text-only:hover .quick-city-fallback,
.quick-links a.quick-text-only:focus-visible .quick-city-fallback {
  color: var(--brand);
}

.quick-links a.quick-text-only:hover .quick-av-title span:first-child,
.quick-links a.quick-text-only:focus-visible .quick-av-title span:first-child {
  color: var(--brand-green);
}

.quick-links a.quick-text-only:hover .quick-av-title span:last-child,
.quick-links a.quick-text-only:focus-visible .quick-av-title span:last-child {
  color: var(--brand);
}

.quick-av-title {
  display: grid;
  gap: 4px;
  text-align: center;
}

.quick-av-title span {
  font-family: "Kyselka Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
  transition: color 180ms ease;
}

.quick-av-title span:first-child {
  font-size: inherit;
  line-height: inherit;
}

.quick-av-title span:last-child {
  font-size: inherit;
  line-height: inherit;
}

.weather-widget-main span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.weather-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: #fff;
}

.weather-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.weather-icon .sun-core {
  fill: #eed665;
  stroke: #fff;
  stroke-width: 3;
}

.weather-icon .sun-rays,
.weather-icon .cloud-shape,
.weather-icon .rain-lines,
.weather-icon .fog-lines {
  fill: none;
  stroke: currentColor;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-icon .cloud-shape {
  fill: none;
}

.weather-icon .rain-lines {
  stroke: #b0d0ef;
}

.weather-icon .fog-lines {
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 5;
}

.weather-icon .lightning {
  fill: #eed665;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.weather-widget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 16px 0;
}

.weather-widget-grid div {
  min-width: 0;
}

.weather-widget-grid span,
.weather-widget-foot {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.weather-widget-grid strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 0.94rem;
  line-height: 1.25;
}

.weather-widget-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.map-widget {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--menu-hover-bg);
  aspect-ratio: 4 / 3;
}

.map-widget iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.mapy-brand {
  position: absolute;
  right: 12px;
  bottom: 78px;
  display: inline-flex;
  padding: 8px 12px;
  background: #2dbb31;
  color: #fff;
  font-family: "Kyselka Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-2deg);
}

.map-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 900;
  text-underline-offset: 4px;
}

.weather-source {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.event-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.event-title {
  margin-top: 8px;
  color: var(--text-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.22;
}

.summary-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
}

.summary-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--menu-hover-bg);
  color: var(--brand-green);
  font-size: 1.25rem;
}

.summary-label {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.summary-value {
  margin-top: 8px;
  color: var(--text-heading);
  font-size: 1.15rem;
  line-height: 1.5;
}

.info-section,
.vehicle-section {
  width: min(1280px, calc(100% - 96px));
  margin: 72px auto 0;
}

.section-heading {
  max-width: 820px;
}

.section-heading span {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 12px 0 16px;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  line-height: 1.08;
}

.section-heading p {
  font-size: 1.1rem;
}

.info-grid,
.vehicle-grid {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

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

.info-card {
  border: 1px solid var(--line);
  padding: 28px;
  min-height: 260px;
  background: #fff;
}

.info-card-icon {
  color: var(--brand);
  font-size: 2rem;
}

.info-card h3,
.vehicle-card h3 {
  margin: 18px 0 12px;
  color: var(--text-heading);
  font-size: 1.35rem;
}

.info-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--brand-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

.vehicle-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.vehicle-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  background: white;
  overflow: hidden;
}

.vehicle-image {
  aspect-ratio: 16 / 10;
  min-height: 140px;
  height: auto;
  background:
    linear-gradient(140deg, rgba(0, 85, 75, 0.84), rgba(230, 33, 90, 0.64)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 28px);
}

.vehicle-body {
  display: grid;
  align-content: start;
  padding: 20px;
}

.vehicle-type {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer {
  background: var(--brand-green);
  color: white;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(220px, 1fr) minmax(220px, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 52px;
}

.footer-card {
  min-width: 0;
  max-width: 360px;
}

.footer-card-primary {
  max-width: 440px;
}

.footer-institution-brand {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.footer-institution-mark {
  width: 72px;
  height: 72px;
}

.footer-institution-brand strong,
.footer-institution-brand span {
  display: block;
}

.footer-institution-brand strong {
  color: #fff;
  font-family: "Kyselka Headline", "Kyselka Sans", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.04;
}

.footer-institution-brand span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer h2 {
  margin: 0 0 20px;
  color: white;
  font-size: clamp(1.55rem, 2.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1;
}

.footer p {
  color: white;
  font-size: 1.02rem;
  line-height: 1.75;
}

.footer a {
  color: white;
  text-underline-offset: 4px;
}

.footer-action {
  display: inline-flex;
  margin-top: 6px;
  font-weight: 800;
}

.footer-contact-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.footer-contact-list div {
  display: grid;
  gap: 2px;
}

.footer-contact-list dt,
.footer-contact-list dd {
  margin: 0;
}

.footer-contact-list dt,
.footer-role {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-contact-list dd {
  font-size: 1.03rem;
  line-height: 1.35;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 30px 0 34px;
}

.footer-bottom p {
  margin: 0 0 4px;
  font-size: 0.98rem;
  line-height: 1.55;
}
@media (max-width: 1360px) {
  .hero-tools {
    display: none;
  }
}

@media (max-width: 1120px) {

  .content-frame {
    padding: 32px 0 64px;
  }

  .vehicle-section {
    width: min(100% - 56px, 960px);
  }

  .vehicle-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .nav-toggle {
    gap: 9px;
    padding: 0 8px;
  }

  .nav-icon {
    width: 22px;
    height: 22px;
  }

  .nav-title {
    font-size: 15px;
  }

  .quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100% - 56px, 760px);
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .aside-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

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

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

  .footer-bottom {
    justify-content: flex-start;
    align-items: flex-start;
  }

}

@media (max-width: 820px) {
  .maintenance-page {
    padding: 16px;
  }

  .maintenance-card {
    grid-template-columns: 1fr;
  }

  .maintenance-image {
    min-height: 220px;
  }

  .hero {
    min-height: 300px;
    overflow: hidden;
  }

  .brand-panel {
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 16px 20px 18px;
  }

  .brand-wordmark {
    gap: 0;
  }

  .brand-institution-mark {
    display: none;
  }

  .brand-wordmark-text span + span {
    margin-left: 0.24em;
  }

  .brand-wordmark-text span {
    font-size: clamp(1.12rem, 5vw, 1.92rem);
  }

  .mobile-nav-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100vw;
    min-height: 74px;
    padding: 10px 14px 10px 18px;
    color: white;
    font-weight: 700;
    background:
      linear-gradient(90deg, rgba(230, 33, 90, 0.18), transparent 42%),
      var(--brand-green);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16);
  }

  .mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    line-height: 1;
  }

  .mobile-institution-mark {
    width: 38px;
    height: 38px;
  }

  .mobile-nav-brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .mobile-nav-brand-copy span {
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
  }

  .mobile-nav-brand-copy strong {
    max-width: 42vw;
    overflow: hidden;
    color: white;
    font-family: "Kyselka Sans", sans-serif;
    font-size: clamp(1.02rem, 4.3vw, 1.32rem);
    font-weight: 800;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-brand small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
  }

  .mobile-founded-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 108px;
    padding: 6px 13px;
    border: 1px solid rgba(238, 214, 101, 0.68);
    border-radius: 999px;
    color: var(--brand-green);
    background: #eed665;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  }

  .mobile-menu-button {
    position: static;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin-left: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0;
    border-radius: 0;
    transition: background 180ms ease, transform 180ms ease;
  }

  .mobile-menu-button:active {
    transform: scale(0.94);
  }

  .main-nav.mobile-open .mobile-menu-button {
    background: rgba(255, 255, 255, 0.12);
  }

  .menu-icon {
    display: block;
    color: white;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    transform-origin: center;
    transition: transform 240ms ease, opacity 180ms ease;
  }

  .main-nav.mobile-open .menu-icon {
    transform: rotate(90deg) scale(1.08);
  }

  .nav-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    background: white;
    opacity: 0;
    transform: translateY(-10px) scaleY(0.98);
    transform-origin: top center;
    transition:
      max-height 420ms cubic-bezier(.2, .8, .2, 1),
      padding 420ms cubic-bezier(.2, .8, .2, 1),
      opacity 220ms ease,
      transform 360ms cubic-bezier(.2, .8, .2, 1);
    will-change: max-height, opacity, transform;
  }

  .main-nav.mobile-open .nav-list {
    max-height: 82vh;
    overflow-y: auto;
    padding: 16px;
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }

  .nav-item {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 280ms ease;
  }

  .main-nav.mobile-open .nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav.mobile-open .nav-item:nth-child(1) { transition-delay: 30ms; }
  .main-nav.mobile-open .nav-item:nth-child(2) { transition-delay: 60ms; }
  .main-nav.mobile-open .nav-item:nth-child(3) { transition-delay: 90ms; }
  .main-nav.mobile-open .nav-item:nth-child(4) { transition-delay: 120ms; }
  .main-nav.mobile-open .nav-item:nth-child(5) { transition-delay: 150ms; }
  .main-nav.mobile-open .nav-item:nth-child(6) { transition-delay: 180ms; }

  .main-nav:not(.mobile-open) .nav-item {
    transition-delay: 0ms;
  }

  .nav-item,
  .nav-item:first-child {
    border: 1px solid var(--line);
  }

  .nav-toggle {
    height: auto;
    justify-content: space-between;
    min-height: 54px;
    background: white;
    color: var(--text-heading);
  }

  .nav-title {
    text-transform: none;
  }

  .dropdown {
    position: static;
    width: 100%;
    max-width: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
  }

  .nav-item.open .dropdown {
    display: grid;
    max-height: 520px;
  }

  .nav-item.open .dropdown a {
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle::after {
    content: "⌄";
    flex: 0 0 auto;
    color: var(--brand);
    font-size: 1.35rem;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 220ms ease;
  }

  .nav-direct::after {
    content: none;
  }

  .nav-item.open .nav-toggle::after {
    transform: rotate(180deg);
  }

  .dropdown a {
    min-height: 44px;
    background: #f8fafc;
    color: var(--text);
  }

  .content-frame {
    padding: 24px 0 56px;
  }

  .section-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-link {
    font-size: 1rem;
  }

  .quick-links,
  .main-grid,
  .news-grid,
  .aside-column,
  .info-grid,
  .vehicle-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-links,
  .main-grid,
  .info-section,
  .vehicle-section {
    width: calc(100% - 36px);
  }

  .footer-card,
  .footer-card-primary {
    max-width: none;
  }

  .footer-bottom {
    display: block;
  }

  .main-grid {
    gap: 48px;
    margin-top: 48px;
  }

  .quick-links a {
    height: 122px;
    grid-template-rows: 56px 44px;
    row-gap: 4px;
  }

  .quick-svg-icon,
  .quick-city-icon,
  .quick-burning-log-icon,
  .quick-burning-image,
  .quick-shield-icon,
  .quick-hzs-image,
  .quick-avjsdh-icon,
  .quick-book-icon,
  .quick-prevention-icon,
  .quick-prevention-mask,
  .quick-prevention-image,
  .quick-protection-icon {
    width: 76px;
    height: 56px;
  }

  .quick-links strong {
    min-height: 44px;
    font-size: 18px;
  }

  .quick-links a.quick-text-only strong {
    font-size: 22px;
  }

  .quick-links a[data-quick-icon="city-text"] strong {
    font-size: 30px;
  }

  .quick-city-title {
    width: clamp(152px, 64%, 174px);
  }

}

@media (min-width: 700px) and (max-width: 820px) {
  .hero {
    min-height: 360px;
  }

  .brand-panel {
    top: 72px;
    max-width: calc(100vw - 56px);
    padding: 20px 30px 22px;
  }

  .brand-wordmark-text span {
    font-size: clamp(1.65rem, 4vw, 2.45rem);
  }

  .mobile-nav-head {
    min-height: 92px;
    padding: 14px 28px 14px 34px;
    gap: 20px;
  }

  .mobile-institution-mark {
    width: 56px;
    height: 56px;
  }

  .mobile-nav-brand {
    gap: 16px;
  }

  .mobile-nav-brand-copy {
    gap: 4px;
  }

  .mobile-nav-brand-copy span {
    font-size: 0.86rem;
    letter-spacing: 0.1em;
  }

  .mobile-nav-brand-copy strong {
    max-width: 62vw;
    font-size: clamp(1.28rem, 3.4vw, 1.68rem);
  }

  .mobile-menu-button {
    width: 54px;
    min-width: 54px;
    height: 54px;
  }

  .menu-icon {
    font-size: 1.78rem;
  }
}



.technique-modal[hidden] {
  display: none;
}

.technique-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(14px, 3vw, 34px);
}

.technique-modal-open .site,
.technique-modal-open .footer,
.technique-modal-open .breaking-bar {
  filter: blur(7px);
  transform: scale(1.01);
  transform-origin: center;
}

.technique-modal-open {
  overflow: hidden;
}

.technique-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 44, 39, 0.58);
  backdrop-filter: blur(6px);
}

.technique-modal-card {
  position: relative;
  width: min(1080px, calc(100vw - 36px));
  height: min(680px, calc(100vh - 42px));
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  background: white;
  color: var(--text-body);
  box-shadow: 0 30px 80px rgba(0, 30, 26, 0.34);
  overflow: hidden;
  margin: auto;
}

.technique-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--brand);
  color: white;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.technique-modal-close:hover,
.technique-modal-close:focus-visible {
  background: var(--brand-green);
  box-shadow: 0 12px 28px rgba(0, 85, 75, 0.28);
  transform: rotate(90deg) scale(1.08);
}

.technique-gallery {
  min-height: 480px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--brand-green);
}

.technique-photo-frame {
  min-height: 0;
  background: #003f38;
}

.technique-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}


.technique-photo-frame img.is-sliding-out-next,
.technique-photo-frame img.is-sliding-out-prev {
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(.45, 0, .2, 1);
}

.technique-photo-frame img.is-sliding-out-next {
  transform: translateX(-72px) scale(1.02);
}

.technique-photo-frame img.is-sliding-out-prev {
  transform: translateX(72px) scale(1.02);
}

.technique-photo-frame img.is-sliding-in-next,
.technique-photo-frame img.is-sliding-in-prev {
  animation-duration: 340ms;
  animation-timing-function: cubic-bezier(.22, .8, .24, 1);
  animation-fill-mode: both;
}

.technique-photo-frame img.is-sliding-in-next {
  animation-name: techniquePhotoInNext;
}

.technique-photo-frame img.is-sliding-in-prev {
  animation-name: techniquePhotoInPrev;
}

@keyframes techniquePhotoInNext {
  from { opacity: 0; transform: translateX(92px) scale(1.02); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes techniquePhotoInPrev {
  from { opacity: 0; transform: translateX(-92px) scale(1.02); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
.technique-gallery-controls {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  min-height: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.technique-gallery-controls button {
  width: 52px;
  height: 64px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 2rem;
}

.technique-gallery-controls button:hover,
.technique-gallery-controls button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.technique-gallery-controls span {
  text-align: center;
  font-weight: 900;
}

.technique-content {
  height: min(680px, calc(100vh - 42px));
  overflow-y: auto;
  padding: clamp(28px, 4vw, 52px);
  scrollbar-color: var(--brand) #eef2f1;
}

.technique-type {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.technique-content h2 {
  margin: 0;
  color: var(--text-heading);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.technique-lead {
  margin: 18px 0 0;
  color: var(--text-heading);
  font-size: 1.13rem;
  font-weight: 700;
  line-height: 1.65;
}

.technique-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.technique-specs div {
  border-left: 4px solid var(--brand);
  background: var(--menu-hover-bg);
  padding: 12px 14px;
}

.technique-specs dt {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.technique-specs dd {
  margin: 4px 0 0;
  color: var(--text-heading);
  font-weight: 800;
}

.technique-text p {
  margin: 0 0 18px;
  color: var(--text-body);
  line-height: 1.85;
}



@media (max-width: 820px) {
  .technique-modal-card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
  }

  .technique-gallery {
    min-height: 320px;
  }

  .technique-content {
    max-height: calc(100vh - 380px);
  }

  .technique-specs {
    grid-template-columns: 1fr;
  }

}











.content-modal[hidden] {
  display: none;
}

.content-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 34px);
}

.content-modal-open .site,
.content-modal-open .footer,
.content-modal-open .breaking-bar {
  filter: blur(7px);
  transform: scale(1.01);
  transform-origin: center;
}

.content-modal-open {
  overflow: hidden;
}

.content-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 85, 75, 0.58);
  backdrop-filter: blur(6px);
}

.content-modal-card {
  position: relative;
  width: min(860px, calc(100vw - 36px));
  max-height: min(680px, calc(100vh - 42px));
  background: var(--white);
  color: var(--text-body);
  box-shadow: 0 30px 80px rgba(0, 30, 26, 0.34);
  overflow: hidden;
}

.content-panel {
  position: relative;
  max-height: min(680px, calc(100vh - 42px));
  overflow-y: auto;
  padding: clamp(34px, 5vw, 62px) clamp(30px, 5vw, 70px);
  scrollbar-color: var(--brand) #eef2f1;
}

.content-institution-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--brand);
  font-family: "Kyselka Headline", "Kyselka Sans", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.05;
}

.content-institution-mark {
  width: 54px;
  height: 54px;
}

.content-panel h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--text-heading);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.96;
}

.content-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 820px) {
  .content-modal-card {
    width: min(720px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
  }

  .content-panel {
    max-height: calc(100vh - 24px);

  }

  .content-facts {
    grid-template-columns: 1fr;
  }
}




.news-card {
  cursor: pointer;
}

.news-card:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 6px;
}

.news-modal[hidden] {
  display: none;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(14px, 3vw, 34px);
}

.news-modal-open .site,
.news-modal-open .footer,
.news-modal-open .breaking-bar {
  filter: blur(7px);
  transform: scale(1.01);
  transform-origin: center;
}

.news-modal-open {
  overflow: hidden;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 85, 75, 0.58);
  backdrop-filter: blur(6px);
}

.news-modal-card {
  position: relative;
  width: min(980px, calc(100vw - 36px));
  max-height: min(680px, calc(100vh - 42px));
  background: var(--white);
  color: var(--text-body);
  box-shadow: 0 30px 80px rgba(0, 30, 26, 0.34);
  overflow: hidden;
}

.news-modal-has-media .news-modal-card {
  height: min(680px, calc(100vh - 42px));
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
}

.news-modal-text-only .news-modal-card {
  width: min(860px, calc(100vw - 36px));
}


.news-modal-media[hidden],
.news-modal-gallery-controls[hidden] {
  display: none !important;
}
.news-modal-media {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--brand-green);
}

.news-modal-photo-frame {
  min-height: 0;
  overflow: hidden;
  background: #003f38;
}

.news-modal-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.news-modal-gallery-controls {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  min-height: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.news-modal-gallery-controls button {
  width: 52px;
  height: 64px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 2rem;
}

.news-modal-gallery-controls button:hover,
.news-modal-gallery-controls button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.news-modal-gallery-controls span {
  text-align: center;
  font-weight: 900;
}

.news-modal-panel {
  max-height: min(680px, calc(100vh - 42px));
  overflow-y: auto;
  padding: clamp(34px, 5vw, 62px) clamp(30px, 5vw, 70px);
  scrollbar-color: var(--brand) #eef2f1;
}

.news-modal-panel h2 {
  margin: 10px 0 18px;
  color: var(--text-heading);
  font-size: clamp(1.9rem, 3.2vw, 3.05rem);
  line-height: 1.08;
}

.news-modal-source[hidden] {
  display: none;
}

@media (max-width: 820px) {
  .news-modal-has-media .news-modal-card {
    grid-template-columns: 1fr;
    height: calc(100vh - 24px);
  }

  .news-modal-media {
    min-height: 300px;
  }

  .news-modal-panel {
    max-height: calc(100vh - 24px);
  }

  .news-modal-has-media .news-modal-panel {
    max-height: calc(100vh - 388px);
  }
}

.news-modal-text-only .news-modal-panel {
  padding: clamp(34px, 5vw, 62px) clamp(30px, 5vw, 70px);
}

.news-modal-text-only .news-modal-panel h2 {
  max-width: 780px;
  font-size: clamp(1.9rem, 3.2vw, 3.05rem);
  line-height: 1.08;
}

.news-modal-text-only .news-modal-panel .date {
  margin-top: 12px;
}

.news-modal-text-only .technique-text p {
  max-width: 72ch;
}



/* Press release detail */
.news-modal-card {
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.news-modal-panel {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 72%, #f8fbfa 100%);
}

.news-modal-panel .technique-type {
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 10px;
  border-left: 4px solid var(--brand);
  background: #fbdbdb;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-modal-panel .date {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.96rem;
  font-weight: 800;
}

.news-modal-panel h2 {
  max-width: 820px;
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dbe7e4;
  font-size: clamp(1.75rem, 2.6vw, 2.65rem);
  line-height: 1.12;
}

.news-modal-panel .technique-text {
  max-width: 760px;
}

.news-modal-panel .technique-text p {
  margin: 0 0 18px;
  color: #303a38;
  font-size: 1.03rem;
  line-height: 1.78;
}

.news-modal-panel .technique-text p:first-child {
  font-size: 1.11rem;
  font-weight: 700;
  line-height: 1.68;
}

.news-modal-has-media .news-modal-panel {
  padding-top: clamp(30px, 4vw, 50px);
}

.news-modal-text-only .news-modal-card {
  width: min(900px, calc(100vw - 36px));
}

.news-modal-text-only .news-modal-panel h2 {
  max-width: 820px;
  font-size: clamp(1.75rem, 2.8vw, 2.85rem);
}

.news-card-image {
  position: relative;
}

.news-card-image span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 9px;
  background: var(--brand);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* Phase 4: mobile navigation polish */
@media (max-width: 820px) {
  .mobile-nav-brand small {
    display: none;
  }

  .main-nav.mobile-open .nav-list {
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .nav-toggle::after {
    content: "⌄";
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #fff5f7;
    color: var(--brand);
    font-size: 1.1rem;
    font-weight: 950;
  }

  .nav-item.open .nav-toggle::after {
    transform: rotate(180deg);
    background: var(--brand);
    color: white;
  }

  .dropdown {
    transition: max-height 320ms cubic-bezier(.2, .8, .2, 1), padding 320ms cubic-bezier(.2, .8, .2, 1);
  }

  .nav-item.open .dropdown {
    padding: 8px 0 10px;
  }

  .dropdown a {
    border-radius: 8px;
  }
}

/* Decent design pass 2026-05-12: jemnejsi hlavicka, ponechana funkcnost. */
.brand-panel {
  top: 58px;
  padding: 14px 22px 16px 18px;
  background: rgba(255, 255, 255, 0.94);
  border-left: 3px solid var(--brand);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
}

.brand-wordmark {
  gap: clamp(9px, 0.85vw, 13px);
}

.brand-institution-mark {
  width: clamp(44px, 4.2vw, 62px);
  height: clamp(44px, 4.2vw, 62px);
}

.brand-wordmark-text span {
  font-size: clamp(1.72rem, 3.1vw, 3.15rem);
}

.main-nav {
  box-shadow: 0 8px 24px rgba(0, 85, 75, 0.12);
}

.content-frame {
  border-top: 1px solid rgba(230, 33, 90, 0.12);
}

.section-topline {
  border-bottom-color: rgba(230, 33, 90, 0.18);
}

.side-block {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

@media (min-width: 700px) and (max-width: 820px) {
  .brand-panel {
    top: 68px;
    max-width: calc(100vw - 46px);
    padding: 18px 28px 20px 22px;
  }

  .brand-wordmark-text span {
    font-size: clamp(1.52rem, 3.75vw, 2.25rem);
  }
}

@media (max-width: 699px) {
  .brand-panel {
    top: 42px;
    max-width: calc(100vw - 18px);
    padding: 12px 16px 13px 13px;
    border-left-width: 3px;
  }

  .brand-wordmark-text span {
    font-size: clamp(1.08rem, 4.8vw, 1.62rem);
  }
}
