/* hero-polish */


@media (min-width: 1100px) {

  #page-home .home-hero { padding-top: 36px; padding-bottom: 20px; }

  #page-home .home-hero h1 { font-size: clamp(48px, 5.2vw, 68px); margin: 6px auto 10px; }

  #page-home .home-hero .lede { font-size: 17px; line-height: 1.45; margin: 0 auto 16px; }

  #page-home .hero-greet { gap: 4px; margin-bottom: 2px; }

  #page-home .cta-row { gap: 24px; align-items: center; flex-wrap: nowrap; }

  #page-home .cta-row .btn {

    height: 48px;

    min-height: 48px;

    padding: 0 22px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

  }

  #page-home .hero-trust {

    margin-top: 12px;

    font-family: var(--font);

    font-size: 14px;

    font-weight: 500;

    letter-spacing: 0;

    text-transform: none;

    line-height: 1.35;

    color: #a8a8a8;

  }

  #page-home .home-cost-note {

    margin: 4px auto 0;

    max-width: 70ch;

    font-size: 13px;

    line-height: 1.35;

    color: #a8a8a8;

  }

  #page-home .showcase { margin-top: 20px; align-items: stretch; }

  #page-home .show-card .kb-main {

    width: 100%;

    height: auto;

    object-fit: contain;

    object-position: center;

    background: #050506;

  }

}

#page-home .show-cap {

  background: linear-gradient(180deg, transparent 8%, rgba(0,0,0,.78));

}

#page-home .show-cap span {

  color: #fff;

  text-shadow: 0 1px 2px rgba(0,0,0,.55);

}

@media (max-width: 600px) {

  #page-home .home-hero {

    height: auto;

    min-height: 0;

    display: flex;

    flex-direction: column;

    padding-bottom: 8px;

    box-sizing: border-box;

  }

  #page-home .hero-greet {

    font-size: 12px;

    letter-spacing: .08em;

    gap: 0;

    margin-bottom: 2px;

    color: #a8a8a8;

  }

  #page-home .hero-greet-note { display: none; }

  #page-home .home-hero h1 {

    font-size: 32px !important;

    line-height: 1.05;

    margin: 6px auto 8px !important;

  }

  #page-home .home-hero .lede {

    font-size: 15px;

    line-height: 1.4;

    margin-bottom: 12px;

  }

  #page-home .cta-row {

    flex-direction: column;

    align-items: stretch;

    flex-wrap: nowrap;

    gap: 12px;

    width: 100%;

    margin-inline: auto;

  }

  #page-home .cta-row .btn {

    width: 100%;

    height: 48px;

    min-height: 48px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

  }

  #page-home .cta-row .btn-ghost {

    border: 1px solid rgba(255,255,255,.16);

    background: rgba(255,255,255,.04);

    color: var(--ink);

  }

  #page-home .hero-trust {

    margin-top: 10px;

    font-family: var(--font);

    font-size: 13px;

    letter-spacing: 0;

    text-transform: none;

    color: #a8a8a8;

  }

  #page-home .home-cost-note {

    margin-top: 2px;

    font-size: 13px;

    line-height: 1.35;

    color: #a8a8a8;

    padding-inline: 0;

  }

  #page-home .home-hero { width: 100%; }

  #page-home .showcase {

    display: block;

    flex: none;

    width: 100%;

    min-width: 0;

    margin-top: 14px;

    overflow: visible;

  }

  #page-home .show-card {

    width: 100%;

    max-width: 100%;

    height: auto;

    min-height: 0;

    padding: 0;

    border: 0;

    position: relative;

    border-radius: 18px;

    overflow: hidden;

    background: #050506;

    cursor: pointer;

  }

  #page-home .show-card .kb { position: relative; }

  #page-home .show-card .kb-main {

    display: block;

    width: 100%;

    height: auto;

    object-fit: contain;

    object-position: center;

    pointer-events: none;

    background: #050506;

  }

  #page-home .show-cap { padding: 36px 14px 12px; }

  #page-home .show-cap span { font-size: 15px; line-height: 1.2; }

}


/* look-v1 */


/* витрина — горизонтальный рандом, не столбик */

#page-home .showcase,

#page-home .showcase.is-reel {

  position: relative;

  display: block;

  max-width: 720px;

  margin-left: auto;

  margin-right: auto;

  grid-template-columns: none;

}

#page-home .show-viewport {

  overflow: hidden;

  border-radius: 22px;

  background: #070708;

  touch-action: pan-y;

}

#page-home .show-reel {

  display: flex;

  width: 100%;

  transition: transform .48s cubic-bezier(.22,1,.36,1);

  will-change: transform;

}

#page-home .showcase.is-reel .show-card {

  flex: 0 0 100%;

  width: 100%;

  max-width: 100%;

  color: inherit;

  font: inherit;

  text-align: left;

  appearance: none;

  -webkit-appearance: none;

  background: #070708;

  border-radius: 0;

}

#page-home .showcase.is-reel .show-card:hover { transform: none; box-shadow: none; }

#page-home .show-card .kb { background: #070708; }

#page-home .showcase.is-reel .kb-main {

  width: 100%;

  height: min(58vh, 560px);

  object-fit: contain;

  object-position: center;

}

#page-home .show-nav {

  position: absolute;

  top: 50%;

  z-index: 3;

  width: 40px;

  height: 40px;

  margin-top: -20px;

  border: 0;

  border-radius: 50%;

  color: #fff;

  background: rgba(0,0,0,.46);

  display: grid;

  place-items: center;

  cursor: pointer;

}

#page-home .show-prev { left: 10px; }

#page-home .show-next { right: 10px; }

#page-home .show-dots {

  display: flex;

  justify-content: center;

  gap: 6px;

  margin-top: 12px;

}

#page-home .show-dots i {

  width: 6px;

  height: 6px;

  border-radius: 50%;

  background: rgba(255,255,255,.28);

}

#page-home .show-dots i.is-on { background: #fff; width: 16px; border-radius: 99px; }

@media (min-width: 701px) {

  #page-home .showcase,

  #page-home .showcase.is-reel { max-width: 820px; }

}



/* барабан */

.wheel-modal .modal-card { max-width: 420px; text-align: center; }

#wheel-title { font-size: 28px; letter-spacing: -.04em; margin: 4px 40px 0; }

#wheel-title::before { content: 'СЛУЧАЙНЫЙ ОБРАЗ'; display: block; font: 600 10px/1 var(--mono); letter-spacing: .12em; color: var(--accent); margin-bottom: 10px; }

.drum-stage { position: relative; margin: 22px auto 16px; max-width: 320px; }

.drum-window {

  height: 228px; overflow: hidden; border-radius: 22px;

  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));

  background: #070708;

  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);

  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);

}

.drum-reel { will-change: transform; }

.drum-item { position: relative; height: 228px; }

.drum-item img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; background: #070708; }

.drum-item span {

  position: absolute; left: 12px; right: 12px; bottom: 12px;

  padding: 8px 10px; border-radius: 12px;

  background: rgba(8,8,10,.72); color: #fff; font: 700 14px/1.2 var(--font);

}

.drum-mark {

  position: absolute; left: -8px; top: 50%; width: 10px; height: 10px; margin-top: -5px;

  border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 70%, transparent);

}

.drum-mark::after {

  content: ''; position: absolute; right: -8px; top: 50%; width: calc(100% + 336px); height: 1px; margin-top: -1px;

  background: color-mix(in srgb, var(--accent) 55%, transparent); pointer-events: none;

}

#wheel.is-spinning .drum-item img { opacity: .92; }

.wheel-reveal { margin-top: 4px; }



/* стили */

#page-styles .section-head { display: grid; gap: 12px; }

#page-styles .styles-random { justify-self: start; min-height: 46px; border-radius: 14px; }

.styles-filter-panel { border-radius: 20px; }

#styles-grid { gap: 16px; }

:is(#styles-grid,.catalog-category-window) .g-card { border-radius: 18px; background: #070708; }

:is(#styles-grid,.catalog-category-window) .g-media { aspect-ratio: 3 / 4; background: #070708; }

:is(#styles-grid,.catalog-category-window) .g-media-main { object-fit: contain; object-position: center; background: #070708; }

:is(#styles-grid,.catalog-category-window) .g-cap { padding: 28px 14px 14px; }

:is(#styles-grid,.catalog-category-window) .g-prompt { display: none; }

@media (max-width: 600px) {

  #styles-grid { grid-template-columns: 1fr; gap: 14px; }

  :is(#styles-grid,.catalog-category-window) .g-card { border-radius: 18px; }

  :is(#styles-grid,.catalog-category-window) .g-cap h3 { font-size: 16px; width: auto; }

  :is(#styles-grid,.catalog-category-window) .g-use, :is(#styles-grid,.catalog-category-window) .g-use::after { font-size: 13px; }

  :is(#styles-grid,.catalog-category-window) .g-use::after { content: none; }

  #page-styles .section-head h1 { max-width: none; }

}



/* подвал */

footer { padding: 48px 0 36px; background: linear-gradient(180deg, var(--bg), var(--bg-alt)); }

footer .foot-v2 { display: flex; flex-direction: column; gap: 28px; }

.foot-grid { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: 28px 20px; align-items: start; }

.foot-brand p { margin: 12px 0 18px; max-width: 32ch; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

.foot-brand .btn { min-height: 46px; }

.foot-col { display: flex; flex-direction: column; gap: 10px; }

.foot-col b { margin-bottom: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.foot-col a { color: var(--ink-2); font-size: 14px; }

.foot-col a:hover { color: var(--ink); }

footer .theme-bar { padding-top: 8px; border-top: 1px solid var(--border); }

footer .foot-legal { color: var(--ink-3); font-size: 12px; line-height: 1.55; }

@media (max-width: 700px) {

  footer { padding: 36px 0 calc(28px + env(safe-area-inset-bottom)); }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }

  .foot-brand { grid-column: 1 / -1; }

  .foot-brand .btn { width: 100%; }

}

@media (max-width: 600px) {

  .drum-stage { max-width: none; }

  .drum-window, .drum-item { height: 210px; }

}


/* look-v3 */


/* look-v3 */



/* =========================================================

   0. Общие локальные переменные

   ========================================================= */

:root{

  --lv3-r-sm: 10px;

  --lv3-r: 14px;

  --lv3-r-lg: 20px;

  --lv3-ease: cubic-bezier(.22,.8,.24,1);

  --lv3-ease-spring: cubic-bezier(.34,1.56,.64,1);

  --lv3-dur: .28s;

  --lv3-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -22px rgba(0,0,0,.7);

  --lv3-shadow-pop: 0 24px 60px -18px rgba(0,0,0,.75), 0 2px 0 rgba(255,255,255,.04) inset;

}



/* =========================================================

   1. ПОДВАЛ

   ========================================================= */

footer{

  position: relative;

  margin-top: clamp(64px, 9vw, 120px);

  background:

    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent) 0%, transparent 55%),

    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);

  border-top: 1px solid var(--border);

  color: var(--ink-2);

  font-family: var(--font);

  overflow: hidden;

  isolation: isolate;

}

footer::before{

  content: "";

  position: absolute;

  top: -1px; left: 50%;

  width: min(720px, 80%);

  height: 1px;

  transform: translateX(-50%);

  background: linear-gradient(90deg, transparent, var(--accent), transparent);

  opacity: .7;

  pointer-events: none;

}

footer::after{

  content: "";

  position: absolute;

  inset: 0;

  background-image:

    linear-gradient(var(--border) 1px, transparent 1px),

    linear-gradient(90deg, var(--border) 1px, transparent 1px);

  background-size: 56px 56px;

  opacity: .18;

  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);

          mask-image: linear-gradient(180deg, #000 0%, transparent 70%);

  pointer-events: none;

  z-index: -1;

}



.foot-v2{

  padding-top: clamp(56px, 7vw, 96px);

  padding-bottom: 32px;

  display: flex;

  flex-direction: column;

  gap: clamp(40px, 5vw, 64px);

}



/* --- сетка --- */

.foot-grid{

  display: grid;

  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(140px, 1fr));

  gap: clamp(32px, 4vw, 64px);

  align-items: start;

}



/* бренд-колонка */

.foot-grid > :first-child{

  display: flex;

  flex-direction: column;

  gap: 16px;

  max-width: 360px;

}

.foot-grid > :first-child :is(.logo, .brand, .foot-logo, strong, h2, h3){

  font-family: var(--font);

  font-weight: 800;

  font-size: clamp(22px, 2.2vw, 28px);

  letter-spacing: -.02em;

  color: var(--ink);

  line-height: 1.1;

  margin: 0;

}

.foot-grid > :first-child p{

  margin: 0;

  color: var(--ink-3);

  font-size: 14px;

  line-height: 1.65;

}

.foot-grid > :first-child a{

  color: var(--ink);

  text-decoration: none;

}



/* навигационные колонки */

.foot-grid nav{

  display: flex;

  flex-direction: column;

  gap: 4px;

}

.foot-grid nav :is(h2, h3, h4, h5, .foot-title, .foot-head, strong){

  margin: 0 0 14px;

  font-family: var(--mono);

  font-size: 11px;

  font-weight: 500;

  letter-spacing: .14em;

  text-transform: uppercase;

  color: var(--ink-3);

  display: flex;

  align-items: center;

  gap: 10px;

}

.foot-grid nav :is(h2, h3, h4, h5, .foot-title, .foot-head, strong)::before{

  content: "";

  width: 6px; height: 6px;

  border-radius: 2px;

  background: var(--accent);

  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent);

  flex: none;

}

.foot-grid nav ul{

  list-style: none;

  margin: 0; padding: 0;

  display: flex;

  flex-direction: column;

  gap: 4px;

}

.foot-grid nav a{

  position: relative;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  width: fit-content;

  padding: 6px 0;

  color: var(--ink-2);

  font-size: 15px;

  font-weight: 500;

  text-decoration: none;

  transition: color var(--lv3-dur) var(--lv3-ease), transform var(--lv3-dur) var(--lv3-ease);

  -webkit-tap-highlight-color: transparent;

}

.foot-grid nav a::after{

  content: "";

  position: absolute;

  left: 0; right: 0; bottom: 3px;

  height: 1px;

  background: var(--accent);

  transform: scaleX(0);

  transform-origin: left center;

  transition: transform .36s var(--lv3-ease);

}

.foot-grid nav a::before{

  content: "→";

  font-family: var(--mono);

  font-size: 12px;

  color: var(--accent);

  width: 0;

  overflow: hidden;

  opacity: 0;

  transform: translateX(-6px);

  transition: width var(--lv3-dur) var(--lv3-ease), opacity var(--lv3-dur) var(--lv3-ease), transform var(--lv3-dur) var(--lv3-ease);

}

@media (hover: hover){

  .foot-grid nav a:hover{ color: var(--ink); }

  .foot-grid nav a:hover::after{ transform: scaleX(1); }

  .foot-grid nav a:hover::before{ width: 14px; opacity: 1; transform: none; }

}

.foot-grid nav a:focus-visible{

  outline: none;

  color: var(--ink);

}

.foot-grid nav a:focus-visible::after{ transform: scaleX(1); }

.foot-grid nav a[aria-current="page"]{ color: var(--ink); }

.foot-grid nav a[aria-current="page"]::after{ transform: scaleX(1); opacity: .5; }



/* =========================================================

   2. ПАНЕЛЬ ТЕМ

   ========================================================= */

.theme-bar{

  position: relative;

  display: grid;

  grid-template-columns: auto 1fr;

  align-items: center;

  gap: 28px;

  padding: 20px 24px;

  border: 1px solid var(--border);

  border-radius: var(--lv3-r-lg);

  background:

    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface)),

    var(--surface);

  box-shadow: var(--lv3-shadow);

  overflow: hidden;

}

.theme-bar::before{

  content: "";

  position: absolute;

  inset: 0 auto 0 0;

  width: 3px;

  background: linear-gradient(180deg, var(--accent), transparent);

  opacity: .9;

}



.theme-now{

  display: flex;

  flex-direction: column;

  gap: 6px;

  min-width: 150px;

  padding-right: 28px;

  border-right: 1px solid var(--border);

}

.theme-label{

  font-family: var(--mono);

  font-size: 10.5px;

  letter-spacing: .16em;

  text-transform: uppercase;

  color: var(--ink-3);

}

.theme-current{

  display: inline-block;

  font-family: var(--font);

  font-weight: 800;

  font-size: 20px;

  letter-spacing: -.01em;

  line-height: 1.1;

  text-transform: capitalize;

  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, var(--accent) 50%, var(--ink) 60%, var(--ink) 100%);

  background-size: 250% 100%;

  background-position: 100% 0;

  -webkit-background-clip: text;

          background-clip: text;

  -webkit-text-fill-color: transparent;

  color: var(--ink);

  animation: lv3-name-in .55s var(--lv3-ease) both, lv3-name-sheen 1.4s .15s var(--lv3-ease) 1 both;

}

@keyframes lv3-name-in{

  from{ opacity: 0; transform: translateY(6px); letter-spacing: .04em; }

  to  { opacity: 1; transform: none; letter-spacing: -.01em; }

}

@keyframes lv3-name-sheen{

  from{ background-position: 100% 0; }

  to  { background-position: 0% 0; }

}



.theme-opts{

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin: 0; padding: 0;

  list-style: none;

}



.theme-opt{

  --t1: var(--accent);

  --t2: var(--accent);

  position: relative;

  display: inline-flex;

  align-items: center;

  gap: 9px;

  padding: 6px 12px 6px 6px;

  border: 1px solid var(--border);

  border-radius: 999px;

  background: var(--surface-2);

  color: var(--ink-2);

  font-family: var(--font);

  font-size: 13px;

  font-weight: 600;

  line-height: 1;

  cursor: pointer;

  -webkit-appearance: none;

          appearance: none;

  -webkit-tap-highlight-color: transparent;

  transition:

    border-color var(--lv3-dur) var(--lv3-ease),

    background-color var(--lv3-dur) var(--lv3-ease),

    color var(--lv3-dur) var(--lv3-ease),

    transform var(--lv3-dur) var(--lv3-ease),

    box-shadow var(--lv3-dur) var(--lv3-ease);

}



.theme-swatch{

  position: relative;

  flex: none;

  width: 22px; height: 22px;

  border-radius: 50%;

  background:

    radial-gradient(circle at 32% 28%, rgba(255,255,255,.55) 0 2px, transparent 5px),

    linear-gradient(135deg, var(--t1), var(--t2));

  box-shadow:

    0 0 0 1px rgba(255,255,255,.12) inset,

    0 2px 6px -2px rgba(0,0,0,.6);

  transition: transform .38s var(--lv3-ease-spring), box-shadow var(--lv3-dur) var(--lv3-ease);

}

.theme-swatch::after{

  content: "";

  position: absolute;

  inset: -4px;

  border-radius: 50%;

  border: 1.5px solid var(--accent);

  opacity: 0;

  transform: scale(.7);

  transition: opacity var(--lv3-dur) var(--lv3-ease), transform var(--lv3-dur) var(--lv3-ease);

}



.theme-name{

  white-space: nowrap;

  text-transform: capitalize;

  transition: color var(--lv3-dur) var(--lv3-ease);

}



@media (hover: hover){

  .theme-opt:hover{

    border-color: color-mix(in srgb, var(--t1) 55%, var(--border));

    background: color-mix(in srgb, var(--t1) 8%, var(--surface-2));

    color: var(--ink);

    transform: translateY(-1px);

    box-shadow: 0 10px 24px -14px var(--t1);

  }

  .theme-opt:hover .theme-swatch{

    transform: scale(1.18) rotate(-8deg);

    box-shadow:

      0 0 0 1px rgba(255,255,255,.2) inset,

      0 0 14px 1px color-mix(in srgb, var(--t1) 70%, transparent),

      0 0 4px color-mix(in srgb, var(--t2) 80%, transparent);

  }

}

.theme-opt:active{ transform: scale(.97); }

.theme-opt:focus-visible{

  outline: none;

  border-color: var(--accent);

  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);

}



/* активная тема */

.theme-opt:is(.active, .is-active, [aria-pressed="true"], [aria-checked="true"], [aria-selected="true"]){

  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));

  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));

  color: var(--ink);

}

.theme-opt:is(.active, .is-active, [aria-pressed="true"], [aria-checked="true"], [aria-selected="true"]) .theme-swatch{

  box-shadow:

    0 0 0 1px rgba(255,255,255,.25) inset,

    0 0 12px color-mix(in srgb, var(--t1) 60%, transparent);

}

.theme-opt:is(.active, .is-active, [aria-pressed="true"], [aria-checked="true"], [aria-selected="true"]) .theme-swatch::after{

  opacity: 1;

  transform: scale(1);

  animation: lv3-ring 2.4s var(--lv3-ease) 3;

}

@keyframes lv3-ring{

  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }

  70%  { box-shadow: 0 0 0 7px transparent; }

  100% { box-shadow: 0 0 0 0 transparent; }

}



/* --- юридический низ --- */

.foot-legal{

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  gap: 12px 24px;

  padding-top: 24px;

  border-top: 1px solid var(--border);

  font-family: var(--mono);

  font-size: 12px;

  letter-spacing: .02em;

  color: var(--ink-3);

}

.foot-legal p{ margin: 0; }

.foot-legal a{

  color: var(--ink-2);

  text-decoration: none;

  border-bottom: 1px solid transparent;

  transition: color var(--lv3-dur) var(--lv3-ease), border-color var(--lv3-dur) var(--lv3-ease);

}

@media (hover: hover){

  .foot-legal a:hover{ color: var(--ink); border-bottom-color: var(--accent); }

}

.foot-legal a:focus-visible{ outline: none; color: var(--ink); border-bottom-color: var(--accent); }



/* =========================================================

   3. #page-styles

   ========================================================= */

#page-styles{

  position: relative;

  font-family: var(--font);

}



#page-styles .section-head{

  display: flex;

  flex-direction: column;

  gap: 10px;

  margin-bottom: 28px;

}

#page-styles .section-head :is(h1, h2){

  margin: 0;

  font-weight: 800;

  font-size: clamp(30px, 4.2vw, 52px);

  line-height: 1.02;

  letter-spacing: -.03em;

  color: var(--ink);

}

#page-styles .section-head :is(p, .section-sub){

  margin: 0;

  max-width: 620px;

  color: var(--ink-3);

  font-size: 15px;

  line-height: 1.6;

}

#page-styles .section-head :is(.eyebrow, .kicker, small){

  font-family: var(--mono);

  font-size: 11px;

  letter-spacing: .16em;

  text-transform: uppercase;

  color: var(--accent);

}



/* --- панель фильтров --- */

#page-styles .styles-filter-panel{

  position: relative;

  display: flex;

  flex-direction: column;

  gap: 18px;

  padding: 20px;

  margin-bottom: 24px;

  border: 1px solid var(--border);

  border-radius: var(--lv3-r-lg);

  background:

    radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 60%),

    var(--surface);

  box-shadow: var(--lv3-shadow);

  z-index: 5;

}

#page-styles .styles-filter-panel > :first-child{

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

}

#page-styles .styles-filter-title{

  margin: 0;

  display: flex;

  align-items: center;

  gap: 10px;

  font-family: var(--mono);

  font-size: 11px;

  font-weight: 500;

  letter-spacing: .16em;

  text-transform: uppercase;

  color: var(--ink-3);

}

#page-styles .styles-filter-title::before{

  content: "";

  width: 8px; height: 8px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);

}



#page-styles .styles-filter-actions{

  display: flex;

  gap: 8px;

  flex-wrap: wrap;

}

#page-styles :is(#styles-random, #styles-reset){

  display: inline-flex;

  align-items: center;

  gap: 8px;

  height: 38px;

  padding: 0 16px;

  border-radius: 999px;

  border: 1px solid var(--border-strong);

  background: var(--surface-2);

  color: var(--ink);

  font-family: var(--font);

  font-size: 13px;

  font-weight: 700;

  letter-spacing: .01em;

  cursor: pointer;

  -webkit-appearance: none;

          appearance: none;

  -webkit-tap-highlight-color: transparent;

  transition: border-color var(--lv3-dur) var(--lv3-ease), background-color var(--lv3-dur) var(--lv3-ease), color var(--lv3-dur) var(--lv3-ease), transform var(--lv3-dur) var(--lv3-ease), box-shadow var(--lv3-dur) var(--lv3-ease);

}

#page-styles #styles-random{

  border-color: color-mix(in srgb, var(--accent) 55%, var(--border-strong));

  background: color-mix(in srgb, var(--accent) 14%, var(--surface-2));

}

#page-styles #styles-random::before{

  content: "⟳";

  font-family: var(--mono);

  color: var(--accent);

  transition: transform .5s var(--lv3-ease);

}

#page-styles #styles-reset{ color: var(--ink-2); }

@media (hover: hover){

  #page-styles #styles-random:hover{

    background: color-mix(in srgb, var(--accent) 22%, var(--surface-2));

    box-shadow: 0 10px 26px -14px var(--accent);

    transform: translateY(-1px);

  }

  #page-styles #styles-random:hover::before{ transform: rotate(180deg); }

  #page-styles #styles-reset:hover{

    color: var(--ink);

    border-color: var(--ink-3);

    transform: translateY(-1px);

  }

}

#page-styles :is(#styles-random, #styles-reset):active{ transform: scale(.97); }

#page-styles :is(#styles-random, #styles-reset):focus-visible{

  outline: none;

  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);

}



/* --- поиск + пикеры --- */

#page-styles .catalog-tools{

  display: grid;

  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));

  gap: 10px;

  align-items: stretch;

}



#page-styles #catalog-search{

  width: 100%;

  height: 48px;

  padding: 0 16px 0 44px;

  border: 1px solid var(--border);

  border-radius: var(--lv3-r);

  background-color: var(--bg-alt);

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238a8a93' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m16 16-3.5-3.5'/%3E%3C/svg%3E");

  background-repeat: no-repeat;

  background-position: 16px 50%;

  color: var(--ink);

  font-family: var(--font);

  font-size: 15px;

  font-weight: 500;

  -webkit-appearance: none;

          appearance: none;

  outline: none;

  transition: border-color var(--lv3-dur) var(--lv3-ease), box-shadow var(--lv3-dur) var(--lv3-ease), background-color var(--lv3-dur) var(--lv3-ease);

}

#page-styles #catalog-search::placeholder{ color: var(--ink-3); opacity: 1; }

#page-styles #catalog-search::-webkit-search-decoration,

#page-styles #catalog-search::-webkit-search-cancel-button,

#page-styles #catalog-search::-webkit-search-results-button,

#page-styles #catalog-search::-webkit-search-results-decoration{ -webkit-appearance: none; display: none; }

@media (hover: hover){

  #page-styles #catalog-search:hover{ border-color: var(--border-strong); }

}

#page-styles #catalog-search:focus{

  border-color: var(--accent);

  background-color: var(--surface-2);

  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);

}



/* --- чипы Все/Избранное --- */

#page-styles .fav-filter{

  display: inline-flex;

  align-self: flex-start;

  gap: 4px;

  padding: 4px;

  border: 1px solid var(--border);

  border-radius: 999px;

  background: var(--bg-alt);

}

#page-styles .fav-filter > :is(button, a, label, .chip){

  position: relative;

  display: inline-flex;

  align-items: center;

  gap: 6px;

  height: 34px;

  padding: 0 16px;

  border: 0;

  border-radius: 999px;

  background: transparent;

  color: var(--ink-3);

  font-family: var(--font);

  font

/* look-v3-tail */



/* ===== 1) fav-filter chips ===== */

#page-styles .fav-filter {

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 8px;

  margin: 0 0 18px;

  padding: 0;

  list-style: none;

}



#page-styles .fav-filter > button,

#page-styles .fav-filter .fav-chip,

#page-styles .fav-filter [role="tab"] {

  appearance: none;

  -webkit-appearance: none;

  display: inline-flex;

  align-items: center;

  gap: 6px;

  height: 34px;

  padding: 0 14px;

  margin: 0;

  border: 1px solid var(--border);

  border-radius: 999px;

  background: var(--surface);

  color: var(--ink-2);

  font: 500 13px/1 var(--font);

  letter-spacing: .01em;

  white-space: nowrap;

  cursor: pointer;

  user-select: none;

  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;

}



#page-styles .fav-filter > button:hover,

#page-styles .fav-filter .fav-chip:hover,

#page-styles .fav-filter [role="tab"]:hover {

  background: var(--surface-2);

  border-color: var(--border-strong);

  color: var(--ink);

}



#page-styles .fav-filter > button:active,

#page-styles .fav-filter .fav-chip:active,

#page-styles .fav-filter [role="tab"]:active {

  transform: translateY(1px);

}



#page-styles .fav-filter > button:focus-visible,

#page-styles .fav-filter .fav-chip:focus-visible,

#page-styles .fav-filter [role="tab"]:focus-visible {

  outline: none;

  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);

}



#page-styles .fav-filter > button.active,

#page-styles .fav-filter > button.is-active,

#page-styles .fav-filter > button[aria-pressed="true"],

#page-styles .fav-filter .fav-chip.active,

#page-styles .fav-filter .fav-chip.is-active,

#page-styles .fav-filter [role="tab"][aria-selected="true"] {

  background: var(--accent);

  border-color: var(--accent);

  color: var(--bg);

}



#page-styles .fav-filter > button.active:hover,

#page-styles .fav-filter > button.is-active:hover,

#page-styles .fav-filter > button[aria-pressed="true"]:hover,

#page-styles .fav-filter .fav-chip.active:hover,

#page-styles .fav-filter .fav-chip.is-active:hover,

#page-styles .fav-filter [role="tab"][aria-selected="true"]:hover {

  background: var(--accent);

  border-color: var(--accent);

  color: var(--bg);

  filter: brightness(1.08);

}



#page-styles .fav-filter .count,

#page-styles .fav-filter .fav-count {

  font: 500 11px/1 var(--mono);

  padding: 3px 6px;

  border-radius: 999px;

  background: var(--surface-2);

  color: var(--ink-3);

}



#page-styles .fav-filter .active .count,

#page-styles .fav-filter .is-active .count,

#page-styles .fav-filter [aria-pressed="true"] .count,

#page-styles .fav-filter .active .fav-count,

#page-styles .fav-filter .is-active .fav-count,

#page-styles .fav-filter [aria-pressed="true"] .fav-count {

  background: rgba(0, 0, 0, .18);

  color: inherit;

}



/* ===== catalog tools layout ===== */

.catalog-tools {

  display: grid;

  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);

  gap: 12px;

  align-items: center;

}



/* ===== 2) custom site picker ===== */

.site-pick {

  position: relative;

  min-width: 0;

}



.site-pick select.catalog-select {

  position: absolute;

  opacity: 0;

  pointer-events: none;

  width: 1px;

  height: 1px;

  margin: 0;

  padding: 0;

  border: 0;

  overflow: hidden;

  left: 0;

  top: 0;

}



.site-pick-btn {

  appearance: none;

  -webkit-appearance: none;

  position: relative;

  display: flex;

  align-items: center;

  gap: 10px;

  width: 100%;

  height: 48px;

  margin: 0;

  padding: 0 44px 0 16px;

  border: 1px solid var(--border);

  border-radius: 14px;

  background: var(--bg-alt);

  color: var(--ink);

  font: 500 14px/1 var(--font);

  text-align: left;

  cursor: pointer;

  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;

}



.site-pick-btn > span,

.site-pick-btn .site-pick-label {

  flex: 1 1 auto;

  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

}



.site-pick-btn::after {

  content: "";

  position: absolute;

  right: 18px;

  top: 50%;

  width: 8px;

  height: 8px;

  margin-top: -6px;

  border-right: 2px solid var(--ink-3);

  border-bottom: 2px solid var(--ink-3);

  transform: rotate(45deg);

  transition: transform .2s ease, border-color .16s ease, margin-top .2s ease;

  pointer-events: none;

}



.site-pick-btn:hover {

  border-color: var(--border-strong);

  background: var(--surface);

}



.site-pick-btn:hover::after {

  border-color: var(--ink-2);

}



.site-pick-btn:focus-visible {

  outline: none;

  border-color: var(--accent);

  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0), 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);

}



.site-pick.is-open .site-pick-btn {

  border-color: var(--accent);

  background: var(--surface);

  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);

}



.site-pick.is-open .site-pick-btn::after {

  transform: rotate(-135deg);

  margin-top: -2px;

  border-color: var(--accent);

}



.site-pick-menu {

  position: absolute;

  z-index: 60;

  top: calc(100% + 8px);

  left: 0;

  min-width: 100%;

  max-width: min(360px, 92vw);

  max-height: 320px;

  overflow-y: auto;

  overscroll-behavior: contain;

  margin: 0;

  padding: 6px;

  list-style: none;

  border: 1px solid var(--border-strong);

  border-radius: 14px;

  background: var(--bg-alt);

  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transform: translateY(-6px);

  transition: opacity .16s ease, transform .18s ease, visibility 0s linear .18s;

  scrollbar-width: thin;

  scrollbar-color: var(--border-strong) transparent;

}



.site-pick.is-open .site-pick-menu {

  opacity: 1;

  visibility: visible;

  pointer-events: auto;

  transform: translateY(0);

  transition: opacity .16s ease, transform .18s ease, visibility 0s;

}



.site-pick-menu::-webkit-scrollbar {

  width: 8px;

}



.site-pick-menu::-webkit-scrollbar-thumb {

  background: var(--border-strong);

  border-radius: 8px;

  border: 2px solid var(--bg-alt);

}



.site-pick-item {

  appearance: none;

  -webkit-appearance: none;

  display: flex;

  align-items: center;

  gap: 10px;

  width: 100%;

  min-height: 38px;

  margin: 0;

  padding: 8px 12px;

  border: 0;

  border-radius: 10px;

  background: transparent;

  color: var(--ink-2);

  font: 500 14px/1.3 var(--font);

  text-align: left;

  cursor: pointer;

  transition: background-color .12s ease, color .12s ease;

}



.site-pick-item + .site-pick-item {

  margin-top: 2px;

}



.site-pick-item:hover,

.site-pick-item.is-active,

.site-pick-item:focus-visible {

  outline: none;

  background: var(--surface);

  color: var(--ink);

}



.site-pick-item.is-selected {

  background: color-mix(in srgb, var(--accent) 16%, transparent);

  color: var(--accent);

  font-weight: 600;

}



.site-pick-item.is-selected::after {

  content: "";

  margin-left: auto;

  width: 5px;

  height: 10px;

  border-right: 2px solid var(--accent);

  border-bottom: 2px solid var(--accent);

  transform: rotate(45deg) translate(-2px, -1px);

  flex: 0 0 auto;

}



.site-pick-item.is-selected:hover {

  background: color-mix(in srgb, var(--accent) 22%, transparent);

  color: var(--accent);

}



.site-pick-item .meta,

.site-pick-item small {

  margin-left: auto;

  font: 400 11px/1 var(--mono);

  color: var(--ink-3);

}



.site-pick-item.is-selected .meta,

.site-pick-item.is-selected small {

  margin-left: 0;

}



/* ===== 3) styles grid cards ===== */

#styles-grid {

  gap: 18px;

}



#styles-grid > * ,

#styles-grid .style-card {

  position: relative;

  border: 1px solid var(--border);

  border-radius: 16px;

  background: var(--surface);

  overflow: hidden;

  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 6px 18px rgba(0, 0, 0, .18);

  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;

}



#styles-grid > *:hover,

#styles-grid .style-card:hover {

  transform: translateY(-2px);

  border-color: var(--border-strong);

  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 14px 32px rgba(0, 0, 0, .3);

}



#styles-grid > *:focus-within,

#styles-grid .style-card:focus-within {

  border-color: var(--accent);

}



#styles-grid .style-card .thumb,

#styles-grid .style-card figure,

#styles-grid > * > .thumb {

  margin: 0;

  background: var(--bg-alt);

  border-bottom: 1px solid var(--border);

}



#styles-grid img {

  display: block;

  max-width: 100%;

  transition: transform .35s ease;

}



#styles-grid > *:hover img,

#styles-grid .style-card:hover img {

  transform: scale(1.015);

}



#styles-grid .style-card h3,

#styles-grid .style-card .title {

  color: var(--ink);

  font: 600 15px/1.3 var(--font);

  letter-spacing: -.005em;

}



#styles-grid .style-card p,

#styles-grid .style-card .desc {

  color: var(--ink-2);

}



#styles-grid .style-card .tag,

#styles-grid .style-card .site {

  font: 500 11px/1 var(--mono);

  color: var(--ink-3);

  letter-spacing: .02em;

}



/* ===== 4 + 6) profile theme-bar = footer pill swatches ===== */

#profile-view .theme-bar {

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 8px;

  padding: 0;

  margin: 0;

  grid-template-columns: none;

  background: none;

  border: 0;

  box-shadow: none;

}



#profile-view .theme-opt {

  appearance: none;

  -webkit-appearance: none;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  width: auto;

  height: 34px;

  min-height: 0;

  aspect-ratio: auto;

  margin: 0;

  padding: 0 14px 0 6px;

  border: 1px solid var(--border);

  border-radius: 999px;

  background: var(--surface);

  color: var(--ink-2);

  box-shadow: none;

  font: 500 13px/1 var(--font);

  cursor: pointer;

  transform: none;

  transition: background-color .16s ease, border-color .16s ease, color .16s ease;

}



#profile-view .theme-opt::before,

#profile-view .theme-opt::after {

  content: none;

  display: none;

}



#profile-view .theme-opt:hover {

  background: var(--surface-2);

  border-color: var(--border-strong);

  color: var(--ink);

  transform: none;

}



#profile-view .theme-opt:focus-visible {

  outline: none;

  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);

}



#profile-view .theme-opt.active,

#profile-view .theme-opt.is-active,

#profile-view .theme-opt[aria-pressed="true"],

#profile-view .theme-opt[aria-checked="true"] {

  border-color: var(--accent);

  color: var(--ink);

  background: color-mix(in srgb, var(--accent) 12%, var(--surface));

}



#profile-view .theme-opt .theme-preview,

#profile-view .theme-opt .theme-thumb,

#profile-view .theme-opt img {

  display: none;

}



#profile-view .theme-opt .theme-swatch,

#profile-view .theme-opt .swatch {

  display: inline-block;

  flex: 0 0 auto;

  width: 22px;

  height: 22px;

  margin: 0;

  border-radius: 50%;

  border: 1px solid var(--border-strong);

  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .15);

}



#profile-view .theme-opt.active .theme-swatch,

#profile-view .theme-opt.is-active .theme-swatch,

#profile-view .theme-opt[aria-pressed="true"] .theme-swatch,

#profile-view .theme-opt.active .swatch,

#profile-view .theme-opt.is-active .swatch,

#profile-view .theme-opt[aria-pressed="true"] .swatch {

  border-color: var(--accent);

}



/* override look-v2 visually-hidden */

.theme-opt .theme-name,

#profile-view .theme-opt .theme-name,

.theme-bar .theme-name {

  position: static;

  width: auto;

  height: auto;

  margin: 0;

  padding: 0;

  overflow: visible;

  clip: auto;

  clip-path: none;

  white-space: nowrap;

  border: 0;

  opacity: 1;

  display: inline;

  font: 500 13px/1 var(--font);

  color: inherit;

}



/* ===== 5) mobile ===== */

@media (max-width: 700px) {

  footer .footer-grid,

  .site-footer .footer-grid,

  .site-footer .footer-cols {

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px 16px;

  }



  .theme-bar,

  #profile-view .theme-bar {

    flex-direction: column;

    align-items: stretch;

  }



  .theme-bar .theme-opt,

  #profile-view .theme-opt {

    width: 100%;

    justify-content: flex-start;

    height: 40px;

  }



  .catalog-tools {

    grid-template-columns: 1fr;

    gap: 10px;

  }



  .site-pick,

  .site-pick-btn {

    width: 100%;

  }



  .site-pick-menu {

    left: 0;

    right: 0;

    min-width: 0;

    max-width: none;

    width: 100%;

    max-height: 260px;

    overflow: auto;

  }



  .site-pick-item {

    min-height: 44px;

  }



  #styles-grid {

    gap: 14px;

  }



  #page-styles .fav-filter {

    flex-wrap: nowrap;

    overflow-x: auto;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;

    padding-bottom: 2px;

  }



  #page-styles .fav-filter::-webkit-scrollbar {

    display: none;

  }



  #page-styles .fav-filter > button,

  #page-styles .fav-filter .fav-chip,

  #page-styles .fav-filter [role="tab"] {

    flex: 0 0 auto;

  }

}



@media (max-width: 420px) {

  footer .footer-grid,

  .site-footer .footer-grid,

  .site-footer .footer-cols {

    grid-template-columns: 1fr;

  }

}



@media (prefers-reduced-motion: reduce) {

  .site-pick-menu,

  .site-pick-btn::after,

  #styles-grid > *,

  #styles-grid .style-card,

  #styles-grid img {

    transition: none;

  }



  #styles-grid > *:hover,

  #styles-grid .style-card:hover,

  #styles-grid > *:hover img,

  #styles-grid .style-card:hover img {

    transform: none;

  }

}



/* look-v3 glue: real markup + keep Claude look */

.foot-grid nav b{

  margin: 0 0 14px;

  font-family: var(--mono);

  font-size: 11px;

  font-weight: 500;

  letter-spacing: .14em;

  text-transform: uppercase;

  color: var(--ink-3);

  display: flex;

  align-items: center;

  gap: 10px;

}

.foot-grid nav b::before{

  content: "";

  width: 6px; height: 6px;

  border-radius: 2px;

  background: var(--accent);

  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent);

  flex: none;

}

.theme-name,

#profile-view .theme-name{

  position: static !important;

  width: auto !important;

  height: auto !important;

  margin: 0 !important;

  padding: 0 !important;

  overflow: visible !important;

  clip: auto !important;

  clip-path: none !important;

  white-space: nowrap !important;

  border: 0 !important;

}

@media (max-width: 700px){

  .foot-grid{ grid-template-columns: 1fr 1fr; gap: 24px 16px; }

  .foot-brand, .foot-grid > :first-child{ grid-column: 1 / -1; max-width: none; }

  #page-styles .catalog-tools{ grid-template-columns: 1fr; }

  .theme-bar .theme-opt, #profile-view .theme-opt{ width: auto; }

}

