/* Sekcja 4 kafli uslug (Kacper 08.10.2026). Markup: inc/uslugi-kafle.php */
.usl { max-width: 1440px; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(56px, 6vw, 96px); }
.usl__gora { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.usl__badge .ico { width: 15px; height: 15px; color: var(--accent); }
.usl__h { max-width: 620px; margin: 22px 0 0; font-family: 'Fraunces', Georgia, serif; font-variation-settings: 'opsz' 40; font-size: clamp(30px, 3.2vw, 46px); font-weight: 300; line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.usl__lead { max-width: 420px; margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--soft); }
.usl__siatka { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 40px); align-items: start; } /* wieksze odstepy (Kacper 08.10) */
.usl__k:nth-child(even) { margin-top: clamp(28px, 3vw, 56px); } /* schodkowo, nie rowna linia jak u Hostingera */
.usl__k { display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.usl__foto { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1.04; border-radius: 20px; background: #dbe6ff; container-type: inline-size; }
.usl__foto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.usl__k:hover .usl__foto > img { transform: scale(1.04); }
.usl__t { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.usl__t > span { display: flex; flex-direction: column; gap: 3px; }
.usl__t b { font-size: 18px; font-weight: 500; }
.usl__t small { font-size: 14.5px; color: var(--muted); }
.usl__k:hover .usl__t { border-color: var(--ink); }
.usl__t .klik { flex: none; width: 13px; height: 13px; fill: var(--ink); transition: transform .25s cubic-bezier(.2, .7, .2, 1), fill .2s; }
.usl__k:hover .usl__t .klik { transform: translate(3px, -3px); fill: var(--accent); }

/* 1. strona: okno strony w tle za wlascicielem (zdjecie lekko przejrzyste u gory) */
.usl__foto--strona { background: linear-gradient(180deg, #cfdcff, #e6edff); }
.usl__foto--strona > img { z-index: 1; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
.usl__okno { position: absolute; left: 7cqw; top: 14cqw; width: 60cqw; height: 54cqw; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 20px 40px -24px rgba(17, 24, 39, .35); }
.usl__okno-pasek { display: flex; gap: 4px; padding: 8px 10px; background: #eef2ff; }
.usl__okno-pasek i { width: 6px; height: 6px; border-radius: 50%; background: #c7d2fe; }
.usl__okno-l { display: block; height: 8px; margin: 12px 14px 0; border-radius: 4px; background: #e2e8f0; }
.usl__okno-l--k { width: 45%; height: 12px; background: #2563eb; }
.usl__okno-l--s { width: 70%; }

/* 2. domena: pigulka z adresem i kursorem */
.usl__dom { position: absolute; z-index: 1; left: 12cqw; top: 46cqw; display: flex; align-items: center; gap: 12px; padding: 9px 22px 9px 9px; border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 40px -18px rgba(17, 24, 39, .45); font-size: clamp(15px, 6.4cqw, 22px); font-weight: 500; color: var(--ink); white-space: nowrap; }
.usl__dom b { font-weight: 700; }
.usl__dom-ik { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent); color: #fff; }
.usl__dom-ik .ico { width: 22px; height: 22px; }
.usl__kursor { position: absolute; left: 30px; top: 40px; width: 30px; height: 30px; }

/* 3. poczta: okno nowej wiadomosci na niebieskim tle */
.usl__foto--poczta { background: linear-gradient(135deg, #c7d7ff 0%, #9db8ff 100%); }
.usl__mail { position: absolute; left: 10cqw; right: -2cqw; top: 14cqw; bottom: -2cqw; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px 0 0 0; background: #f8faff; box-shadow: 0 24px 50px -24px rgba(17, 24, 39, .45); font-size: clamp(11px, 3.6cqw, 13px); color: var(--ink); }
.usl__mail-top { padding: 12px 16px; border-bottom: 1px solid #e5e9f5; font-weight: 600; }
.usl__mail-od { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin: 12px 0 6px 12px; padding: 6px 16px 6px 6px; border-radius: 999px; background: #fff; box-shadow: 0 12px 26px -14px rgba(17, 24, 39, .45); font-size: clamp(12px, 4.4cqw, 16px); font-weight: 500; }
.usl__mail-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); font-size: 13px; font-weight: 600; color: #fff; }
.usl__mail-w { display: flex; align-items: center; gap: 14px; padding: 8px 16px; border-bottom: 1px solid #e5e9f5; }
.usl__mail-w small { width: 42px; color: var(--muted); }
.usl__mail-w em { padding: 2px 10px; border: 1px solid #d6e1ff; border-radius: 999px; background: #eef3ff; font-style: normal; font-size: .92em; }
.usl__mail img { display: block; width: 100%; flex: 1; min-height: 0; margin-top: 12px; object-fit: cover; }

/* 4. pozycjonowanie: wyniki Google na telefonie (sekcja Miejsca), nasza firma na 1. miejscu (Kacper 08.10.2026) */
.usl__foto--seo { background: #e9e2d6; }
.usl__foto--seo > img { filter: saturate(.9); }
.usl__serp { z-index: 1; }
.usl__serp { position: absolute; left: 12cqw; right: 12cqw; top: 7cqw; bottom: -6cqw; display: flex; flex-direction: column; align-items: stretch; gap: 2.4cqw; padding: 5cqw 4.4cqw 0; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 24px 50px -24px rgba(17, 24, 39, .45); font-family: Arial, Helvetica, sans-serif; color: #202124; }
.usl__serp > * { flex: none; } /* bez sciskania wierszy (zakladki znikaly) */
.usl__serp-g { align-self: center; width: 22cqw; height: auto; }
.usl__serp-q { display: flex; align-items: center; gap: 2.6cqw; height: 10cqw; padding: 0 3.4cqw; border-radius: 999px; background: #f1f3f4; font-size: 3.6cqw; }
.usl__serp-q > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usl__serp-q svg { flex: none; width: 4.4cqw; height: 4.4cqw; }
.usl__serp-tab { display: flex; gap: 4cqw; margin: -1cqw -4.4cqw 0; padding: 0 4.4cqw; border-bottom: 1px solid #ebebeb; font-size: 3.2cqw; color: #5f6368; white-space: nowrap; overflow: hidden; }
.usl__serp-tab > * { padding: 1.4cqw 0 1.8cqw; }
.usl__serp-tab b { font-weight: 500; color: #202124; box-shadow: inset 0 -2px 0 #202124; }
.usl__serp-h { font-size: 4.4cqw; }
.usl__mj { display: flex; align-items: center; gap: 3cqw; padding-bottom: 2.6cqw; border-bottom: 1px solid #ebebeb; opacity: .5; }
.usl__mj img { flex: none; width: 13cqw; height: 13cqw; border-radius: 8px; object-fit: cover; }
.usl__mj > span { display: flex; flex-direction: column; gap: .5cqw; min-width: 0; }
.usl__mj b { font-size: 3.8cqw; font-weight: 400; white-space: nowrap; }
.usl__mj small { font-size: 3cqw; color: #70757a; white-space: nowrap; }
/* 1. miejsce wyskakuje z ekranu telefonu: szersza karta poza krawedziami, uniesiona, bez obrysu; plakietka "1." w rogu (Kacper 08.10) */
.usl__serp { overflow: visible; }
.usl__mj.is-1 { position: relative; z-index: 2; margin: .6cqw -9cqw 1.4cqw; padding: 3.2cqw 4cqw; border: 0; border-radius: 14px; opacity: 1; background: #fff; box-shadow: 0 18px 36px -16px rgba(17, 24, 39, .38), 0 2px 6px rgba(17, 24, 39, .06); }
.usl__mj.is-1 img { width: 15cqw; height: 15cqw; }
.usl__mj.is-1 b { font-size: 4.3cqw; font-weight: 500; }
.usl__mj.is-1::before { content: "1."; position: absolute; left: -2cqw; top: -2.4cqw; padding: .8cqw 2.4cqw; border-radius: 999px; background: var(--accent); font: 600 3.1cqw/1.2 var(--font); color: #fff; }
.usl__k:hover .usl__mj.is-1 { transform: translateY(-3px); }
.usl__mj.is-1 { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.usl__gw { font-style: normal; color: #fbbc04; letter-spacing: -.05em; }
.usl__ok { font-style: normal; color: #188038; }
/* 4. opieka: kwadratowa ikona na zdjeciu */
.usl__ikona { position: absolute; z-index: 1; left: 9cqw; bottom: 12cqw; display: grid; place-items: center; width: 15cqw; height: 15cqw; min-width: 46px; min-height: 46px; border-radius: 12px; background: var(--accent); color: #fff; box-shadow: 0 14px 30px -12px rgba(37, 99, 235, .6); }
.usl__ikona .ico { width: 45%; height: 45%; }

@media (max-width: 1100px) { .usl__siatka { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } .usl__gora { align-items: flex-start; flex-direction: column; gap: 16px; } }
@media (max-width: 560px) { .usl__siatka { grid-template-columns: minmax(0, 1fr); } .usl__k:nth-child(even) { margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .usl__foto > img { transition: none; } }
