/* Кимка: стол мастера. Коврик для резки, фото на скотче, стикеры, каталожные карточки с рукописными ценами. */
:root {
  --mat: #b7bdbb; --ink: #1f2120; --mute: #4d504f; --red: #c8322b; --red-deep: #a8281f;
  --paper: #fdfcf8; --note: #f7e9a6; --pink: #f9d7df; --kid1: #fbe6ec; --kid2: #e2f1e6; --kid3: #fbf1c6; --tape: rgba(243, 232, 180, .85);
  --hand: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;
  --text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 10px 24px rgba(20, 30, 30, .18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .18), 0 6px 14px rgba(20, 30, 30, .18);
  --wrap: 1320px; --gutter: 16px;
}
@media (min-width: 600px) { :root { --gutter: 32px; } }
@media (min-width: 1000px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--mat);
  background-image:
    linear-gradient(rgba(255, 255, 255, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .55) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .28) 1px, transparent 1px);
  background-size: 150px 150px, 150px 150px, 30px 30px, 30px 30px;
}
@media (min-width: 1000px) { body { background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1; }
figure { margin: 0; }
.hand { font-family: var(--hand); font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- бумажки ---------- */
.note { position: relative; background: var(--note); padding: 22px 22px 26px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.note--pink { background: var(--pink); }
.polaroid { position: relative; display: block; background: #fbfaf6; padding: 9px 9px 50px; box-shadow: 0 2px 3px rgba(0, 0, 0, .2), 0 12px 26px rgba(20, 30, 30, .22); text-decoration: none; color: var(--ink); }
.polaroid::before { content: ""; position: absolute; left: 50%; top: -12px; width: 90px; height: 26px; margin-left: -45px; background: var(--tape); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); transform: rotate(-6deg); }
.polaroid img { width: 100%; }
.polaroid figcaption, .polaroid__cap { position: absolute; left: 11px; right: 11px; bottom: 8px; font-family: var(--hand); font-weight: 700; font-size: 20px; line-height: 1; color: #2a2c2b; max-height: 2em; overflow: hidden; }
@media (min-width: 1000px) { .polaroid { padding: 12px 12px 60px; } .polaroid figcaption, .polaroid__cap { left: 14px; right: 14px; bottom: 10px; font-size: 23px; } }
.annot { font-family: var(--hand); font-weight: 500; font-size: 21px; line-height: 1.05; color: #3c3f3e; transform: rotate(-2deg); margin: 0; }
@media (min-width: 1000px) { .annot { font-size: 24px; } }
.h2 { font-family: var(--hand); font-weight: 700; font-size: 46px; line-height: 1; transform: rotate(-1.2deg); transform-origin: left bottom; }
@media (min-width: 1000px) { .h2 { font-size: 64px; } }
.label { font-family: var(--hand); font-weight: 700; font-size: 26px; line-height: 1; margin: 34px 0 18px; transform: rotate(-3deg); transform-origin: left; }
.label--red { color: var(--red); }
@media (min-width: 1000px) { .label { font-size: 30px; margin: 48px 0 26px; } }
.btn-sticker { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: 1; text-decoration: none; transform: rotate(2deg); box-shadow: 0 6px 14px rgba(120, 20, 15, .3); transition: transform .15s, background .15s; }
.btn-sticker:hover { background: var(--red-deep); transform: rotate(0) translateY(-1px); }
.btn-outline { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); font-size: 24px; line-height: 1; text-decoration: none; transform: rotate(-1deg); box-shadow: var(--shadow-sm); transition: transform .15s; }
.btn-outline:hover { transform: rotate(0) translateY(-1px); }
@media (min-width: 1000px) { .btn-sticker { padding: 12px 26px; font-size: 28px; } .btn-outline { font-size: 26px; padding: 10px 24px; } }
.stamp { position: absolute; right: -10px; top: -8px; padding: 3px 8px; border: 2px solid var(--red); border-radius: 4px; color: var(--red); font-size: 18px; line-height: 1; transform: rotate(-8deg); opacity: .9; background: rgba(251, 250, 246, .7); }
@media (min-width: 1000px) { .stamp { right: -14px; top: -10px; padding: 4px 10px; font-size: 22px; } }
.ruled { background: var(--paper) repeating-linear-gradient(transparent 0 27px, #d9e3ea 27px 28px); background-position: 0 18px; box-shadow: var(--shadow); padding: 22px 22px 26px; }
.ruled p { line-height: 28px; margin: 0 0 14px; }
@media (min-width: 1000px) { .ruled { background: var(--paper) repeating-linear-gradient(transparent 0 31px, #d9e3ea 31px 32px); background-position: 0 24px; padding: 34px 44px 40px; } .ruled p { line-height: 32px; font-size: 18px; margin: 0 0 16px; } }

/* ---------- шапка ---------- */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 18px; padding-bottom: 8px; }
.top__brand { display: flex; align-items: flex-start; gap: 16px; }
.brand { display: inline-block; background: var(--paper); box-shadow: var(--shadow-sm); padding: 4px 14px 6px; font-family: var(--hand); font-weight: 700; font-size: 44px; line-height: 1; text-decoration: none; transform: rotate(-3deg); }
.brand__tag { display: none; margin: 14px 0 0; font-weight: 500; font-size: 22px; line-height: 1.05; color: #3c3f3e; max-width: 15em; transform: rotate(-3deg); }
.dots { display: flex; gap: 8px; margin-top: 4px; }
.dots a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .15s; }
.dots a:nth-child(1) { transform: rotate(-6deg); } .dots a:nth-child(2) { transform: rotate(4deg) translateY(4px); } .dots a:nth-child(3) { transform: rotate(-2deg); } .dots a:nth-child(4) { transform: rotate(7deg) translateY(6px); }
.dots a:hover { transform: rotate(0) scale(1.06); }
.dots svg { width: 22px; height: 22px; }
@media (min-width: 1000px) {
  .top { padding-top: 36px; }
  .brand { font-size: 66px; padding: 6px 22px 10px; }
  .brand__tag { display: block; }
  .dots { gap: 10px; }
  .dots a { width: 56px; height: 56px; }
  .dots svg { width: 26px; height: 26px; }
}

/* ---------- первый экран ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 22px; padding-bottom: 30px; }
.hero__left { position: relative; }
.hero__note { position: relative; z-index: 2; padding: 26px 24px 34px; transform: rotate(-1.5deg); }
.hero__note h1 { font-size: 42px; line-height: .98; }
.hero__note p { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: #3a3d3c; }
.hero__note .btn-sticker { position: absolute; left: 20px; bottom: -24px; }
.hero__mascot { width: 32%; flex: none; margin-top: 40px; transform: rotate(-6deg); }
.hero__news { z-index: 2; margin: 72px 0 0 24%; padding: 14px 18px; transform: rotate(-1.5deg); }
.note__title { font-size: 26px; line-height: 1; margin: 0 0 6px; }
.hero__newslist li { font-size: 14px; line-height: 1.35; margin-bottom: 6px; }
.hero__newslist a { text-decoration: none; font-weight: 500; }
.hero__newslist a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero__newslist time { color: var(--mute); font-size: 12px; white-space: nowrap; }
.hero__newsall { font-weight: 500; font-size: 20px; color: var(--red); text-decoration: none; }
.hero__newsall:hover { text-decoration: underline; }
.hero__photos { position: relative; display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; padding-top: 10px; }
.polaroid--charm { width: 58%; transform: rotate(5deg); margin-top: 16px; }
.polaroid--tray { display: none; }
.hero__annot { width: 100%; margin: 10px 0 0 6px; font-size: 20px; max-width: 18em; transform: rotate(-3deg); }
@media (min-width: 600px) {
  .hero__note { padding: 34px 36px 40px; }
  .hero__note h1 { font-size: 50px; }
  .hero__note p { font-size: 16px; }
  .hero__mascot { width: 17%; margin-top: 60px; }
  .polaroid--charm { width: 34%; }
  .polaroid--tray { display: block; width: 42%; transform: rotate(-4deg); }
  .hero__news { margin-left: 8%; width: 60%; }
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: 560px 1fr; gap: 56px; padding-top: 30px; padding-bottom: 80px; align-items: start; }
  .hero__note { padding: 38px 40px 44px; transform: rotate(-2deg); }
  .hero__note h1 { font-size: 58px; }
  .hero__note p { font-size: 17px; margin-top: 18px; max-width: 430px; }
  .hero__note .btn-sticker { left: 36px; bottom: -26px; }
  .hero__mascot { position: absolute; z-index: 1; left: -150px; top: 300px; width: 200px; margin: 0; }
  .hero__news { margin: 84px 0 0 8%; width: 330px; padding: 16px 20px; transform: rotate(1.5deg); }
  .hero__photos { display: block; min-height: 720px; padding-top: 0; }
  .polaroid--charm { position: absolute; left: 0; top: 0; width: 280px; margin: 0; transform: rotate(4deg); }
  .polaroid--tray { position: absolute; right: 0; top: 200px; width: 360px; transform: rotate(-5deg); }
  .hero__annot { position: absolute; right: 0; top: 570px; width: 300px; margin: 0; font-size: 26px; max-width: none; }
}

/* ---------- мастер-классы: карточки на столе ---------- */
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
@media (min-width: 1000px) { .sec-head { flex-direction: row; align-items: flex-end; gap: 48px; margin-top: 10px; } .sec-head .annot { margin-bottom: 10px; } }
.mk { position: relative; padding-bottom: 20px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card a { position: relative; display: grid; grid-template-columns: 116px 1fr; gap: 12px; padding: 10px; background: var(--paper); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s; }
.card:nth-child(5n+1) a { transform: rotate(-1.2deg); } .card:nth-child(5n+2) a { transform: rotate(1deg) translateX(8px); } .card:nth-child(5n+3) a { transform: rotate(-.8deg); } .card:nth-child(5n+4) a { transform: rotate(1.4deg) translateX(6px); } .card:nth-child(5n) a { transform: rotate(-1deg); }
.card a:hover { transform: rotate(0) translateY(-3px); }
.card__img { display: block; width: 116px; height: 126px; overflow: hidden; background: #f4f8f5; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img--empty { display: grid; place-items: center; }
.card__img--empty img { width: 60%; height: auto; object-fit: contain; }
.card__body { display: block; padding-right: 60px; }
.card__title { display: block; font-size: 27px; line-height: .95; margin: 4px 0 6px; }
.card__meta { display: block; font-size: 13px; line-height: 1.4; color: var(--mute); }
.card__price { position: absolute; right: 14px; bottom: 8px; font-size: 30px; line-height: 1; color: var(--red); }
.card--kid:nth-child(3n+1) a { background: var(--kid1); } .card--kid:nth-child(3n+2) a { background: var(--kid2); } .card--kid:nth-child(3n) a { background: var(--kid3); }
.mk__mascot { display: none; }
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 34px 22px; padding: 6px 0 10px; }
  .card a { display: block; padding: 14px 14px 56px; height: 100%; }
  .card:nth-child(5n+1) a { transform: rotate(-2deg); } .card:nth-child(5n+2) a { transform: rotate(1.5deg) translateY(-8px); } .card:nth-child(5n+3) a { transform: rotate(-1deg) translateY(4px); } .card:nth-child(5n+4) a { transform: rotate(2deg) translateY(-10px); } .card:nth-child(5n) a { transform: rotate(-1.5deg) translateY(2px); }
  .card__img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .card__body { padding-right: 0; }
  .card__title { font-size: 30px; margin: 12px 0 6px; }
  .card__price { right: 16px; bottom: 12px; font-size: 34px; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 22px; }
  .mk__mascot { display: block; position: absolute; right: 60px; top: -30px; width: 130px; transform: rotate(8deg); pointer-events: none; }
}

/* ---------- готовые работы: полароиды ---------- */
.goods { padding-bottom: 30px; }
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; padding: 20px 0 10px; }
.works > li:nth-child(4n+1) .polaroid { transform: rotate(-3deg); } .works > li:nth-child(4n+2) .polaroid { transform: rotate(2.5deg) translateY(12px); } .works > li:nth-child(4n+3) .polaroid { transform: rotate(2deg); } .works > li:nth-child(4n) .polaroid { transform: rotate(-2.5deg) translateY(10px); }
.polaroid--work img { aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid--work:hover { transform: rotate(0) translateY(-4px) !important; }
.polaroid--work { transition: transform .2s; }
.goods__all { margin: 30px 0 0; }
@media (min-width: 600px) { .works { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 26px; } }
@media (min-width: 1000px) {
  .works { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 44px 28px; padding-top: 34px; }
  .works > li:nth-child(5n+1) .polaroid { transform: rotate(-3deg); } .works > li:nth-child(5n+2) .polaroid { transform: rotate(2deg) translateY(20px); } .works > li:nth-child(5n+3) .polaroid { transform: rotate(-1.5deg); } .works > li:nth-child(5n+4) .polaroid { transform: rotate(3deg) translateY(24px); } .works > li:nth-child(5n) .polaroid { transform: rotate(-2deg); }
  .goods__all { margin-top: 48px; }
}

/* ---------- кто я ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
.about__sheet { transform: rotate(1deg); }
.about__sheet h2 { font-size: 40px; margin-bottom: 12px; }
.about__city { color: var(--mute); }
.about__cta { padding-top: 6px; }
.about__side { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.about__mascot { width: 120px; flex: none; margin-top: 30px; }
.polaroid--about { width: 70%; max-width: 380px; transform: rotate(3deg); }
.polaroid--about img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 1000px) {
  .about { grid-template-columns: 660px 1fr; gap: 48px; padding-top: 60px; padding-bottom: 70px; align-items: start; }
  .about__sheet h2 { font-size: 54px; margin-bottom: 14px; }
  .about__side { gap: 30px; }
  .about__mascot { width: 170px; margin-top: 40px; }
  .polaroid--about { width: 380px; }
}

/* ---------- подвал ---------- */
.foot { border-top: 2px dashed rgba(31, 33, 32, .35); margin-top: 10px; }
.foot__in { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 26px 0 30px; }
.foot__name { font-size: 28px; line-height: 1; margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 500; font-size: 20px; color: #3c3f3e; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__mascot { width: 46px; margin-left: auto; }
@media (min-width: 1000px) { .foot__in { padding: 40px 0 44px; gap: 8px 40px; } .foot__name { font-size: 34px; } .foot__mascot { width: 52px; } }

/* ---------- страница мастер-класса: лист бумаги на столе ---------- */
.mkpage { padding-top: 16px; padding-bottom: 50px; }
.sheet { background: var(--paper); box-shadow: var(--shadow); padding: 22px 20px 28px; transform: rotate(.4deg); }
.sheet--kid { background: var(--kid1); }
.crumbs { font-weight: 500; font-size: 21px; color: #3c3f3e; margin: 0 0 12px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.sheet__in { display: grid; grid-template-columns: 1fr; gap: 26px; }
.sheet__text h1 { font-size: 44px; line-height: .95; margin-bottom: 16px; }
.facts { margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 500; font-size: 22px; line-height: 1.15; }
.facts div { display: flex; gap: 6px; }
.facts dt { color: #3c3f3e; } .facts dd { margin: 0; font-weight: 700; }
.facts__price dd { color: var(--red); }
.sheet__text > p { max-width: 62ch; }
.sheet__text h2 { font-size: 30px; margin: 22px 0 6px; transform: rotate(-1deg); transform-origin: left; }
.sheet__cta { margin-top: 22px; }
.sheet__cover { display: flex; justify-content: center; }
.polaroid--cover { width: 82%; max-width: 380px; transform: rotate(3deg); }
.polaroid--cover img { aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid--empty { display: grid; place-items: center; }
.polaroid--empty img { width: 50%; aspect-ratio: auto; padding: 30px 0; }
.polaroid--empty .polaroid__cap { white-space: normal; font-size: 18px; }
.mkpage__h2 { margin-top: 44px; }
.works--gallery { padding-top: 24px; }
.mkpage__back { margin-top: 40px; }
@media (min-width: 1000px) {
  .mkpage { padding-top: 24px; padding-bottom: 80px; }
  .sheet { padding: 36px 48px 48px; }
  .sheet__in { grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
  .sheet__text h1 { font-size: 66px; }
  .facts { font-size: 26px; gap: 6px 28px; }
  .sheet__text > p { font-size: 17px; }
  .sheet__text h2 { font-size: 34px; }
  .sheet__cover { justify-content: flex-end; padding-top: 10px; }
  .polaroid--cover { width: 360px; }
  .works--gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- новости ---------- */
.newspage { padding-top: 16px; padding-bottom: 50px; }
.newspage .h2 { margin-bottom: 26px; }
.post { max-width: 720px; margin: 0 0 30px; padding: 20px 22px 24px; }
.post:nth-child(even) { transform: rotate(1.2deg); }
.post time { font-weight: 500; font-size: 20px; color: #3c3f3e; }
.post h2 { font-size: 34px; margin: 4px 0 10px; }
.post--empty { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; }
.post--empty p { margin: 0; }
.works--post { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 0 8px; }
@media (min-width: 600px) { .works--post { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .post { padding: 28px 34px 32px; } .post h2 { font-size: 40px; } }

/* ---------- лайтбокс ---------- */
.lb { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(30, 32, 31, .95); }
.lb img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; border-radius: 4px; }
.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .16); color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; display: grid; place-items: center; }
.lb__close { top: 14px; right: 14px; }
.lb__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb button:hover { background: rgba(255, 255, 255, .3); }
body.lb-open { overflow: hidden; }
.lb[hidden], .lb button[hidden] { display: none; }
