/* Shared visual system for the SERGEEW COACH preview. */
:root {
  --brand-paper:#f8f7ee;
  --brand-ink:#20231f;
  --brand-night:#141613;
  --brand-panel:#262b24;
  --brand-line:#d8d8cc;
  --brand-dark-line:#494f44;
  --brand-gold:#e4c78c;
  --brand-lime:#dfff4f;
  --brand-mono:"IBM Plex Mono",ui-monospace,monospace;
  --brand-radius:25px;
  --brand-soft:#eeede3;
}
[hidden] {display:none!important;}
.section-index {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:43px;
  min-height:26px;
  padding:2px 9px;
  margin:0 0 14px;
  border:1px solid #a6a68d;
  border-radius:999px;
  background:transparent;
  color:#5a5634;
  font:400 .8rem/1.25 var(--brand-mono);
  letter-spacing:.13em;
  vertical-align:middle;
}
:is(.hero,.coach-hero,.coach-dark,.catalog-title,.motion-product-hero,.results) .section-index {
  border-color:#dfff4f8c;
  color:var(--brand-lime);
  background:#20241cc0;
}
.unified-home .hero .section-index {margin-bottom:14px;}
.unified-home .hero-author .section-index {margin-bottom:0;}
.unified-home .contact h2 {max-width:15ch;}
.unified-home :is(.products,.results) h2 {max-width:17ch;}
.unified-home .product-grid {
  grid-auto-rows:auto;
  align-items:stretch;
}
.unified-home .product {
  display:flex;
  flex-direction:column;
  align-self:stretch;
  isolation:isolate;
}
.unified-home .product .product-image {flex:none;}
.unified-home .product-copy {
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:flex-start;
}
.unified-home .product-copy details {
  align-self:stretch;
  margin-top:auto;
  padding-top:0;
  border:0;
}
.unified-home .product-copy>p:not(.status) {margin-bottom:17px;}
.unified-home .product-links {display:flex;flex-wrap:wrap;gap:8px 15px;}
.unified-home .product:focus-within {border-color:#a6ae76;}
@media (prefers-reduced-motion:no-preference) {
  .unified-home .product {transition:transform .32s ease,border-color .32s ease,box-shadow .32s ease;}
  .unified-home .product.motion-card-in {animation:card-in .62s cubic-bezier(.22,.7,.3,1) both;}
  .unified-home .product:nth-child(3n+2).motion-card-in {animation-delay:.08s;}
  .unified-home .product:nth-child(3n+3).motion-card-in {animation-delay:.14s;}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .unified-home .product:hover {transform:translateY(-4px);border-color:#a6ae76;box-shadow:0 11px 28px #262b2414;}
}
@keyframes card-in {from {opacity:.62;translate:0 13px;} to {opacity:1;translate:0 0;}}
.unified-home .gallery-all {
  display:inline-block;
  color:var(--brand-gold);
  font-weight:700;
  margin-bottom:14px;
}
.photo-gallery {min-width:0;}
.gallery-controls {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  margin:0 0 13px;
}
.gallery-controls span {
  min-width:63px;
  text-align:center;
  color:var(--brand-gold);
  font:400 .78rem/1.4 var(--brand-mono);
}
.gallery-controls button {
  min-width:43px;
  height:43px;
  border:1px solid #646857;
  border-radius:50%;
  background:#24291f;
  color:#fff;
  font:inherit;
  cursor:pointer;
}
.gallery-controls button:not(:disabled):hover {background:var(--brand-lime);color:var(--brand-night);}
.gallery-controls button:disabled {opacity:.5;cursor:default;}
.unified-home .case-grid {
  --case-width:min(65vw,470px);
  display:flex;
  gap:clamp(12px,2.5vw,28px);
  overflow-x:auto;
  padding:4px max(0px,calc((100% - var(--case-width)) / 2)) 13px;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
  scrollbar-color:#838767 #262b24;
}
.unified-home .case-grid>.case {
  flex:0 0 var(--case-width);
  scroll-snap-align:center;
  margin:0;
  min-width:0;
  align-self:stretch;
}
.unified-home .case figcaption {
  display:block;
  font-weight:700;
  padding:10px 14px 12px;
  font-size:1rem;
}
.unified-home .results :focus-visible {outline-color:var(--brand-lime);}
select.brand-select {
  appearance:none;
  padding-right:37px!important;
  background-image:linear-gradient(45deg,transparent 50%,#5c6151 50%),
                   linear-gradient(135deg,#5c6151 50%,transparent 50%)!important;
  background-repeat:no-repeat!important;
  background-size:5px 5px!important;
  background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%!important;
  border-radius:10px!important;
}
details.brand-disclosure>summary {
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  cursor:pointer;
  min-height:44px;
  padding:9px 13px;
  border:1px solid var(--brand-line);
  border-radius:12px;
  background:#fffdf7;
  color:#31372a;
  font-weight:700;
  text-align:left;
}
details.brand-disclosure>summary::-webkit-details-marker {display:none;}
details.brand-disclosure>summary::after {
  content:"+";
  display:grid;
  place-items:center;
  flex:0 0 24px;
  width:24px;
  height:24px;
  border-radius:50%;
  background:var(--brand-soft);
  color:#33372a;
  font:400 1rem/1 var(--brand-mono);
}
details.brand-disclosure[open]>summary {
  border-color:#adb786;
  background:#f2f3e5;
}
details.brand-disclosure[open]>summary::after {
  content:"−";
  background:var(--brand-lime);
}
details.brand-disclosure>summary:focus-visible {outline:2px solid #6f8140;outline-offset:3px;}
.unified-home .product details[open]>p {margin-top:10px;}
.brand-footer {
  border-top:1px solid #4e5247;
  background:var(--brand-night);
  color:#f8f7ee;
}
.brand-footer-inner {
  width:min(100% - 2 * clamp(18px,4.6vw,70px),1300px);
  max-width:none;
  margin-inline:auto;
}
.brand-footer-top {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr) minmax(0,1fr);
  gap:clamp(16px,4vw,52px);
  padding-block:clamp(28px,5vw,60px);
}
.brand-footer-logo {
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.brand-footer-logo img {width:42px;height:42px;border-radius:9px;}
.brand-footer-logo strong,.brand-footer-logo small {display:block;}
.brand-footer-logo small {color:var(--brand-gold);font:400 .74rem/1.45 var(--brand-mono);}
.brand-footer-links {
  display:grid;
  gap:6px;
  justify-items:start;
  align-content:start;
}
.brand-footer-links strong {color:var(--brand-lime);font-size:.88rem;margin-bottom:4px;}
.brand-footer-links a,.brand-footer-bottom a {color:#f2efe7;font-size:.88rem;overflow-wrap:anywhere;}
.brand-footer-bottom {
  border-top:1px solid #484d41;
  padding:15px 0 20px;
  gap:9px 20px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  justify-content:space-between;
  color:var(--brand-gold);
  font:400 .74rem/1.4 var(--brand-mono);
}
.brand-footer :focus-visible {outline-color:var(--brand-lime);}
.policy-preview .legal-page {
  width:min(100% - 2 * var(--gutter),860px);
  margin:clamp(22px,4vw,54px) auto var(--space);
  padding:clamp(18px,5vw,59px);
  border-radius:var(--brand-radius);
  border:1px solid var(--brand-line);
  border-top:4px solid var(--brand-lime);
  background:#fffdf8;
}
.policy-preview .legal-page h1 {font-size:clamp(2rem,5.4vw,4.65rem);overflow-wrap:anywhere;}
.policy-preview .legal-page h2 {font-size:clamp(1.28rem,2.75vw,2.55rem);}
.policy-preview .legal-page section {margin:26px 0;padding-top:17px;border-top:1px solid var(--brand-line);}
.policy-preview .legal-page p {margin-top:10px;color:#51564c;}
.motion-site .legal-page .section-index {display:table;margin-bottom:9px;}
.motion-site .legal-page section>.section-index {margin-top:9px;}
.motion-site :is(.coach-section,.catalog-next,.workshop-page .section) .section-index {margin-bottom:10px;}
.motion-site .catalog-title .section-index {margin-bottom:7px;}
.motion-site .coach-faq-list details.brand-disclosure {border-color:var(--brand-line);background:#fffdf7;}
.motion-site .coach-faq-list details.brand-disclosure>summary {margin:0;border:0;}
.motion-site .coach-faq-list details.brand-disclosure[open]>summary {margin-bottom:10px;}
.motion-site .workshop-page .section :focus-visible {outline-color:#687343;}
@media(max-width:760px) {
  :root {--brand-radius:19px;}
  .unified-home .hero .section-index {margin-bottom:10px;}
  .unified-home .case-grid {--case-width:min(83vw,430px);}
  .brand-footer-top {grid-template-columns:1fr 1fr;}
  .brand-footer-identity {grid-column:1 / -1;}
}
@media(max-width:360px) {
  .brand-footer-top {grid-template-columns:1fr;}
}

.application-policy {
  display:inline-flex;
  justify-self:start;
  margin:-6px 0 0 24px;
  min-height:36px;
  align-items:center;
  color:#5a5634;
  font-size:.88rem;
}

a[data-telegram-cta] {min-height:44px;}
a[data-telegram-cta]:focus-visible {
  outline:2px solid currentColor;
  outline-offset:3px;
}
a[data-telegram-cta]:active {filter:brightness(.92);}
