:root {
  --bg: #ffffff;
  --text: #101018;
  --muted: #6b6f7a;
  --brand: #0b1f8a;
  --brand-dark: #07186f;
  --stripe: #f1f2f5;
  --surface: #f7f7f9;
  --shadow: 0 18px 28px rgba(16, 16, 24, 0.12);
  --container: 1120px;

  /* Type scale */
  --fs-h1: clamp(26px, 2.8vw, 36px);
  --fs-h2: clamp(24px, 2.6vw, 34px);
  --fs-h3: clamp(22px, 2.2vw, 30px);
  --fs-h4: clamp(24px, 2.1vw, 28px);
  --fs-h5: clamp(15px, 1.4vw, 18px);
  --fs-h6: clamp(12px, 1vw, 14px);
  --fs-body-lg: clamp(14px, 1.2vw, 16px);
  --fs-body: clamp(13px, 1.1vw, 14px);
  --fs-body-sm: clamp(12px, 1vw, 13px);
  --fs-body-xs: clamp(11px, 0.95vw, 13px);
  --fs-lead: clamp(12px, 1.1vw, 14px);
  --fs-nav: clamp(14px, 1.2vw, 18px);
  --fs-btn: clamp(13px, 1.1vw, 16px);
  --fs-icon-lg: clamp(24px, 2vw, 30px);
  --fs-icon-sm: clamp(16px, 1.4vw, 18px);
  --fs-footer-title: clamp(12px, 1vw, 18px);
  --fs-footer: clamp(11px, 1vw, 16px);
  --fs-footer-copy: clamp(12px, 0.95vw, 15px);
  --fs-icon-close: clamp(18px, 1.5vw, 20px);
  --fs-icon-nav: clamp(20px, 1.6vw, 22px);
  --fs-caption: clamp(12px, 1vw, 14px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.headerwrap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 15px 0;
}

.headerbrand {
  margin-left: 2rem;
}

.headerlogo {
  width: 150px;
  height: auto;
}

.headermenu {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: center;
}

.headermenuitem,
.headermenuitem-mobile {
  font-size: var(--fs-nav);
  color: #222;
  opacity: 0.9;
  text-decoration: none;
}

.headermenuitem-mobile {
  display: none;
}

.headermenuitem:hover,
.headermenuitem-mobile:hover {
  opacity: 1;
  text-decoration: none;
}

.headertoggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.headertogglebar {
  width: 24px;
  height: 2px;
  background: #0b1f8a;
  display: block;
}

.headerkontakt {
  background: linear-gradient(135deg, #0b1f8a, #1f40d0);
  color: #fff;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px rgba(11, 31, 138, 0.34);
  padding: 12px 24px;
  text-decoration: none;
  font-size: var(--fs-btn);
}

.headerkontakt:hover {
  background: #07186f;
}

/* Buttons */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-weight: 700;
  font-size: var(--fs-btn);
  border: 1px solid transparent;
  transition:
    transform 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease;
  user-select: none;
  white-space: nowrap;
}

.btn-primary:active,
.btn-outline:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0b1f8a, #1f40d0);
  color: #fff;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px rgba(11, 31, 138, 0.34);
}

.btn-outline {
  border-color: #0b1f8a;
  color: #0b1f8a;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(11, 31, 138, 0.08);
}

/* Page hero */
.page-hero {
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  background:
    linear-gradient(
      90deg,
      rgba(11, 31, 138, 1) 0%,
      rgba(11, 31, 138, 0.2) 55%,
      rgba(255, 255, 255, 0) 80%
    ),
    var(--stripe);
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 56px 0;
}

.page-hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 60ch;
}

.page-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.7px;
  font-size: var(--fs-h1);
  color: #fff;
}

.page-lead {
  margin: 0;
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.page-hero-media {
  display: flex;
  justify-content: center;
}

.page-hero-image {
  width: 420px;
  height: 300px;
  max-width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* Section */
.section {
  padding: 38px 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: var(--fs-h2);
  color: #1f2433;
}

.section-text {
  margin: 0 0 16px;
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: #2f3851;
  max-width: 70ch;
  padding-left: 14px;
  border-left: 3px solid rgba(11, 31, 138, 0.7);
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.info-card {
  background: #fff;
  border: 1px solid rgba(11, 31, 138, 0.12);
  padding: 18px;
  box-shadow: var(--shadow);
  min-height: 140px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: var(--fs-h5);
  color: #1f2c6a;
}

.info-card p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: #3c4258;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  overflow: hidden;
  background: #e9ebf0;
  box-shadow: 0 16px 26px rgba(16, 16, 24, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card img,
.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
  box-shadow: 0 12px 20px rgba(16, 16, 24, 0.12);
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 36px rgba(16, 16, 24, 0.18);
}

.gallery-card:hover img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

/* CTA */
.cta-band {
  background: linear-gradient(135deg, #0b1f8a, #1f40d0);
  color: #fff;
  padding: 42px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-band-title {
  font-size: 26px;
  margin: 0 0 10px;
}

.cta-band-text {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.85);
}

.cta-band .btn-outline {
  background: #fff;
  color: #0b1f8a;
  border-color: #fff;
  box-shadow: 0 12px 22px rgba(11, 31, 138, 0.25);
}

.cta-band .btn-outline:hover {
  background: #edf1ff;
  border-color: #edf1ff;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0b1f8a 80%, #1f40d0 100%);
  color: #fff;
  padding: 54px 0 22px;
  font-family: inherit;
  box-shadow: 0 -8px 32px rgba(11, 31, 138, 0.08);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.footer-logo {
  width: 180px;
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
  background-color: #fff;
  padding: 5px;
}

.footer-text {
  margin: 0 0 18px;
  text-align: center;
  font-size: var(--fs-footer);
  line-height: 1.7;
  opacity: 0.92;
  max-width: 48ch;
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  margin: auto;
}

.social-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
  font-size: var(--fs-icon-sm);
  color: #fff;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
  box-shadow: 0 2px 8px rgba(11, 31, 138, 0.08);
  text-decoration: none;
}

.social-btn:hover {
  background: #fff;
  color: #0b1f8a;
  border-color: #fff;
}

.footer-col,
.footer-split-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links-split {
  display: contents;
}

.footer-split-col {
  width: auto;
}

.footer-title {
  margin: 0 0 14px;
  font-size: var(--fs-footer-title);
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(11, 31, 138, 0.08);
}

.footer-link {
  display: block;
  padding: 6px 0;
  font-size: var(--fs-footer);
  opacity: 0.92;
  color: #fff;
  text-decoration: none;
  transition:
    background 0.16s,
    color 0.16s,
    opacity 0.16s;
}

.footer-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  color: #ffe600;
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-footer);
  opacity: 0.97;
  color: #fff;
}

.footer-meta a {
  color: #fff !important;
  text-decoration: underline;
  transition: color 0.18s;
}

.footer-meta a:hover {
  color: #ffe600 !important;
}

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

.meta-row,
.working-hours-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.footer-address-col .footer-meta,
.footer-address-meta {
  margin-top: 10px;
}

.working-hours-status {
  font-weight: 800;
}

.working-hours-status.is-open {
  color: #8ef7b2;
}

.working-hours-status.is-closed {
  color: #ffd0d0;
}

.footer-bottom {
  margin-top: 28px;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.footer-sep {
  height: 1.5px;
  width: 100%;
  background: rgba(255, 255, 255, 0.22);
  margin: 18px 0 12px;
}

.footer-copy {
  display: block;
  text-align: center;
  font-size: var(--fs-footer-copy);
  opacity: 0.95;
  color: #fff;
  letter-spacing: 0.2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 18, 0.85);
  z-index: 100;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: min(1080px, 92vw);
  height: min(680px, 86vh);
  display: flex;
  flex-direction: column;
  padding-bottom: 64px;
}

.lightbox-image {
  width: 100%;
  height: calc(100% - 64px);
  flex: 1 1 auto;
  object-fit: contain;
  display: block;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-size: var(--fs-icon-close);
  cursor: pointer;
}

.lightbox-caption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: var(--fs-caption);
}

.lightbox-nav {
  position: absolute;
  bottom: 12px;
  top: auto;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-size: var(--fs-icon-nav);
  cursor: pointer;
}

.lightbox-nav.prev {
  left: 50%;
  transform: translateX(-60px);
}

.lightbox-nav.next {
  left: 50%;
  transform: translateX(18px);
}

@media (max-width: 640px) {
  .lightbox-nav.prev {
    left: 50%;
    transform: translateX(-52px);
  }

  .lightbox-nav.next {
    left: 50%;
    transform: translateX(10px);
  }
}

/* Responsive */
@media (max-width: 980px) {
  .page-hero-image {
    height: 260px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    justify-content: center;
    text-align: center;
  }
  .footer-col,
  .footer-split-col {
    margin-bottom: 18px;
    align-items: center;
  }
  .footer-meta {
    align-items: center;
  }
  .meta-row,
  .working-hours-status {
    justify-content: center;
  }
  .working-hours-status {
    margin: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --fs-nav: clamp(18px, 2vw, 18px);
    --fs-logos-title: clamp(28px, 3vw, 28px);
    --fs-logos-lead: clamp(14px, 2vw, 14px);
  }

  .headerkontakt {
    display: none;
  }

  .headermenu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 100;
  }

  .headermenu.open {
    display: flex;
  }

  .headertoggle {
    display: flex;
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 101;
  }

  .headerwrap {
    position: relative;
    flex-direction: row;
    padding: 15px 0;
  }

  .headerbrand {
    margin-left: 0;
  }

  .headermenuitem {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: var(--fs-nav);
  }

  .headermenuitem-mobile {
    display: inline-flex;
  }

  .section {
    padding: 40px 0;
  }

  .page-hero {
    background:
      linear-gradient(
        120deg,
        rgba(11, 31, 138, 0.98) 0%,
        rgba(34, 63, 192, 0.92) 52%,
        rgba(255, 255, 255, 0) 100%
      ),
      #0b1f8a;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    background: transparent;
    padding: 28px 22px 32px;
  }

  .page-hero-text,
  .page-hero-media {
    grid-column: auto;
  }

  .page-hero-text {
    gap: 12px;
  }

  .page-title {
    font-size: 32px;
  }

  .page-lead {
    color: rgba(255, 255, 255, 0.92);
  }

  .page-hero-image {
    height: 220px;
    width: min(420px, 100%);
  }

  .btn-primary {
    background: #fff;
    color: #0b1f8a;
    border-color: #fff;
    box-shadow: 0 14px 26px rgba(11, 31, 138, 0.28);
  }

  .btn-primary:hover {
    background: #edf1ff;
  }

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

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

  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    padding: 0 8px;
  }
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-text,
  .footer-meta,
  .footer-link {
    text-align: center;
  }
  .footer-col,
  .footer-split-col {
    align-items: center;
  }
  .footer-links-split {
    display: flex;
    width: 100%;
    gap: 12px;
  }
  .footer-split-col {
    width: 50%;
    align-items: center;
  }
  .footer-split-col .footer-title,
  .footer-split-col .footer-link {
    text-align: left;
  }
  .footer-split-col .footer-meta {
    text-align: left;
    align-items: flex-start;
  }
  .footer-split-col .meta-row,
  .footer-split-col .working-hours-status {
    justify-content: flex-start;
  }

  .footer-links-split:last-of-type {
    align-items: flex-start;
  }
  .footer-links-split:last-of-type .footer-split-col {
    width: 100%;
  }
  .footer-links-split:last-of-type .footer-contact-address {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
    width: 100%;
  }
  .footer-links-split:last-of-type .footer-contact-col,
  .footer-links-split:last-of-type .footer-address-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-links-split:last-of-type .footer-address-meta,
  .footer-links-split:last-of-type .footer-address-col .footer-meta {
    margin-top: 0;
  }
  .footer-links-split:last-of-type .footer-contact-col .footer-title,
  .footer-links-split:last-of-type .footer-address-col .footer-title {
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .page-title {
    font-size: 30px;
  }

  .page-hero-image {
    height: 200px;
  }

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

  .footer {
    padding: 28px 0 12px;
  }
  .footer-bottom {
    margin-top: 18px;
    padding: 0 4px;
  }
  .footer-logo {
    width: 140px;
  }
}
