/* AGLASHAY shop polish v1 (27.11.2026): /shop и /en/shop.
 * Подключается первым блоком страницы. Только оформление: логику каталога, корзины и оплаты не меняет. */

/* 1. Без мерцания: пока скин (rec6249317501 / rec6270884101) не прошёл первый раз, страница прозрачна. */
html.agl-shop-gate:not(.agl-skin-ready) #allrecords{opacity:0!important}
html.agl-shop-gate.agl-skin-ready #allrecords{opacity:1;transition:opacity .16s ease}
@media(prefers-reduced-motion:reduce){html.agl-shop-gate.agl-skin-ready #allrecords{transition:none}}

/* 2. Старые шапки и подвалы — скрыты с первого кадра (раньше их прятал скрипт после загрузки). */
html.agl-shop-gate #agn-shared-bar,
html.agl-shop-gate body>.agn-bar,
html.agl-shop-gate #agl-app .agn-bar,
html.agl-shop-gate .agn-shade,
html.agl-shop-gate .agn-drawer,
html.agl-shop-gate #allrecords .aghx-footer-panel,
html.agl-shop-gate #allrecords footer.aghx-footer{display:none!important}
html.agl-shop-gate body,html.agl-shop-gate body #allrecords{background:#ececea!important}
html.agl-shop-gate[data-agl-theme=dark] body,html.agl-shop-gate[data-agl-theme=dark] body #allrecords{background:#121316!important}

/* 3. Подборки: «Состав и условия» — второстепенная кнопка с ценой, «Купить подборку» — главная. */
html body #allrecords #agl-app#agl-app .bundle button[data-bundlepreview]{
  display:grid!important;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-items:center;column-gap:14px!important;row-gap:2px!important;
  width:100%;min-height:58px;padding:12px 18px!important;box-sizing:border-box;
  background:transparent!important;background-image:none!important;border:1px solid rgba(18,19,22,.16)!important;border-radius:16px!important;box-shadow:none!important;
  color:#121316!important;-webkit-text-fill-color:#121316!important;text-align:left!important;cursor:pointer;transition:border-color .18s ease,background-color .18s ease!important}
html body #allrecords #agl-app#agl-app .bundle button[data-bundlepreview]>span{grid-column:1;grid-row:1 / span 2;font-size:14px;font-weight:500;line-height:1.3;display:flex;align-items:center;gap:8px}
html body #allrecords #agl-app#agl-app .bundle button[data-bundlepreview]>span::after{content:"";width:14px;height:14px;flex:none;background:currentColor;opacity:.55;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
html body #allrecords #agl-app#agl-app .bundle button[data-bundlepreview]>strong{grid-column:2;grid-row:1;margin:0!important;font-size:19px!important;font-weight:600!important;line-height:1.2;text-align:right;white-space:nowrap;color:inherit!important}
html body #allrecords #agl-app#agl-app .bundle button[data-bundlepreview]>.agl-shop-fx{grid-column:2;grid-row:2;display:block!important;margin:0!important;font-size:12px!important;text-align:right;white-space:nowrap}
html body #allrecords #agl-app#agl-app .bundle button[data-bundlepreview]:hover{border-color:#f2541b!important;background:rgba(242,84,27,.06)!important;color:inherit!important}
html[data-agl-theme=dark] body #allrecords #agl-app#agl-app .bundle button[data-bundlepreview]{border-color:rgba(255,255,255,.16)!important;color:#f3f3f4!important;-webkit-text-fill-color:#f3f3f4!important}
html[data-agl-theme=dark] body #allrecords #agl-app#agl-app .bundle button[data-bundlepreview]:hover{border-color:#f2541b!important;background:rgba(242,84,27,.10)!important}
html body #allrecords #agl-app#agl-app .bundle .bundle-buy{margin-top:10px!important;min-height:52px!important;border-radius:999px!important;font-size:16px!important;font-weight:600!important}
html body #allrecords #agl-app#agl-app .bundle .bundle-content small{text-align:center;font-size:12.5px;color:#62656d}
html[data-agl-theme=dark] body #allrecords #agl-app#agl-app .bundle .bundle-content small{color:#9da0a8!important;-webkit-text-fill-color:#9da0a8!important}

/* 4. FAQ в стиле /school: строки-раскрывашки с «+», без треугольников. */
html body #allrecords #agl-app#agl-app .faq{padding:40px!important}
html body #allrecords #agl-app#agl-app .faq h2{font-size:clamp(28px,3.2vw,40px)!important;line-height:1.1!important;margin:0 0 22px!important}
html body #allrecords #agl-app#agl-app .faq details{border:0!important;border-top:1px solid rgba(18,19,22,.12)!important;padding:0!important;margin:0!important;background:none!important}
html body #allrecords #agl-app#agl-app .faq details:last-of-type{border-bottom:1px solid rgba(18,19,22,.12)!important}
html body #allrecords #agl-app#agl-app .faq summary{list-style:none!important;display:flex!important;align-items:center;justify-content:space-between;gap:18px;padding:20px 0!important;cursor:pointer;font-size:18px!important;font-weight:500!important;line-height:1.35!important}
html body #allrecords #agl-app#agl-app .faq summary::-webkit-details-marker{display:none}
html body #allrecords #agl-app#agl-app .faq summary::marker{content:""}
html body #allrecords #agl-app#agl-app .faq summary::before{content:none!important;display:none!important}
html body #allrecords #agl-app#agl-app .faq summary::after{content:"+";flex:none;width:34px;height:34px;border-radius:50%;border:1px solid rgba(18,19,22,.14);display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:300;line-height:1;color:#f2541b;transition:transform .2s ease,background-color .2s ease}
html body #allrecords #agl-app#agl-app .faq details[open] summary::after{transform:rotate(45deg);background:rgba(242,84,27,.08)}
html body #allrecords #agl-app#agl-app .faq details p{margin:0 0 22px!important;max-width:780px;font-size:16px!important;line-height:1.65!important;font-weight:300!important;color:#62656d!important;-webkit-text-fill-color:#62656d!important}
html[data-agl-theme=dark] body #allrecords #agl-app#agl-app .faq details,html[data-agl-theme=dark] body #allrecords #agl-app#agl-app .faq details:last-of-type{border-color:rgba(255,255,255,.12)!important}
html[data-agl-theme=dark] body #allrecords #agl-app#agl-app .faq summary::after{border-color:rgba(255,255,255,.16)}
html[data-agl-theme=dark] body #allrecords #agl-app#agl-app .faq details p{color:#9da0a8!important;-webkit-text-fill-color:#9da0a8!important}
@media(max-width:640px){html body #allrecords #agl-app#agl-app .faq{padding:24px 20px!important}html body #allrecords #agl-app#agl-app .faq summary{font-size:16px!important;padding:16px 0!important}}

/* 5. Подписка на новости (#agl-newsletter-v4-root): палитра школы, оранжевая кнопка, тёмная тема. */
html body #allrecords#allrecords #agl-newsletter-v4-root,html body #allrecords#allrecords #agl-newsletter-v4-root *{font-family:Onest,system-ui,-apple-system,sans-serif!important}
html body #allrecords#allrecords #agl-newsletter-v4-root .ag-news__panel{background:#e4e4e1!important;background-image:none!important;border:1px solid rgba(18,19,22,.08)!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-radius:24px!important}
html body #allrecords#allrecords #agl-newsletter-v4-root .ag-news__tag{color:#62656d!important;-webkit-text-fill-color:#62656d!important;letter-spacing:.06em!important;font-weight:500!important}
html body #allrecords#allrecords #agl-newsletter-v4-root .ag-news__title{color:#121316!important;-webkit-text-fill-color:#121316!important;font-weight:600!important;letter-spacing:-.03em!important}
html body #allrecords#allrecords #agl-newsletter-v4-root .ag-news__title span{color:#f2541b!important;-webkit-text-fill-color:#f2541b!important}
html body #allrecords#allrecords #agl-newsletter-v4-root .ag-news__text{color:#62656d!important;-webkit-text-fill-color:#62656d!important;font-weight:300!important}
html body #allrecords#allrecords #agl-newsletter-v4-root .t-input{background:#f6f6f4!important;border:1px solid rgba(18,19,22,.12)!important;color:#121316!important;box-shadow:none!important}
html body #allrecords#allrecords #agl-newsletter-v4-root .t-submit{background:#f2541b!important;border-color:#f2541b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:none!important;font-weight:600!important}
html body #allrecords#allrecords #agl-newsletter-v4-root .t-submit:hover{background:#dd4a15!important;border-color:#dd4a15!important}
html body #allrecords#allrecords #agl-newsletter-v4-root .t-form>div[style*="text-align"],html body #allrecords#allrecords #agl-newsletter-v4-root .t-form>div>span{color:#62656d!important;-webkit-text-fill-color:#62656d!important}
html[data-agl-theme=dark] body #allrecords#allrecords #agl-newsletter-v4-root .ag-news__panel{background:#1b1c20!important;border-color:rgba(255,255,255,.08)!important}
html[data-agl-theme=dark] body #allrecords#allrecords #agl-newsletter-v4-root .ag-news__title{color:#f3f3f4!important;-webkit-text-fill-color:#f3f3f4!important}
html[data-agl-theme=dark] body #allrecords#allrecords #agl-newsletter-v4-root :is(.ag-news__tag,.ag-news__text){color:#9da0a8!important;-webkit-text-fill-color:#9da0a8!important}
html[data-agl-theme=dark] body #allrecords#allrecords #agl-newsletter-v4-root .t-input{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.14)!important;color:#f3f3f4!important;-webkit-text-fill-color:#f3f3f4!important}
html[data-agl-theme=dark] body #allrecords#allrecords #agl-newsletter-v4-root .t-input::placeholder{color:#9da0a8!important;-webkit-text-fill-color:#9da0a8!important}
html[data-agl-theme=dark] body #allrecords#allrecords #agl-newsletter-v4-root .t-form>div>span{color:#9da0a8!important;-webkit-text-fill-color:#9da0a8!important}

/* 6. Подборки (27.11.2026): иллюстрация без текста + текст карточки в стиле видеокурсов. */
html body #allrecords #agl-app#agl-app .bundle .bundle-visual img:not([data-agl-ill]){opacity:0!important}
html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-visual{position:relative!important;aspect-ratio:auto!important;height:290px!important;width:100%!important;align-self:stretch!important;flex:0 0 auto!important;overflow:hidden!important;
  background:linear-gradient(180deg,rgba(18,19,22,.025),rgba(18,19,22,.06))!important;border-radius:0!important}
html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-visual img{position:absolute!important;right:0!important;bottom:0!important;left:auto!important;top:auto!important;
  width:auto!important;height:100%!important;max-width:72%!important;object-fit:contain!important;object-position:right bottom!important;transform:none!important;opacity:1;transition:transform .35s ease!important}
html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2:hover .bundle-visual img{transform:scale(1.025)!important;transform-origin:right bottom}
html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .agl-bn{position:absolute;left:22px;bottom:16px;font-size:64px;line-height:1;font-weight:600;letter-spacing:-.04em;color:rgba(18,19,22,.14);font-family:Onest,system-ui,sans-serif;pointer-events:none}
html[data-agl-theme=dark] body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-visual{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.055))!important}
html[data-agl-theme=dark] body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .agl-bn{color:rgba(255,255,255,.16)}
html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-content{padding:22px 24px 26px!important}
html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-content .num{font-size:13px!important;letter-spacing:0!important;text-transform:none!important;font-weight:400!important;color:#62656d!important;-webkit-text-fill-color:#62656d!important;margin:0 0 8px!important}
html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-content h3{font-size:23px!important;line-height:1.22!important;font-weight:600!important;letter-spacing:-.02em!important;margin:0 0 8px!important;min-height:0!important}
html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-content>p{font-size:15px!important;line-height:1.5!important;font-weight:300!important;color:#62656d!important;-webkit-text-fill-color:#62656d!important;margin:0 0 16px!important;min-height:0!important}
html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-content ol{list-style:none!important;counter-reset:aglb;padding:0!important;margin:0 0 18px!important;border-top:1px solid rgba(18,19,22,.1)}
html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-content ol li{counter-increment:aglb;display:flex!important;gap:12px;align-items:baseline;padding:9px 0!important;margin:0!important;border-bottom:1px solid rgba(18,19,22,.1);font-size:14px!important;line-height:1.35!important;font-weight:400!important}
html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-content ol li::before{content:counter(aglb,decimal-leading-zero);flex:none;width:20px;font-size:12px;font-weight:600;color:#f2541b;font-variant-numeric:tabular-nums}
html[data-agl-theme=dark] body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-content :is(.num,>p){color:#9da0a8!important;-webkit-text-fill-color:#9da0a8!important}
html[data-agl-theme=dark] body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-content :is(ol,ol li){border-color:rgba(255,255,255,.1)!important}
html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-content{display:flex!important;flex-direction:column!important}
html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-content button[data-bundlepreview]{margin-top:auto!important}
@media(max-width:640px){html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-visual{height:250px!important}html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .agl-bn{font-size:52px;left:18px}html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-content{padding:20px 20px 22px!important}html body #allrecords #agl-app#agl-app .bundle.agl-bundle-v2 .bundle-content h3{font-size:21px!important}}
