/* ============================================================
   Nicoletta Angelini — Section styles
   ============================================================ */

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: 148px; padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.hero__col { min-width: 0; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--sage-deep);
  background: rgba(125,85,103,.12);
  border: 1px solid rgba(125,85,103,.22);
  padding: 7px 16px; border-radius: 100px;
  margin-bottom: 30px;
}
.hero__tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-mid); }
.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.1rem);
  line-height: 1.0;
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--sage-deep); }
.hero__lead { font-size: clamp(1.1rem, 1.7vw, 1.32rem); color: var(--ink-soft); max-width: 46ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__meta {
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 30px 44px;
}
.hero__meta div { line-height: 1.3; }
.hero__meta dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 4px; }
.hero__meta dd { margin: 0; font-family: var(--serif); font-size: 1.18rem; }

/* Hero portrait */
.hero__figure { position: relative; max-width: 520px; margin-left: auto; }
.hero__portrait { aspect-ratio: 4/5; border-radius: var(--radius-lg); }
img.hero__portrait, img.about__photo { width: 100%; height: auto; object-fit: cover; object-position: center top; display: block; box-shadow: var(--shadow-md); border-radius: var(--radius-lg); }
.hero__badge {
  position: absolute; left: -18px; bottom: 34px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px;
  max-width: 260px;
}
.hero__badge .seal {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--sage-deep); color: #f3f2ea;
  display: grid; place-items: center; font-family: var(--serif); font-size: 17px;
}
.hero__badge b { font-size: 14.5px; display: block; }
.hero__badge span { font-size: 12.5px; color: var(--ink-soft); }
.hero__chips { position: absolute; top: 8px; right: -28px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; z-index: 2; }
.hero__chips span {
  background: rgba(251,250,245,.92); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 100px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(3px);
}

/* ---------- PATH (Da dove inizio) ---------- */
.path { background: var(--bg-2); }
.path__head { max-width: 720px; margin-bottom: 46px; }
.path__layout { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }

.path__options { display: flex; flex-direction: column; gap: 10px; }
.path-opt {
  text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px;
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  transition: border-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease), background .25s;
}
.path-opt:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); border-color: rgba(125,85,103,.4); }
.path-opt__ico {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--bg-3); display: grid; place-items: center; color: var(--sage-deep);
  transition: background .25s, color .25s;
}
.path-opt__ico svg { width: 21px; height: 21px; }
.path-opt b { font-weight: 600; display: block; line-height: 1.22; }
.path-opt small { color: var(--ink-faint); font-size: 13px; line-height: 1.3; }
.path-opt > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.path-opt.is-active { background: var(--sage-deep); border-color: var(--sage-deep); color: #f4f2e8; box-shadow: var(--shadow-md); }
.path-opt.is-active small { color: rgba(244,242,232,.72); }
.path-opt.is-active .path-opt__ico { background: rgba(255,255,255,.16); color: #f4f2e8; }

.path__panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-md); min-height: 380px;
  position: relative; overflow: hidden;
  align-self: center;
}
.path__panel::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(198,178,148,.28), transparent 70%);
}
.path-card { position: relative; animation: fadeUp .55s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.path-card__no { font-family: var(--serif); font-size: 13px; color: var(--sage-mid); letter-spacing: .1em; }
.path-card h3 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 8px 0 16px; max-width: 20ch; }
.path-card__body { color: var(--ink-soft); font-size: 1.08rem; max-width: 58ch; margin-bottom: 26px; }
.path-card__rec {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 28px; max-width: 60ch;
}
.path-card__rec .tagico { width: 38px; height: 38px; border-radius: 10px; background: var(--sage-deep); color: #f3f2ea; display: grid; place-items: center; flex: none; }
.path-card__rec b { display: block; font-size: 14px; }
.path-card__rec span { font-size: 14.5px; color: var(--ink-soft); }
.path-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- ABOUT ---------- */
.about__top { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(38px, 5vw, 72px); align-items: start; }
.about__media { max-width: 380px; position: sticky; top: 100px; align-self: start; }
.about__photo { aspect-ratio: 3/4; border-radius: var(--radius-lg); }

/* Banner orizzontale full-width sotto il blocco media+testo (sibling, non in grid) */
.about__banner { margin-top: clamp(48px, 7vw, 84px); }
.about__banner img {
  width: 100%; height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.about__banner figcaption {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 16px;
  text-align: right;
  font-weight: 600;
}
.about__body h2 { margin-bottom: 28px; }
.about__body p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 1.15em; }
.about__body strong { color: var(--ink); font-weight: 600; }
.facts { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--card); padding: 24px 24px; }
.fact h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-mid); margin-bottom: 10px; }
.fact p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.fact p b { color: var(--ink); font-weight: 600; }

/* ---------- APPROACH ---------- */
.approach { background: var(--sage-deep); color: #eef0e6; }
.approach .eyebrow { color: var(--tan-soft); }
.approach .eyebrow::before { background: var(--tan); }
.approach .section-title { color: #f4f5ee; }
.approach__intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.approach__intro p { color: rgba(238,240,230,.78); max-width: 40ch; font-size: 1.12rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.principle {
  border: 1px solid rgba(238,240,230,.18);
  border-radius: var(--radius); padding: 30px 28px 34px;
  background: rgba(255,255,255,.03);
  transition: background .3s, transform .4s var(--ease), border-color .3s;
}
.principle:hover { background: rgba(255,255,255,.06); transform: translateY(-4px); border-color: rgba(238,240,230,.3); }
.principle__no { font-family: var(--serif); font-size: 2.6rem; color: var(--tan); line-height: 1; }
.principle h3 { color: #f4f5ee; font-size: 1.5rem; margin: 22px 0 12px; }
.principle p { color: rgba(238,240,230,.74); font-size: 1.02rem; margin: 0; }
.approach__quote {
  margin-top: 58px; padding-top: 48px; border-top: 1px solid rgba(238,240,230,.18);
  display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: start;
}
.approach__quote blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.32; color: #f4f5ee; max-width: 24ch;
}
.approach__quote cite { display: block; margin-top: 20px; font-style: normal; font-size: 14px; letter-spacing: .04em; color: var(--tan-soft); }
.quote-mark { font-family: var(--serif); font-size: 6rem; line-height: .6; color: var(--tan); }

/* ---------- TSS feature ---------- */
.tss__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.tss__steps { display: flex; flex-direction: column; gap: 4px; margin-top: 34px; }
.tss-step { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.tss-step:last-child { border-bottom: 1px solid var(--line); }
.tss-step__no { font-family: var(--serif); font-size: 1.3rem; color: var(--sage-mid); width: 30px; }
.tss-step h4 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; margin-bottom: 5px; }
.tss-step p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
.tss__aside {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-md); position: relative;
}
.tss__aside h3 { font-size: 1.7rem; margin-bottom: 8px; }
.tss__list { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-direction: column; gap: 14px; }
.tss__list li { display: flex; gap: 13px; align-items: flex-start; font-size: 1.02rem; color: var(--ink-soft); }
.tss__list .check { width: 24px; height: 24px; border-radius: 50%; background: rgba(125,85,103,.16); color: var(--sage-deep); display: grid; place-items: center; flex: none; margin-top: 1px; }
.tss__list .check svg { width: 13px; height: 13px; }
.tss__price { display: flex; align-items: baseline; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.tss__price b { font-family: var(--serif); font-size: 2rem; }
.tss__price span { color: var(--ink-faint); font-size: 14px; }

/* ---------- PROJECTS ---------- */
.projects { background: var(--bg-2); }
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.proj-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 36px 34px; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative; overflow: hidden; min-height: 300px;
}
.proj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.proj-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.proj-card__mark { width: 54px; height: 54px; border-radius: 14px; background: var(--bg-3); display: grid; place-items: center; color: var(--sage-deep); overflow: hidden; }
.proj-card__mark--circle { border-radius: 50%; }
.proj-card__mark svg { width: 28px; height: 28px; }
.proj-card__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-card__status { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 13px; border-radius: 100px; }
.proj-card__status.soon { background: rgba(198,178,148,.25); color: #836b41; }
.proj-card__status.live { background: rgba(125,85,103,.18); color: var(--sage-deep); }
.proj-card h3 { font-size: 1.9rem; margin-bottom: 12px; }
.proj-card p { color: var(--ink-soft); font-size: 1.04rem; flex: 1; }
.proj-card__link { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; font-weight: 600; color: var(--sage-deep); font-size: 15px; }
.proj-card__link .arrow { transition: transform .3s var(--ease); }
.proj-card:hover .proj-card__link .arrow { transform: translateX(4px); }

/* ---------- PUBBLICAZIONI ---------- */
.pubs { background: var(--bg); }
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.book {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.book:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.book.is-open { border-color: rgba(125,85,103,.32); box-shadow: var(--shadow-lg); }

.book__toggle {
  background: none;
  border: 0;
  width: 100%;
  padding: 22px 22px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: inherit;
  color: inherit;
  text-align: center;
}
.book__toggle:focus-visible {
  outline: 2px solid var(--sage-mid);
  outline-offset: -4px;
  border-radius: var(--radius-lg);
}
.book__cover-wrap {
  display: block;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 5/7;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.book__cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .4s var(--ease);
}
.book__toggle:hover .book__cover { transform: scale(1.025); }

.book__chevron {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2);
  color: var(--sage-deep);
  transition: transform .35s var(--ease), background .25s, color .25s;
}
.book__chevron svg { width: 14px; height: 14px; }
.book__toggle:hover .book__chevron { background: var(--sage-deep); color: #f3f2ea; }
.book.is-open .book__chevron {
  transform: rotate(180deg);
  background: var(--sage-deep); color: #f3f2ea;
}

.book__details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.book.is-open .book__details { grid-template-rows: 1fr; }
.book__details-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 22px;
}
.book.is-open .book__details-inner { padding: 4px 22px 22px; }

.book__meta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-mid);
  margin: 0 0 8px;
}
.book__title {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.22;
  margin: 0 0 6px;
}
.book__sub {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0 0 10px;
}
.book__authors {
  font-size: 12.5px;
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0 0 12px;
}
.book__desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 16px;
}
.book__ctas { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }
.book__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--sage-deep);
}
.book__cta .arrow { transition: transform .3s var(--ease); }
.book__cta:hover .arrow { transform: translateX(4px); }
.book__cta--secondary {
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
}
.book__cta--secondary:hover { color: var(--sage-deep); }

/* Variante: contributo in volume collettivo */
.pubs__contrib-head { margin: 56px 0 18px; }
.pubs__contrib-head .eyebrow { color: var(--ink-faint); }
.pubs__contrib-head .eyebrow::before { background: var(--tan); }
.contrib-grid { display: grid; grid-template-columns: minmax(0, 360px); }
.book--contrib { background: var(--bg-2); }
.book--contrib .book__cover-wrap { max-width: 160px; }
.book--contrib .book__title { font-size: 1.06rem; }
.book__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--tan);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  z-index: 2;
  pointer-events: none;
}

/* ---------- CONTACT ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 5vw, 76px); align-items: start; }
.contact__info h2 { margin-bottom: 16px; }
.contact__rows { margin-top: 38px; display: flex; flex-direction: column; }
.crow { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); align-items: center; }
.crow:last-of-type { border-bottom: 1px solid var(--line); }
.crow__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; color: var(--sage-deep); flex: none; }
.crow__ico svg { width: 22px; height: 22px; }
.crow dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.crow dd { margin: 2px 0 0; font-size: 1.12rem; }
.crow dd a { color: var(--sage-deep); font-weight: 600; }
.crow dd a.crow__sub {
  display: inline-block;
  margin-left: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .2s;
}
.crow dd a.crow__sub:hover { color: var(--sage-deep); }
@media (max-width: 560px) {
  .crow dd a.crow__sub { display: block; margin: 4px 0 0; }
}

.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card > p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage-mid); box-shadow: 0 0 0 3px rgba(125,85,103,.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.form-note { font-size: 12.5px; color: var(--ink-faint); text-align: center; }
.form-ok { display: none; text-align: center; padding: 16px; border-radius: 12px; background: rgba(125,85,103,.12); color: var(--sage-deep); font-weight: 600; font-size: 15px; }
.form-ok.show { display: block; animation: fadeUp .5s var(--ease) both; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: #d9dace; padding: 64px 0 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand { max-width: 34ch; }
.footer__brand .brand__name { color: #f3f2ea; }
.footer__brand p { color: rgba(217,218,206,.6); font-size: 14px; margin-top: 16px; }
.footer__legal { font-size: 12.5px; color: rgba(217,218,206,.45) !important; line-height: 1.55; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col h5 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(217,218,206,.5); margin: 0 0 16px; font-weight: 700; }
.footer__col a, .footer__col p { display: block; color: #d9dace; font-size: 15px; margin-bottom: 11px; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(217,218,206,.5); }
.footer__bottom a { color: rgba(217,218,206,.7); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: #fff; }
.footer__disclaimer { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(217,218,206,.12); font-size: 11.5px; line-height: 1.55; color: rgba(217,218,206,.42); max-width: 760px; }
.footer__disclaimer strong { color: rgba(217,218,206,.62); }

/* ---------- Floating book button ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 45;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sage-deep); color: #f3f2ea;
  padding: 14px 22px; border-radius: 100px; font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-lg); cursor: pointer;
  opacity: 0; transform: translateY(20px) scale(.95); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .25s;
}
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: #4a2e3a; }
.fab svg { width: 18px; height: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { max-width: 440px; }
  .path__layout { grid-template-columns: 1fr; }
  .path__options { flex-direction: row; flex-wrap: wrap; }
  .path-opt { flex: 1 1 calc(50% - 10px); }
  .about__top { grid-template-columns: 1fr; }
  .about__media { position: static; max-width: 100%; }
  .about__photo { flex: 1; max-width: 360px; }
  .hero__figure { max-width: 380px; margin: 0 auto; }
  .principles { grid-template-columns: 1fr; }
  .tss__grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: flex; }
  .nav.menu-open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 18px 28px 26px; box-shadow: var(--shadow-md);
  }
  .nav.menu-open .nav__links a { font-size: 18px; padding: 10px 0; width: 100%; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.6rem); word-break: normal; overflow-wrap: break-word; }
  .hero__lead { max-width: 100%; overflow-wrap: break-word; font-size: clamp(0.98rem, 4.2vw, 1.18rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; text-align: center; justify-content: center; }
  .hero__meta { gap: 22px 30px; }
  .hero__badge {
    position: static;
    left: auto; bottom: auto;
    margin: 14px auto 0;
    max-width: 320px;
  }
  .path-opt { flex: 1 1 100%; }
  .about__media { max-width: 320px; margin: 0 auto; }
  .about__banner img { aspect-ratio: 4/3; }
  .hero__figure { max-width: 340px; }
  .hero__chips {
    position: static;
    right: auto; top: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }
  .facts { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .approach__quote { grid-template-columns: 1fr; }
  .quote-mark { font-size: 4rem; }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .book__toggle { padding: 18px 18px 14px; gap: 12px; }
  .book__cover-wrap { max-width: 170px; }
  .book__details-inner { padding: 0 18px; }
  .book.is-open .book__details-inner { padding: 4px 18px 18px; }
  .fab { right: 14px; bottom: 14px; }
}

@media (max-width: 520px) {
  .books-grid { grid-template-columns: 1fr; }
  .book__cover-wrap { max-width: 200px; }
  .book--contrib .book__cover-wrap { max-width: 150px; }
}
