/* ==========================================================================
   Zavod Lastena — site styles
   Palette sampled from the Zavod Lastena logo.
   ========================================================================== */

:root {
  /* Brand */
  --plum-950: #2e1820;
  --plum-900: #43252f;
  --plum: #5c3541;          /* wordmark */
  --plum-700: #704552;
  --mauve: #a97279;         /* tagline */
  --mauve-700: #8e5a64;     /* accessible mauve for text on light backgrounds */
  --rose: #ba878a;
  --taupe: #ae827a;
  --blush: #d7b8a9;
  --blush-200: #ebd8ce;
  --blush-100: #f5eae4;
  --cream: #fbf7f4;
  --white: #ffffff;

  /* Text */
  --ink: #35262b;
  --muted: #6f5c62;
  --line: #eadbd4;

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  /* Shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px -4px rgba(92, 53, 65, 0.18);
  --shadow: 0 18px 40px -18px rgba(92, 53, 65, 0.35);

  --container: 1180px;
  --header-h: 80px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

/* Avoid a flash of English while the Slovenian text is being applied */
html[data-lang-pending] body {
  visibility: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

a {
  color: var(--mauve-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--plum);
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); }

p {
  margin: 0 0 1.1em;
}

ul {
  padding-left: 1.2em;
}

:focus-visible {
  outline: 3px solid var(--mauve);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--plum);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2.5rem, 860px);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--cream { background: var(--cream); }
.section--blush { background: var(--blush-100); }

.section__head {
  max-width: 760px;
  margin: 0 auto clamp(2.2rem, 4vw, 3.5rem);
  text-align: center;
}

.section__head p {
  color: var(--muted);
  font-size: 1.2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mauve-700);
}

.eyebrow svg {
  width: 1.15em;
  height: 1.15em;
}

.lead {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
}

.center { text-align: center; }

.icon {
  width: 1.5em;
  height: 1.5em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.9rem 1.8rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font: 500 1.05rem/1.2 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--plum);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--plum-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn--outline {
  border-color: var(--plum);
  color: var(--plum);
  background: transparent;
}

.btn--outline:hover {
  background: var(--plum);
  color: var(--white);
}

.btn--light {
  background: var(--blush-100);
  color: var(--plum);
}

.btn--light:hover {
  background: var(--white);
  color: var(--plum);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--plum);
}

.btn--caps {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.92rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-row--center { justify-content: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 500;
  color: var(--plum);
  text-decoration: none;
  border-bottom: 1.5px solid var(--blush);
  padding-bottom: 2px;
  transition: gap 0.2s, border-color 0.2s;
}

.text-link:hover {
  gap: 0.8em;
  border-color: var(--plum);
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px -18px rgba(92, 53, 65, 0.45);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--plum);
}

.brand__mark {
  width: 50px;
  height: 50px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__zavod {
  font: 500 0.66rem/1 var(--font-body);
  letter-spacing: 0.46em;
  color: var(--plum-700);
  margin-bottom: 0.3rem;
}

.brand__name {
  font: 600 1.7rem/0.9 var(--font-display);
  letter-spacing: 0.07em;
}

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.nav__link:hover {
  background: var(--blush-100);
  color: var(--plum);
}

.nav__link[aria-current="page"] {
  background: var(--plum);
  color: var(--white);
}

.nav__link .icon {
  width: 0.95em;
  height: 0.95em;
  stroke-width: 2;
  transition: transform 0.2s;
}

.nav__sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

/* hover bridge so the menu doesn't close in the gap */
.nav__sub::before {
  content: "";
  position: absolute;
  inset: -10px 0 auto;
  height: 10px;
}

.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav__item--has-sub:hover > .nav__link .icon,
.nav__item--has-sub:focus-within > .nav__link .icon {
  transform: rotate(180deg);
}

.nav__sub a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
}

.nav__sub a:hover {
  background: var(--blush-100);
  color: var(--plum);
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
}

.lang__btn {
  padding: 0.3rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 500 0.82rem/1.2 var(--font-body);
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.lang__btn:hover {
  color: var(--plum);
}

.lang__btn[aria-pressed="true"] {
  background: var(--plum);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--plum);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Medium widths (small laptops, tablets in landscape, narrow windows): keep the full bar, just tighter */
@media (min-width: 861px) and (max-width: 1120px) {
  .site-header__inner { gap: 0.7rem; }
  .brand { gap: 0.55rem; }
  .brand__mark { width: 42px; height: 42px; }
  .brand__zavod { font-size: 0.58rem; }
  .brand__name { font-size: 1.4rem; }
  .nav__list { gap: 0; }
  .nav__link { padding: 0.5rem 0.5rem; font-size: 0.92rem; }
  .lang__btn { padding: 0.3rem 0.5rem; font-size: 0.78rem; }
}

/* Below this the bar becomes the ☰ menu button */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 0.75rem 1.25rem 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav__link {
    display: flex;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
  }

  .nav__link .icon {
    display: none;
  }

  .nav__sub {
    position: static;
    min-width: 0;
    margin: 0 0 0.4rem 1rem;
    padding: 0 0 0 0.6rem;
    border: 0;
    border-left: 2px solid var(--blush-200);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 420px) {
  .brand__mark { width: 42px; height: 42px; }
  .brand__name { font-size: 1.4rem; }
  .brand__zavod { font-size: 0.58rem; }
  .site-header__inner { gap: 0.6rem; }
  .lang__btn { padding: 0.3rem 0.55rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(560px, 80vh, 780px);
  padding: 5rem 0;
  color: var(--white);
  text-align: center;
  /* The photo is set inline on the element: style="background-image: url(...)" */
  background: var(--plum) linear-gradient(135deg, var(--plum-900), var(--mauve-700)) center 30% / cover no-repeat;
  isolation: isolate;
}

/* Plum colour overlay above the photo, below the text */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(67, 37, 47, 0.74) 0%, rgba(92, 53, 65, 0.6) 45%, rgba(46, 24, 32, 0.8) 100%);
}

.hero__inner {
  max-width: 900px;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 1.4rem;
  padding: 0.45rem 1.1rem 0.45rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--blush-100);
}

.hero h1 {
  margin-bottom: 1.4rem;
  color: var(--white);
  font-weight: 600;
  text-shadow: 0 2px 30px rgba(46, 24, 32, 0.45);
}

.hero__lead {
  max-width: 720px;
  margin: 0 auto 2.4rem;
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}

/* Inner-page hero */
.page-hero {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  color: var(--white);
  text-align: center;
  /* Optional photo is set inline on the element: style="background-image: url(...)" */
  background: var(--plum) linear-gradient(135deg, var(--plum-900), var(--mauve-700)) center / cover no-repeat;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(67, 37, 47, 0.8), rgba(92, 53, 65, 0.78));
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 420px;
  height: 420px;
  background: url("../img/logo-mark-light.png") center / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
}

.page-hero h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--white);
}

.page-hero p {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  color: rgba(255, 255, 255, 0.92);
}

.page-hero .eyebrow {
  color: var(--blush);
}

/* --------------------------------------------------------------------------
   Statement band
   -------------------------------------------------------------------------- */

.band {
  padding: clamp(2.2rem, 4vw, 3.2rem) 0;
  background: var(--blush-100);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.band p {
  max-width: 900px;
  margin: 0 auto;
  font: 500 italic clamp(1.4rem, 2.5vw, 1.9rem) / 1.4 var(--font-display);
  color: var(--plum);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split--top { align-items: start; }

.split__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.split__media {
  position: relative;
}

.split__media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: var(--blush-200);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; max-width: 520px; margin-inline: auto; }
  .split__media::before { inset: 14px -14px -14px 14px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--blush);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card p + p {
  margin-top: 0.7rem;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.3rem;
  border-radius: 50%;
  background: var(--blush-100);
  color: var(--mauve-700);
}

.card__icon .icon {
  width: 26px;
  height: 26px;
}

/* Connect / Understand / Participate */
.pillar {
  align-items: center;
  text-align: center;
  padding: 2.4rem 1.8rem;
}

.pillar .card__icon {
  width: 68px;
  height: 68px;
  background: var(--plum);
  color: var(--blush-100);
}

.pillar .card__icon .icon {
  width: 30px;
  height: 30px;
}

.pillar h3 {
  font: 600 0.98rem/1.2 var(--font-body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 0.7rem;
}

.pillar:nth-child(2) .card__icon { background: var(--mauve-700); }
.pillar:nth-child(3) .card__icon { background: var(--taupe); color: var(--white); }

/* "How can we help you?" cards */
.help-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
}

.help-card {
  grid-column: span 2;
  color: inherit;
  text-decoration: none;
}

.help-card:nth-child(4) { grid-column: 2 / span 2; }

.help-card h3 {
  font-size: 1.55rem;
}

.help-card__go {
  display: flex;
  gap: 0.5em;
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--muted);
}

.help-card__go .icon {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.25em;
  color: var(--mauve-700);
  transition: transform 0.2s;
}

.help-card:hover .help-card__go .icon {
  transform: translateX(4px);
}

.help-card:hover {
  color: inherit;
}

@media (min-width: 1200px) {
  .help-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .help-card,
  .help-card:nth-child(4) { grid-column: auto; }
  .help-card { padding: 1.7rem 1.4rem; }
  .help-card h3 { font-size: 1.45rem; }
  .help-card__go { font-size: 1rem; }
}

@media (max-width: 900px) {
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-card,
  .help-card:nth-child(4) { grid-column: auto; }
  .help-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .help-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Why Lastena / story teaser
   -------------------------------------------------------------------------- */

.quote-card {
  position: relative;
  padding: clamp(2.2rem, 4vw, 3.4rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--plum) 0%, var(--plum-900) 100%);
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.quote-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 260px;
  height: 260px;
  background: url("../img/logo-mark-light.png") center / contain no-repeat;
  opacity: 0.12;
}

.quote-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0 0 1.8rem;
  font: 500 italic clamp(1.7rem, 3vw, 2.4rem) / 1.25 var(--font-display);
  color: var(--white);
  text-wrap: balance;
}

.quote-card .text-link {
  position: relative;
  z-index: 1;
  color: var(--blush-100);
  border-color: rgba(255, 255, 255, 0.4);
}

.quote-card .text-link:hover {
  border-color: var(--white);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Mission
   -------------------------------------------------------------------------- */

.mission {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--blush-100);
}

.mission::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(620px, 90vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: url("../img/logo-mark.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.mission__text {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  font: 500 clamp(1.6rem, 3.1vw, 2.5rem) / 1.3 var(--font-display);
  color: var(--plum);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   GLOW
   -------------------------------------------------------------------------- */

.glow {
  position: relative;
  overflow: hidden;
  color: var(--blush-100);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(186, 135, 138, 0.35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(169, 114, 121, 0.28), transparent 60%),
    linear-gradient(160deg, var(--plum-900) 0%, var(--plum) 55%, var(--plum-700) 100%);
}

.glow h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  color: var(--white);
}

.glow h2 span {
  letter-spacing: 0.12em;
}

.glow .eyebrow {
  color: var(--blush);
}

.glow__sub {
  margin-bottom: 1.3rem;
  font: 500 italic clamp(1.4rem, 2.4vw, 1.8rem) / 1.3 var(--font-display);
  color: var(--blush);
}

.glow__text {
  max-width: 520px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 901px) {
  .glow .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.glow__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--plum-700);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.55);
}

.photo img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  transition: transform 0.6s;
}

.photo:hover img {
  transform: scale(1.04);
}

.photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.2rem 1rem 0.9rem;
  font: 600 1.25rem/1.2 var(--font-display);
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(46, 24, 32, 0.85));
}

.glow__photos .photo:nth-child(2) { margin-top: 2.5rem; }
.glow__photos .photo:nth-child(3) { margin-top: 1.1rem; }

@media (max-width: 620px) {
  .glow__photos { gap: 0.6rem; }
  .photo figcaption { font-size: 1.05rem; padding: 1.8rem 0.7rem 0.7rem; }
}

/* Photo cards on the GLOW page */
.photo-card {
  overflow: hidden;
  padding: 0;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card__body {
  padding: 1.6rem 1.7rem 1.9rem;
}

/* --------------------------------------------------------------------------
   Partners
   -------------------------------------------------------------------------- */

.partner-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 150px;
  padding: 1.6rem 1.2rem;
  border: 1.5px dashed var(--blush);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--plum);
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
}

.partner-tile .icon {
  width: 30px;
  height: 30px;
  color: var(--mauve);
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  /* Optional photo is set inline on the element: style="background-image: url(...)" */
  background: var(--plum) linear-gradient(160deg, var(--plum-700), var(--plum-900)) center / cover no-repeat;
  isolation: isolate;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(92, 53, 65, 0.86), rgba(46, 24, 32, 0.9));
}

.cta h2 {
  max-width: 820px;
  margin: 0 auto 1.2rem;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  color: var(--white);
}

.cta p {
  max-width: 700px;
  margin: 0 auto 2.2rem;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.jump-grid {
  margin-top: calc(-1 * clamp(2.5rem, 5vw, 3.5rem));
  position: relative;
  z-index: 2;
}

.jump-card {
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.jump-card:hover { color: inherit; }

.jump-card__num {
  font: 600 2.6rem/1 var(--font-display);
  color: var(--blush);
  margin-bottom: 0.6rem;
}

.prose {
  max-width: 760px;
}

.prose p {
  color: var(--ink);
}

.prose--center {
  margin-inline: auto;
}

/* My Story: portrait beside the text */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.story__portrait {
  position: relative;
  margin: 0 0 2.4rem;
}

.story__portrait::before {
  content: "";
  position: absolute;
  inset: 20px 20px -20px -20px;
  z-index: 0;
  border-radius: var(--radius-lg);
  background: var(--blush-200);
}

.story__portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.quote-card--compact {
  padding: 1.8rem 2rem;
}

.quote-card--compact blockquote {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.story__text p {
  max-width: 680px;
}

.story__key {
  margin: 1.8rem 0 1.2rem;
  font: 600 clamp(1.5rem, 2.4vw, 1.9rem) / 1.25 var(--font-display);
  color: var(--plum);
}

.story__key--closing {
  margin-bottom: 0;
  padding-left: 1.3rem;
  border-left: 3px solid var(--mauve);
  font-style: italic;
  font-weight: 500;
}

/* keep the portrait in view while reading, when the screen is tall enough for it */
@media (min-width: 901px) and (min-height: 900px) {
  .story__aside {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
}

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story__aside { max-width: 440px; margin-inline: auto; }
  .story__portrait::before { inset: 14px 14px -14px -14px; }
}

.placeholder-note {
  margin: 1.6rem 0;
  padding: 1.4rem 1.6rem;
  border: 2px dashed var(--mauve);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--plum);
  font-size: 1.02rem;
}

.placeholder-note strong {
  display: block;
  margin-bottom: 0.3rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--mauve-700);
}

.vm-card {
  padding: 2.4rem 2.2rem;
  text-align: center;
}

.vm-card h3 {
  color: var(--mauve-700);
  margin-bottom: 0.9rem;
}

.vm-card p {
  font: 500 clamp(1.3rem, 2vw, 1.55rem) / 1.35 var(--font-display);
  color: var(--plum);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 2rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-weight: 500;
  color: var(--plum);
}

.check-list .icon {
  width: 22px;
  height: 22px;
  color: var(--mauve);
}

@media (max-width: 620px) {
  .check-list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   What we do — journey
   -------------------------------------------------------------------------- */

.journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.journey__step {
  position: relative;
  padding: 2rem 1.6rem 0;
  text-align: center;
  counter-increment: step;
}

.journey__step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--plum);
  color: var(--white);
  font: 600 1.5rem/1 var(--font-display);
}

.journey__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(2rem + 27px);
  left: calc(50% + 40px);
  width: calc(100% - 80px + 1.5rem);
  border-top: 2px dashed var(--blush);
}

.journey__step h3 {
  font: 600 0.95rem/1.2 var(--font-body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.journey__step p {
  color: var(--muted);
}

@media (max-width: 720px) {
  .journey { grid-template-columns: 1fr; }
  .journey__step::after { display: none; }
  .journey__step { padding-top: 0.5rem; }
}

/* --------------------------------------------------------------------------
   Get involved — pathways
   -------------------------------------------------------------------------- */

.pathway {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1.8rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
}

.pathway:first-of-type { padding-top: 0; }
.pathway:last-of-type { border-bottom: 0; padding-bottom: 0; }

.pathway__icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--blush-100);
  color: var(--mauve-700);
}

.pathway__icon .icon {
  width: 34px;
  height: 34px;
}

.pathway h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.3rem;
}

.pathway__tag {
  margin-bottom: 0.9rem;
  font-weight: 500;
  color: var(--mauve-700);
}

.pathway p {
  max-width: 680px;
}

.pathway .btn {
  margin-top: 0.4rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.chip-list li {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--blush-100);
  color: var(--plum);
  font-size: 0.98rem;
  font-weight: 500;
}

@media (max-width: 620px) {
  .pathway { grid-template-columns: 1fr; gap: 1.1rem; }
  .pathway__icon { width: 64px; height: 64px; }
  .pathway__icon .icon { width: 28px; height: 28px; }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

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

.contact-list {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list .card__icon {
  width: 48px;
  height: 48px;
  margin: 0;
}

.contact-list .card__icon .icon {
  width: 22px;
  height: 22px;
}

.contact-list strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve-700);
}

.form {
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

@media (max-width: 620px) {
  .form__row { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--plum);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font: 400 1.05rem/1.4 var(--font-body);
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mauve);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(169, 114, 121, 0.18);
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  accent-color: var(--plum);
  flex: none;
}

.form__status {
  margin: 1rem 0 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--blush-100);
  color: var(--plum);
  font-size: 1rem;
}

.form__status[hidden] { display: none; }

.social {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--plum);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.social a:hover {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--white);
  transform: translateY(-2px);
}

.social .icon {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal h2 {
  margin-top: 2.2rem;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
}

.legal .placeholder-note {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
  background: var(--plum-950);
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer .brand {
  margin-bottom: 1.2rem;
  color: var(--blush-100);
}

.site-footer .brand__zavod {
  color: var(--blush);
}

.site-footer__legal-name {
  max-width: 340px;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer h2 {
  margin-bottom: 1.1rem;
  font: 500 0.8rem/1.2 var(--font-body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blush);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li + li {
  margin-top: 0.45rem;
}

.site-footer .social a {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--blush-100);
}

.site-footer .social a:hover {
  background: var(--blush-100);
  border-color: var(--blush-100);
  color: var(--plum);
  text-decoration: none;
}

.site-footer__tagline {
  margin-top: 1.4rem;
  font: 500 italic 1.25rem/1.3 var(--font-display);
  color: var(--blush);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding-top: 1.6rem;
  font-size: 0.95rem;
}

.site-footer__bottom ul {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 820px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Reveal on scroll (only when JS is available)
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card,
  .photo img {
    transition: none;
  }
}
