.td-popup,.td-popup *{box-sizing:border-box}
.td-popup{width:900px;max-width:calc(100vw - 40px);padding:0!important;border-radius:13px;overflow:hidden;background:#fff;color:#101c2e;font-family:"Onest-Regular",Arial,sans-serif;text-align:left;box-shadow:0 24px 90px #0003;vertical-align:middle}
.td-popup.fancybox-content{display:inline-flex!important}
.td-popup .td-photo{width:53%;flex-shrink:0;position:relative;min-height:620px}
.td-photo img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:39% center;max-width:none}
.td-popup .td-content{width:47%;padding:66px 32px 36px;display:flex;flex-direction:column}
.td-popup h2{font-family:"Onest-Bold",Arial,sans-serif;font-size:43px;font-weight:700;line-height:1.1;letter-spacing:-1.3px;margin:0 0 18px;color:#101c2e;text-transform:none}
.td-popup h2 span{color:#ed1763;white-space:nowrap}
.td-popup p{font-size:19px;line-height:1.45;margin:0 0 22px}
.td-popup .td-close{position:absolute;z-index:2;right:10px;top:10px;display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;border-radius:50%;background:#fff;color:#101c2e;cursor:pointer}
.td-popup svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;width:32px;height:32px}
.td-popup .td-close svg{width:26px;height:26px}
.td-popup label{display:block;font-size:13px;margin:0 0 6px;color:#515967}
.td-input{display:flex;align-items:center;gap:14px;border:1px solid #d7dce3;border-radius:11px;padding:0 16px;background:white}
.td-input:focus-within{border-color:#ed1763;box-shadow:0 0 0 3px #ed17631a}
.td-input svg{width:25px;height:25px;flex-shrink:0}
.td-popup input{width:100%;min-width:0;height:58px;padding:0;border:0!important;background:transparent;color:#101c2e;outline:0!important;box-shadow:none!important;font-family:inherit;font-size:19px}
.td-popup input::placeholder{color:#637081;opacity:1}
.td-popup .td-submit{width:100%;min-height:62px;border:0;border-radius:11px;background:#ed1763;color:white;padding:14px 8px;font-family:"Onest-Medium",Arial,sans-serif;font-size:21px;font-weight:500;cursor:pointer;text-transform:none;transition:background .15s}
.td-popup .td-submit:hover{background:#d71158}
.td-popup .td-submit:disabled{opacity:.65;cursor:wait}
.td-popup .td-error{font-size:13px;color:#b61b37;margin:5px 0 10px;min-height:0}
.td-error:empty{display:none}
.td-popup .td-input{margin-bottom:16px}
.td-popup .td-privacy{font-size:10px;line-height:1.4;color:#6d7480;margin:9px 0 0}
.td-privacy a{color:inherit;text-decoration:underline}
.td-popup .td-benefits{padding:0;margin:28px -13px 0;list-style:none;display:flex;gap:6px;justify-content:space-between}
.td-benefits li{flex:1;text-align:center;font-size:10px;line-height:1.45}
.td-benefits svg{display:block;margin:0 auto 13px}
.td-popup .td-success{margin:auto 0}
.td-popup .td-success[hidden]{display:none}
.td-success>svg{width:64px;height:64px;color:#ed1763;margin-bottom:24px}
.td-popup .td-success h2{font-size:35px}
.td-popup :focus-visible{outline:3px solid #7b48e8;outline-offset:4px}
.td-popup:focus{outline:none}
.td-fancybox .fancybox-bg{background:#091322;opacity:.65}
.td-fancybox .fancybox-slide{padding:20px}
@media(max-width:700px){
 .td-popup{max-width:calc(100vw - 24px);width:410px;border-radius:14px}
 .td-popup.fancybox-content{display:inline-flex!important;flex-direction:column}
 .td-popup .td-photo{width:100%;height:150px;min-height:150px}
 .td-photo img{object-position:40% 42%}
 .td-popup .td-content{width:100%;padding:24px 23px}
 .td-popup h2{font-size:31px;line-height:1.08;letter-spacing:-.7px;margin-bottom:13px}
 .td-popup h2 br:nth-of-type(2){display:none}
 .td-popup h2 span::before{content:' '}
 .td-popup p{font-size:15px;line-height:1.45;margin-bottom:17px}
 .td-popup input{font-size:17px;height:52px}
 .td-popup .td-submit{font-size:18px;min-height:54px}
 .td-popup .td-benefits{margin:23px -10px 0;gap:3px}
 .td-benefits li{font-size:9px}
 .td-benefits svg{width:27px;height:27px;margin-bottom:8px}
 .td-popup .td-success h2{font-size:30px}
 .td-fancybox .fancybox-slide{padding:12px}
}
@media(max-height:650px) and (max-width:700px){.td-popup .td-photo{height:100px;min-height:100px}.td-popup .td-content{padding:20px}.td-popup h2{font-size:28px}.td-popup .td-benefits{margin-top:18px}}
@media(max-width:360px){.td-popup h2 span{display:block}.td-popup h2 span::before{content:none}.td-popup h2{font-size:28px}.td-popup .td-submit{font-size:17px}}
@media(prefers-reduced-motion:reduce){.td-popup *{transition:none!important}}
/* Surgut request buttons: reuse the theme's existing --flare element. */
html[data-td-host="surgut.totobi.ru"] :is(.screen__form-submit, .form-inline__button, .info__contacts-btn, #popup-form-request .offer__form-btn).default-btn {
  overflow: hidden;
  background-image: linear-gradient(115deg, #7440dc 0%, #7b48e8 30%, #9560ee 50%, #7b48e8 70%, #7440dc 100%);
  background-size: 240% 100%;
  animation: totobi-request-colour 8s ease-in-out infinite;
}
html[data-td-host="surgut.totobi.ru"] :is(.screen__form-submit, .form-inline__button, .info__contacts-btn, #popup-form-request .offer__form-btn).default-btn--white {
  background-image: linear-gradient(115deg, #fff 0%, #f5edff 50%, #fff 100%);
}
html[data-td-host="surgut.totobi.ru"] :is(.screen__form-submit, .form-inline__button, .info__contacts-btn, #popup-form-request .offer__form-btn).default-btn > .--flare {
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,.08) 38%, rgba(255,255,255,.3) 50%, rgba(255,255,255,.08) 62%, transparent 75%);
  transform: translateX(-130%) skewX(-18deg);
  animation: totobi-request-sheen 5.5s ease-in-out infinite;
}
html[data-td-host="surgut.totobi.ru"] .info__contacts-btn.default-btn--white > .--flare {
  background: linear-gradient(90deg, transparent 25%, rgba(123,72,232,.04) 38%, rgba(123,72,232,.16) 50%, rgba(123,72,232,.04) 62%, transparent 75%);
}
@keyframes totobi-request-colour {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes totobi-request-sheen {
  0%, 55% { transform: translateX(-130%) skewX(-18deg); opacity: 0; }
  60% { opacity: 1; }
  88% { transform: translateX(130%) skewX(-18deg); opacity: 1; }
  89%, 100% { transform: translateX(130%) skewX(-18deg); opacity: 0; }
}
html[data-td-host="surgut.totobi.ru"] :is(.screen__form-submit, .form-inline__button, .info__contacts-btn, #popup-form-request .offer__form-btn).default-btn:disabled,
html[data-td-host="surgut.totobi.ru"] :is(.screen__form-submit, .form-inline__button, .info__contacts-btn, #popup-form-request .offer__form-btn).default-btn:disabled > .--flare {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  html[data-td-host="surgut.totobi.ru"] :is(.screen__form-submit, .form-inline__button, .info__contacts-btn, #popup-form-request .offer__form-btn).default-btn {
    animation: none;
  }
  html[data-td-host="surgut.totobi.ru"] :is(.screen__form-submit, .form-inline__button, .info__contacts-btn, #popup-form-request .offer__form-btn).default-btn > .--flare {
    animation: none;
    display: none;
  }
}
/* Discount popup: pink colour flow and a visible, gentle light sweep. */
.td-popup .td-submit,
.td-popup .td-submit:hover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #dc1256 0%, #ed1763 28%, #f34c87 50%, #ed1763 72%, #dc1256 100%);
  background-size: 240% 100%;
  animation: totobi-request-colour 6s ease-in-out infinite;
}
.td-popup .td-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,.1) 38%, rgba(255,255,255,.38) 50%, rgba(255,255,255,.1) 62%, transparent 75%);
  transform: translateX(-130%) skewX(-18deg);
  animation: totobi-discount-sheen 4.5s ease-in-out infinite;
}
@keyframes totobi-discount-sheen {
  0% { transform: translateX(-130%) skewX(-18deg); opacity: 0; }
  5% { opacity: 1; }
  35% { transform: translateX(130%) skewX(-18deg); opacity: 1; }
  36%, 100% { transform: translateX(130%) skewX(-18deg); opacity: 0; }
}
.td-popup .td-submit:disabled,
.td-popup .td-submit:disabled::after { animation: none; }
.td-popup .td-submit:disabled::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .td-popup .td-submit { animation: none; }
  .td-popup .td-submit::after { animation: none; display: none; }
}
