/* =============================================
   Словник німецької підтримки
   hromadske × Посольство ФРН в Україні
   ============================================= */

:root {
  --de-black: #1a1a1a;
  --de-red: #DD0000;
  --de-yellow: #FFCE00;
  --ua-blue: #005BBB;
  --ua-yellow: #FFD500;
  --bg-light: #f5f4f0;
  --bg-parchment: #faf9f5;
  --text-main: #1a1a1a;
  --text-muted: #555;
  --border-light: rgba(0,0,0,0.1);
  --accent: #DD0000;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-parchment);
  color: var(--text-main);
  overflow-x: hidden;
}


/* =============================================
   PARTNERS HEADER BLOCK
   ============================================= */

/* partners */
.partners {
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    background: #fff;
}
.partners img {
    max-height: 80px;
    margin-bottom: 1rem;
}


/* =============================================
   HERO
   ============================================= */
.hero {
  background: #fff;
  position: relative;
  overflow: hidden;
  /*min-height: 100vh;*/
  display: flex;
  align-items: center;
  padding: 50px 0 60px;
}
@media (max-width:768px) {
	.hero {
		padding: 30px 0 30px;
	}
}

/* Animated background stripes - German flag colors */
.hero__stripes {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  opacity: 0.07;
  pointer-events: none;
  display: none;
}
.hero__stripe {
  height: 100%;
}
.hero__stripe:nth-child(3n+1) { background: var(--de-black); }
.hero__stripe:nth-child(3n+2) { background: var(--de-red); }
.hero__stripe:nth-child(3n+3) { background: var(--de-yellow); }

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #000;
}
.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--de-yellow);
  margin-bottom: 32px;
  opacity: 0.9;
}
.hero__title {
  font-size: clamp(24px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hero__title span.de { color: var(--de-yellow); }
.hero__title span.ua { color: #000; }
.hero__subtitle-de {
  font-size: clamp(14px, 2.5vw, 22px);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #000;
  margin-bottom: 40px;
}
.hero__flag-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 48px;
  width: 200px;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}
.hero__flag-divider span {
  flex: 1;
  height: 100%;
}
.hero__flag-divider span:nth-child(1) { background: var(--de-black); }
.hero__flag-divider span:nth-child(2) { background: var(--de-red); }
.hero__flag-divider span:nth-child(3) { background: var(--de-yellow); }

.hero__stat {
    display: inline-block;
    background: var(--de-yellow);
    color: #000;
    font-size: 42px;
    font-weight: 900;
    padding: 12px 32px;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.hero__stat {
  display: inline-block;
  background: var(--de-yellow);
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  padding: 12px 32px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.hero__stat-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.social-links {
    display: flex;
    padding: 0;
    gap: 20px;
    justify-content: center;
}
.social-links svg {
	fill: var(--de-black);
		transition: all .3s ease;
	-webkit-transition: all .3s ease;
	   -moz-transition: all .3s ease;
	    -ms-transition: all .3s ease;
	     -o-transition: all .3s ease;
}
.social-links a:hover svg {
	fill: var(--de-yellow);
}
/* =============================================
   INTRO SECTION
   ============================================= */
.intro-section {
  background: var(--bg-parchment);
  padding: 80px 0;
  border-bottom: 1px solid var(--border-light);
}
.intro-section .lead-text {
    font-size: 17px;
    line-height: 1.4;
    color: var(--text-main);
    font-weight: 400;
    border-left: 4px solid var(--de-red);
    padding-left: 28px;
    margin-bottom: 30px;
}
.lead-wrap {
    display: flex;
    gap: 20px;
	justify-content: center;
}

.quote-img {
    width: 250px;
    flex: 1 0 auto;
	max-width: 100%;
}
@media (max-width: 768px) {
	.intro-section .lead-text {
		font-size: 15px;
	}
	.lead-wrap {
		gap: 10px;
		flex-direction: column-reverse;
	}
	.quote-img {
		width: 550px;
	}
}
.intro-section p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =============================================
   SECTION — DICTIONARY WORD BLOCKS
   ============================================= */
.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Word entry header — the key visual element */
.word-entry {
  margin-bottom: 0;
      color: #000;
}

.word-entry__header {
  margin-bottom: 48px;
}

.word-entry__number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

/* THE SCRAMBLE TITLE container */
.word-entry__title-wrap {
  position: relative;
  display: inline-block;
}

.word-entry__title {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--de-black);
  margin-bottom: 4px;
  cursor: default;
  display: block;
}

.el {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 0;
    max-height: 70%;
    max-width: 70%;
}
.el.el-bl {
    right: auto;
	left:0;
}

/* Scramble text in UA/DE mode */
.word-entry__title.mode-de { color: var(--de-red); }
.word-entry__title.mode-ua { color: var(--ua-blue); }

/* Toggle language pill under title */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  margin-bottom: 24px;
  cursor: pointer;
  user-select: none;
}
.lang-toggle__pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  transition: all 0.3s;
}
.lang-toggle__pill.ua {
  background: var(--ua-blue);
  color: #fff;
}
.lang-toggle__pill.de {
  background: var(--de-black);
  color: #fff;
}
.lang-toggle__arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.3s;
}
.lang-toggle:hover .lang-toggle__arrow {
  transform: rotate(180deg);
}

/* Dud characters style */
.dud {
  color: #fff;
  opacity: 0.5;
}
.section--light .dud {
  color: var(--de-yellow);
}

/* Section text content */
.word-entry__body p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 18px;
}
/*
.word-entry__body p:first-child {
  font-size: 17px;
  color: var(--text-main);
  font-weight: 500;
}
*/

/* =============================================
   BG VARIANTS
   ============================================= */
.section--dark {
  background: var(--de-black);
  color: #fff;
}
.section--dark .word-entry__title { color: #fff; }
.section--dark .word-entry__title.mode-de { color: var(--de-yellow); }
.section--dark .word-entry__title.mode-ua { color: var(--ua-yellow); }
.section--dark .word-entry__number { color: rgba(255,255,255,0.4); }
.section--dark .word-entry__body p { color: rgba(255,255,255,0.7); }
.section--dark .word-entry__body p:first-child { color: rgba(255,255,255,0.95); }
.section--dark .dud { color: var(--de-yellow); }

.section--red {
  background: var(--de-red);
  color: #fff;
}
.section--red .word-entry__title { color: #fff; }
.section--red .word-entry__number { color: rgba(255,255,255,0.6); }
.section--red .word-entry__body p { color: rgba(255,255,255,0.85); }
.section--red .word-entry__body p:first-child { color: #fff; }
.section--red .dud { color: var(--de-yellow); }
.section--red .lang-toggle__pill.ua { background: #fff; color: var(--de-red); }
.section--red .lang-toggle__pill.de { background: rgba(255,255,255,0.2); color: #fff; }
.section--red .lang-toggle__arrow { color: rgba(255,255,255,0.7); }

.section--yellow {
  background: var(--de-yellow);
  color: var(--de-black);
}
.section--yellow .word-entry__title { color: var(--de-black); }
.section--yellow .word-entry__title.mode-de { color: var(--de-black); }
.section--yellow .word-entry__body p { color: var(--de-black); }
.section--yellow .word-entry__body p:first-child { color: var(--de-black); }

.section--light {
  background: var(--bg-light);
}

/* =============================================
   GEOMETRIC BG DECORATION
   ============================================= */
.geo-accent {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.geo-accent--tl {
  top: -30px; left: -30px;
  width: 220px; height: 220px;
  border: 2px solid currentColor;
  opacity: 0.06;
  transform: rotate(15deg);
}
.geo-accent--br {
  bottom: -30px; right: -30px;
  width: 280px; height: 280px;
  border: 2px solid currentColor;
  opacity: 0.06;
  transform: rotate(-10deg);
}
.section--dark .geo-accent { color: #fff; }
.section--red .geo-accent { color: #fff; }

/* =============================================
   GALLERY
   ============================================= */
.gallery {
  display: grid;
  gap: 8px;
      margin-bottom: 20px;
}
.gallery--2col { grid-template-columns: 1fr 1fr; }
.gallery--3col { grid-template-columns: 1fr 1fr 1fr; }
.gallery--main-right {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.gallery--main-right .gallery__item:first-child {
  grid-row: 1 / 3;
}

.gallery__item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery__item--tall { aspect-ratio: 3/4; }
.gallery__item--wide { aspect-ratio: 16/9; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
  display: block;
}
.gallery__item:hover img { transform: scale(1.04); }

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 32px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox__close:hover { opacity: 1; }

/* =============================================
   STAT BADGE
   ============================================= */
.stat-badge {
    display: inline-block;
    padding: 16px 28px;
    background: var(--de-yellow);
    color: #000;
    margin-bottom: 24px;
}
.stat-badge__num {
  font-size: 36px;
  font-weight: 900;
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-badge__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  display: block;
  margin-top: 4px;
}
.section--dark .stat-badge { background: var(--de-yellow); color: var(--de-black); }
.section--red .stat-badge { background: #fff; color: var(--de-red); }
.section--yellow .stat-badge { background: var(--de-black); color: #fff; }

/* =============================================
   KEY NUMBERS GRID
   ============================================= */
.key-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
  background: rgba(0,0,0,0.08);
  margin: 40px 0;
}
.key-number {
  background: var(--de-yellow);
  color: #fff;
  padding: 32px 24px;
  text-align: center;
}
.key-number__val {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #000;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.key-number__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #000;
  line-height: 1.4;
}

/* =============================================
   DIVIDER
   ============================================= */
.flag-rule {
  display: flex;
  height: 4px;
  margin: 60px 0;
  gap: 2px;
}
.flag-rule span:nth-child(1) { flex: 1; background: var(--de-black); }
.flag-rule span:nth-child(2) { flex: 1; background: var(--de-red); }
.flag-rule span:nth-child(3) { flex: 1; background: var(--de-yellow); }

/* =============================================
   SECTION CREDITS
   ============================================= */
.section-credits {
  background: var(--de-black);
  color: rgba(255,255,255,0.6);
  padding: 60px 0;
  font-size: 14px;
  line-height: 1.8;
}
.section-credits p { margin-bottom: 8px; }

/* =============================================
   UTILITY
   ============================================= */
.section > .container,
.section > .container > * { position: relative; z-index: 1; }

img { max-width: 100%; }

.text-de-red { color: var(--de-red); }
.text-de-yellow { color: var(--de-yellow); }
.text-ua-blue { color: var(--ua-blue); }

.fw-900 { font-weight: 900; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .gallery--3col { grid-template-columns: 1fr 1fr; }
  .gallery--main-right { grid-template-columns: 1fr; }
  .gallery--main-right .gallery__item:first-child { grid-row: auto; }
  .key-numbers { grid-template-columns: 1fr 1fr; }
  .hero__stat { font-size: 32px; }
  .partners-bar__inner { gap: 20px; }
}
@media (max-width: 480px) {
  .gallery--2col, .gallery--3col { grid-template-columns: 1fr; }
  .key-numbers { grid-template-columns: 1fr; }
}

.gallery_wrap.gallery-col1 .f-carousel__slide {
    max-width: 100%!important;
    padding: 0px!importrant;
}


.gallery_wrap .f-carousel__slide {
    max-width: 33.33%;
    padding: 2px;
	cursor: zoom-in;
}
.gallery_wrap.gallery-col2 .f-carousel__slide {
    max-width: 50%;
}
@media (max-width: 768px) {
    .gallery_wrap .f-carousel__slide {
        max-width: 50%;
    }
}
@media (max-width: 576px) {
    .gallery_wrap .f-carousel__slide {
        max-width: 100%;
    }
}
.word-entry__body .photo-caption, .intro-section p.photo-caption {
    color: #555;
    right: 0;
    padding: 10px 0 0;
    font-size: .8em;
}

p em {
    font-weight: 600;
}