/* ============================================================
   INNER PAGES + PRIMARY-NAV DROPDOWN
   Loaded site-wide (dropdown lives in the shared header); page-specific
   blocks are scoped by body/page classes so they never touch the homepage.
   The homepage design (assets/css/styles.css) is the faithful static copy
   and is NOT modified here — this file only ADDS.
   ============================================================ */

/* ---------------------------------------------------------
   Primary-nav dropdown — "שירותי החברה"
   Desktop (>860px): hover / focus-within reveals a white panel.
   Mobile (<=860px): panel is inlined into the slide-in menu.
   --------------------------------------------------------- */
.nav__list .menu-item-has-children { position: relative; }
.nav__chev { margin-inline-start: 6px; transition: transform .25s var(--ease); vertical-align: middle; }

.nav__list .sub-menu {
  position: absolute; top: 100%; inset-inline-end: 0; margin: 0; padding: 10px;
  min-width: 260px; list-style: none; z-index: 70;
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
/* invisible bridge so the pointer can cross the gap without closing the panel */
.nav__list .menu-item-has-children::after {
  content: ""; position: absolute; top: 100%; inset-inline: 0; height: 16px;
}
.nav__list .menu-item-has-children:hover > .sub-menu,
.nav__list .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__list .menu-item-has-children:hover > .nav__link .nav__chev,
.nav__list .menu-item-has-children:focus-within > .nav__link .nav__chev {
  transform: rotate(180deg);
}
.sub-menu .nav__link {
  display: block; white-space: nowrap; text-align: right; line-height: 1.35;
  font-size: 17px; padding: 11px 16px; border-radius: 9px;
}
.sub-menu .nav__link::before { display: none !important; } /* no gold divider inside the panel */
.sub-menu .nav__link:hover,
.sub-menu .current-menu-item > .nav__link {
  background: var(--gray-bg); color: var(--gold-deep);
}

/* current page highlight (WP marks the active menu item) */
.current-menu-item > .nav__link,
.current_page_item > .nav__link { font-weight: 700; }

@media (max-width: 860px) {
  .nav__list .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-radius: 0; padding: 0; background: var(--gray-bg);
    min-width: 0;
  }
  .nav__list .menu-item-has-children::after { display: none; }
  .sub-menu .nav__link {
    padding: 14px 44px; font-size: 16px; border-bottom: 1px solid var(--gray-line);
  }
}

/* ---------------------------------------------------------
   Floating quick-contact — fixed variant for inner pages
   (the homepage keeps its hero-anchored absolute one, untouched)
   --------------------------------------------------------- */
.quick-contact--fixed {
  position: fixed; top: 46%; right: 0; left: auto; inset-inline-end: 0;
  transform: none;
}
.quick-contact--fixed:hover { transform: translateX(-2px); }

/* Phones: the inner-page floating tab otherwise stretches full-width (it sets
   both right:0 AND inset-inline-end:0 → left:0 in RTL) and covers content while
   sticking to the viewport. On mobile drop it into the normal page flow as a
   compact centered pill the user simply scrolls past. Desktop/tablet unchanged. */
@media (max-width: 767px) {
  .quick-contact--fixed {
    position: static; inset: auto; right: auto; left: auto; top: auto; transform: none;
    width: fit-content; height: auto; margin: 6px auto 30px;
    flex-direction: row; align-items: center; gap: 8px;
    padding: 13px 24px; border-radius: 100px;
  }
  .quick-contact--fixed .quick-contact__icon { width: 22px; }
  .quick-contact--fixed .quick-contact__text { display: inline; width: auto; font-size: 15px; }
  .quick-contact--fixed:hover { transform: translateY(-2px); }
}

/* ---------------------------------------------------------
   Inner-page hero band (About + Service pages)
   Figma: 350px band, solar image + 50% navy overlay, white 55px title.
   --------------------------------------------------------- */
.page-hero {
  position: relative; min-height: 350px; display: grid; place-items: center;
  text-align: center; padding: 40px 0;
  background:
    linear-gradient(rgba(2, 39, 84, .5), rgba(2, 39, 84, .5)),
    url(../img/hero-bg.webp) center / cover no-repeat;
}
.page-hero__title {
  font-size: 55px; font-weight: 500; color: #fff;
  letter-spacing: -.02em; line-height: 1.15; margin: 0;
}
.page-hero__title .title-underline { display: none; } /* Figma hero title has no underline */
@media (max-width: 860px) { .page-hero { min-height: 240px; } .page-hero__title { font-size: 36px; } }
@media (max-width: 460px) { .page-hero { min-height: 180px; } .page-hero__title { font-size: 28px; } }

/* ============================================================
   ABOUT PAGE  (Figma 103:491)
   ============================================================ */
.aboutpage__lead {
  max-width: 846px; margin: 0 auto; font-size: 20px; line-height: 1.4;
  color: var(--navy); text-align: center;
}
.aboutpage__lead p { margin: 0; }
.aboutpage__lead p + p { margin-top: 20px; }

/* intro (gray) — the capsule image straddles into the vision section below */
.aboutpage__intro { background: var(--gray-bg); padding: 60px 0 0; text-align: center; }
.aboutpage__icon { width: 59px; height: 59px; margin: 0 auto 14px; display: block; }
.aboutpage__intro .section__title { font-size: 38px; }
/* Composited transparent PNG (stadium + head breaking above the top). The shape,
   the head-overflow and the soft edge are baked into the artwork — so NO
   border-radius, mask or box-shadow here (any of those would clip the head or
   frame the transparent bounding box). It just straddles the gray/white seam. */
.aboutpage__capsule {
  display: block; width: 700px; max-width: 92%; height: auto;
  margin: 6px auto -120px; position: relative; z-index: 2;
}

/* vision (white) */
.aboutpage__vision { background: var(--white); padding: 224px 0 66px; text-align: center; }
.aboutpage__vision .section__title { font-size: 38px; }
.aboutpage__highlight {
  max-width: 820px; margin: 30px auto 0; font-size: 24px; line-height: 1.4;
  font-weight: 400; color: var(--navy); text-align: center;
}
.aboutpage__highlight .gold { color: var(--gold); font-weight: 700; }

@media (max-width: 860px) {
  .aboutpage__lead { font-size: 18px; }
  .aboutpage__intro .section__title, .aboutpage__vision .section__title { font-size: 30px; }
  .aboutpage__capsule { margin-bottom: -70px; }
  .aboutpage__vision { padding-top: 150px; }
  .aboutpage__highlight { font-size: 20px; }
}

/* ============================================================
   SERVICE PAGE  (Figma 128:55 template — shared by the 4 services)
   ============================================================ */

/* intro lead band (gray, under the dark hero) */
.svc-lead { background: var(--gray-bg); padding: 46px 0; }
.svc-lead p {
  max-width: 846px; margin: 0 auto; text-align: center;
  font-size: 20px; line-height: 1.4; color: var(--navy);
}

/* "מהי מערכת סולארית?" — illustration (left) + text (right) */
.svc-what { background: var(--white); padding: 62px 0; }
.svc-what__grid { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.svc-what__illo { display: block; width: 597px; max-width: 100%; height: auto; }
.svc-what__text .section__title { font-size: 38px; margin-bottom: 24px; }
.svc-what__title-right { text-align: right; }
.svc-what__title-right .title-underline { margin: 14px 0 0; }
.svc-what__text p { font-size: 20px; line-height: 1.4; color: var(--navy); text-align: right; margin: 0; }
@media (min-width: 900px) {
  .svc-what__grid { grid-template-columns: minmax(0, 540px) minmax(0, 597px); gap: 78px; justify-content: center; }
  .svc-what__text { grid-column: 1; }   /* RTL: right */
  .svc-what__illo { grid-column: 2; justify-self: center; }   /* RTL: left */
}

/* "היתרונות של המערכת" — 4 navy capsule cards */
.svc-benefits { background: var(--white); padding: 16px 0 68px; text-align: center; }
.svc-benefits .section__title { font-size: 38px; }
.svc-benefits__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px;
  max-width: 1194px; margin: 42px auto 0;
}
@media (min-width: 1000px) { .svc-benefits__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc-card {
  background: var(--navy); border-radius: 142px; padding: 52px 26px 46px;
  min-height: 510px; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.svc-card__icon { height: 90px; display: grid; place-items: center; margin-bottom: 4px; }
.svc-card__icon img { max-height: 88px; max-width: 90px; width: auto; height: auto; display: block; }
.svc-card__title { font-size: 24px; font-weight: 700; color: #fff; margin: 0; }
.svc-card__text { font-size: 18px; line-height: 1.4; color: #fff; }
.svc-card__text p { margin: 0; }
.svc-card__text p + p { margin-top: 14px; }

/* two blocks: תחזוקה ואחריות (navy, left) + למי זה מתאים (gold, right) */
.svc-blocks { background: var(--white); padding: 6px 0 78px; }
/* minmax(0,1fr) — not plain 1fr — so the block's fixed-width underline can't
   blow the single-column track wider than the viewport on mobile (RTL overflow). */
.svc-blocks__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 1194px; margin: 0 auto; }
@media (min-width: 900px) {
  /* DOM order is gold-then-navy → in RTL the gold lands on the right, navy on the left */
  .svc-blocks__grid { grid-template-columns: repeat(2, minmax(0, 566px)); gap: 55px; justify-content: center; }
}
.svc-block { border-radius: 44px; padding: 44px 46px 48px; }
.svc-block--navy { background: var(--navy); }
.svc-block--gold { background: var(--gold); }
/* photo variant (e.g. agro) — fills the row height opposite the gold block */
.svc-block--image { padding: 0; overflow: hidden; }
.svc-block--image img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.svc-block__title { font-size: 38px; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.svc-block--navy .svc-block__title { color: #fff; text-align: right; }
.svc-block--gold .svc-block__title { color: var(--navy); text-align: center; }
.svc-block__underline { display: block; height: 4px; border-radius: 100px; margin-top: 14px; }
.svc-block--navy .svc-block__underline { width: 439px; max-width: 100%; background: var(--gold); }
.svc-block--gold .svc-block__underline { width: 255px; max-width: 100%; background: #fff; margin-inline: auto; }
.svc-block__list { list-style: none; margin: 26px 0 0; padding: 0; text-align: right; }
.svc-block__list li { position: relative; padding-inline-start: 26px; font-size: 20px; line-height: 1.85; }
.svc-block--navy .svc-block__list li { color: #fff; }
.svc-block--gold .svc-block__list li { color: var(--navy); }
.svc-block__list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .68em; width: 9px; height: 9px; border-radius: 50%;
}
.svc-block--navy .svc-block__list li::before { background: var(--gold); }
.svc-block--gold .svc-block__list li::before { background: var(--navy); }

@media (max-width: 860px) {
  .svc-lead p, .svc-what__text p { font-size: 18px; }
  .svc-what__text .section__title, .svc-benefits .section__title { font-size: 30px; }
  .svc-block__title { font-size: 28px; }
  .svc-block__list li { font-size: 18px; }
  .svc-card { min-height: 0; border-radius: 40px; padding: 40px 28px; }
}

/* ============================================================
   CONTACT PAGE  (Figma 160:1876)  — two columns:
   details (right) + form card (left) over the brand gradient.
   ============================================================ */
.contactpage { position: relative; background: transparent; padding: 66px 0 96px; }
/* same white->gold gradient that runs behind the footer on the homepage contact */
.contactpage::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: calc(100% + var(--footer-h));
  background: linear-gradient(180deg, #ffffff 24%, #ffe9a8 100%);
  z-index: -1; pointer-events: none;
}
.contactpage__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 900px) {
  .contactpage__grid { grid-template-columns: minmax(0, 460px) minmax(0, 699px); gap: 48px; justify-content: center; }
  .contactpage__details   { grid-column: 1; } /* RTL: right */
  .contactpage__form-card { grid-column: 2; } /* RTL: left  */
}

/* ---- form card (left) ---- */
.contactpage__form-card {
  background: var(--gray-bg); border-radius: 25px; padding: 42px 46px 46px;
}
.contactpage__ftitle, .contactpage__dtitle {
  font-size: 38px; font-weight: 700; color: var(--navy);
  letter-spacing: -.02em; line-height: 1.2; margin: 0;
}
.contactpage__ftitle .title-underline,
.contactpage__dtitle .title-underline { margin: 12px 0 0; width: 265px; max-width: 100%; }
.contactpage__fsub { font-size: 20px; font-weight: 700; color: var(--navy); margin: 20px 0 0; }
.contactpage__form { margin-top: 22px; }
/* checkbox row */
.contactpage__consent {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--navy); margin: 2px 0 4px;
}
.contactpage__consent input { width: 18px; height: 18px; accent-color: var(--gold); flex: 0 0 auto; }
.contactpage__consent label { line-height: 1.4; }

/* ---- contact details (right) ---- */
.contactpage__dtitle { margin-bottom: 30px; }
.cinfo { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.cinfo__row { display: flex; flex-direction: row; align-items: center; gap: 14px; }
.cinfo__icon {
  flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center;
}
.cinfo__icon svg { width: 32px; height: 32px; display: block; }
.cinfo__text { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.cinfo__text strong { font-size: 20px; font-weight: 700; color: var(--navy); }
.cinfo__text span { font-size: 18px; color: var(--navy); line-height: 1.45; }
.cinfo__hours span { direction: ltr; unicode-bidi: plaintext; text-align: right; }

/* promo box */
.cinfo__promo {
  display: flex; align-items: center; gap: 16px;
  background: #fff2cc; border-radius: 16px; padding: 20px 22px;
}
.cinfo__promo-icon { flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center; }
.cinfo__promo-icon svg { width: 46px; height: 46px; color: var(--gold); }
.cinfo__promo strong { display: block; font-size: 20px; font-weight: 700; color: var(--navy); }
.cinfo__promo p { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: var(--navy); }

@media (max-width: 460px) {
  .contactpage__form-card { padding: 28px 22px 30px; }
  .contactpage__ftitle, .contactpage__dtitle { font-size: 28px; }
  .contactpage__fsub { font-size: 17px; }
}

/* ============================================================
   FLUENT FORMS — match the site's field styling.
   Additive: applies only once a Fluent Form is embedded (via the
   "שורטקוד טופס" in הגדרות האתר). The static form is unaffected.
   ============================================================ */
.contact .fluentform,
.contactpage .fluentform { margin-top: 22px; }
.contact .fluentform .ff-el-group,
.contactpage .fluentform .ff-el-group { margin-bottom: 18px; }
.fluentform .ff-el-input--content input[type="text"],
.fluentform .ff-el-input--content input[type="email"],
.fluentform .ff-el-input--content input[type="tel"],
.fluentform .ff-el-input--content input[type="number"],
.fluentform .ff-el-input--content textarea,
.fluentform .ff-el-input--content select {
  width: 100%; height: 55px; border: 1.5px solid var(--navy); border-radius: 10px;
  padding: 0 24px; font-size: 18px; color: var(--navy); background: var(--white);
  font-family: inherit; box-shadow: none;
}
.fluentform .ff-el-input--content textarea { height: 140px; padding: 16px 24px; line-height: 1.4; }
.fluentform .ff-el-input--content input::placeholder,
.fluentform .ff-el-input--content textarea::placeholder { color: var(--navy); opacity: 1; }
.fluentform .ff-el-input--content input:focus,
.fluentform .ff-el-input--content textarea:focus,
.fluentform .ff-el-input--content select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 166, 35, .14);
}
.fluentform .ff-el-input--label label { color: var(--navy); font-weight: 500; }
.fluentform .ff-el-group.ff_t_container .ff-t-cell { padding: 0 11px; }
.fluentform .ff-btn-submit {
  background: var(--gold); color: var(--navy); height: 55px; width: 100%;
  border: 0; border-radius: 10px; font-weight: 700; font-size: 18px; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(245, 166, 35, .7); transition: background .2s, transform .2s;
}
.fluentform .ff-btn-submit:hover { background: var(--gold-deep); transform: translateY(-2px); }

/* Mobile (phones): compact fields + force the SELECT to the exact same height as
   the inputs (it otherwise renders shorter). Desktop/tablet unchanged. */
@media (max-width: 767px) {
  .fluentform .ff-el-input--content input[type="text"],
  .fluentform .ff-el-input--content input[type="email"],
  .fluentform .ff-el-input--content input[type="tel"],
  .fluentform .ff-el-input--content input[type="number"],
  .fluentform .ff-el-input--content select {
    height: 50px; padding: 0 18px; font-size: 16px; line-height: 48px; box-sizing: border-box;
  }
  .fluentform .ff-el-input--content textarea { height: 120px; padding: 14px 18px; font-size: 16px; }
  .contact .fluentform .ff-el-group,
  .contactpage .fluentform .ff-el-group { margin-bottom: 12px; }
  .fluentform .ff-btn-submit { height: 50px; font-size: 17px; }
}
.fluentform .ff-el-is-error .text-danger,
.fluentform .error { color: #e0563f; }

/* ---- success state (after a successful Fluent submit) ----
   form-enhance.js adds .is-submitted to the card and injects .contact-success.
   Hide the heading, sub-line, the form AND Fluent's own .ff-message-success
   (all inside .contact__form-wrap), leaving one clean, centred confirmation. */
.contact-success { display: none; }
.is-submitted .contactpage__ftitle,
.is-submitted .contactpage__fsub,
.is-submitted .section__title,
.is-submitted .contact__form-wrap { display: none !important; }
.contactpage__form-card.is-submitted,
.contact.is-submitted {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.contactpage__form-card.is-submitted { min-height: 380px; }
.is-submitted .contact-success {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; direction: rtl; text-align: center; max-width: 460px; margin: 0 auto; padding: 8px 4px;
}
.contact-success__badge {
  flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(245, 166, 35, .15); color: var(--gold); display: grid; place-items: center;
}
.contact-success__title {
  margin: 0; font-size: 42px; line-height: 1.05; font-weight: 700;
  color: var(--navy); letter-spacing: -.02em;
}
.contact-success__text {
  margin: 0; font-size: 19px; line-height: 1.6; color: var(--navy); max-width: 400px;
}
@media (max-width: 460px) {
  .contactpage__form-card.is-submitted { min-height: 300px; }
  .contact-success__badge { width: 60px; height: 60px; }
  .contact-success__title { font-size: 32px; }
  .contact-success__text { font-size: 17px; }
}

/* ============================================================
   NAV + CONTACT-FORM FIXES (match Figma homepage)
   ============================================================ */

/* 1) Desktop nav: Figma spacing (~90px gaps) with the gold separators centered.
      Weight stays Regular for all items, Bold only for the current page. */
@media (min-width: 861px) {
  .nav__link { padding-inline: clamp(20px, 3.1vw, 45px); font-weight: 400; }
  .current-menu-item > .nav__link,
  .current_page_item > .nav__link,
  .nav__link.is-active { font-weight: 700; }
}

/* 2) Phone field: force RTL so the "*טלפון" placeholder aligns right like the
      other fields (browsers default type=tel/email/number to LTR). */
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"] { direction: rtl; text-align: right; }

/* 3) Select chevron on the inline-end (LEFT in RTL) so the right-aligned
      "*סוג הפרויקט" placeholder no longer covers it. */
.select-wrap .select-arrow { inset-inline-start: auto; inset-inline-end: 22px; }

/* ============================================================
   PROJECTS PAGE (page-projects.php — Figma 158:1298)
   ============================================================ */
.projects { background: var(--white); padding: 58px 0 20px; }
.projects__intro {
  max-width: 1130px; margin: 0 auto; text-align: center;
  font-size: 20px; line-height: 1.6; color: var(--navy);
}
/* ---- filter pills ---- */
.projects__filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin: 34px auto 36px; direction: rtl;
}
.projects__filter {
  min-width: 130px; padding: 12px 26px; border-radius: 100px;
  border: 1.5px solid #d7dbe3; background: var(--white); color: var(--navy);
  font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.projects__filter:hover { border-color: var(--gold); }
.projects__filter.is-active { background: var(--gold); border-color: var(--gold); color: var(--navy); }
/* ---- grid + cards ---- */
.projects__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px; max-width: 1197px; margin: 0 auto;
}
.project-card {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 377 / 302; box-shadow: var(--shadow-card); background: var(--navy);
}
.project-card.is-hidden { display: none; }
.project-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card__tag {
  position: absolute; top: 16px; inset-inline-end: 16px;
  background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 700;
  padding: 6px 18px; border-radius: 100px; line-height: 1;
}
.project-card__overlay {
  position: absolute; inset-inline: 0; bottom: 0; padding: 14px 20px 16px;
  text-align: right; background: linear-gradient(rgba(2,39,84,0), rgba(2,39,84,.92) 42%);
}
.project-card__name { margin: 0; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.2; }
.project-card__loc  { margin: 4px 0 0; color: #cdd7e6; font-size: 14px; line-height: 1.3; }
/* ---- gold CTA banner ---- */
.projects-cta { background: var(--white); padding: 22px 0 6px; }
.projects-cta__box {
  max-width: 1197px; margin: 0 auto; background: var(--gold); border-radius: 22px;
  padding: 22px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.projects-cta__text { margin: 0; color: var(--navy); font-size: 26px; font-weight: 700; line-height: 1.25; }
.projects-cta__btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; text-decoration: none; white-space: nowrap;
  padding: 15px 28px; border-radius: 100px; font-size: 17px; font-weight: 700;
  transition: transform .2s, background .2s;
}
.projects-cta__btn:hover { background: #043a7a; transform: translateY(-2px); }
@media (max-width: 860px) {
  .projects { padding: 40px 0 12px; }
  .projects__intro { font-size: 18px; }
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .projects-cta__box { flex-direction: column; text-align: center; padding: 24px 24px 26px; }
  .projects-cta__text { font-size: 22px; }
}
@media (max-width: 560px) {
  .projects__grid { grid-template-columns: 1fr; max-width: 420px; }
  .projects__filter { min-width: 0; flex: 1 1 44%; padding: 11px 14px; font-size: 15px; }
}
