/* Portfolio archive only: existing titles and image addresses remain intact. */
body.post-type-archive-nashi-raboty {
  color: #12343a;
  background: #f6f4ee;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.post-type-archive-nashi-raboty .legacy-breadcrumbs {
  margin: 0;
  padding: 22px 0 0;
  color: #5c7074;
  background: #f6f4ee;
  border: 0;
}
body.post-type-archive-nashi-raboty .legacy-breadcrumbs .legacy-container,
body.post-type-archive-nashi-raboty .legacy-archive {
  width: min(1200px, calc(100vw - 64px));
  max-width: none;
}
body.post-type-archive-nashi-raboty .legacy-breadcrumbs a { color: #087d89; }
body.post-type-archive-nashi-raboty .legacy-archive { margin-bottom: 0; padding: 64px 0 96px; }
body.post-type-archive-nashi-raboty .legacy-archive h1 {
  margin: 0 0 48px;
  color: #12343a;
  font-size: clamp(3.6rem, 6.2vw, 6.5rem);
  font-weight: 690;
  letter-spacing: -.075em;
  line-height: .98;
  text-transform: none;
}
body.post-type-archive-nashi-raboty .legacy-portfolio-archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
body.post-type-archive-nashi-raboty .legacy-portfolio-item {
  min-width: 0;
  height: auto;
  aspect-ratio: 1.19;
  overflow: hidden;
  background-color: #d9e6e5;
  background-position: center;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(13, 57, 62, .08);
}
body.post-type-archive-nashi-raboty .legacy-portfolio-item__overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 2.1vw, 28px);
  opacity: 1;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 27, 32, .2) 55%, rgba(0, 27, 32, .9) 100%);
  transition: background-color .2s ease;
}
body.post-type-archive-nashi-raboty .legacy-portfolio-item:hover .legacy-portfolio-item__overlay,
body.post-type-archive-nashi-raboty .legacy-portfolio-item:focus-within .legacy-portfolio-item__overlay {
  background-color: rgba(0, 38, 44, .12);
}
body.post-type-archive-nashi-raboty .legacy-portfolio-item__overlay > a { z-index: 2; }
body.post-type-archive-nashi-raboty .legacy-portfolio-item__overlay h4 {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(1.12rem, 1.55vw, 1.42rem);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.25;
  text-transform: none;
}
body.post-type-archive-nashi-raboty .legacy-portfolio-item__overlay div { margin-top: 8px; }
body.post-type-archive-nashi-raboty .legacy-portfolio-item__overlay p {
  margin: 0;
  color: rgba(255, 255, 255, .87);
  font-size: .8rem;
  font-weight: 420;
  line-height: 1.45;
}
body.post-type-archive-nashi-raboty .legacy-portfolio-item__overlay > a:focus-visible {
  outline: 3px solid #14b8c6;
  outline-offset: -5px;
  border-radius: 22px;
}
body.post-type-archive-nashi-raboty .legacy-pagination { margin: 38px 0 0; }
body.post-type-archive-nashi-raboty .legacy-pagination .nav-links { flex-wrap: wrap; gap: 9px; }
body.post-type-archive-nashi-raboty .legacy-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  color: #087d89;
  background: #fff;
  border: 1px solid #c7d9d7;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 650;
  text-decoration: none;
}
body.post-type-archive-nashi-raboty .legacy-pagination .current,
body.post-type-archive-nashi-raboty .legacy-pagination a:hover,
body.post-type-archive-nashi-raboty .legacy-pagination a:focus-visible {
  color: #fff;
  background: #087d89;
  border-color: #087d89;
}
body.post-type-archive-nashi-raboty .legacy-callback {
  width: 100%;
  margin: 0;
  padding: 82px max(32px, calc((100vw - 1200px) / 2));
  color: #12343a;
  text-align: left;
  background: #e4f2f0;
}
body.post-type-archive-nashi-raboty .legacy-callback .legacy-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .95fr);
  align-items: center;
  gap: 72px;
  width: 100%;
  max-width: none;
}
body.post-type-archive-nashi-raboty .legacy-callback h3 {
  margin: 0;
  color: #12343a;
  font-size: clamp(2rem, 3.35vw, 3.45rem);
  font-weight: 590;
  letter-spacing: -.05em;
  line-height: 1;
  text-align: left;
  text-transform: none;
  text-wrap: balance;
}
body.post-type-archive-nashi-raboty .legacy-callback .legacy-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: auto;
  padding: 10px;
  background: rgba(255, 255, 255, .48);
  border-radius: 28px;
}
body.post-type-archive-nashi-raboty .legacy-callback .legacy-form input {
  position: static;
  width: 100%;
  max-width: none;
  min-height: 54px;
  padding: 14px 18px;
  color: #12343a;
  background: #fff;
  border: 0;
  border-radius: 18px;
  font-size: .82rem;
  text-align: left;
  transform: none;
}
body.post-type-archive-nashi-raboty .legacy-callback .legacy-form input::placeholder { color: #5c7074; text-align: left; text-transform: none; }
body.post-type-archive-nashi-raboty .legacy-callback .legacy-form .legacy-button {
  position: static;
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: none;
  min-height: 54px;
  padding: 7px 8px 7px 18px;
  color: #fff;
  background: #14b8c6;
  border: 0;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
  transform: none;
}
body.post-type-archive-nashi-raboty .legacy-callback .legacy-form .legacy-button::after {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #087d89;
  background: #fff;
  border-radius: 50%;
  content: "\2197";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}
body.post-type-archive-nashi-raboty .legacy-callback .legacy-form .legacy-button:disabled { opacity: .68; cursor: not-allowed; }
@media (max-width: 900px) {
  body.post-type-archive-nashi-raboty .legacy-portfolio-archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.post-type-archive-nashi-raboty .legacy-callback .legacy-container { grid-template-columns: 1fr; gap: 36px; }
  body.post-type-archive-nashi-raboty .legacy-callback .legacy-form { max-width: 640px; }
}
@media (max-width: 600px) {
  body.post-type-archive-nashi-raboty .legacy-breadcrumbs .legacy-container,
  body.post-type-archive-nashi-raboty .legacy-archive { width: calc(100vw - 40px); }
  body.post-type-archive-nashi-raboty .legacy-archive { padding: 42px 0 72px; }
  body.post-type-archive-nashi-raboty .legacy-archive h1 { margin-bottom: 30px; font-size: clamp(3.2rem, 13vw, 4.5rem); }
  body.post-type-archive-nashi-raboty .legacy-portfolio-archive { grid-template-columns: 1fr; gap: 16px; }
  body.post-type-archive-nashi-raboty .legacy-portfolio-item { aspect-ratio: 1.2; border-radius: 18px; }
  body.post-type-archive-nashi-raboty .legacy-callback { padding: 72px 20px 78px; }
  body.post-type-archive-nashi-raboty .legacy-callback h3 { font-size: 2.15rem; }
  body.post-type-archive-nashi-raboty .legacy-callback .legacy-form { grid-template-columns: 1fr; padding: 8px; }
  body.post-type-archive-nashi-raboty .legacy-callback .legacy-form .legacy-button { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body.post-type-archive-nashi-raboty .legacy-portfolio-item__overlay { transition: none; }
}
