@font-face {
  font-family: "DM Sans JNET";
  src: url("../fonts/DM-Sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
#uslugi-myslenice {
  --type: "DM Sans JNET", Arial, sans-serif;
  font-family:var(--type);
  background:linear-gradient(180deg,#f4f6f8 0,#fff 540px);
  color: #1d2630;
  padding: clamp(45px,6vw,92px) 0;
}
.studio-heading,.studio-spread {
  display: grid;
  grid-template-columns: minmax(0,1.36fr) minmax(0,1fr);
  column-gap: clamp(32px,4vw,70px);
}
.studio-heading { align-items:end; margin-bottom:clamp(28px,3.4vw,50px); }
.studio-heading h2 {
  margin:0; font:700 clamp(32px,3.2vw,50px)/1.08 var(--type);
  letter-spacing:-.045em;
}
.studio-heading em {color:#b9440b; font-style:normal; white-space:nowrap;}
.studio-heading p,.studio-services p {font:400 16px/1.68 var(--type);color:#414d59;margin:0;}
.studio-project {margin:0;align-self:start;background:#212b35;color:white;}
.studio-project img {display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;}
.studio-project figcaption {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px clamp(18px,2.5vw,35px);}
.studio-project span {display:block;font:500 13px/1.5 var(--type);letter-spacing:.05em;color:#dbe2e9;}
.studio-project strong {font:650 clamp(25px,2.1vw,32px)/1.15 var(--type);}
.studio-services article {border-top:1px solid #d5dce2;padding:clamp(16px,1.6vw,25px) 0;}
.studio-services article:first-child {border-top:1px solid #d5dce2;}
.studio-services article:last-child {padding-bottom:0;}
.studio-services h3 {margin:0 0 9px;font:650 clamp(21px,1.7vw,26px)/1.23 var(--type);letter-spacing:-.03em;}
#uslugi-myslenice a {display:inline-block;text-decoration:underline;text-underline-offset:5px;text-decoration-color:#b77c57;font:650 15px/1.5 var(--type);}
.studio-services a {margin-top:10px;color:#a93908;}
.studio-project a {color:#fff;}
#uslugi-myslenice a:focus-visible {outline:2px solid #df742f;outline-offset:5px;}
@media(max-width:767px) {
  .studio-heading,.studio-spread {grid-template-columns:minmax(0,1fr);gap:22px;}
  .studio-heading h2 {font-size:clamp(32px,7.8vw,48px);}
  .studio-services article {padding:22px 0;}
}

#uslugi-myslenice { --kwiat: url('../media/kwiat-jnet.webp'); }
.studio-heading h2::before {
  content:""; display:block; width:26px; height:32px; margin-bottom:14px;
  background:var(--kwiat) left center / contain no-repeat;
}
.studio-services h3 {
  padding-left:29px;
  background:var(--kwiat) left .18em / 18px auto no-repeat;
}
.studio-services p + p { margin-top:10px; }
.studio-project figcaption {
  background:var(--kwiat) 55% center / auto 72% no-repeat;
}
.studio-contact {
  position:relative; isolation:isolate; overflow:hidden;
  display:flex; justify-content:space-between; align-items:center; gap:32px;
  margin-top:clamp(32px,4vw,64px); padding:clamp(26px,4vw,54px);
  background:#202a34; color:white;
}
.studio-contact::before {
  content:""; position:absolute; z-index:-1; right:7%; top:-25%; width:230px;
  height:160%; background:var(--kwiat) center / contain no-repeat;
  transform:rotate(20deg); opacity:.15;
}
.studio-contact h3 {font:650 clamp(28px,2.6vw,36px)/1.15 var(--type);margin:0 0 10px;}
.studio-contact p {max-width:620px;font:400 16px/1.68 var(--type);color:#e6ecf1;margin:0;}
#uslugi-myslenice .studio-contact a {flex:none;color:#202a34;background:#ffc197;text-decoration:none;padding:13px 20px;border-radius:3px;}
#uslugi-myslenice .studio-contact a:hover {background:#ffca99;}
@media(min-width:992px) {
  .studio-project {position:sticky;top:24px;}
}
@media(max-width:767px) {
  .studio-contact {flex-direction:column;align-items:flex-start;gap:18px;}
  .studio-project figcaption {background-position:53% center;background-size:auto 48%;}
}

#last-works .box-last-work img { object-fit:contain; background:#f0f0f0; }

#last-works {background:#fff; padding:0 0 clamp(40px,5vw,76px); font-family:"DM Sans JNET",Arial,sans-serif;}
.portfolio-shell {width:min(1170px,92%);margin-inline:auto;}
.portfolio-head {display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px;}
.portfolio-head h2 {margin:0;color:#202a34;font:650 clamp(27px,3vw,42px)/1.12 "DM Sans JNET",Arial,sans-serif;letter-spacing:-.04em;}
.portfolio-controls {display:flex;gap:8px;}
.portfolio-controls[hidden] {display:none;}
.portfolio-controls button {display:grid;place-content:center;width:44px;height:44px;border:1px solid #c7cdd2;border-radius:50%;color:#202a34;background:white;font:32px/1 Arial,sans-serif;padding:0 0 4px;}
.portfolio-controls button:enabled:hover {background:#202a34;color:white;}
.portfolio-controls button:disabled {opacity:.32;}
#portfolio-list {display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 24px)/2);gap:24px;margin:0;padding:0 0 12px;list-style:none;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#bac1c6 #edf0f2;}
#portfolio-list li {min-width:0;scroll-snap-align:start;}
#portfolio-list figure {margin:0;}
#portfolio-list img {display:block;width:100%;height:auto;aspect-ratio:3/2;border:1px solid #e1e4e6;border-radius:10px;}
#portfolio-list figcaption {display:flex;align-items:center;gap:10px;padding:13px 1px 5px;color:#202a34;font-size:clamp(18px,1.6vw,23px);font-weight:650;letter-spacing:-.02em;}
#portfolio-list figcaption::before {content:"";width:14px;height:19px;background:url('../media/kwiat-jnet.webp') center/contain no-repeat;}
#last-works :focus-visible {outline:2px solid #b7440b;outline-offset:3px;}
@media(max-width:650px){#portfolio-list {grid-auto-columns:100%;gap:14px;}}

.studio-project {overflow:hidden;border-radius:12px;box-shadow:0 10px 32px #202a3412;}
.studio-project figcaption {background-position:47% center;background-size:auto 58%;}
.featured-actions {display:flex;align-items:center;flex-wrap:wrap;gap:14px;}
.featured-toggle {min-height:40px;padding:6px 14px;border:1px solid #8c98a2;border-radius:30px;background:transparent;color:white;font:600 14px "DM Sans JNET",Arial,sans-serif;}
.featured-toggle:hover,.featured-toggle:focus-visible {background:#fff;color:#202a34;}
.studio-services {display:grid;gap:16px;}
.studio-services article,.studio-services article:first-child,.studio-services article:last-child {
  padding:clamp(19px,2vw,30px);
  border:1px solid #e0e4e8;border-radius:12px;
  background:#fff;box-shadow:0 5px 20px #202a3409;
}
.studio-services h3 {min-height:40px;display:flex;align-items:center;margin:0 0 16px;padding-left:54px;position:relative;background:none;}
.studio-services h3::before {
  content:"";position:absolute;left:0;top:0;width:40px;height:40px;
  border-radius:12px;background:#fff2e8 var(--kwiat) center / 18px auto no-repeat;
}
@media(max-width:991px){.studio-project figcaption {background-image:none;flex-wrap:wrap;}}

/* Wprowadzenie do lokalnej oferty */
#uslugi-myslenice .studio-heading > p {
  align-self: center;
  position: relative;
  margin: 0;
  padding: 10px 0 10px clamp(18px, 2vw, 30px);
  max-width: 52ch;
  border-left: 1px solid #d2d9de;
  color: #374552;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  text-wrap: pretty;
}
#uslugi-myslenice .studio-heading > p::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 10px;
  width: 3px;
  height: 34px;
  border-radius: 2px;
  background: #e45a16;
}
@media (max-width: 767px) {
  #uslugi-myslenice .studio-heading > p { max-width: none; }
}
