/* =========================================================
   0) АНТИ-КОПИПАСТ для t1148 + zoomer (ТОЛЬКО CSS часть)
   JS часть уже в HEAD
========================================================= */
.t1148, .t1148 *,
.t-carousel__zoomer, .t-carousel__zoomer *,
.t-carousel__zoomer__slides, .t-carousel__zoomer__slides *{
  -webkit-user-select: none;
  user-select: none;
}
.t1148 img,
.t-carousel__zoomer img,
.t-carousel__zoomer__slides img{
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

/* =========================================================
   1) ГЛОБАЛЬНЫЕ КОНТЕЙНЕРЫ 1400+
========================================================= */
@media screen and (min-width: 1400px) {
  .t-container { max-width: 1400px; }

  .t-col_3  { max-width: calc(100% / 4 - 40px); }
  .t-col_4  { max-width: calc(100% / 3 - 40px); }
  .t-col_5  { max-width: calc(100% / 12 * 5 - 40px); }
  .t-col_7  { max-width: calc(100% / 12 * 7 - 40px); }
  .t-col_12 { max-width: calc(100% - 40px); }

  .t778 .t-col_6  { max-width: calc(50% - 40px); }
  .t1066 .t-col_6 { max-width: 50%; }

  .t-width_12 { max-width: calc(1400px - 40px); }

  /* footer */
  #t-footer .t-container .t-col_3 { max-width: calc(25% - 40px); }
  #t-footer .t-container > .t-row { display: flex; justify-content: space-between; }
  #t-footer .t-container > .t-row .t447__text_right { text-align: right; }

  /* local */
  .uc-custom__mc .t-container .t-col_3 { max-width: 1400px; }
  .uc-custom__mc .t-container > .t-row { display: flex; justify-content: space-between; }

  .t-feed__container.t897__container { max-width: 1400px; }
  .t533__container.t-list__container_inrow4.t-container { justify-content: space-between; }
  #rec671039910 .t395__wrapper { justify-content: space-between; }
}

/* =========================================================
   2) t967: уменьшить боковые паддинги (десктоп)
========================================================= */
@media screen and (min-width: 980px) {
  .t967__maincontainer,
  .t967__c12collumns{
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }
}

/* t967: оставить расширение до 1400 (десктоп 1400+) */
@media screen and (min-width: 1400px) {
  .t967__maincontainer,
  .t967__c12collumns{
    max-width: 1400px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* =========================================================
   3) t758: отступ сверху на десктопе (чтобы меню не наезжало)
   (если нужно 120 — поменяй 100 на 120)
========================================================= */
@media screen and (min-width: 980px) {
  .t758 { padding-top: 100px !important; }
}

/* =========================================================
   4) Стили/декор (то, что у тебя было ниже)
========================================================= */

/* ST315N: округление + hover scale */
.t786__bgimg { border-radius: 10px; }
@media screen and (min-width: 1200px) {
  .t786__content { transition: 0.2s ease-in-out; }
  .t786__content:hover { transform: scale(1.05); }
  .t786__separator { margin-bottom: 40px; }
}

/* AB606 */
.t477__blockimg, .t477__textwrapper { border-radius: 15px; }

/* TX20 */
.t265__wrapper { border-radius: 15px; }

/* BF306N */
.t1015__wrapper { border-radius: 15px; }

/* GL16 */
.t680__bgimg { border-radius: 30px; }

/* FD301 */
.t-feed__post-bgimg { border-radius: 15px; }

/* BF502N */
.t-popup__container, .t702__img { border-radius: 15px; }

/* ST320N */
.t-clear.t-store__grid-separator { margin-bottom: 40px; }
.t-store__card__bgimg, .t-store__card__bgimg_second { border-radius: 7px; }

@media screen and (min-width: 1200px) {
  .t951__grid-cont .t-store__card { transition: 0.2s ease-in-out; }
  .t951__grid-cont .t-store__card:hover { transform: scale(1.05); }

  /* TS203 */
  .t533 .t-section__topwrapper { margin-bottom: 50px; }

  /* FR304 */
  .t908__item_active { background-color:#f6f6f6; }
  .t908 .t-section__topwrapper { margin-bottom: 50px; }

  /* SV501 */
  .t849 .t-section__topwrapper { margin-bottom: 40px; }

  /* TS103n */
  .t728 .t-section__topwrapper { margin-bottom: 40px; }
}

/* IM001 */
img.t-img.t-width.t107__width.t-width_12.loaded { border-radius: 15px; }

/* ST200 */
.t-slds__bgimg { border-radius: 12px; }

/* t744: обводка/фон колонки (>=640) */
@media screen and (min-width: 640px){
  .t744__col.t744__col_first.t-col.t-col_4{
    background-color: #f6f6f6;
    border-radius: 12px;
    padding: 40px;
  }
}
/* t744: заголовок medium */
.t-rec[data-record-type="744"] .t744__title { font-weight: 500 !important; }

/* ME602: табы категории */
.t395__wrapper{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.t395__title{ line-height: 0.8; }
.t395__tab{
  box-shadow: inset 0 0 0 1px #fff;
  border-radius: 15px;
  margin-right: 15px;
  margin-top: 5px;
  margin-bottom: 15px;
  display: inline-block;
  width: fit-content;
}
.t395__tab_active{ box-shadow: 0 0 0 1px #f1f1f1; }

@media screen and (max-width: 960px){
  .t395__wrapper_mobile { display: none; }
  .t395__wrapper{ justify-content: flex-start; }
  .t395__title{ font-size: 10px !important; line-height: 0.5; }
  .t395__tab{ margin-right: 10px; margin-bottom: 10px; }
  .t-slds__thumbsbullet-wrapper { display: none; }
}

/* мобильный фикс */
@media (max-width: 767px){
  body { padding-top: 0 !important; }
}

/* =========================================================
   5) НАШИ ПРАВКИ: меню/подменю/контакты/стрелка/кейсы
========================================================= */

/* ПЕРЕМЕННЫЕ */
:root{
  --t978-arrow-color: #1467FA;

  --menu-hover-extra-y: 5px;
  --menu-hover-extra-x: 10px;
  --menu-hover-radius: 10px;
  --menu-hover-bg: #cedfff;
  --menu-hover-color: #000000;

  --pill-y: 5px;
  --pill-x: 10px;
  --pill-radius: 10px;

  --pill-bg: #cedfff;
  --pill-text: #000000;

  --pill-bg-hover: #aecaff;
  --pill-text-hover: #000000;

  --mail-phone-gap: 25px;
}

/* t978 arrow (если SVG — тоже покрасим) */
.t978__arrow{
  border-top-color: var(--t978-arrow-color) !important;
  border-right-color: transparent !important;
  border-bottom-color: transparent !important;
  border-left-color: transparent !important;
}
.t978__arrow svg,
.t978__arrow path,
.t978__arrow polygon,
.t978__arrow polyline{
  fill: var(--t978-arrow-color) !important;
  stroke: var(--t978-arrow-color) !important;
}

/* hover-плашка для пунктов меню (t967) */
.t967__maincontainer.t967__c12collumns .t-menu__link-item,
.t967__maincontainer.t967__c12collumns .t-menu__item > a{
  position: relative;
  z-index: 0;
  transition: color .2s ease;
}
.t967__maincontainer.t967__c12collumns .t-menu__link-item::before,
.t967__maincontainer.t967__c12collumns .t-menu__item > a::before{
  content: "";
  position: absolute;
  left: calc(-1 * var(--menu-hover-extra-x));
  right: calc(-1 * var(--menu-hover-extra-x));
  top: calc(-1 * var(--menu-hover-extra-y));
  bottom: calc(-1 * var(--menu-hover-extra-y));
  background: var(--menu-hover-bg);
  border-radius: var(--menu-hover-radius);
  opacity: 0;
  transform: scale(.98);
  transition: opacity .2s ease, transform .2s ease;
  z-index: -1;
  pointer-events: none;
}
@media (hover:hover){
  .t967__maincontainer.t967__c12collumns .t-menu__link-item:hover,
  .t967__maincontainer.t967__c12collumns .t-menu__item > a:hover{
    color: var(--menu-hover-color) !important;
  }
  .t967__maincontainer.t967__c12collumns .t-menu__link-item:hover::before,
  .t967__maincontainer.t967__c12collumns .t-menu__item > a:hover::before{
    opacity: 1;
    transform: scale(1);
  }
}

/* почта+телефон (не трогаем Telegram/перезвоните) */
.t967__additionalwrapper a[href^="mailto:"]{ margin-right: var(--mail-phone-gap); }

.t967__additionalwrapper a[href^="mailto:"],
.t967__additionalwrapper a[href^="tel:"]{
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--pill-text) !important;
  transition: color .2s ease;
}
.t967__additionalwrapper a[href^="mailto:"]::before,
.t967__additionalwrapper a[href^="tel:"]::before{
  content:"";
  position:absolute;
  left: calc(-1 * var(--pill-x));
  right: calc(-1 * var(--pill-x));
  top: calc(-1 * var(--pill-y));
  bottom: calc(-1 * var(--pill-y));
  background: var(--pill-bg);
  border-radius: var(--pill-radius);
  z-index: -1;
  pointer-events: none;
  transition: background-color .2s ease;
  opacity: 1;
}
@media (hover:hover){
  .t967__additionalwrapper a[href^="mailto:"]:hover,
  .t967__additionalwrapper a[href^="tel:"]:hover{
    color: var(--pill-text-hover) !important;
  }
  .t967__additionalwrapper a[href^="mailto:"]:hover::before,
  .t967__additionalwrapper a[href^="tel:"]:hover::before{
    background: var(--pill-bg-hover);
  }
}

/* t694/e694: регистр */
:is(.e694,.t694) :is(h1,h2,h3,.t-title,.t-name,.t-uptitle,.t-descr,.tn-atom),
:is(.e694,.t694) [style*="text-transform"]{
  text-transform: lowercase !important;
}
:is(.e694,.t694) :is(h1,h2,h3,.t-title,.t-name,.t-uptitle,.t-descr,.tn-atom)::first-letter{
  text-transform: uppercase !important;
}
:is(.e694,.t694) a{ text-transform: inherit !important; }
:is(.e694,.t694) :is(h1,h2,h3,.t-title,.t-name,.t-uptitle,.t-descr,.tn-atom){
  letter-spacing: normal !important;
}
:is(.e694,.t694) .keepcase{ text-transform: none !important; }

/* t400: стиль троеточия */
.t400 .t400-showall-ellipsis{
  font-weight:300 !important;
  letter-spacing: normal !important;
}

/* underline CSS для .menu (JS в HEAD) */
.menu{
  position: relative;
  text-decoration: none;
  transition: opacity 300ms cubic-bezier(0.51, 0.92, 0.24, 1);
}
.menu::after{
  --scale: 0;
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 2px;
  border-radius: 5px;
  background: linear-gradient(135deg, #1F5BFF, #1F5BFF);
  transform: scaleX(var(--scale));
  transform-origin: var(--x) 50%;
  transition: transform 300ms cubic-bezier(0.51, 0.92, 0.24, 1);
}
.menu:hover::after{ --scale: 1; }
.menu .tn-atom{ transition: 0.2s ease all; }
.menu .tn-atom:hover{ color: #1467FA !important; }

/* прочие стили */
.img-zoom{ border-radius: 20px; overflow: hidden; }
.img-zoom .tn-atom{ border-radius: 20px; transition: transform 300ms ease-in-out; }
.img-zoom:hover .tn-atom{ transform: scale(1.10); }
.t668__wrapper{ border-radius: 20px; }
