:root {
  --ink: #0d0c22;
  --ink-2: #3d3d4e;
  --muted: #6e6d7a;
  --line: #e7e7e9;
  --soft: #f3f3f4;
  --bg: #ffffff;
  --pink: #ea4c89;
  --radius: 8px;
  --h-red: #ef4444; --h-orange: #fb923c; --h-yellow: #facc15; --h-green: #22c55e;
  --h-teal: #14b8a6; --h-blue: #3b82f6; --h-violet: #8b5cf6; --h-pink: #ec4899;
  --font: "Mona Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); }
.top-in { height: 80px; display: flex; align-items: center; gap: 28px; padding: 0 32px; max-width: 1680px; margin: 0 auto; }
.logo { font-family: var(--font); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -.03em; color: var(--ink); }   /* шрифт как у H1 (11.11) */
.nav { display: flex; gap: 4px; }
.nav a { font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; color: var(--ink); transition: background .2s, color .2s; }
.nav a:hover { background: var(--soft); }
.nav a.on { background: var(--ink); color: #fff; }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--soft); height: 48px; padding: 0 18px; border-radius: 999px; width: min(320px, 32vw); color: var(--muted); border: 1px solid transparent; transition: border-color .2s, background .2s, box-shadow .2s; }
.search:focus-within { background: #fff; border-color: rgba(234,76,137,.4); box-shadow: 0 0 0 4px rgba(234,76,137,.1); }
.search input { border: 0; outline: 0; background: none; width: 100%; font: inherit; color: var(--ink); }
.btn-dark { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; border: 0; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .2s, transform .1s; }
.btn-dark:hover { background: #3d3d4e; }
.btn-dark:active { transform: scale(.98); }
/* гамбургер вместо Random (11.11) */
.top-in { position: relative; }
.burger { flex: none; width: 48px; height: 48px; border-radius: 12px; border: 0; padding: 0; background: var(--soft); cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; transition: background .2s; }
.burger:hover, .burger[aria-expanded="true"] { background: #e7e7ea; }   /* светлый квадрат (11.11) */
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu { position: absolute; right: 32px; top: calc(100% - 8px); z-index: 40; min-width: 220px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.04); }
.menu[hidden] { display: none; }
.menu a { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink); }
.menu a:hover { background: var(--soft); }
.menu a.on { background: var(--ink); color: #fff; }
.btn-line { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.btn-line:hover, .btn-line.on { border-color: #c9c9cf; box-shadow: 0 0 0 3px var(--soft); }
.btn-line.big { height: 48px; padding: 0 28px; }

/* hero */
.hero { text-align: center; padding: 64px 24px 56px; max-width: 980px; margin: 0 auto; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: #fdeaf2; color: #c32361; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; margin: 20px 0 16px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 620px; margin: 0 auto; }
.hero-search { display: flex; align-items: center; gap: 12px; max-width: 620px; height: 64px; margin: 32px auto 18px; padding: 0 24px; background: var(--soft); border-radius: 999px; color: var(--muted); border: 1px solid transparent; transition: border-color .2s, background .2s, box-shadow .2s; }
.hero-search:focus-within { background: #fff; border-color: rgba(234,76,137,.4); box-shadow: 0 0 0 4px rgba(234,76,137,.1); }
.hero-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.trend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font-size: 14px; }
.trend span { color: var(--muted); margin-right: 4px; }
.trend button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; font-weight: 500; font-size: 14px; transition: border-color .2s; }
.trend button:hover { border-color: #c9c9cf; }
.hero-left { text-align: left; max-width: 1680px; padding: 40px 32px 40px; }
.hero-left .lead { margin: 0; max-width: 720px; }
.hero-left h1 { margin-top: 12px; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.crumbs a:hover { color: var(--ink); }
.stats { display: flex; gap: 40px; margin: 28px 0 28px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.stats span { color: var(--muted); font-size: 14px; }
.o-strip { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #ffe0b8, #ffb36b, #ff8a3d, #ff6a3d, #f2496b, #c42a5a, #6b0f2a); }
.bo-strip { background: linear-gradient(90deg, #1d2a8f, #3b6cf6, #9b7bf2, #f06bb4, #ff7a59, #ff9a2e, #ffd18a); }
.a-strip { background: linear-gradient(90deg, #ffd6ec, #ff8fd0, #c78bff, #8fb2ff, #9ff0e0, #fff1a8); }
/* вертикальные коллекции (обои для телефона) */
body.portrait .grid { grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 96px) / 5)), 1fr)); gap: 32px 24px; }
body.portrait .thumb, .thumb.v { aspect-ratio: 9 / 16; }
/* квадратные коллекции (PFP): до 5 столбцов, как у вертикальных (11.11) */
body.square .grid { grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 96px) / 5)), 1fr)); gap: 32px 24px; }
.thumb.sq { aspect-ratio: 1; }   /* PFP: квадрат как есть */
body.portrait .grid.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-fig.portrait { aspect-ratio: 9 / 16; width: auto; height: min(78vh, 900px); max-width: 100%; margin: 0 auto; }
.trend-link { margin: 2px 4px; font-weight: 600; font-size: 14px; padding: 5px 14px; border-radius: 999px; background: linear-gradient(90deg, #ffd6ec, #d9c8ff, #c9dcff); color: var(--ink); }
.trend-link:hover { filter: brightness(.97); }
/* блок коллекций под лентой и страница всех коллекций */
.colls { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.colls-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.colls-h h2 { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(210px, calc((100% - 48px) / 3)), 1fr)); gap: 28px 24px; }
.cc { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cc[hidden] { display: none; }
.colls .cgrid { grid-template-columns: repeat(auto-fill, minmax(max(190px, calc((100% - 96px) / 5)), 1fr)); gap: 24px 24px; }   /* блок Collections: 60 плашек по 5 в ряд (11.11) */
.colls .cc-img { aspect-ratio: 16 / 9; }
.cc-img { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--soft); margin-bottom: 6px; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cc:hover .cc-img img { transform: scale(1.04); }
.cc-t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-n { color: var(--muted); font-size: 13px; }
.trend-link.all { background: var(--ink); color: #fff; }
/* About */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.about h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 20px; }
.ab-founder { display: grid; grid-template-columns: minmax(280px, 440px) minmax(0, 760px); gap: 72px; align-items: start; }
.ab-photo { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 20px 60px rgba(13,12,34,.12); }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; }
.ab-word { max-width: 760px; padding-top: 4px; }
.ab-word h2 { margin-bottom: 24px; }
.ab-word .pill { margin-bottom: 18px; }
.ab-word p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0 0 16px; }
.ab-word .ab-sign { font-family: "Pacifico", cursive; font-size: 22px; color: var(--ink); margin-top: 28px; }
.ab-stats h2 { padding-top: 72px; border-top: 1px solid var(--line); margin-bottom: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: #fafafb; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.05; }
.stat span { font-weight: 600; font-size: 15px; }
.stat em { font-style: normal; color: var(--muted); font-size: 13px; }
/* отступы секций About: селектор с .about, иначе их перебивает общий .wrap ниже по файлу */
.about .hero-left { padding-bottom: 56px; }
.about .hero .o-strip { margin-top: 32px; }
.about .ab-founder { padding: 0 32px 88px; }
.about .ab-stats { padding: 0 32px 88px; }
.about .ab-news { padding: 0 32px 104px; }
.news-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 48px; border-radius: 24px;
  background: linear-gradient(120deg, #ffe6f1, #efe4ff 45%, #dcecff); }
.news-copy h2 { margin-bottom: 10px; }
.news-copy p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.news-row { display: flex; gap: 10px; }
.news-row input { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(13,12,34,.12); font: inherit; font-size: 16px; background: #fff; }
.news-row input:focus { outline: none; border-color: rgba(234,76,137,.5); box-shadow: 0 0 0 4px rgba(234,76,137,.12); }
.news-row .btn-dark { height: 52px; }
.news-row .btn-dark[disabled] { opacity: .6; cursor: wait; }
.news-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.news-consent input { margin-top: 2px; accent-color: var(--ink); }
.news-msg { min-height: 20px; margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.news-msg.ok { color: #13795b; } .news-msg.err { color: #c0392b; }
@media (max-width: 900px) {
  .ab-founder { grid-template-columns: 1fr; gap: 36px; }
  .about .ab-founder { padding-bottom: 72px; }
  .ab-stats h2 { padding-top: 56px; }
  .ab-photo { max-width: 420px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card { grid-template-columns: 1fr; padding: 32px 24px; }
}
@media (max-width: 600px) {
  .stat { padding: 18px 16px; }
  .about .hero-left { padding-bottom: 40px; }
  .about .hero .o-strip { margin-top: 24px; }
  .about .ab-founder { padding: 0 16px 56px; gap: 28px; }
  .about .ab-stats { padding: 0 16px 56px; }
  .ab-stats h2 { padding-top: 48px; margin-bottom: 20px; }
  .about .ab-news { padding: 0 16px 64px; }
  .ab-word p { font-size: 16px; }
  .news-row { flex-direction: column; }
  .news-row .btn-dark { justify-content: center; }
}
/* Глянцевые карточки — только на главной (body.home) */
body.home .thumb { border-radius: 14px; isolation: isolate; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); transition: box-shadow .3s, transform .3s; }
body.home .thumb:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); transform: translateY(-2px); }
/* кнопка «Download» на карточке главной */
.ob.dlb { width: auto; height: 40px; padding: 0 16px 0 13px; gap: 7px; border-radius: 999px; display: inline-flex; align-items: center;
  font: 600 14px var(--font); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.15); transition: transform .15s, background .2s; }
.ob.dlb:hover { color: var(--ink); background: #f3f3f4; }
.ob.dlb:active { transform: scale(.96); }
/* главная: на широких экранах — ровно 4 в ряд */
body.home .thumb img { filter: saturate(1.08) contrast(1.03); }
/* белая глянцевая плёнка (::before) убрана 10.11 — съедала сочность цвета */
body.home .thumb .over { z-index: 3; }
@media (prefers-reduced-motion: reduce) { body.home .thumb:hover { transform: none; } }
.g-strip { background: linear-gradient(90deg, #e9ffd6, #b6f58a, #5fe08c, #1fc27f, #14a3a0, #0d6b52, #06352a); }
.r-strip { background: linear-gradient(90deg, #ffd9cc, #ff9a8a, #ff5a6a, #e0284e, #b0173c, #6e0f26, #3a0814); }

/* filter bar */
.wrap { max-width: 1680px; margin: 0 auto; padding: 0 32px 72px; }
.fbar { display: flex; align-items: center; gap: 16px; padding: 8px 0 24px; }
.sel-wrap { position: relative; }
.sel-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
#sort { appearance: none; height: 40px; padding: 0 40px 0 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: 600 14px var(--font); color: var(--ink); cursor: pointer; }
.chips { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.chips > :first-child { margin-left: auto; } .chips > :last-child { margin-right: auto; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.chip:hover { color: var(--ink); background: var(--soft); }
.chip.on { background: var(--soft); color: var(--ink); }
.chips.small { flex: none; }
.chips.small > :first-child { margin-left: 0; }
.fpanel { display: flex; flex-wrap: wrap; gap: 32px; padding: 20px 24px; margin: -8px 0 28px; background: #fafafb; border-radius: 12px; border: 1px solid var(--line); }
.fpanel[hidden] { display: none; }
.fgroup { display: flex; align-items: center; gap: 14px; }
.flabel { font-weight: 600; font-size: 14px; }
.hues { display: flex; gap: 8px; }
.hue { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .15s, box-shadow .15s; }
.hue:hover { transform: scale(1.1); }
.hue.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

/* grid */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(max(290px, calc((100% - 72px) / 3)), 1fr)); gap: 40px 36px; }
.shot { min-width: 0; animation: rise .45s cubic-bezier(.2,.7,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0; background: #ececee; }   /* серая плашка до загрузки (11.11) */
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.thumb img.ok { opacity: 1; }
.over { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px; background: linear-gradient(180deg, transparent 62%, rgba(0,0,0,.3)); opacity: 0; transition: opacity .25s; }
.thumb:hover .over, .thumb:focus-visible .over { opacity: 1; }
.over .t { color: #fff; font-weight: 600; font-size: 14px; flex: 1 1 auto; min-width: 0; text-align: left; text-shadow: 0 1px 2px rgba(0,0,0,.25);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* весь альт с точкой в одну строку, хвост — многоточием (10.11) */
.over .acts { display: flex; gap: 10px; flex: none; }
.ob { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); border: 0; transition: color .2s; }
.ob:hover { color: var(--muted); }
.ob.liked { color: var(--pink); }
.meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; min-width: 0; }
.av { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { flex: none; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: #e8e8ea; color: #777; letter-spacing: .02em; }
.badge.g { background: #fdeaf2; color: #c32361; }
.st { margin-left: auto; display: flex; gap: 12px; color: #9e9ea7; font-size: 12px; font-weight: 600; flex: none; }
.st span { display: inline-flex; align-items: center; gap: 4px; }
.st svg { width: 14px; height: 14px; }
.st .liked { color: var(--pink); }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.chips.wrapc { flex-wrap: wrap; overflow: visible; }
#sentinel { height: 1px; }
.feed-end { text-align: center; color: var(--muted); font-size: 14px; margin: 56px 0 0; }
.feed-end[hidden] { display: none; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 60; }
.modal[hidden] { display: none; }
.m-back { position: absolute; inset: 0; background: rgba(0,0,0,.8); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.modal { --sw: min(1180px, calc(100% - 184px)); --gap: calc((100% - var(--sw)) / 2); }
body.portrait .modal { --sw: min(900px, calc(100% - 184px)); }
.m-close { position: absolute; top: 40px; right: calc(var(--gap) - 64px); z-index: 3; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; transition: background .2s; }
.m-close:hover { background: rgba(255,255,255,.24); }
.m-nav { position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: 0 6px 24px rgba(0,0,0,.35); transform: translateY(-50%); transition: transform .15s, box-shadow .15s; }
.m-nav:hover { transform: translateY(-50%) scale(1.08); box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.m-nav:active { transform: translateY(-50%) scale(.96); }
.m-prev { left: calc(var(--gap) - 72px); } .m-next { right: calc(var(--gap) - 72px); }
.m-sheet { position: absolute; top: 40px; bottom: 0; left: var(--gap); width: var(--sw); background: #fff; border-radius: 24px 24px 0 0;
  overflow-y: auto; overscroll-behavior: contain; animation: up .35s cubic-bezier(.2,.8,.2,1) both; box-shadow: 0 -10px 60px rgba(0,0,0,.3);
  scrollbar-width: none; -ms-overflow-style: none; }
.m-sheet::-webkit-scrollbar { display: none; }   /* прокрутка работает, полоса скрыта */
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.m-in { padding: 40px 48px 80px; }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.m-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.m-who img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.m-who h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; line-height: 1.25; }
.m-who p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.m-acts { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: #c9c9cf; }
.icon-btn.liked { color: var(--pink); border-color: #f7bfd4; }
.icon-btn.saved { color: var(--ink); background: var(--soft); }
.m-fig { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.m-fig img { width: 100%; height: 100%; object-fit: cover; }
.m-info { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-top: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.m-info h3, .m-more h3 { font-size: 16px; margin: 0 0 16px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.sw { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border: 0; background: none; padding: 0; font: 500 13px var(--font); color: var(--ink-2); }
.sw i { width: 72px; height: 72px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); transition: transform .15s; }
.sw:hover i { transform: translateY(-2px); }
.m-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin: 38px 0 0; }
.m-dl dt { color: var(--muted); font-size: 13px; }
.m-dl dd { margin: 2px 0 0; font-weight: 600; }
.m-more { margin-top: 40px; }
.grid.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: 1680px; margin: 0 auto; padding: 56px 32px 40px; display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.foot-brand { max-width: 340px; }
.foot-brand p { color: var(--ink-2); margin: 16px 0 0; }
.foot-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-cols h4 { margin: 0 0 4px; font-size: 14px; }
.foot-cols a:hover { color: var(--pink); }
.foot-cols span { color: var(--ink-2); }
.foot-bottom { max-width: 1680px; margin: 0 auto; padding: 0 32px 40px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

@media (max-width: 1000px) {
  .search { width: auto; flex: 1; }
  .fbar { flex-wrap: wrap; }
  .chips { order: 3; flex-basis: 100%; }
  .chips > :first-child { margin-left: 0; }
  #ftoggle { margin-left: auto; }
  .m-info { grid-template-columns: 1fr; gap: 8px; }
  .grid.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .top-in { padding: 12px 16px 8px; gap: 10px 12px; height: auto; flex-wrap: wrap; }
  .nav { order: 3; flex-basis: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; }
  .nav a { padding: 6px 14px; font-size: 14px; }
  .logo { font-size: 22px; }
  /* вторая шапка — поиск, как на 4kcaptures.com (11.11): лого+гамбургер / поиск; разделы — в гамбургере */
  .top { background: #fff; box-shadow: 0 1px 20px rgba(0,0,0,.1); }
  .top-in { padding: 10px 16px; gap: 10px 12px; }
  .nav { display: none; }
  .burger { order: 1; margin-left: auto; }
  .search { order: 2; flex: 1 1 100%; }
  .top .search { height: 42px; padding: 0 16px 0 20px; background: #f1f1f1; }
  .top .search svg { order: 2; flex: none; }
  .top .search input { font-size: 16px; }   /* 16px — iOS не зумит при фокусе */
  .top .search input::placeholder { color: #6b6b72; }
  .btn-dark span { display: none; }
  .btn-dark { padding: 0 15px; }
  .burger { width: 44px; height: 44px; }
  .menu { right: 16px; top: 60px; }
  .m-acts .btn-dark span { display: inline; }
  .search { height: 44px; padding: 0 14px; }
  .hero { padding: 40px 16px 36px; }
  .hero-left { padding: 28px 16px; }
  .lead { font-size: 16px; }
  .hero-search { height: 56px; }
  .stats { gap: 24px; }
  .wrap { padding: 0 16px 56px; }
  .grid { grid-template-columns: 1fr; gap: 28px; }
  body.portrait .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  body.portrait .meta .badge, body.portrait .st span:last-child { display: none; }
  body.square .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  body.square .meta .badge, body.square .st span:last-child { display: none; }
  .cgrid, .colls .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .colls-h h2 { font-size: 20px; }
  .m-fig.portrait { height: auto; width: 100%; }
  .modal, body.portrait .modal { --sw: 100%; --gap: 0px; }
  .m-sheet { top: 52px; border-radius: 18px 18px 0 0; }
  .m-in { padding: 28px 16px 32px; }
  /* модалка (11.11): без стрелок, крестик внутри окна справа сверху */
  .m-nav { display: none; }
  .m-close { top: 64px; right: 12px; width: 40px; height: 40px; background: #f3f3f4; color: var(--ink); }
  .m-close:hover { background: #e7e7ea; }
  .m-head { padding-right: 44px; }
  /* карточки (11.11): скачивание — квадрат вплотную к правому нижнему углу, как на wallpaperset.com */
  .over { opacity: 1; padding: 0; background: none; pointer-events: none; }
  .over .t, .over .acts .ob:not(.dlb) { display: none; }
  .over .acts { position: absolute; right: 0; bottom: 0; }
  .ob.dlb { pointer-events: auto; width: 30px; height: 30px; padding: 0; gap: 0; justify-content: center; border-radius: 8px 0 0 0;
    background: rgba(0,0,0,.5); color: #fff; box-shadow: none; }
  .ob.dlb:hover { background: rgba(0,0,0,.6); color: #fff; }
  .ob.dlb span { display: none; }
  .ob.dlb svg { width: 15px; height: 15px; }
  .trend > span:first-child { display: none; }   /* главная, хиро: без надписи «Trending searches» (11.11) */
  .sw i { width: 56px; height: 56px; }
  .foot-in, .foot-bottom { padding-left: 16px; padding-right: 16px; }
  .foot-cols { gap: 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 11.11: строка лицензии в окне скачивания и ссылка Terms в футере */
.m-dl .m-lic { grid-column: 1 / -1; }
.m-dl a, .foot-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom a:hover { color: var(--ink); }

/* 11.11: шапка — поиск сразу за лого, справа Explore ▾ (выпадашка разделов) и Popular, затем гамбургер */
@media (min-width: 601px) {
  .top .search { margin-left: 0; flex: 1 1 auto; width: auto; max-width: 560px; }
  .nav { margin-left: auto; align-items: center; }
}
.nav .dd { position: relative; }
.nav .dd-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 15px var(--font); padding: 8px 14px; border-radius: 999px; border: 0; background: none; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.nav .dd-btn svg { transition: transform .2s; }
.nav .dd-btn:hover, .nav .dd-btn[aria-expanded="true"] { background: var(--soft); }
.nav .dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav .dd-btn.on { background: var(--ink); color: #fff; }
.dd-menu { position: absolute; left: 0; top: calc(100% + 10px); z-index: 40; min-width: 220px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.04); }
.dd-menu[hidden] { display: none; }
.nav .dd-menu a { padding: 10px 14px; border-radius: 10px; }
.nav .dd-menu a.on { background: var(--soft); color: var(--ink); }

/* 11.11: экраны от 2300 px (2560) — сайт шире на одну колонку, размер карточек прежний */
@media (min-width: 2300px) {
  .top-in, .wrap, .hero-left, .foot-in, .foot-bottom { max-width: 2240px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(max(290px, calc((100% - 108px) / 4)), 1fr)); }
  body.portrait .grid, body.square .grid { grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 120px) / 6)), 1fr)); }
  .cgrid { grid-template-columns: repeat(auto-fill, minmax(max(210px, calc((100% - 72px) / 4)), 1fr)); }
  .colls .cgrid { grid-template-columns: repeat(auto-fill, minmax(max(190px, calc((100% - 120px) / 6)), 1fr)); }
}

/* 11.11: подсказки поиска в шапке (suggest.js), как на wallpaperset.com */
.top .search { position: relative; }
.sg { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 45; max-height: min(70vh, 560px); overflow-y: auto; padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.04); text-align: left; }
.sg[hidden] { display: none; }
.sg a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.sg a:hover, .sg a.on { background: var(--soft); }
.sg img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #ececee; }
.sg span { display: flex; flex-direction: column; min-width: 0; }
.sg b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg small { font-size: 13px; color: var(--muted); }
.sg-note { padding: 10px 12px 6px; font-size: 13px; color: var(--muted); }
.sg a.sg-all { justify-content: center; font-weight: 600; font-size: 14px; padding: 12px 10px; }
