@import url("reset.css");

/* =========================================================
   GRITUM LAW FIRM — editorial redesign (home page)
   Palette kept identical to the original site:
   graphite #2F2F2F, olive #6B7A5A (single accent colour)
   ========================================================= */

:root {
  --graphite: #2F2F2F;
  --graphite-soft: rgba(47, 47, 47, 0.62);
  --graphite-faint: rgba(47, 47, 47, 0.32);
  --paper: #fff;
  --olive: #6B7A5A;
  --olive-hover: #5A6B4A;
  --olive-light: rgba(107, 122, 90, 0.4);
}

* { box-sizing: border-box; }

html, body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--graphite-faint);
  display: inline-block;
}

/* ---------------- Header ---------------- */

.ed-header {
  background: var(--paper);
  position: relative;
  z-index: 10;
}

.ed-header__row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0;
  position: relative;
  z-index: 1;
}

.ed-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.6rem 0;
}

.ed-logo {
  display: flex;
  align-items: center;
  background: var(--graphite);
  padding: 1.6rem 6rem 1.6rem 2rem;
  margin-left: -2rem;
}

.ed-logo__img {
  height: 2.1rem;
  width: auto;
  display: block;
}

.ed-nav__list {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  flex-wrap: wrap;
}

.ed-nav__link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.3rem;
}

.ed-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--olive);
  transition: width 0.25s ease;
}

.ed-nav__link:hover::after { width: 100%; }

.ed-lang {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--graphite-faint);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.ed-lang:hover {
  border-color: var(--olive);
  color: var(--olive);
}

.ed-burger {
  display: none;
  width: 26px;
  height: 18px;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
}

.ed-burger span,
.ed-burger::before,
.ed-burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--graphite);
  transition: all 0.25s ease;
}

.ed-burger::before { top: 0; }
.ed-burger span { top: 50%; transform: translateY(-50%); }
.ed-burger::after { bottom: 0; }

.ed-burger.is-open::before { top: 50%; transform: rotate(45deg); }
.ed-burger.is-open span { opacity: 0; }
.ed-burger.is-open::after { bottom: 50%; transform: rotate(-45deg); }

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

.ed-hero {
  padding: 5.5rem 0 6rem;
}

.ed-hero__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ed-hero__eyebrow { margin-bottom: 1.5rem; }

.ed-hero__title {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ed-hero__title em {
  font-style: italic;
  color: var(--olive);
}

.ed-hero__text {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--graphite-soft);
}

.ed-hero__actions {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.ed-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 1rem 1.9rem;
  border: 1.5px solid var(--graphite);
  border-radius: 999px;
  transition: all 0.25s ease;
}

.ed-btn:hover {
  background: var(--graphite);
  color: var(--paper);
}

.ed-btn--solid {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--paper);
}

.ed-btn--solid:hover {
  background: var(--olive-hover);
  border-color: var(--olive-hover);
}

.ed-btn--light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--paper);
}

.ed-btn--light:hover {
  background: var(--paper);
  color: var(--graphite);
}

.ed-link-arrow {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--graphite);
  padding-bottom: 0.15rem;
}

.ed-link-arrow::after { content: " →"; }

.ed-hero__facts {
  border-left: 1px solid var(--graphite-faint);
  padding-left: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ed-fact {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}

.ed-fact__num {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--olive);
  line-height: 1;
}

.ed-fact__label {
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--graphite-soft);
  max-width: 10rem;
}

/* ---------------- About / founder ---------------- */

.ed-about {
  padding: 6.5rem 0;
  background: #F7F6F2;
}

.ed-about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: start;
}

.ed-about__image {
  position: relative;
}

.ed-about__image img {
  width: 100%;
  height: 32rem;
  object-fit: cover;
  object-position: top;
}

.ed-about__caption {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--graphite-soft);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--graphite-faint);
  padding-top: 0.75rem;
}

.ed-about__title {
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.ed-about__lede {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--graphite-soft);
  margin-bottom: 2.25rem;
}

.ed-quote {
  position: relative;
  padding-left: 2.25rem;
  border-left: 2px solid var(--olive);
}

.ed-quote__mark {
  position: absolute;
  left: -0.3rem;
  top: -1.6rem;
  font-size: 4.5rem;
  color: var(--olive-light);
  font-family: Georgia, serif;
  line-height: 1;
}

.ed-quote__text {
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--graphite);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.ed-quote__author {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--graphite-soft);
}

/* ---------------- Agenda (index) ---------------- */

.ed-agenda { padding: 6.5rem 0 0; }

.ed-agenda__head { max-width: 38rem; margin-bottom: 3rem; }

.ed-agenda__title {
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  line-height: 1.15;
  margin-top: 0.5rem;
}

.ed-agenda__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem;
}

.ed-agenda__card { display: block; }

.ed-agenda__img {
  position: relative;
  aspect-ratio: 8 / 7;
  background: var(--graphite);
  line-height: 0;
  overflow: hidden;
}

.ed-agenda__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
  box-sizing: border-box;
  transition: transform 0.25s ease;
}

.ed-agenda__card:hover .ed-agenda__img img { transform: scale(1.04); }

.ed-agenda__title-card {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.ed-agenda__text {
  margin-top: 0.5rem;
  color: var(--graphite-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ed-agenda__link {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--olive);
  font-size: 0.85rem;
  font-weight: 700;
}

.ed-agenda__card:hover .ed-agenda__link { color: var(--olive-hover); }

@media (max-width: 760px) {
  .ed-agenda__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------------- History (KRT background story) ---------------- */
.ed-history { padding: 1rem 0 5rem; }
.ed-history__title {
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  max-width: 38rem;
  margin-bottom: 2.5rem;
}
.ed-history__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 1rem;
}
.ed-history__text p {
  margin-bottom: 1.3rem;
  color: var(--graphite-soft);
  line-height: 1.75;
  font-size: 1rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.ed-history__text p:first-of-type::first-letter {
  float: left;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.6rem;
  line-height: 0.78;
  font-weight: 700;
  padding-right: 0.55rem;
  padding-top: 0.35rem;
  color: var(--olive);
}

.ed-history__map svg {
  width: 82%;
  height: auto;
  display: block;
  margin: 0 auto 1.75rem;
}

.ed-quote--compact { padding-left: 1.5rem; }
.ed-quote--compact .ed-quote__mark { font-size: 3.2rem; left: -0.15rem; top: -1.1rem; }
.ed-quote--compact .ed-quote__text { font-size: 0.95rem; line-height: 1.6; }

.ed-shift {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--graphite-faint);
  border-bottom: 1px solid var(--graphite-faint);
  margin: 2.75rem 0;
}
.ed-shift__half { padding: 2rem 2.75rem 2rem 0; }
.ed-shift__half--before { border-right: 1px solid var(--graphite-faint); padding-right: 2.75rem; }
.ed-shift__half--after { padding-left: 2.75rem; }
.ed-shift__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--graphite-faint);
}
.ed-shift__half--after .ed-shift__label { color: var(--olive); }
.ed-shift__title { font-size: 1.1rem; margin-bottom: 0.5rem; line-height: 1.3; }
.ed-shift__text { font-size: 0.9rem; color: var(--graphite-soft); line-height: 1.6; text-align: justify; text-justify: inter-word; hyphens: auto; }

.ed-history__strip { margin-top: 2.75rem; }
.ed-history__strip svg { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .ed-history__grid { grid-template-columns: 1fr; }
  .ed-history__map { max-width: 24rem; margin: 0 auto; }
}
@media (max-width: 760px) {
  .ed-history__strip { display: none; }
}
@media (max-width: 760px) {
  .ed-shift { grid-template-columns: 1fr; }
  .ed-shift__half--before { border-right: none; border-bottom: 1px solid var(--graphite-faint); padding: 0 0 1.75rem; margin-bottom: 1.75rem; }
  .ed-shift__half--after { padding: 0; }
}

/* ---------------- KRT seizure statistics ---------------- */
.ed-krt-stats { padding: 1rem 0 5.5rem; }
.ed-krt-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--graphite-faint);
  border-bottom: 1px solid var(--graphite-faint);
}
.ed-krt-stat { padding: 2.5rem 2.25rem; border-right: 1px solid var(--graphite-faint); }
.ed-krt-stat:last-child { border-right: none; }
.ed-krt-stat__num {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--olive);
  line-height: 1;
  margin-bottom: 0.9rem;
  white-space: nowrap;
}
.ed-krt-stat__text { font-size: 0.9rem; color: var(--graphite-soft); line-height: 1.6; text-align: justify; text-justify: inter-word; hyphens: auto; }
@media (max-width: 760px) {
  .ed-krt-stats__grid { grid-template-columns: 1fr; }
  .ed-krt-stat { border-right: none; border-bottom: 1px solid var(--graphite-faint); padding: 2rem 0; }
  .ed-krt-stat:first-child { padding-top: 0; }
  .ed-krt-stat:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ---------------- Risk group ---------------- */
.ed-risk { padding: 1rem 0 5.5rem; }
.ed-risk__title { font-size: clamp(1.7rem, 2.4vw, 2.1rem); max-width: 38rem; margin-bottom: 2.5rem; }
.ed-risk__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.ed-risk__card {
  border: 1px solid var(--graphite-faint);
  padding: 2rem 2.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.ed-risk__card:hover {
  border-color: var(--olive);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(47,47,47,0.08);
}
.ed-risk__icon { width: 2.5rem; height: 2.5rem; margin-bottom: 1.25rem; display: block; }
.ed-risk__card-title { font-size: 1.05rem; line-height: 1.35; margin-bottom: 0.6rem; }
.ed-risk__card-text { font-size: 0.9rem; color: var(--graphite-soft); line-height: 1.6; text-align: justify; text-justify: inter-word; hyphens: auto; }

.ed-risk__card--accent {
  border-color: var(--olive-light);
  background: rgba(107,122,90,0.045);
}
.ed-risk__card--accent .ed-risk__icon { width: 2.75rem; height: 2.75rem; }
.ed-risk__card--accent:hover { border-color: var(--olive); }

@media (max-width: 760px) {
  .ed-risk__grid { grid-template-columns: 1fr; }
}

/* ---------------- Roadmap (zigzag / "ёлочка" stepper) ---------------- */
.ed-roadmap { padding: 1rem 0 5rem; }
.ed-roadmap__title {
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.ed-snake { position: relative; padding: 2.5rem 0; }
.ed-snake::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--graphite-faint);
  transform: translateX(-50%);
  z-index: 0;
}
.ed-snake__item { position: relative; width: 44%; margin-bottom: 2.5rem; z-index: 1; }
.ed-snake__item:last-child { margin-bottom: 0; }
.ed-snake__item:nth-child(odd) { margin-right: 56%; }
.ed-snake__item:nth-child(even) { margin-left: 56%; }

.ed-snake__item::after {
  content: "";
  position: absolute;
  top: 1.375rem;
  width: 6%;
  height: 2px;
  background: var(--graphite-faint);
}
.ed-snake__item:nth-child(odd)::after { right: -6%; }
.ed-snake__item:nth-child(even)::after { left: -6%; }

.ed-snake__card { background: var(--paper); }
.ed-snake__head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
}
.ed-snake__num {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--olive);
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--paper);
}
.ed-snake__title { font-size: 1.05rem; line-height: 1.35; }
.ed-snake__item:nth-child(odd) .ed-snake__head { flex-direction: row-reverse; text-align: right; }
.ed-snake__item:nth-child(even) .ed-snake__head { flex-direction: row; text-align: left; }
.ed-snake__text {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--graphite-soft);
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.ed-snake__item:nth-child(odd) .ed-snake__text { padding-right: 3.85rem; }
.ed-snake__item:nth-child(even) .ed-snake__text { padding-left: 3.85rem; }

@media (max-width: 760px) {
  .ed-snake::before { left: 1.375rem; }
  .ed-snake__item,
  .ed-snake__item:nth-child(odd),
  .ed-snake__item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 3.85rem;
  }
  .ed-snake__item::after,
  .ed-snake__item:nth-child(odd)::after,
  .ed-snake__item:nth-child(even)::after { display: none; }
  .ed-snake__item:nth-child(odd) .ed-snake__head,
  .ed-snake__item:nth-child(even) .ed-snake__head {
    flex-direction: row;
    text-align: left;
  }
  .ed-snake__num { position: absolute; left: 0; top: 0; }
  .ed-snake__item:nth-child(odd) .ed-snake__text,
  .ed-snake__item:nth-child(even) .ed-snake__text { padding: 0; }
}

/* ---------------- Competencies list ---------------- */
.ed-comp-list {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}
.ed-comp-item {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--graphite-faint);
}
.ed-comp-item:last-child { border-bottom: 1px solid var(--graphite-faint); }
.ed-comp-num {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--olive);
  background: var(--olive);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.ed-comp-text {
  margin: 0;
  padding-top: 0.3rem;
  font-size: 0.96rem;
  color: var(--graphite-soft);
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.ed-comp-text strong { color: var(--olive); font-weight: 700; }

@media (max-width: 640px) {
  .ed-comp-item { gap: 1.1rem; }
  .ed-comp-num { width: 2.3rem; height: 2.3rem; font-size: 0.85rem; }
}

/* ---------------- Roadmap fork (branch decision) ---------------- */
.ed-fork { margin: 2.75rem 0; }
.ed-fork__connector { max-width: 26rem; margin: 0 auto; }
.ed-fork__connector svg { width: 100%; height: auto; display: block; }
.ed-fork__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ed-fork__branch {
  border: 1px solid var(--graphite-faint);
  padding: 1.75rem 2rem;
}
.ed-fork__branch--end {
  border-color: var(--olive-light);
  background: rgba(107,122,90,0.045);
}
.ed-fork__tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.ed-fork__branch h3 { font-size: 1.02rem; margin-bottom: 0.6rem; line-height: 1.32; }
.ed-fork__branch p {
  font-size: 0.88rem;
  color: var(--graphite-soft);
  line-height: 1.6;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.ed-fork__branch p + p { margin-top: 0.65rem; }
.ed-fork__note { font-style: italic; font-size: 0.82rem !important; color: var(--graphite-faint) !important; }
@media (max-width: 760px) {
  .ed-fork__grid { grid-template-columns: 1fr; }
}

/* ---------------- Services (editorial index) ---------------- */

.ed-services { padding: 6.5rem 0 0; }

.ed-services__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.25rem;
  flex-wrap: wrap;
}

.ed-services__title {
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  line-height: 1.15;
  max-width: 26rem;
}

.ed-services__note {
  max-width: 22rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--graphite-soft);
}

.ed-services__list { border-top: 1px solid var(--graphite); }

.ed-service {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2.4fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--graphite-faint);
  transition: background 0.2s ease;
}

.ed-service:hover { background: rgba(107, 122, 90, 0.12); }

.ed-service__num {
  font-size: 1rem;
  color: var(--olive);
  font-weight: 700;
}

.ed-service__title {
  font-size: 1.2rem;
  font-weight: 700;
}

.ed-service__text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--graphite-soft);
}

.ed-service__arrow {
  font-size: 1.3rem;
  color: var(--graphite-faint);
  transition: color 0.2s ease, transform 0.2s ease;
}

.ed-service:hover .ed-service__arrow {
  color: var(--olive);
  transform: translateX(4px);
}

/* ---------------- Outro / CTA band ---------------- */

.ed-outro {
  background: var(--paper);
  color: var(--graphite);
  padding: 2rem 0;
}

.ed-outro__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.ed-outro__title {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  max-width: 28rem;
  line-height: 1.25;
}

.ed-outro__text {
  margin-top: 0.85rem;
  color: var(--graphite-soft);
  max-width: 28rem;
  line-height: 1.6;
  font-size: 0.98rem;
}

.ed-contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--graphite-faint);
  padding: 0.75rem 1.5rem 0.75rem 0.75rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ed-contact-card:hover {
  border-color: var(--olive);
  background: rgba(107,122,90,0.045);
}
.ed-contact-card__photo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ed-contact-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ed-contact-card__name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--graphite);
}
.ed-contact-card__role {
  font-size: 0.82rem;
  color: var(--graphite-soft);
}

/* ---------------- Outro: 2/3 title + 1/3 contact card ---------------- */
.ed-outro__grid--contact {
  flex-wrap: nowrap;
  align-items: center;
  gap: 3rem;
}
.ed-outro__grid--contact .ed-outro__col-title { flex: 0 0 66%; max-width: 66%; }
.ed-outro__grid--contact .ed-outro__title { max-width: none; }
.ed-outro__grid--contact .ed-contact-card--big {
  flex: 0 0 33%;
  max-width: 33%;
  width: 100%;
  box-sizing: border-box;
  gap: 1.25rem;
  padding: 1.5rem;
}
.ed-contact-card--big .ed-contact-card__photo {
  width: 5.5rem;
  height: 5.5rem;
}
.ed-contact-card--big .ed-contact-card__name { font-size: 1.1rem; }
.ed-contact-card--big .ed-contact-card__role { font-size: 0.88rem; margin-bottom: 0.4rem; }
.ed-contact-card--big .ed-contact-card__contact {
  display: block;
  font-size: 0.86rem;
  color: var(--olive);
  text-decoration: none;
  margin-top: 0.15rem;
}
.ed-contact-card--big .ed-contact-card__contact:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .ed-outro__grid--contact { flex-wrap: wrap; }
  .ed-outro__grid--contact .ed-outro__col-title,
  .ed-outro__grid--contact .ed-contact-card--big {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ---------------- Team page ---------------- */

.ed-page-head {
  padding: 5.5rem 0 3rem;
  background: rgba(107,122,90,0.07);
}

.ed-page-head--tight { padding-bottom: 1.5rem; }

.ed-page-head__title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  max-width: 38rem;
  margin-top: 0.5rem;
}

.ed-page-head__lede {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--graphite-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.ed-team-page__list {
  padding: 1rem 0 6.5rem;
}

.ed-team-card {
  display: grid;
  grid-template-columns: 17rem 1fr;
  gap: 3rem;
  align-items: start;
  border-top: 1px solid var(--graphite);
  padding-top: 3rem;
}

.ed-team-card__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.ed-team-card__contact {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--graphite-faint);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.ed-team-card__contact a { color: var(--graphite-soft); text-decoration: none; }
.ed-team-card__contact a:hover { color: var(--olive); }

.ed-team-card__name {
  font-size: 1.5rem;
}

.ed-team-card__role {
  margin-top: 0.4rem;
  color: var(--olive);
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.98rem;
}

.ed-team-card__text {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--graphite-soft);
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.ed-team-card__text p + p { margin-top: 1rem; }
.ed-team-card__text strong { color: var(--graphite); font-weight: 700; }

@media (max-width: 640px) {
  .ed-team-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .ed-team-card__image img { aspect-ratio: 16 / 10; }
}

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

.ed-footer {
  padding: 2.75rem 0;
  background: var(--graphite);
}

.ed-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.ed-footer__policy:hover { color: var(--olive); }

.ed-footer__logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}

/* ---------------- Mobile nav ---------------- */

@media (max-width: 860px) {
  .ed-nav { gap: 1rem; }

  .ed-nav__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.3s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.12);
    z-index: 20;
    overflow-y: auto;
  }

  .ed-nav__list.is-open { right: 0; }

  .ed-burger { display: block; }

  .ed-hero__grid,
  .ed-about__grid {
    grid-template-columns: 1fr;
  }

  .ed-hero__facts {
    border-left: none;
    border-top: 1px solid var(--graphite-faint);
    padding-left: 0;
    padding-top: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .ed-about__image img { height: 22rem; }

  .ed-service {
    grid-template-columns: 2.5rem 1fr auto;
  }

  .ed-service__text { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 1.25rem; }
  .ed-hero { padding: 3.5rem 0 4rem; }
  .ed-about { padding: 4rem 0; }
  .ed-services { padding: 4rem 0; }
  .ed-outro { padding: 1.5rem 0; }
  .ed-service { grid-template-columns: 2rem 1fr auto; gap: 1rem; }
  .ed-service__title { font-size: 1.02rem; }
}

/* =========================================================
   Shared inner-page components
   ========================================================= */

/* ---------------- Services detail list ---------------- */

.ed-svc-list { padding: 0.5rem 0 6rem; }

.ed-svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  border-top: 1px solid var(--graphite-faint);
  padding: 3.5rem 0;
}

.ed-svc:last-child { border-bottom: 1px solid var(--graphite-faint); }

.ed-svc--reverse .ed-svc__img { order: 2; }

.ed-svc__num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--olive);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.ed-svc__title {
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.25;
}

.ed-svc__text {
  margin-top: 1rem;
  color: var(--graphite-soft);
  line-height: 1.75;
  font-size: 0.98rem;
}

.ed-svc__text p + p { margin-top: 0.9rem; }

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

@media (max-width: 760px) {
  .ed-svc { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 0; }
  .ed-svc--reverse .ed-svc__img { order: 0; }
}

/* ---------------- Accordion list (practices) ---------------- */

.ed-acc-list { padding: 0.5rem 0 6rem; }

.ed-acc {
  border-top: 1px solid var(--graphite-faint);
}

.ed-acc:last-child { border-bottom: 1px solid var(--graphite-faint); }

.ed-acc__head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  cursor: pointer;
  list-style: none;
}

.ed-acc__head::-webkit-details-marker { display: none; }

.ed-acc__num {
  flex: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--olive);
  letter-spacing: 0.08em;
}

.ed-acc__title {
  flex: 1;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.3;
}

.ed-acc__chevron {
  flex: none;
  font-size: 1.1rem;
  color: var(--graphite-soft);
  transition: transform 0.2s ease;
}

.ed-acc[open] .ed-acc__chevron { transform: rotate(90deg); }

.ed-acc__body {
  max-width: 44rem;
  margin: 0 0 2rem auto;
  color: var(--graphite-soft);
  line-height: 1.75;
  font-size: 0.98rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.ed-acc__body p + p { margin-top: 0.9rem; }

@media (max-width: 760px) {
  .ed-acc__head { gap: 1rem; padding: 1.5rem 0; }
  .ed-acc__body { margin-left: 0; margin-right: 0; margin-bottom: 1.5rem; }
}

/* ---------------- News / resources list ---------------- */

.ed-news-list { padding: 0.5rem 0 6rem; }

.ed-news-item {
  border-top: 1px solid var(--graphite-faint);
  padding: 2.75rem 0;
}

.ed-news-item:last-child { border-bottom: 1px solid var(--graphite-faint); }

.ed-news-item__title {
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  line-height: 1.35;
  max-width: 44rem;
}

.ed-news-item__text {
  margin-top: 0.9rem;
  color: var(--graphite-soft);
  line-height: 1.75;
  max-width: 44rem;
  font-size: 0.98rem;
}

.ed-news-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--olive);
}

.ed-news-item__link:hover { color: var(--olive-hover); }

/* ---------------- Careers ---------------- */

.ed-careers { padding: 5.5rem 0 6rem; }

.ed-careers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.ed-careers__text { color: var(--graphite-soft); line-height: 1.75; font-size: 0.98rem; }
.ed-careers__text p + p { margin-top: 1rem; }

.ed-careers__imgwrap {
  align-self: stretch;
  position: relative;
  min-height: 0;
  background: var(--graphite);
  line-height: 0;
}

.ed-careers__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2.75rem;
  box-sizing: border-box;
  display: block;
}

@media (max-width: 760px) {
  .ed-careers__grid { grid-template-columns: 1fr; gap: 2rem; }
  .ed-careers__imgwrap { height: 20rem; }
}

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

.ed-contact { padding: 5.5rem 0 4rem; }

.ed-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.ed-contact__item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--graphite-faint);
}

.ed-contact__item:last-child { border-bottom: 1px solid var(--graphite-faint); }

.ed-contact__item--phone { justify-content: space-between; }

.ed-contact__phone-link {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: inherit;
  text-decoration: none;
}

.ed-contact__icon {
  width: 2.3rem;
  height: 2.3rem;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ed-contact__icon img { width: 100%; height: 100%; object-fit: contain; }

.ed-contact__type {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}

.ed-contact__label {
  margin-top: 0.2rem;
  font-size: 1.02rem;
}

.ed-contact__hours {
  margin-top: 1.5rem;
  color: var(--graphite-soft);
  font-size: 0.92rem;
}

.ed-contact__text { color: var(--graphite-soft); line-height: 1.75; font-size: 0.98rem; }
.ed-contact__text p + p { margin-top: 1rem; }

@media (max-width: 760px) {
  .ed-contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.ed-map { line-height: 0; border-top: 1px solid var(--graphite-faint); }

.ed-contact__mapcell {
  align-self: stretch;
  line-height: 0;
}

.ed-contact__mapcell iframe { height: 100%; width: 100%; display: block; }

.ed-contact__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ed-contact__social a {
  width: 2rem;
  height: 2rem;
  display: block;
  flex: none;
}

.ed-contact__social img { width: 100%; height: 100%; display: block; }

@media (max-width: 760px) {
  .ed-contact__mapcell { height: 20rem; }
}

/* ---------------- Phone modal ---------------- */

.ed-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ed-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(47, 47, 47, 0.55);
}

.ed-modal__content {
  position: relative;
  background: var(--paper);
  padding: 2.5rem;
  max-width: 24rem;
  width: calc(100% - 2.5rem);
}

.ed-modal__close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--graphite-soft);
  font-family: Georgia, serif;
}

.ed-modal__title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.ed-modal__option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--graphite-faint);
}

.ed-modal__option:last-child { border-bottom: 1px solid var(--graphite-faint); }

.ed-modal__icon { font-size: 1.3rem; }

.ed-modal__option-title { font-weight: 700; font-size: 0.95rem; }

.ed-modal__option-desc {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--graphite-soft);
}

/* ---------------- Legal / long-form text page ---------------- */

.ed-legal { padding: 0.5rem 0 6rem; }

.ed-legal__updated {
  color: var(--graphite-soft);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.ed-legal__body { max-width: 46rem; }

.ed-legal__body h3 {
  font-size: 1.2rem;
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
}

.ed-legal__body p {
  color: var(--graphite-soft);
  line-height: 1.75;
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.ed-legal__body ul {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--graphite-soft);
  line-height: 1.75;
  font-size: 0.98rem;
}

.ed-legal__body li { margin-bottom: 0.4rem; }

.ed-legal__body strong { color: var(--graphite); }
