@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-3-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-sans-3-semibold.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-sans-3-bold.woff2') format('woff2');
}

:root {
  --color-primary: #1e3a5f;
  --color-primary-dark: #0f2744;
  --color-primary-light: #2c5282;
  --color-accent: #c53030;
  --color-accent-light: #e53e3e;
  --color-bg: #f7fafc;
  --color-surface: #ffffff;
  --color-text: #1a202c;
  --color-text-secondary: #4a5568;
  --color-text-light: #718096;
  --color-border: #e2e8f0;
  --max-width: 1200px;
  --header-height: 80px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--color-primary);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 32px;
}

.header__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-img {
  height: 65px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}

.nav__link:hover {
  color: var(--color-primary);
  background: rgba(30, 58, 95, 0.06);
}

.nav__link--active {
  color: var(--color-surface);
  background: var(--color-primary);
}

.nav__link--active:hover {
  color: var(--color-surface);
  background: var(--color-primary-light);
}

.nav__toggle {
  display: none;
}

.nav__toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.nav__toggle-label span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ========== HERO ========== */

.hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero--small {
  height: 300px;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 39, 68, 0.45) 0%,
    rgba(30, 58, 95, 0.25) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 48px;
}

.hero__content {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-surface);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 12px;
  border-radius: 2px;
}

/* ========== MAIN CONTENT ========== */

.main {
  padding: 64px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}

.content-full {
  max-width: 900px;
}

/* ========== SIDEBAR ========== */

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  align-self: start;
}

.sidebar__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__link {
  display: block;
  padding: 10px 16px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}



/* ========== TEXT CONTENT ========== */

.text-section {
  margin-bottom: 48px;
}

.text-section p {
  margin-bottom: 20px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  font-size: 1.02rem;
}

.text-section p:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.section-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  margin-top: 32px;
}

/* ========== CONTACT CARDS ========== */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

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

.contact-card__department {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.contact-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.contact-card__role {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* ========== REFERENCE PROJECTS ========== */

.references {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.reference-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.reference-card:hover {
  box-shadow: var(--shadow-md);
}

.reference-card__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 220px;
}

.reference-card__content {
  padding: 28px 32px;
}

.reference-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.reference-card__subtitle {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 8px;
}

.reference-card__text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.reference-card__list {
  padding-left: 20px;
  margin-bottom: 12px;
}

.reference-card__list li {
  list-style: disc;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 2px;
}

.reference-card__service {
  font-size: 0.92rem;
  color: var(--color-text-light);
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.reference-card__service strong {
  color: var(--color-text-secondary);
}

.reference-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.reference-card__images {
  display: flex;
  flex-direction: column;
}

.reference-card__images .reference-card__image {
  height: 50%;
  min-height: 110px;
}

/* ========== LOCATION CARDS ========== */

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.location-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

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

.location-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(30, 58, 95, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.location-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.location-card__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-card__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: start;
}

.location-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  padding-top: 2px;
}

.location-card__value {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.location-card__value a {
  color: var(--color-primary);
  font-weight: 500;
}

.location-card__value a:hover {
  color: var(--color-accent);
}

/* ========== LEGAL / IMPRESSUM ========== */

.legal-content {
  max-width: 800px;
}

.legal-section {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.legal-section__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: var(--color-primary);
  font-weight: 500;
}

.legal-section a:hover {
  color: var(--color-accent);
}

/* ========== SERVICE TAGS ========== */

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.service-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(30, 58, 95, 0.08);
  border-radius: 100px;
  transition: all var(--transition);
}

.service-tag:hover {
  background: var(--color-primary);
  color: var(--color-surface);
}

/* ========== INTRO SECTION ========== */

.intro {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.intro p {
  color: var(--color-text-secondary);
  line-height: 1.75;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.intro p:last-child {
  margin-bottom: 0;
}

/* ========== FOOTER ========== */

.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
  margin-top: 64px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-surface);
}

.footer__subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-surface);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar {
    position: static;
    display: flex;
    flex-direction: column;
  }

  .sidebar__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .sidebar__link {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 8px 14px;
    font-size: 0.82rem;
  }



  .reference-card__inner {
    grid-template-columns: 1fr;
  }

  .reference-card__image {
    height: 200px;
    order: -1;
  }

  .hero {
    height: 280px;
  }

  .hero--small {
    height: 220px;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__overlay {
    padding: 32px 24px;
  }

  .intro {
    padding: 32px 24px;
  }

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

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

  .legal-section {
    padding: 28px 24px;
  }
}

@media (max-width: 640px) {
  .nav__toggle-label {
    display: flex;
  }

  .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    border-bottom: 3px solid var(--color-primary);
    box-shadow: var(--shadow-lg);
    padding: 0 16px;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
  }

  .nav__toggle:checked ~ .nav__list {
    max-height: 400px;
    padding: 16px;
  }

  .nav__toggle:checked ~ .nav__toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle:checked ~ .nav__toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle:checked ~ .nav__toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav__link {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .header__logo-img {
    height: 40px;
  }

  .hero {
    height: 220px;
  }

  .hero--small {
    height: 180px;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .main {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .reference-card__content {
    padding: 20px;
  }
}
