/* Стили оформления «cork» — ktodarit.ru. Общие — /t/core.css. */
:is(.th-cork, .th-fridge, .th-shop, .th-techno, .th-cells, .th-rock) .tt { --tt-l: 2; }
:is(.th-cork, .th-fridge, .th-shop, .th-techno, .th-cells, .th-rock) .ph:has(.gift-img) { display: block; overflow: hidden; }
:is(.th-cork, .th-fridge, .th-shop, .th-techno, .th-cells, .th-rock) .hero { position: relative; overflow: hidden; }
:is(.th-cork, .th-fridge, .th-shop, .th-techno, .th-cells, .th-rock) h1 { position: relative; overflow-wrap: anywhere; }
:is(.th-cork, .th-fridge, .th-shop, .th-techno, .th-cells, .th-rock) .greet { position: relative; white-space: pre-line; overflow-wrap: anywhere; }
:is(.th-cork, .th-fridge, .th-shop, .th-techno, .th-cells, .th-rock) .sec-sub { text-align: center; max-width: 580px; margin: 0 auto 40px; padding: 0 20px; line-height: 1.5; }
:is(.th-cork, .th-fridge, .th-shop, .th-techno, .th-cells, .th-rock) .list { max-width: 1120px; margin: 0 auto; padding: 14px 20px 70px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 40px 26px; }
:is(.th-cork, .th-fridge, .th-shop, .th-techno, .th-cells, .th-rock) .card { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
:is(.th-cork, .th-fridge, .th-shop, .th-techno, .th-cells, .th-rock) .card h3 { width: 100%; overflow-wrap: anywhere; }
:is(.th-cork, .th-fridge, .th-shop, .th-techno, .th-cells, .th-rock) .card .btn { margin-top: auto; cursor: pointer; }
:is(.th-cork, .th-fridge, .th-shop, .th-techno, .th-cells, .th-rock) .taken .btn { padding-left: 16px; padding-right: 16px; white-space: nowrap; }
.th-cork .note, .th-fridge .sheet, .th-shop .sign, .th-techno .txt, .th-cells .in { container-type: inline-size; }
.th-cork { --ink: #2b2118; color: var(--ink); font-family: "Manrope", sans-serif;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .16 0 0 0 0 .05 0 0 0 1.7 -.6'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .86 0 0 0 0 .62 0 0 0 1.8 -.85'/%3E%3C/filter%3E%3Crect width='170' height='170' filter='url(%23m)'/%3E%3C/svg%3E"),
    #b07a45; }
.th-cork .pin { position: absolute; z-index: 4; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85) 0 2px, var(--pc) 4px, color-mix(in srgb, var(--pc) 55%, #000) 100%); box-shadow: 3px 5px 4px rgba(0, 0, 0, .38); }
.th-cork .hero { padding: 34px 18px 10px; }
.th-cork .board { position: relative; max-width: 1240px; min-height: 660px; margin: 0 auto; display: flex; align-items: center; justify-content: center; padding: 60px 20px;
  border: 18px solid transparent; border-radius: 8px; box-shadow: inset 0 6px 22px rgba(0, 0, 0, .4), 0 14px 30px rgba(0, 0, 0, .4);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .18 0 0 0 0 .06 0 0 0 1.6 -.6'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E") padding-box,
    radial-gradient(ellipse at 50% 40%, #d7a26a, #c08a52 70%) padding-box,
    linear-gradient(135deg, #b07a45, #6e4522 30%, #a06d3a 55%, #5c391b 80%, #8a5a2e) border-box; }
.th-cork .yarn { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.th-cork .yarn path { fill: none; stroke: #c1121f; stroke-width: 2.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 3px 1.5px rgba(0, 0, 0, .35)); stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: ck-yarn 2.4s 1.1s ease forwards; }
@keyframes ck-yarn { to { stroke-dashoffset: 0; } }
.th-cork .bit { position: absolute; z-index: 2; transform: translate(-50%, -9px) rotate(var(--r)) scale(var(--sc, 1)); transform-origin: 50% 9px; animation: ck-in .55s cubic-bezier(.3, 1.5, .5, 1) backwards; filter: drop-shadow(0 8px 8px rgba(40, 20, 0, .4)); transition: rotate .3s; }
.th-cork .bit:hover { rotate: 4deg; }
.th-cork .bit .pin { left: 50%; top: 0; margin-left: -9px; }
.th-cork .b1 { animation-delay: .15s; }
.th-cork .b2 { animation-delay: .3s; }
.th-cork .b3 { animation-delay: .45s; }
.th-cork .b4 { animation-delay: .6s; }
.th-cork .b5 { animation-delay: .75s; }
.th-cork .b6 { animation-delay: .9s; }
@keyframes ck-in { from { opacity: 0; translate: 0 -50px; } }
.th-cork .tkt svg { display: block; width: 160px; }
.th-cork .ph1 { margin: 0; width: 132px; padding: 8px 8px 30px; background: #fff; position: relative; }
.th-cork .ph1 svg { display: block; width: 100%; }
.th-cork .ph1 figcaption { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font: 600 21px "Caveat", cursive; color: #444; }
.th-cork .sn1 { width: 132px; height: 120px; display: grid; place-items: center; padding: 14px 8px 8px; background: linear-gradient(#fff38a, #ffe55c); font: 700 25px/1.05 "Caveat", cursive; text-align: center; color: #5b3d00; }
.th-cork .crd svg { display: block; width: 150px; }
.th-cork .star { display: block; width: 84px; margin-top: 6px; }
.th-cork .lst { width: 150px; padding: 22px 14px 12px; display: flex; flex-direction: column; text-align: left; font: 500 21px/1.25 "Caveat", cursive; color: #2b3a67;
  background: repeating-linear-gradient(#fffdf6 0 25px, #c9dcef 25px 26px); background-position: 0 22px; background-color: #fffdf6; }
.th-cork .lst b { color: #c1121f; }
.th-cork .lst s { opacity: .6; }
.th-cork .note { position: relative; z-index: 3; width: min(560px, 100%); padding: 50px 40px 40px; text-align: center; transform: rotate(-1.2deg);
  background: linear-gradient(#e6474f, #e6474f) 0 38px / 100% 2px no-repeat, repeating-linear-gradient(#fffdf6 0 33px, #cfe0f0 33px 34px) 0 44px / 100% calc(100% - 60px) no-repeat, #fffdf6;
  box-shadow: 0 16px 30px rgba(50, 25, 0, .45), 0 2px 4px rgba(0, 0, 0, .2); animation: ck-in .6s backwards; }
.th-cork .note > .pin:nth-of-type(1) { left: 20px; top: 12px; }
.th-cork .note > .pin:nth-of-type(2) { right: 20px; top: 12px; }
.th-cork .pre { margin: 0; font: 700 28px "Caveat", cursive; color: #c1121f; }
.th-cork h1 { margin: 4px 0 0; font: 700 min(calc(clamp(64px, 11vw, 140px) * max(var(--k, 1), .7)), calc(100cqi / var(--w, 1) / .5))/1 "Amatic SC", sans-serif; color: #1d1a17; }
.th-cork .greet { margin: 14px 0 0; font: 500 25px/1.3 "Caveat", cursive; color: #2b3a67; }
.th-cork .sec { display: table; margin: 56px auto 14px; padding: 6px 30px 2px; background: #fffdf6; font: 700 clamp(44px, 6vw, 60px)/1 "Amatic SC", sans-serif; transform: rotate(-1.5deg); box-shadow: 0 8px 14px rgba(40, 20, 0, .35); position: relative; }
.th-cork .sec::before, .th-cork .sec::after { content: ""; position: absolute; top: -10px; width: 60px; height: 22px; background: rgba(255, 240, 200, .75); }
.th-cork .sec::before { left: -18px; transform: rotate(-24deg); }
.th-cork .sec::after { right: -18px; transform: rotate(22deg); }
.th-cork .sec-sub { color: #fff8ec; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.th-cork .pk { --pp: #fffdf6; padding: 36px 18px 20px; background: var(--pp); transform: rotate(var(--r)); box-shadow: 0 10px 18px rgba(40, 20, 0, .4); transition: transform .25s; }
.th-cork .pk:hover { transform: rotate(0) translateY(-4px); }
.th-cork .pk.v1 { --pp: #ecd5a8; }
.th-cork .pk.v2 { --pp: #fff59d; }
.th-cork .pk.v3 { background: repeating-linear-gradient(#f6faff 0 27px, #d3e3f3 27px 28px); }
.th-cork .pk > .pin { left: 50%; top: 10px; margin-left: -9px; }
.th-cork .pk .ph { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 64px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07); transition: opacity .3s, filter .3s; }
.th-cork .pk.v0 .ph { background: #f3ede2; }
.th-cork .pk h3 { margin: 14px 0 0; font: 700 25px/1.1 "Caveat", cursive; }
.th-cork .pr { margin: 4px 0 14px; font: 700 23px "Caveat", cursive; color: #c1121f; }
.th-cork .btn { border: 0; border-radius: 6px; padding: 11px 26px; background: #1d3557; color: #fff; font: 700 15px "Manrope", sans-serif; box-shadow: 0 3px 0 #0d1b2e; transition: transform .15s; }
.th-cork .btn:hover:not(:disabled) { transform: translateY(-2px); }
.th-cork .taken .btn { background: #2a9d8f; box-shadow: 0 3px 0 #1d6f66; }
.th-cork .taken .ph { opacity: .55; filter: grayscale(.5); }
.th-cork .tag { display: none; position: absolute; z-index: 3; top: 22px; right: -12px; padding: 7px 14px 5px 32px; background: #2a9d8f; color: #fff; font: 700 22px "Caveat", cursive; transform: rotate(8deg); box-shadow: 2px 6px 8px rgba(0, 0, 0, .3); clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); }
.th-cork .tag .pin { left: 12px; top: 50%; margin-top: -8px; width: 16px; height: 16px; box-shadow: none; }
.th-cork .taken .tag { display: block; animation: ck-in .5s cubic-bezier(.3, 1.5, .5, 1); }
.th-cork footer:not(.ktd-foot) { text-align: center; padding: 10px 16px 50px; font: 700 32px "Caveat", cursive; color: #fff8ec; text-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
@media (max-width: 1000px) {
  .th-cork .b3, .th-cork .b4 { display: none; }
}
@media (max-width: 640px) {
  .th-cork .hero { padding: 16px 10px 6px; }
  .th-cork .board { min-height: 0; padding: 150px 12px 170px; border-width: 12px; }
  .th-cork .yarn { display: none; }
  .th-cork .bit { --sc: .72; }
  .th-cork .b1 { left: 28% !important; top: 18px !important; }
  .th-cork .b2 { left: 76% !important; top: 14px !important; }
  .th-cork .b5 { left: 20% !important; top: calc(100% - 128px) !important; }
  .th-cork .b6 { left: 68% !important; top: calc(100% - 150px) !important; }
  .th-cork .note { padding: 46px 20px 28px; }
}
