/* =============================================================
   ГО «ХАРТІЯ-ХАБИ» — стилі лендінга
   Шар поверх khartiia-tokens.css (дизайн-система «Хартія»)
   ============================================================= */

html { scroll-behavior: smooth; }

body { background-color: var(--brand-dark); }

section[id] { scroll-margin-top: 5.5rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .75rem 1.25rem; background: var(--brand); color: var(--black);
  text-transform: uppercase; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- HEADER --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background-color: var(--brand-dark);
  border-bottom: 1px solid var(--white-10);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: .875rem;
}
.brand { display: flex; align-items: center; gap: .875rem; color: var(--white); }
.brand:hover .brand-name { color: var(--brand); }
.brand-mark { width: 2.75rem; height: auto; color: var(--brand); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: .125rem; }
.brand-name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  line-height: 100%; text-transform: uppercase; letter-spacing: .03em;
  transition: color var(--t-fast);
}
.brand-sub {
  font-size: .625rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--grey);
}

.site-nav { display: flex; gap: 2.25rem; }
.site-nav a {
  color: var(--white-80); font-size: .875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  transition: color var(--t-fast);
}
.site-nav a:hover { color: var(--brand); }

.nav-toggle {
  display: none; position: relative; z-index: 60;
  width: 2.75rem; height: 2.75rem; padding: .625rem;
  background: none; border: 1px solid var(--white-20); cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--white);
  margin: .3125rem 0; transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media screen and (max-width: 767px) {
  .nav-toggle { display: block; }
  .site-header .site-nav {
    position: fixed; inset: 0; z-index: 55;
    display: none; flex-direction: column; justify-content: center; align-items: center;
    gap: 2.5rem; background-color: var(--brand-dark);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-header .site-nav a { font-size: 1.25rem; }
  .site-footer .site-nav { flex-direction: column; gap: 1rem; }
}

/* ---------- HERO ----------------------------------------------------- */
.hero.is-main {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(43rem, calc(100svh - 4.5rem), 56rem);
  background-color: var(--brand-dark); color: var(--white);
}
.hero-decor {
  position: absolute; right: -6rem; top: 50%; transform: translateY(-54%);
  width: 46rem; max-width: 80vw; height: auto; color: var(--brand);
  pointer-events: none; user-select: none;
}
.hero-content { position: relative; z-index: 1; padding-block: 4rem 6.5rem; }
.hero-text { display: flex; flex-direction: column; gap: 1.5rem; max-width: 56rem; }

.h1-eyebrow {
  display: block; margin-bottom: 1.25rem;
  font-family: var(--font-body); font-weight: 400;
  color: var(--brand); text-transform: uppercase;
  letter-spacing: 9px; font-size: 1rem; line-height: 140%;
}
.h1 .h1-main { display: block; }
.hero-mission { max-width: 44rem; color: var(--white-80); font-size: 1.125rem; line-height: 150%; }
.hero-mission + .hero-mission { margin-top: 0; }
.hero .btn-row { margin-top: 1.25rem; }

@media screen and (max-width: 767px) {
  .hero.is-main { min-height: 34rem; }
  .hero-content { padding-block: 3rem 3.5rem; }
  .h1-eyebrow { letter-spacing: 4px; font-size: .875rem; }
  .hero-mission { font-size: 1rem; }
  .hero-decor { right: -8rem; opacity: .06; }
}

/* ---------- ЗАГАЛЬНІ БЛОКИ СЕКЦІЙ ------------------------------------ */
.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3.625rem; }
.section-head .eyebrow { letter-spacing: 6px; }
.section.is-light .eyebrow { color: var(--brand-dark); opacity: .75; }
.section-lead { max-width: 46rem; font-size: 1.125rem; line-height: 150%; }
.section.is-dark .section-lead { color: var(--white-80); }
.section.is-light .section-lead { color: var(--text-dark); }

@media screen and (max-width: 767px) {
  .section-head { margin-bottom: 2.25rem; }
  .section-head .eyebrow { letter-spacing: 3px; }
}

/* ---------- ПРО НАС -------------------------------------------------- */
.about-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 4rem;
  align-items: start;
}
.about-text { display: flex; flex-direction: column; gap: 1.25rem; }
.about-text p { line-height: 155%; color: var(--text-dark); }
.about-text strong { color: var(--brand-dark); }

.audience {
  background-color: var(--brand-dark); color: var(--white);
  padding: 2.25rem;
}
.audience-title {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
  text-transform: uppercase; margin: 0 0 1.5rem; color: var(--brand);
}
.audience ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.audience li { display: flex; gap: .875rem; align-items: flex-start; line-height: 140%; color: var(--white-80); overflow-wrap: anywhere; }
.audience li::before {
  content: ""; flex-shrink: 0; width: .875rem; height: .875rem; margin-top: .1875rem;
  background: linear-gradient(135deg, var(--brand) 50%, transparent 50%);
}

@media screen and (max-width: 991px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}
@media screen and (max-width: 479px) {
  .audience { padding: 1.5rem 1.25rem; }
}

/* ---------- НАПРЯМКИ ДІЯЛЬНОСТІ -------------------------------------- */
.directions {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.direction-card {
  display: flex; flex-direction: column; gap: 1.25rem;
  min-height: 21rem; padding: 1.75rem;
  border: 1px solid var(--white-10);
  background-color: var(--white-10);
  background-clip: padding-box;
  transition: border-color var(--t-slow), background-color var(--t-slow), transform var(--t-slow);
}
.direction-card:hover { border-color: var(--brand); background-color: var(--brand-10); transform: translateY(-4px); }
.direction-icon { width: 3rem; height: 3rem; color: var(--brand); }
.direction-title {
  font-family: var(--font-display); font-size: 1.625rem; font-weight: 700;
  line-height: 105%; text-transform: uppercase; margin: 0; color: var(--white);
}
.direction-sub { color: var(--brand); text-transform: uppercase; font-size: .8125rem; letter-spacing: .06em; margin: 0; }
.direction-text { color: var(--white-80); font-size: .9375rem; line-height: 150%; margin: 0; }

@media screen and (max-width: 991px) { .directions { grid-template-columns: repeat(2, 1fr); } .direction-card { min-height: auto; } }
@media screen and (max-width: 479px) { .directions { grid-template-columns: 1fr; } }

/* ---------- ПРОЄКТИ (кроки 01–03) ------------------------------------ */
.projects { margin-top: 5rem; display: flex; flex-direction: column; }
.projects-title {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; font-style: italic;
  text-transform: uppercase; margin: 0 0 2.25rem; color: var(--white);
}
.project-row {
  display: grid; grid-template-columns: 8rem 1fr 1.6fr; gap: 2rem; align-items: start;
  padding-block: 2rem; border-top: 1px solid var(--white-10);
}
.project-row:last-child { border-bottom: 1px solid var(--white-10); }
.project-num {
  font-family: var(--font-display); font-size: 3.125rem; line-height: 80%;
  font-style: italic; font-weight: 700; color: var(--brand);
}
.project-name {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
  line-height: 105%; text-transform: uppercase; margin: 0; color: var(--white);
}
.project-desc { margin: 0; color: var(--white-80); font-size: .9375rem; line-height: 150%; }

@media screen and (max-width: 767px) {
  .projects { margin-top: 3rem; }
  .project-row { grid-template-columns: 1fr; gap: .75rem; }
  .projects-title { font-size: 2rem; }
}

/* ---------- МЕРЕЖА ПРОСТОРІВ ----------------------------------------- */
.hubs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.hub-card {
  position: relative; display: flex; flex-direction: column; gap: .625rem;
  padding: 1.75rem; background-color: var(--surface-off);
  border: 1px solid var(--gray-50);
  transition: border-color var(--t-fast);
}
.hub-card:hover { border-color: var(--brand-dark); }
.hub-card.is-main-hub { border: 2px solid var(--brand-dark); background-color: var(--white); }
.hub-tag {
  position: absolute; top: 0; right: 0;
  padding: .375rem .75rem; background: var(--brand); color: var(--black);
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.hub-city {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
  text-transform: uppercase; margin: 0; color: var(--brand-dark);
}
.hub-address { margin: 0; color: var(--text-dark); font-size: .9375rem; line-height: 145%; }
.hub-hours { margin: 0; color: var(--khaki-2); font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; }
.hub-card.is-planned { border-style: dashed; background-color: transparent; }
.hubs-note { margin-top: 2.25rem; max-width: 52rem; color: var(--text-dark); font-size: .9375rem; line-height: 155%; }
.hubs-note a { color: var(--brand-dark); font-weight: 700; border-bottom: 2px solid var(--brand); transition: color var(--t-fast); }
.hubs-note a:hover { color: var(--khaki); }

@media screen and (max-width: 991px) { .hubs-grid { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 479px) { .hubs-grid { grid-template-columns: 1fr; } }

/* ---------- КОНТАКТИ ------------------------------------------------- */
.contacts-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.requisites { margin: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.requisites > div { display: flex; flex-direction: column; gap: .375rem; }
.requisites dt {
  font-size: .75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; color: var(--grey);
}
.requisites dd { margin: 0; font-size: 1.125rem; line-height: 140%; color: var(--white); }
.requisites dd a { color: var(--white); border-bottom: 2px solid var(--brand); transition: color var(--t-fast); }
.requisites dd a:hover { color: var(--brand); }

.contacts-cta {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 2.25rem; border: 1px solid var(--white-10); background-color: var(--white-10);
}
.contacts-cta-title {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
  text-transform: uppercase; margin: 0; color: var(--brand);
}
.contacts-cta p { margin: 0; color: var(--white-80); font-size: .9375rem; line-height: 150%; }
.contacts-cta .btn { justify-content: center; }

@media screen and (max-width: 991px) { .contacts-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- ФУТЕР ---------------------------------------------------- */
.site-footer { border-top: 1px solid var(--white-10); color: var(--white); }
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; padding-block: 2.5rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-legal { color: var(--grey); font-size: .8125rem; line-height: 160%; max-width: 60rem; }
.footer-legal a { color: var(--white-80); }
.footer-legal a:hover { color: var(--brand); }

@media screen and (max-width: 767px) {
  .footer-top { flex-direction: column; align-items: flex-start; }
}
