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

:root {
  --red:        #8C2B2B;
  --red-light:  #A83535;
  --red-dim:    rgba(140,43,43,0.08);
  --dark:       #1C2536;
  --text:       #1F2937;
  --muted:      #6B7280;
  --bg:         #F5F7FA;
  --border:     #E5E7EB;
  --white:      #FFFFFF;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); line-height: 1.6; }

/* ── NAVBAR ─────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 68px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%;
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.07); }

.nav-logo img { height: 38px; display: block; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text);
  font-size: .88rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--red); }
.nav-cta {
  background: var(--red) !important; color: var(--white) !important;
  padding: .45rem 1.2rem; border-radius: 6px;
}
.nav-cta:hover { background: var(--red-light) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ── HERO ───────────────────────────────────────────── */
/* Replace images/hero.svg with your own photo (recommended: 1920×1080 px) */
#home {
  min-height: 100vh;
  background:
    linear-gradient(100deg,
      rgba(36,28,22,.97) 0%,
      rgba(36,28,22,.90) 30%,
      rgba(36,28,22,.60) 50%,
      rgba(36,28,22,.15) 70%,
      rgba(36,28,22,0) 85%),
    url('images/hero.jpg') center/cover no-repeat;
  display: grid;
  grid-template-columns: minmax(0, 680px) 370px;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding: 120px 6% 80px;
  position: relative; overflow: hidden;
}
.hero-glow, .hero-grid { display: none; }

.hero-content { position: relative; max-width: 680px; }

.hero-badge {
  display: inline-block;
  color: #CE8B57;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.hero-badge span { display: none; }

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem); font-weight: 800;
  color: var(--white); line-height: 1.13; margin-bottom: 1.4rem;
}
.hero-content h1 em { font-style: normal; color: var(--white); }

.hero-content p {
  font-size: 1.05rem; color: rgba(255,255,255,.68);
  max-width: 540px; margin-bottom: 2.4rem; line-height: 1.75;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary, .btn-ghost {
  display: inline-block; text-decoration: none;
  padding: .82rem 1.9rem; border-radius: 8px;
  font-weight: 600; font-size: .9rem; transition: all .2s;
}
.btn-primary {
  background: var(--red); color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-light); border-color: var(--red-light);
  transform: translateY(-2px); box-shadow: 0 8px 22px rgba(140,43,43,.38);
}
.btn-ghost {
  background: var(--white); color: var(--text);
  border: 2px solid var(--white);
}
.btn-ghost:hover {
  background: #EDE9E4; border-color: #EDE9E4;
  transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

/* Hero news panel */
.hero-news-panel {
  background: rgba(30,24,19,.62);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative; z-index: 1;
}

.hnp-header {
  display: flex; align-items: center; gap: .55rem;
  margin-bottom: .9rem;
}
.hnp-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #CE8B57;
  animation: hnpBlink 1.2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes hnpBlink { 0%,100% { opacity:1; } 50% { opacity:.25; } }
.hnp-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--white);
}
.hnp-source-all {
  margin-left: auto;
  font-size: .65rem; color: rgba(255,255,255,.4); letter-spacing: .05em;
}

.hnp-list { list-style: none; margin: 0; padding: 0; }

.hnp-item {
  padding: .8rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid transparent;
  transition: background .25s, border-color .25s;
}
.hnp-item:last-child { border-bottom: none; }
.hnp-item.active {
  border-left-color: #CE8B57;
  background: rgba(255,255,255,.06);
}

.hnp-item-meta {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem;
}
.hnp-badge {
  font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: .16rem .5rem; border-radius: 3px;
  background: rgba(153,60,29,.6); color: rgba(255,255,255,.9);
}
.hnp-badge.mze { background: rgba(255,255,255,.14); }
.hnp-item-date { font-size: .65rem; color: rgba(255,255,255,.35); }

.hnp-item-title {
  font-size: .78rem; line-height: 1.45; color: rgba(255,255,255,.6);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-decoration: none; transition: color .25s;
}
.hnp-item.active .hnp-item-title { color: rgba(255,255,255,.95); }
.hnp-item-title:hover { color: var(--white); text-decoration: underline; }

.hnp-more {
  display: flex; align-items: center; justify-content: flex-end; gap: .4rem;
  margin-top: .9rem;
  font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.5);
  text-decoration: none; transition: color .2s;
}
.hnp-more:hover { color: var(--white); }
.hnp-more svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-stats {
  display: flex; gap: 3rem;
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat-val { font-size: 2rem; font-weight: 800; color: var(--white); }
.stat-val sup { font-size: 1.1rem; color: #CE8B57; }
.stat-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.45); margin-top: .2rem; }

/* ── SECTIONS SHARED ────────────────────────────────── */
section { padding: 100px 6%; }

.label {
  display: inline-block;
  color: var(--red); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: .7rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  font-weight: 700; line-height: 1.22; margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 520px; line-height: 1.72;
}

/* ── ABOUT ──────────────────────────────────────────── */
#about { background: var(--white); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
  max-width: 1140px; margin: 0 auto;
}

.about-text .section-sub { max-width: 100%; margin-bottom: 2.2rem; }

.pillars { display: flex; flex-direction: column; gap: 1.2rem; margin-top: .5rem; }
.pillar { display: flex; gap: 1rem; align-items: flex-start; }
.pillar-icon {
  width: 42px; height: 42px; min-width: 42px;
  background: var(--red-dim); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.pillar-icon svg { width: 19px; height: 19px; stroke: var(--red); fill: none; stroke-width: 2; }
.pillar h4 { font-size: .9rem; font-weight: 600; margin-bottom: .18rem; }
.pillar p  { font-size: .83rem; color: var(--muted); line-height: 1.55; }

/* Replace images/about.svg with your own photo (recommended: 900×420 px) */
.about-visual { position: relative; padding-bottom: 40px; }
.about-photo {
  width: 100%; height: 420px;
  object-fit: cover; border-radius: 16px; display: block;
}

.about-badge {
  position: absolute; bottom: 0; left: -24px;
  background: var(--red); border-radius: 12px;
  padding: 1.3rem 1.8rem; color: var(--white);
  box-shadow: 0 12px 32px rgba(140,43,43,.4);
}
.about-badge .num { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.about-badge .lbl { font-size: .72rem; opacity: .8; margin-top: .25rem; }

/* ── SERVICES ───────────────────────────────────────── */
#services { background: var(--bg); }

.services-head { max-width: 1140px; margin: 0 auto 3rem; }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; max-width: 1140px; margin: 0 auto;
}

/* Service card images — replace each SVG placeholder with a real photo (600×160 px) */
.svc-img {
  display: block; width: calc(100% + 4rem); margin: -2rem -2rem 1.5rem;
  height: 160px; object-fit: cover;
  transition: transform .5s ease;
}
.svc:hover .svc-img { transform: scale(1.04); }

.svc {
  background: var(--white); border-radius: 12px;
  padding: 2rem; border: 1px solid var(--border);
  transition: all .3s; position: relative; overflow: hidden;
}
.svc::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.svc:hover { transform: translateY(-5px); box-shadow: 0 14px 44px rgba(0,0,0,.09); border-color: transparent; }
.svc:hover::after { transform: scaleX(1); }

.svc-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--red-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.svc-icon svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 1rem; font-weight: 700; margin-bottom: .65rem; }
.svc p  { font-size: .84rem; color: var(--muted); line-height: 1.65; }

/* ── REFERENCE ─────────────────────────────────────── */
#reference { background: var(--white); }

.ref-header { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }
.ref-header .section-title { margin-bottom: .75rem; }
.ref-header .section-sub { margin: 0 auto; }

.ref-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 1140px; margin: 0 auto 5rem;
}

.ref-card {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem; position: relative;
  transition: box-shadow .3s, transform .3s;
}
.ref-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,.08); transform: translateY(-3px); }

.ref-num {
  font-size: 4.5rem; font-weight: 800; line-height: 1;
  color: #D1D5DB; margin-bottom: .8rem; letter-spacing: -.02em;
}

.ref-tag {
  display: inline-block;
  background: #F3F4F6; color: var(--muted);
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .3rem .7rem; border-radius: 4px;
  margin-bottom: 1rem;
}

.ref-title {
  font-size: .95rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em;
  color: var(--text); margin-bottom: .75rem; line-height: 1.3;
}

.ref-desc { font-size: .855rem; color: var(--red); line-height: 1.65; }

/* ── PARTNERS ───────────────────────────────────────── */
/* Replace each SVG placeholder in images/partners/ with the real logo file */
.partners-wrap {
  max-width: 1140px; margin: 0 auto;
  border-top: 1px solid var(--border); padding-top: 3.5rem;
}

.partners-label {
  text-align: center; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  margin-bottom: 2.5rem;
}

.partners-logos {
  display: flex; justify-content: center; align-items: center;
  gap: 3rem; flex-wrap: wrap;
}

.partner-logo {
  display: flex; align-items: center; gap: .7rem;
  opacity: .45; transition: opacity .25s, filter .25s;
  filter: grayscale(1);
}
.partner-logo:hover { opacity: .85; filter: grayscale(0); }

.partner-img { height: 48px; width: auto; display: block; flex-shrink: 0; }
.partner-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.partner-logo-text strong { font-size: .82rem; font-weight: 800; letter-spacing: .03em; }
.partner-logo-text span  { font-size: .68rem; color: var(--muted); letter-spacing: .04em; }

/* ── AKTUALITY ──────────────────────────────────────── */
#aktuality { background: var(--bg); }

.news-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.news-header .section-sub { margin: 0 auto 2rem; }

.news-filters {
  display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap;
}
.news-filter {
  padding: .38rem .95rem; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--white);
  font-family: inherit; font-size: .78rem; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all .2s;
}
.news-filter:hover { border-color: var(--red); color: var(--red); }
.news-filter.active { background: var(--red); border-color: var(--red); color: var(--white); }

.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; max-width: 1140px; margin: 0 auto;
}

.news-skeleton {
  height: 220px; border-radius: 12px;
  background: linear-gradient(90deg, #e8eaed 25%, #f3f4f6 50%, #e8eaed 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.news-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.6rem;
  display: flex; flex-direction: column;
  transition: box-shadow .3s, transform .3s;
}
.news-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,.08); transform: translateY(-3px); }

.news-source {
  display: inline-block; margin-bottom: .85rem;
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  padding: .25rem .65rem; border-radius: 4px;
  background: var(--red-dim); color: var(--red);
}
.news-source.mze { background: rgba(28,37,54,.07); color: var(--dark); }

.news-title {
  font-size: .9rem; font-weight: 700; line-height: 1.42;
  margin-bottom: .65rem; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.news-desc {
  font-size: .8rem; color: var(--muted); line-height: 1.6;
  flex: 1; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.news-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.news-date { font-size: .72rem; color: var(--muted); }
.news-link {
  font-size: .78rem; font-weight: 600; color: var(--red);
  text-decoration: none; display: flex; align-items: center; gap: .3rem;
}
.news-link:hover { text-decoration: underline; }
.news-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.news-error { text-align: center; color: var(--muted); padding: 2rem; max-width: 1140px; margin: 0 auto; }

/* ── CONTACT ────────────────────────────────────────── */
#contact { background: var(--white); }

.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 5rem; align-items: start;
  max-width: 1140px; margin: 0 auto;
}

.contact-info .section-sub { margin-bottom: 2.4rem; }

.cinfo-list { display: flex; flex-direction: column; gap: 1.4rem; }
.cinfo { display: flex; gap: 1rem; align-items: flex-start; }
.cinfo-icon {
  width: 42px; height: 42px; min-width: 42px; border-radius: 10px;
  background: var(--red-dim);
  display: flex; align-items: center; justify-content: center;
}
.cinfo-icon svg { width: 19px; height: 19px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cinfo-body h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: .28rem; }
.cinfo-body p, .cinfo-body a {
  font-size: .9rem; color: var(--text); text-decoration: none; line-height: 1.55;
}
.cinfo-body a:hover { color: var(--red); }

/* form */
.contact-form { background: var(--bg); border-radius: 16px; padding: 2.4rem; }
.contact-form h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .35rem; }
.form-sub { font-size: .84rem; color: var(--muted); margin-bottom: 1.8rem; }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-group { margin-bottom: 1.15rem; }
.f-group label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .38rem; }
.f-group input, .f-group select, .f-group textarea {
  width: 100%; padding: .72rem 1rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: .88rem; color: var(--text);
  background: var(--white); outline: none; transition: border-color .2s;
}
.f-group input:focus, .f-group select:focus, .f-group textarea:focus { border-color: var(--red); }
.f-group textarea { resize: vertical; min-height: 108px; }

.f-submit {
  width: 100%; padding: .88rem; border: none; border-radius: 8px;
  background: var(--red); color: var(--white);
  font-family: inherit; font-size: .92rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.f-submit:hover { background: var(--red-light); transform: translateY(-2px); box-shadow: 0 7px 22px rgba(140,43,43,.35); }
.f-note { font-size: .72rem; color: var(--muted); text-align: center; margin-top: .9rem; }

.form-success { display: none; text-align: center; padding: 2.5rem 1rem; }
.form-success svg { width: 52px; height: 52px; stroke: #16A34A; fill: none; stroke-width: 1.8; margin-bottom: 1rem; }
.form-success h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.form-success p { font-size: .88rem; color: var(--muted); }

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--dark); color: rgba(255,255,255,.5);
  padding: 2.8rem 6%;
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.footer-logo img { height: 30px; filter: brightness(0) invert(1); opacity: .6; }
.footer-meta { font-size: .78rem; line-height: 1.75; }
.footer-copy { font-size: .78rem; }

/* ── ANIMATIONS ─────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 960px) {
  #home { grid-template-columns: 1fr; gap: 0; }
  .hero-news-panel { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .ref-grid { grid-template-columns: 1fr; max-width: 520px; }
  .partners-logos { gap: 2rem; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  section { padding: 72px 5%; }
  #home { padding-top: 110px; }
  .services-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--white); padding: 1.4rem 6%;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    gap: 1.2rem;
  }
  .hamburger { display: flex; }

  /* Contact – center heading block on mobile */
  .contact-info .label,
  .contact-info .section-title { text-align: center; }
  .contact-info .section-sub { text-align: center; max-width: 100%; }
  .cinfo-list { align-items: center; }
  .cinfo { width: 100%; max-width: 300px; }
}
