:root {
  --bg: #f3f6fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-dark: #0e1b2e;
  --text: #172236;
  --muted: #5e6a7c;
  --line: rgba(23, 34, 54, 0.08);
  --primary: #007e8a;
  --primary-deep: #005f69;
  --accent: #f2a93b;
  --accent-soft: #fff1d8;
  --shadow: 0 24px 60px rgba(13, 32, 54, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 126, 138, 0.18), transparent 32%),
    radial-gradient(circle at right 10% top 18%, rgba(242, 169, 59, 0.18), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #eef3f9 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.site-shell::before {
  background: rgba(0, 126, 138, 0.22);
  top: -100px;
  left: -120px;
}

.site-shell::after {
  background: rgba(242, 169, 59, 0.18);
  right: -110px;
  bottom: 10%;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0;
  background: transparent;
}

.site-header .container,
.footer-top,
.hero-grid,
.split-layout,
.cards-grid,
.info-grid,
.mini-grid,
.metrics-grid,
.timeline-grid,
.news-layout,
.cta-band,
.three-col {
  display: grid;
  gap: 24px;
}

.site-header .container {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(23, 34, 54, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 126, 138, 0.14));
}

.brand-copy strong,
.page-intro h1,
.hero-copy h1,
.section-heading h2,
.card h3,
.metric strong,
.accordion-item summary,
.timeline-item h3,
.cta-box h3 {
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  letter-spacing: -0.03em;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1.05;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  border-radius: 14px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--surface-dark);
  border-radius: 999px;
  position: relative;
  transition: 0.25s ease;
}

.nav-toggle:hover {
  transform: translateY(-1px);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] {
  color: var(--primary-deep);
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  justify-self: end;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  color: #4d5b6f;
  font-weight: 600;
  font: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: rgba(0, 126, 138, 0.6);
  transition: transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav a.active {
  color: var(--primary-deep);
}

.hero,
.page-intro {
  padding: 46px 0 18px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 126, 138, 0.14);
  color: var(--primary-deep);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.hero-copy h1,
.page-intro h1 {
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 0.96;
  margin: 0 0 18px;
}

.hero-copy p,
.page-intro p,
.section-heading p,
.card p,
.timeline-item p,
.info-card p,
.accordion-item p,
.text-block p,
.cta-box p,
.news-note p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.hero-actions,
.section-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #14a2a8);
  box-shadow: 0 18px 30px rgba(0, 126, 138, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(23, 34, 54, 0.08);
  color: var(--text);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.hero-panel,
.card,
.metric,
.timeline-item,
.accordion-item,
.info-card,
.cta-box,
.note-card,
.news-shell,
.text-block,
.stat-band,
.mini-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(0, 126, 138, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(242, 169, 59, 0.14), rgba(255, 255, 255, 0));
}

.hero-stack,
.metrics-grid,
.info-grid,
.cards-grid,
.mini-grid,
.timeline-grid,
.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-band {
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}

.stat-band strong,
.mini-card strong {
  font-size: 2rem;
  line-height: 1;
}

.stat-band span,
.mini-card span {
  color: var(--muted);
}

.mini-grid {
  margin-top: 18px;
}

.mini-card {
  padding: 20px;
}

.section {
  padding: 36px 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  max-width: 720px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.02;
  margin: 0;
}

.split-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.card,
.info-card,
.timeline-item,
.accordion-item,
.text-block,
.map-card,
.cta-box,
.note-card {
  padding: 26px;
}

.card h3,
.timeline-item h3,
.info-card h3,
.cta-box h3,
.text-block h3 {
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.map-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.map-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 22px;
  background: #eef3f6;
}

.map-note {
  margin: 0;
  color: var(--muted);
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8b5f00;
  font-size: 0.92rem;
}

.social-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  font-weight: 700;
  color: var(--text);
  border: 1px solid rgba(23, 34, 54, 0.08);
  background: rgba(255, 255, 255, 0.82);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(13, 32, 54, 0.1);
}

.social-link-facebook {
  border-color: rgba(24, 119, 242, 0.18);
  color: #1858b6;
}

.social-link-instagram {
  border-color: rgba(193, 53, 132, 0.18);
  color: #b23879;
}

.cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics-grid {
  margin-top: 18px;
}

.metric {
  padding: 24px;
}

.metric strong {
  display: block;
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.timeline-grid {
  align-items: stretch;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #14a2a8);
  box-shadow: 0 0 0 8px rgba(0, 126, 138, 0.12);
  display: inline-block;
  margin-bottom: 18px;
}

.news-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
}

.news-shell {
  padding: 18px;
}

.news-frame {
  border: 0;
  width: 100%;
  min-height: 640px;
  border-radius: 22px;
  background: #fff;
}

.news-placeholder {
  min-height: 640px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.92)),
    linear-gradient(135deg, rgba(0, 126, 138, 0.05), rgba(242, 169, 59, 0.05));
  border: 1px solid rgba(23, 34, 54, 0.08);
  padding: 26px;
  display: grid;
  gap: 18px;
}

.news-placeholder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.news-profile {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.news-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffd089, #ff9f7a 48%, #d45cff);
  padding: 2px;
}

.news-avatar::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: #fff;
}

.news-profile strong {
  display: block;
  font-size: 1rem;
}

.news-profile span,
.news-kicker,
.news-item time {
  color: var(--muted);
}

.news-kicker {
  font-size: 0.94rem;
}

.news-feed {
  display: grid;
  gap: 14px;
}

.news-item {
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 34, 54, 0.06);
  border-radius: 18px;
}

.news-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.news-item p {
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.65;
}

.news-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 126, 138, 0.1);
  color: var(--primary-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.news-note {
  display: grid;
  gap: 18px;
}

.note-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
}

.note-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.accordion {
  display: grid;
  gap: 16px;
}

.accordion-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 700;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item p {
  padding-top: 12px;
}

.accordion-item .list {
  margin-top: 16px;
}

.cta-band {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: center;
  padding: 26px;
  background: linear-gradient(135deg, rgba(0, 126, 138, 0.92), rgba(7, 88, 104, 0.98));
  border-radius: 30px;
  color: #fff;
  box-shadow: 0 24px 50px rgba(0, 95, 105, 0.26);
}

.cta-band p,
.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.cta-band .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.cta-band .button-secondary {
  background: #fff;
}

.site-footer {
  padding: 40px 0 26px;
}

.footer-top {
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.96), rgba(239, 245, 251, 0.94));
  border: 1px solid rgba(23, 34, 54, 0.08);
  border-radius: 30px;
  color: var(--text);
  box-shadow: 0 18px 40px rgba(13, 32, 54, 0.08);
}

.footer-top p,
.footer-top li,
.footer-top span {
  color: #415066;
}

.footer-top strong,
.footer-top a {
  color: var(--text);
}

.footer-top ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  color: #415066;
  font-size: 0.94rem;
}

.page-intro-card {
  padding: 24px;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.home-intro-card {
  max-width: none;
  padding: 36px;
}

.home-title {
  font-size: clamp(1.22rem, 2.55vw, 2.35rem);
  font-weight: 600;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 34, 54, 0.06);
  border-radius: 16px;
}

.tagline {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  font-weight: 800;
}

.map-card .tagline,
.text-block .tagline,
.info-card .tagline {
  display: inline-block;
  margin-bottom: 14px;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.schedule-hours {
  display: grid;
  grid-template-columns: 86px auto;
  justify-content: start;
  column-gap: 14px;
  row-gap: 4px;
  align-items: baseline;
}

.muted {
  color: var(--muted);
}

.text-block + .text-block {
  margin-top: 20px;
}

.split-layout > .info-card + .info-card {
  margin-top: 0;
}

.split-layout > .text-block + .text-block {
  margin-top: 0;
}

.table-like {
  display: grid;
  gap: 12px;
}

.table-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 34, 54, 0.06);
  border-radius: 18px;
}

.table-row strong {
  font-size: 0.98rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 18px;
  justify-content: center;
}

.kolektyv-heading {
  max-width: none;
  justify-items: center;
  text-align: center;
}

.kolektyv-heading h2 {
  font-weight: 500;
}

.staff-card {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  gap: 10px;
  padding: 10px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: none;
  text-align: center;
}

.staff-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
}

.staff-photo-empty {
  border: 1px dashed rgba(23, 34, 54, 0.22);
  background:
    radial-gradient(circle at 50% 38%, rgba(23, 34, 54, 0.12) 0 18px, transparent 19px),
    radial-gradient(circle at 50% 78%, rgba(23, 34, 54, 0.1) 0 34px, transparent 35px);
}

.staff-body {
  display: grid;
  grid-template-rows: minmax(3.2em, auto) auto;
  align-self: stretch;
  gap: 8px;
  width: 100%;
}

.staff-body h3 {
  margin: 0;
  font-size: 1rem;
}

.staff-role {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.document-card {
  padding: 14px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: none;
}

.public-info-heading h2 {
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  line-height: 1.15;
  text-align: center;
}

.public-info-heading {
  max-width: none;
  justify-items: center;
}

.document-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.document-link:hover,
.document-link:focus-visible {
  background: transparent;
  transform: translateY(-1px);
}

.prozorro-link {
  padding: 14px 18px;
  background: #fff;
  font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(23, 34, 54, 0.08);
}

.prozorro-link:hover,
.prozorro-link:focus-visible {
  background: #fff;
}

.document-preview {
  display: block;
  width: min(100%, 240px);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(23, 34, 54, 0.12);
}

.public-info-heading,
.document-card {
  justify-items: center;
  text-align: center;
}

@media (max-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .split-layout,
  .news-layout,
  .cta-band,
  .footer-top,
  .info-grid,
  .timeline-grid,
  .metrics-grid,
  .three-col {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 860px) {
  .site-header .container {
    grid-template-columns: auto auto;
    gap: 16px;
    padding: 0 0 8px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    margin-top: 4px;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 10px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
    border-radius: 0;
    padding: 12px 0;
  }

  .site-nav a:hover {
    transform: none;
  }

  .site-nav a::after {
    width: 32px;
    bottom: 8px;
  }

  .site-nav a.active {
    color: var(--primary-deep);
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand-copy strong {
    font-size: 0.8rem;
    line-height: 1.1;
  }

  .brand-copy span {
    font-size: 0.74rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 26px), var(--container));
  }

  .hero,
  .page-intro,
  .section,
  .site-footer {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .hero-copy h1,
  .page-intro h1 {
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .home-title {
    font-size: clamp(0.9rem, 4.2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.08;
    max-width: 18ch;
    margin-inline: auto;
    text-wrap: balance;
  }

  .cards-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .news-frame {
    min-height: 520px;
  }

  .news-placeholder {
    min-height: auto;
    padding: 20px;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .staff-card {
    padding: 8px;
  }

}
