/* ==========================================================================
   F2S Educare — solid-colour theme
   Palette is intentionally flat: no gradients, no glass, no blur.
   ========================================================================== */

:root {
  --teal: #0f4c5c;
  --teal-700: #146074;
  --teal-dark: #06323e;
  --teal-soft: #e7eff1;
  --blue: #1b4f91;
  --gold: #d89b2a;
  --gold-dark: #b07713;
  --cream: #fdf6ea;

  --ink: #16262c;
  --body: #4e6068;
  --muted: #7c8b91;
  --line: #e2e8ea;
  --bg: #ffffff;
  --tint: #f4f7f8;

  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --text: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(15, 76, 92, 0.08);
  --shadow-lg: 0 18px 50px rgba(15, 76, 92, 0.14);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 .6em;
  line-height: 1.18;
  font-weight: 800;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--cream { background: var(--cream); }
.section--teal { background: var(--teal); color: #cfe0e5; }
.section--teal h2, .section--teal h3 { color: #fff; }

/* --- section heading, the wide-tracked caps of the original ---------------- */
.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 14px;
}
.section-title {
  font-size: clamp(28px, 4.4vw, 46px);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 14px;
}
.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  color: var(--muted);
}
.rule { width: 56px; height: 4px; background: var(--gold); border: 0; margin: 0 auto 26px; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #22303a; border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn--teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn--teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn--ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--light { background: #fff; color: var(--teal); border-color: #fff; }
.btn--light:hover { background: var(--gold); border-color: var(--gold); color: #22303a; }

/* --- header --------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-stuck { box-shadow: 0 6px 22px rgba(15, 76, 92, .08); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  line-height: 1;
}
.brand__tag {
  display: block;
  font-family: var(--text);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right .2s ease;
}
.nav a:hover::after, .nav a.is-active::after { right: 0; }

/* the CTA is a button, not a nav link — no underline, tighter than a section button */
.nav .btn {
  padding: 11px 20px;
  font-size: 11.5px;
  letter-spacing: .1em;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(216, 155, 42, .28);
}
.nav .btn::after { display: none; }
.nav .btn:hover { transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--teal);
  margin: 0 auto;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* --- hero ----------------------------------------------------------------- */
.hero { padding: 74px 0 84px; background: #fff; }
.hero__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.hero__art {
  background: var(--teal-soft);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.hero__art img {
  margin: 0 auto;
  max-height: 380px;
  width: auto;
  position: relative;
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__art img { animation: none; }
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  color: var(--teal);
  letter-spacing: -.01em;
}
.hero__lead {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gold-dark);
  margin: 0 0 26px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 9px 16px;
  border-radius: 999px;
}

/* --- marquee strip -------------------------------------------------------- */
.strip { background: var(--teal-dark); color: #bcd2d8; padding: 14px 0; overflow: hidden; }
.strip__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  animation: slide 26s linear infinite;
}
.strip__track span { display: inline-flex; align-items: center; gap: 48px; }
.strip__track span::after { content: "\25C6"; color: var(--gold); font-size: 9px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } }

/* --- about ---------------------------------------------------------------- */
.about { background: var(--teal); padding: 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.about__photo { min-height: 460px; background-size: cover; background-position: center; }
.about__panel { padding: 76px 8% 76px 6%; display: flex; align-items: center; }
.about__card {
  background: #fff;
  border-left: 5px solid var(--gold);
  padding: 40px 38px;
  box-shadow: var(--shadow-lg);
}
.about__card h2 {
  font-size: 24px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 12px;
}
.about__card h2::after { content: "\2192"; color: var(--gold); font-size: 20px; }
.about__card p { margin: 0 0 18px; font-size: 16px; }
.about__card p:last-of-type { margin-bottom: 26px; }

/* --- services ------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  padding: 34px 32px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-top-color: var(--gold); }
.card__num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 10px;
}
.card h3 { font-size: 19px; letter-spacing: .04em; }
.card p { font-size: 15.5px; margin: 0 0 18px; }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  margin-bottom: 9px;
  color: var(--ink);
}
.ticks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

/* --- quote ---------------------------------------------------------------- */
.quote { text-align: center; }
.quote blockquote {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 auto 22px;
  max-width: 860px;
}
.quote cite {
  font-style: normal;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
}
.quote cite::before { content: "\2014 "; }

/* --- partners ------------------------------------------------------------- */
.partners__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: center;
}
.partners__grid img {
  width: 100%;
  max-width: 130px;
  margin: 0 auto;
  filter: grayscale(1);
  opacity: .65;
  transition: filter .2s ease, opacity .2s ease;
}
.partners__grid img:hover { filter: none; opacity: 1; }

/* --- gallery -------------------------------------------------------------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery__grid--3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
.gallery__item {
  overflow: hidden;
  position: relative;
  background: var(--teal-soft);
  cursor: zoom-in;
  border: 0;
  padding: 0;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--teal);
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery__item:hover::after { opacity: .22; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 50, 62, .94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 100%; object-fit: contain; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
  padding: 12px;
}
.lightbox__close { top: 12px; right: 18px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* --- team ----------------------------------------------------------------- */
.team__card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.team__card img { width: 100%; height: auto; aspect-ratio: 900 / 760; object-fit: cover; object-position: center top; display: block; }
.team__body { padding: 34px 38px 40px; text-align: center; }
.team__role {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 6px;
}
.team__body h3 { font-size: 22px; letter-spacing: .1em; text-transform: uppercase; }
.team__body p { font-size: 16px; margin: 0; }

/* --- certifications ------------------------------------------------------- */
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.badge {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 28px;
  text-align: left;
}
.badge__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-size: 20px;
  margin-bottom: 18px;
}
.badge h3 { font-size: 17px; letter-spacing: .04em; }
.badge p { font-size: 15.5px; margin: 0; }

/* --- blog ----------------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post__img { display: block; height: 190px; overflow: hidden; background: var(--teal-soft); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post:hover .post__img img { transform: scale(1.05); }
.post__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.post--feature { grid-column: span 3; flex-direction: row; }
.post--feature .post__img { flex: 0 0 46%; height: auto; min-height: 320px; }
.post--feature .post__body { justify-content: center; padding: 40px 46px; }
.post--feature h3 { font-size: 26px; }
.post--feature p { font-size: 17px; flex: none; }

/* --- article ------------------------------------------------------------- */
.article { max-width: 780px; margin: 0 auto; }
.article__hero { margin: 0 0 34px; }
.article__hero img { width: 100%; height: 420px; object-fit: cover; }
.article h2 { font-size: 24px; margin-top: 42px; letter-spacing: .02em; }
.article h3 { font-size: 19px; margin-top: 30px; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 22px; padding-left: 22px; }
.article li { margin-bottom: 10px; }
.article blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--gold);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
}
.article__back {
  display: inline-block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 26px;
}
.article__cta {
  margin-top: 46px;
  padding: 32px;
  background: var(--tint);
  border-left: 5px solid var(--teal);
  text-align: center;
}
.article__cta h3 { margin-bottom: 10px; }
.post__meta {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
}
.post h3 { font-size: 19px; line-height: 1.35; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--teal); }
.post p { font-size: 15.5px; flex: 1; }
.post a.more {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.post a.more:hover { color: var(--teal); }

/* --- faq ------------------------------------------------------------------ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  margin-bottom: 12px;
}
.faq details[open] { border-left-color: var(--gold); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 54px 20px 24px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--gold-dark);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.faq p { margin: 0; padding: 0 24px 22px; font-size: 16px; }

/* --- contact -------------------------------------------------------------- */
.contact { background: var(--teal); color: #cfe0e5; padding: 90px 0; }
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.contact h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); letter-spacing: .12em; text-transform: uppercase; }
.contact__list { list-style: none; margin: 26px 0 0; padding: 0; }
.contact__list li { margin-bottom: 16px; padding-left: 30px; position: relative; color: #dbe8eb; }
.contact__list li span { position: absolute; left: 0; color: var(--gold); }
.contact__list a { color: #fff; }
.contact__list a:hover { color: var(--gold); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #bed3d8;
}
.field input,
.field textarea {
  font-family: var(--text);
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid #3a7183;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
}
.field input:focus,
.field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.field textarea { min-height: 130px; resize: vertical; }
.field .err { color: #ffd08a; font-size: 13px; min-height: 0; }
.form__note { grid-column: 1 / -1; font-size: 13px; color: #a9c4cb; margin: 0; }

/* --- floating whatsapp ---------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 70;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* --- footer --------------------------------------------------------------- */
.footer { background: var(--teal-dark); color: #9fbcc4; padding: 56px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer h4 {
  color: #fff;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer p { font-size: 15px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: #c6dade; font-size: 15px; }
.footer a:hover { color: var(--gold); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid #2b6070;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); }
.socials svg { width: 17px; height: 17px; fill: #cfe3e7; }
.socials a:hover svg { fill: #22303a; }
.footer__base {
  border-top: 1px solid #12475700;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
}

/* --- page hero (inner pages) --------------------------------------------- */
.page-hero { background: var(--teal); color: #cfe0e5; padding: 64px 0; text-align: center; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.page-hero p { max-width: 640px; margin: 0 auto; }
.crumbs { font-size: 13px; color: #9fc0c8; margin-bottom: 16px; }
.crumbs a { color: #cfe0e5; }

/* article headers read as sentences, not as wide-tracked section labels */
.page-hero--post { text-align: left; padding: 58px 0; }
.page-hero--post h1 {
  text-transform: none;
  letter-spacing: -.005em;
  font-size: clamp(26px, 3.4vw, 40px);
  max-width: 880px;
  margin-bottom: 14px;
}
.page-hero--post p { margin: 0; }
.page-hero--post .post__meta { color: var(--gold); margin: 0; }

/* --- reveal on scroll ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .section { padding: 72px 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__art { order: -1; }
  .hero__art img { max-height: 260px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { min-height: 300px; }
  .about__panel { padding: 46px 24px; }
  .cards { grid-template-columns: 1fr; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .post--feature { grid-column: span 2; flex-direction: column; }
  .post--feature .post__img { flex: none; height: 220px; min-height: 0; }
  .post--feature .post__body { padding: 26px 26px 30px; }
  .article__hero img { height: 260px; }
  .badges { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 34px; }
  .partners__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 78px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .posts { grid-template-columns: 1fr; }
  .post--feature { grid-column: auto; }
  .form { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--wide, .gallery__item--tall { grid-column: auto; grid-row: auto; }
  .footer__base { flex-direction: column; }
  .about__card { padding: 30px 24px; }
}
