/* Anna Khmeleva — site-vizitka */
:root {
  --bg: #f7f5f1;
  --bg-card: #efede8;
  --text: #2a2420;
  --text-muted: #6e6560;
  --accent: #b89d74;
  --accent-dark: #9a8260;
  --footer: #3d2e2c;
  --white: #fff;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --container: min(1200px, 92vw);
  --header-h: 72px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.container { width: var(--container); margin-inline: auto; }

/* Typography */
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}
.section-title--center { text-align: center; }
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: -1rem 0 2rem;
  font-size: 0.95rem;
}
.section-subtitle--center { text-align: center; }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: opacity var(--transition);
}
.nav a:hover { opacity: 0.65; }
.nav--desktop { display: none; }
.header__email {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}
.menu-toggle {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-muted);
}
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
}
.icon-circle--outline {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--text) 25%, transparent);
  color: var(--text);
}
.icon-circle--accent { background: var(--accent); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  filter: grayscale(100%);
}
.mobile-menu__close { font-size: 2rem; line-height: 1; color: var(--text-muted); }
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  flex: 1;
}
.mobile-menu__email {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

/* Hero */
.hero {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, #fff 0%, transparent 70%),
    var(--bg);
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  font-weight: 500;
  text-align: center;
  margin: 0 0 1rem;
  line-height: 1.05;
}
.hero__roles {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.hero__roles li + li { margin-top: 0.25rem; }
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.hero__photo {
  width: 100%;
  max-height: 75vh;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(100%);
  border-radius: var(--radius-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--transition), transform 0.15s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  min-width: 220px;
}
.btn--primary:hover { background: var(--accent-dark); }
.btn--primary:active { transform: scale(0.98); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* About */
.about__grid { display: grid; gap: 1.5rem; }
.about__photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 10%;
  filter: grayscale(100%);
  border-radius: var(--radius);
  margin-top: 1.5rem;
}
.about__text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 65ch;
}
.about__lead {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0 0 1rem;
  max-width: 65ch;
}
.about__details[hidden] {
  display: none !important;
}
.about__details:not([hidden]) {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.about__section-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}
.about__section-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.about__section-list li {
  padding-left: 1rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.about__section-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.about__list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.about__list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.about__toggle {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--accent-dark);
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}
.about__text--extra { margin-top: 0; }

/* Activity */
.activity__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.activity-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  text-align: left;
  width: 100%;
  transition: border-color var(--transition), transform 0.15s ease;
}
.activity-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.activity-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}
.activity-card p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.activity-card__hint {
  font-size: 0.8rem;
  color: var(--accent-dark);
}

/* Program */
.program__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.program__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 0 1.5rem;
}
.program__download {
  margin-top: 0.25rem;
}
.program__media,
.report__media {
  width: 100%;
}
/* Shared 4:3 photo frame (news, program, report) */
.photo-frame {
  position: relative;
  width: 100%;
  padding-top: 75%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd6cc;
}
.photo-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  filter: grayscale(100%);
}

/* Report */
.report__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.report__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 0 1.5rem;
}
.report__download {
  margin-top: 0.25rem;
}

/* News */
.news__head { margin-bottom: 2rem; }
.news__filter-label {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.news__filter-reset {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--accent-dark);
  cursor: pointer;
  border-bottom: 1px solid currentColor;
}
.news__empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
}
.news__list { display: flex; flex-direction: column; gap: 2.5rem; }
.news-card {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
.news-card__body {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.news-card:not(.news-card--expanded) .news-card__body {
  aspect-ratio: 4 / 3;
}
.news-card--expanded .news-card__body {
  aspect-ratio: auto;
  height: auto;
  overflow: visible;
}
.news-card__title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1rem;
}
.news-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.news-card:not(.news-card--expanded) .news-card__text-wrap {
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.news-card:not(.news-card--expanded) .news-card__text {
  overflow: hidden;
}
.news-card--expanded .news-card__text-wrap {
  overflow: visible;
}
.news-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  white-space: pre-wrap;
  line-height: 1.55;
}
.news-card__excerpt {
  flex: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.news-card__link {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  flex-shrink: 0;
}
.news__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.news__more-arrow {
  width: 1px;
  height: 48px;
  background: var(--text-muted);
  position: relative;
}
.news__more-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--text-muted);
}

/* Quote */
.quote { background: var(--bg); }
.quote__inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
}
.quote__mark {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.55;
  position: absolute;
}
.quote__mark--open { top: 0; left: 0; }
.quote__mark--close { bottom: 0; right: 0; }
.quote__text {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.quote__text em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

/* Organizations slider */
.orgs {
  position: relative;
  color: var(--white);
  padding: clamp(4rem, 10vw, 7rem) 0;
  overflow: hidden;
}
.orgs__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(30, 22, 20, 0.72), rgba(30, 22, 20, 0.85)),
    url("../assets/orgs-bg.svg") center/cover no-repeat;
  background-size: cover;
  filter: grayscale(100%);
}
.orgs__wrap { position: relative; z-index: 1; }
.orgs__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.orgs__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  margin: 0;
  max-width: 12ch;
  line-height: 1.1;
}
.orgs__counter {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.orgs__counter::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed color-mix(in srgb, var(--white) 50%, transparent);
  border-radius: 50%;
}
.orgs__counter-current {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 2.5rem;
}
.orgs__counter-total {
  position: absolute;
  top: 8px;
  right: 4px;
  font-size: 0.85rem;
  opacity: 0.7;
}
.orgs__slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: stretch;
}
.orgs__card {
  min-width: 0;
  display: flex;
}
.orgs__nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: transform var(--transition);
  align-self: center;
}
.orgs__nav:hover { transform: scale(1.05); }
.orgs-card {
  --orgs-photo-height: 240px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.orgs-card__text {
  background: var(--white);
  color: var(--text);
  padding: 1.75rem;
  border: 2px solid #4a9fd4;
  border-right: none;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.orgs-card__name {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.orgs-card__desc {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.orgs-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.orgs-card__dots {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.orgs-card__logo {
  background: #2e2420;
  display: grid;
  place-items: center;
  padding: 2rem;
  height: var(--orgs-photo-height);
}
.orgs-card__media {
  overflow: hidden;
  height: var(--orgs-photo-height);
  max-height: var(--orgs-photo-height);
  background: #ddd6cc;
}
.orgs-card__photo {
  width: 100%;
  height: var(--orgs-photo-height);
  max-height: var(--orgs-photo-height);
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  display: block;
}
.orgs-card__initial {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a635c 50%, #4a4540 50%);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--white);
}

/* Contact */
.contact { padding: 0; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
}
.contact__photo-wrap { background: #e8e4de; }
.contact__photo {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(100%);
}
.contact__form-wrap {
  background: var(--white);
  padding: clamp(2rem, 6vw, 4rem);
}
.contact__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
}
.contact__subtitle {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 42ch;
  font-size: 0.92rem;
}
.form__field { margin-bottom: 1.5rem; }
.form__field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.form__field input,
.form__field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 25%, transparent);
  padding: 0.5rem 0;
  background: transparent;
  font: inherit;
  outline: none;
}
.form__field input:focus,
.form__field textarea:focus {
  border-bottom-color: var(--accent);
}
.form__field textarea { min-height: 80px; resize: vertical; }
.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.form__consent {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 28ch;
}

/* Contact bar */
.contact-bar {
  background: var(--accent);
  color: var(--white);
  padding: clamp(2rem, 5vw, 3rem) 0;
}
.contact-bar__grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}
.contact-bar__value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.contact-bar__label { font-size: 0.85rem; opacity: 0.85; }

/* Footer */
.footer {
  background: var(--footer);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.footer__grid {
  display: grid;
  gap: 2rem;
}
.footer__title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin: 0 0 1.5rem;
  max-width: 14ch;
}
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__legal a {
  font-size: 0.8rem;
  opacity: 0.75;
  transition: opacity var(--transition);
}
.footer__legal a:hover { opacity: 1; }
.nav--footer {
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}
.footer__email {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4vw, 2.5rem);
  font-weight: 500;
  word-break: break-all;
}
.footer__email-arrow {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: color-mix(in srgb, var(--white) 40%, transparent);
  position: relative;
}
.footer__email-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--white);
}

/* Tablet+ */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav--desktop { display: flex; }
  .header__email { display: inline-flex; }
  .hero__grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 3rem;
  }
  .hero__title, .hero__roles { text-align: left; }
  .hero__actions { flex-direction: row; align-items: center; }
  .about__grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .about__photo { margin-top: 2rem; }
  .program__grid { grid-template-columns: 1fr 1fr; }
  .report__grid { grid-template-columns: 1fr 1fr; }
  .activity__grid { grid-template-columns: repeat(2, 1fr); }
  .news-card {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .news-card:nth-child(even) .news-card__media { order: 2; }
  .orgs-card {
    --orgs-photo-height: 300px;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .orgs-card__text {
    border-right: none;
    min-height: var(--orgs-photo-height);
  }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact-bar__grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .contact-bar__item--right { text-align: right; }
  .footer__grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer__email { grid-column: 1 / -1; }
  .nav--footer { flex-direction: row; gap: 2rem; }
}

@media (min-width: 1024px) {
  .activity__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .footer__email {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    justify-self: end;
    flex-direction: row-reverse;
    max-width: 420px;
  }
  .footer__email-arrow { max-width: none; flex: 1; }
}

@media (min-width: 1200px) {
  .hero__grid { grid-template-columns: 1.1fr 0.85fr; }
}

body.menu-open { overflow: hidden; }
