/* Yandex Maps case uses the shared case template and unmodified source screenshots. */
.cover-quads{background:radial-gradient(ellipse at 50% 80%,#e5daf7 0%,#f6f4fb 75%)}
.quads-study .study-hero{grid-template-columns:1.15fr 1fr;gap:32px}
.quads-study h1{font-size:clamp(36px,3.8vw,54px)}
.quads-study .study-metrics dd{font-size:clamp(26px,2.7vw,36px)}
.quads-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin:36px 0}
.quads-gallery .study-photo{background:#fff;box-shadow:var(--shadow-s);border:1px solid var(--color-border)}
.quads-gallery img{display:block;width:100%;height:auto;object-fit:contain}
.quads-gallery-wide{grid-template-columns:1fr;gap:36px}
.quads-search{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.quads-category{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:32px 0}
.quads-category>div{padding:28px 32px;background:#fff;border:1px solid var(--color-border);border-radius:24px}
.quads-category>div:last-child{background:var(--gradient-background);border-color:var(--color-accent-soft)}
.quads-category>div>span{font-size:14px;color:var(--color-text-secondary)}
.quads-category h3{margin:12px 0}.quads-category p{margin-bottom:0;font-size:16px}
.quads-highlight{display:flex;align-items:center;gap:32px;padding:32px;background:var(--gradient-background);border-radius:24px;margin-top:32px}
.quads-highlight strong{font-size:64px;letter-spacing:-.05em;color:var(--color-accent);line-height:1.2;flex:none}
.quads-highlight p{margin:0;max-width:760px}
.quads-award{display:flex;justify-content:center;align-items:center;background:var(--gradient-background);border-radius:28px;padding:32px}
.quads-award figure{max-width:180px;text-align:center}
.quads-award .study-photo{background:transparent;overflow:visible}
.quads-award img{width:100%;height:auto;display:block}
.quads-table-wrap{background:#fff;border:1px solid var(--color-border);border-radius:24px;padding:28px 32px;margin:32px 0}
.quads-table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.6}
.quads-table caption{text-align:left;font-size:14px;color:var(--color-text-secondary);margin-bottom:16px}
.quads-table th,.quads-table td{text-align:left;padding:16px;border-bottom:1px solid var(--color-border)}
.quads-table thead th{color:var(--color-text-secondary);font-weight:500}
.quads-table tbody th{font-weight:600}.quads-table td:last-child{font-weight:800;color:var(--color-accent)}
.quads-table tr:last-child>*{border-bottom:0}
.quads-ad-metrics{margin-top:32px}.quads-ad-metrics dd{white-space:nowrap}
@media(max-width:1000px){.quads-study .study-hero{grid-template-columns:1fr}.quads-search{grid-template-columns:1fr;max-width:900px;margin-inline:auto}}
@media(max-width:640px){.quads-study h1{font-size:36px;line-height:42px}.quads-study .study-metrics dd{font-size:26px}.quads-category{grid-template-columns:1fr;gap:16px}.quads-category>div{padding:24px}.quads-category p{font-size:16px}.quads-gallery{grid-template-columns:1fr;gap:24px;margin:28px 0}.quads-creatives{display:flex;overflow-x:auto;gap:20px;padding:4px 4px 20px;scroll-snap-type:x mandatory;overscroll-behavior:auto;scrollbar-width:thin;scrollbar-color:var(--color-accent-soft) var(--color-border)}.quads-creatives figure{flex:0 0 92%;scroll-snap-align:start}.quads-highlight{padding:24px;gap:16px;align-items:start;flex-direction:column}.quads-highlight strong{font-size:52px}.quads-award{padding:28px}.quads-award figure{max-width:150px}.quads-table-wrap{padding:20px 12px}.quads-table{font-size:13px}.quads-table th,.quads-table td{padding:12px 8px}.quads-table th:first-child{width:60%}.quads-table td{white-space:nowrap}.quads-table caption{font-size:13px;padding:0 8px}}

/* Equal comparison frames; keep every source map fully visible. */
.quads-before .study-photo{aspect-ratio:1280/860;display:flex;align-items:center;justify-content:center}
.quads-before .study-photo img{width:100%;height:100%;aspect-ratio:auto!important;object-fit:contain}
@media(min-width:641px){
 .quads-gallery-wide{align-items:start}
 .quads-gallery-wide figure{width:100%;max-width:820px;justify-self:center}
 .quads-gallery-wide .study-photo{width:fit-content;max-width:100%;margin-inline:auto}
 .quads-gallery-wide img{width:auto;max-width:100%;height:auto;max-height:min(480px,60vh);object-fit:contain}
 .quads-gallery-wide figcaption{text-align:center}
 .quads-after{max-width:66.6667%;margin-inline:auto}
 .quads-search{grid-template-columns:repeat(3,minmax(0,1fr));max-width:100%;gap:20px}
 .quads-search img{max-height:300px;object-fit:contain}
}

/* Match the advertising statistics width to the action-growth report on desktop. */
@media(min-width:641px){
 .quads-gallery-wide .study-photo[href$="/actions-statistics.webp"]{width:100%}
 .quads-gallery-wide .study-photo[href$="/actions-statistics.webp"] img{width:100%;max-height:none}
}

.quads-phone-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;max-width:1000px;margin:36px auto 0}
.quads-phone-gallery .study-photo,.quads-reviews-demo .study-photo{background:transparent;overflow:visible}
.quads-phone-gallery img,.quads-reviews-demo img{display:block;width:100%;height:auto;object-fit:contain}
.quads-phone-gallery figcaption,.quads-reviews-demo figcaption{text-align:center;padding:0 12px}
.quads-reviews-demo{grid-column:1/-1;width:100%;max-width:300px;justify-self:center}
@media(max-width:640px){.quads-phone-gallery{display:flex;gap:20px;overflow-x:auto;padding:4px 4px 20px;scroll-snap-type:x mandatory;overscroll-behavior:auto;scrollbar-width:thin;scrollbar-color:var(--color-accent-soft) var(--color-border)}.quads-phone-gallery figure{flex:0 0 82%;scroll-snap-align:start}.quads-reviews-demo{max-width:280px}}
