/* ---------- Fonts ---------- */
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Base ---------- */
:root {
  --blue: #2f5aa8;
  --blue-dark: #264a8c;
  --red: #c8102e;
  --text: #1a1a1a;
  --muted: #4a4a4a;
  --bg: #ffffff;
  --box-bg: #f2f2f2;
  --footer-bg: #f5f5f5;
  --max-width: 1170px;
}

body {
  font-family: "Work Sans", Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-weight: 500;
  margin: 0 0 0.6em;
  line-height: 1.25;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  padding: 24px 0 8px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.brand img {
  width: 74px;
  height: auto;
  flex-shrink: 0;
}
.brand-text {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.header-phone .icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-phone .icon-circle img { width: 16px; height: 16px; filter: invert(1); }
.header-social {
  display: inline-flex;
  gap: 14px;
}
.header-social a { display: inline-flex; }
.header-social img { width: 24px; height: 24px; }

.subheader {
  margin-top: 4px;
  padding: 6px 0 14px;
}
.subheader-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.professor {
  font-weight: 400;
  /* Align under the brand text (logo width 74px + gap 16px) */
  padding-left: 90px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 34px;
}
.main-nav a {
  font-weight: 400;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
  border-color: var(--blue);
}

/* ---------- Hero ---------- */
.hero {
  margin: 22px 0 40px;
}
.hero img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* ---------- Boxes ---------- */
.boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.box {
  background: var(--box-bg);
  padding: 42px 26px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  display: block;
}
.box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.box h3 {
  color: var(--text);
  margin-bottom: 14px;
}
.box p {
  color: var(--text);
  margin: 0;
}

/* ---------- Content ---------- */
.content {
  margin-bottom: 60px;
}
.content h2 {
  margin-bottom: 22px;
}

/* ---------- Kontakt ---------- */
.kontakt {
  background: var(--blue);
  color: #fff;
  padding: 56px 0;
}
.kontakt h2 { color: #fff; margin-bottom: 34px; }
.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.kontakt-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.kontakt-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kontakt-icon img { width: 24px; height: 24px; }
.kontakt-item h4 { color: #fff; margin: 0 0 6px; font-size: 1.05rem; }
.kontakt-item p { margin: 0; font-weight: 300; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  padding: 40px 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 60px; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.footer-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; gap: 28px;
}
.footer-nav a { font-weight: 400; }
.footer-nav a:hover { color: var(--blue); }
.footer-social { display: flex; gap: 14px; }
.footer-social img { width: 22px; height: 22px; }

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #e2e2e2;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-bottom .sep { opacity: .5; }
.footer-bottom a:hover { color: var(--blue); }

/* ---------- Legal pages ---------- */
.legal { padding: 40px 20px 60px 20px; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { margin-top: 32px; font-size: 1.3rem; }
.legal h3 { margin-top: 22px; font-size: 1.1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .boxes { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .main-nav ul { gap: 20px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
}
@media (max-width: 640px) {
  .header-inner, .subheader-inner { flex-direction: column; align-items: flex-start; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav { align-items: flex-start; }
  .footer-bottom { justify-content: flex-start; }
}
