/* Базовый стиль для  */
u {
  text-decoration-color: #97da3c;      /* Цвет линии */
  text-decoration-style: solid;        /* Стиль линии */
  text-decoration-thickness: 6px;      /* Толщина линии */
  text-underline-offset: 12px;         /* Отступ линии от текста на больших экранах */
}

/* Малые экраны до 480px — отступ 6px */
@media only screen and (max-width: 480px) {
  u {
    text-underline-offset: 6px;        /* Мобильный отступ */
  }
}

/* Экраны от 480px до 960px — отступ 8px */
@media only screen and (min-width: 480px) and (max-width: 640px) {
  u {
    text-underline-offset: 8px;       /* Планшеты / средние ширины */
  }
}

/* Экраны от 480px до 960px — отступ 10px */
@media only screen and (min-width: 640px) and (max-width: 1200px) {
  u {
    text-underline-offset: 10px;       /* Планшеты / средние ширины */
  }
}


/* ================= ВЕРХНЕЕ МЕНЮ (блок ME203AN) =================
   Меняйте только значения переменных.                                   */

/* ---------- Цвета и эффекты: общие для всех экранов ---------- */
:root{
  --dm-text: #4a4a4a;          /* цвет пунктов */
  --dm-accent: #5b9fd6;        /* активный / наведённый пункт */
  --dm-line-size: 2px;         /* толщина полоски над пунктом */
  --dm-line-speed: .35s;       /* скорость выдвижения полоски */
  --dm-line-color: linear-gradient(90deg,rgba(102,163,217,.85) 15%,rgba(136,209,192,.85) 100%);
  --dm-base-line: #e4e4e4;     /* серая линия под акцентом; transparent = убрать */
  --dm-base-shift: 0px;        /* подгонка серой линии по вертикали */
  --dm-grad-from: #66a3d9;     /* градиент подменю: начало */
  --dm-grad-to: #88d1c0;       /* градиент подменю: конец */
  --dm-sub-radius: 6px;        /* скругление фона подпункта */

  /* кнопка «Записаться»: как первая кнопка слайдера.
     Для вида второй кнопки замените --m-btn-bg на #5b9fd6 */
  --m-btn-bg: var(--uc-button-bgcolor-WuHZIF,linear-gradient(.25turn,rgba(102,163,217,.85) 15%,rgba(136,209,192,.85) 100%));
  --m-btn-bg-hover: var(--uc-button-bgcolorhover-WuHZIF,#37d6c0);
  --m-btn-color: var(--uc-button-color-WuHZIF,#fafafa);
  --m-btn-radius: var(--uc-button-radius-WuHZIF,8px);
}

/* ---------- РАЗМЕРЫ ПО ЭКРАНАМ ----------
   font / sub-font / info-font / btn-font  шрифт: меню, подменю, телефон, кнопка
   logo-w      ширина логотипа
   bar-h       высота верхней плашки
   pad-x pad-y внутренние отступы плашки (слева-справа, сверху-снизу)
   gap         расстояние между пунктами меню
   item-pad    паддинг пункта меню          item-h  высота пункта
   dir         row = в строку, column = в столбик
   align       flex-start (слева) | center | flex-end (справа)
   line-offset высота полоски над пунктом
   btn-h btn-w btn-pad  высота, мин. ширина и паддинг кнопки
   sub-top     отступ окна подменю от меню
   sub-w sub-minh       ширина и мин. высота окна подменю
   sub-boxpad  паддинг окна                 sub-gap расстояние между подпунктами
   sub-pad     паддинг фона подпункта       sub-item-h  его высота
   sub-shift   сдвиг текста при наведении
   sub-align   left | center | right                                      */

/* 1200px и шире */
:root{
  --m-font: 18px;
  --m-sub-font: 16px;
  --m-info-font: 26px;
  --m-btn-font: 16px;
  --m-logo-w: 240px;
  --m-bar-h: 80px;
  --m-pad-x: 0px;
  --m-pad-y: 0px;
  --m-gap: 28px;
  --m-item-pad: 0px 0;
  --m-item-h: 48px;
  --m-dir: row;
  --m-align: left;
  --m-line-offset: 0px;
  --m-btn-h: 44px;
  --m-btn-w: 140px;
  --m-btn-pad: 8px 10px;
  --m-sub-top: 0px;
  --m-sub-w: 260px;
  --m-sub-minh: 0px;
  --m-sub-boxpad: 10px;
  --m-sub-gap: 2px;
  --m-sub-pad: 10px 12px;
  --m-sub-item-h: 40px;
  --m-sub-shift: 10px;
  --m-sub-align: left;
}
/* 960–1199 */
@media (max-width:1199px){ :root{
  --m-font: 18px;
  --m-sub-font: 16px;
  --m-info-font: 24px;
  --m-btn-font: 15px;
  --m-logo-w: 220px;
  --m-bar-h: 80px;
  --m-pad-x: 0px;
  --m-pad-y: 0px;
  --m-gap: 18px;
  --m-item-pad: 0px 0;
  --m-item-h: 40px;
  --m-dir: row;
  --m-align: left;
  --m-line-offset: 0px;
  --m-btn-h: 38px;
  --m-btn-w: 130px;
  --m-btn-pad: 8px 10px;
  --m-sub-top: 8px;
  --m-sub-w: 240px;
  --m-sub-minh: 0px;
  --m-sub-boxpad: 8px;
  --m-sub-gap: 2px;
  --m-sub-pad: 9px 12px;
  --m-sub-item-h: 38px;
  --m-sub-shift: 8px;
  --m-sub-align: left;
}}
/* 640–959 */
@media (max-width:959px){ :root{
  --m-font: 16px;
  --m-sub-font: 15px;
  --m-info-font: 18px;
  --m-btn-font: 15px;
  --m-logo-w: 180px;
  --m-bar-h: 70px;
  --m-pad-x: 0px;
  --m-pad-y: 0px;
  --m-gap: 16px;
  --m-item-pad: 8px 0;
  --m-item-h: 32px;
  --m-dir: row;
  --m-align: left;
  --m-line-offset: 0px;
  --m-btn-h: 40px;
  --m-btn-w: 140px;
  --m-btn-pad: 8px 12px;
  --m-sub-top: 6px;
  --m-sub-w: 220px;
  --m-sub-minh: 0px;
  --m-sub-boxpad: 8px;
  --m-sub-gap: 2px;
  --m-sub-pad: 9px 12px;
  --m-sub-item-h: 38px;
  --m-sub-shift: 8px;
  --m-sub-align: left;
}}
/* 480–639 */
@media (max-width:639px){ :root{
  --m-font: 15px;
  --m-sub-font: 14px;
  --m-info-font: 18px;
  --m-btn-font: 15px;
  --m-logo-w: 170px;
  --m-bar-h: 70px;
  --m-pad-x: 0px;
  --m-pad-y: 0px;
  --m-gap: 10px;
  --m-item-pad: 8px 0;
  --m-item-h: 36px;
  --m-dir: column;
  --m-align: center;
  --m-line-offset: 0px;
  --m-btn-h: 40px;
  --m-btn-w: 140px;
  --m-btn-pad: 8px 12px;
  --m-sub-top: 6px;
  --m-sub-w: 220px;
  --m-sub-minh: 0px;
  --m-sub-boxpad: 6px;
  --m-sub-gap: 2px;
  --m-sub-pad: 8px 10px;
  --m-sub-item-h: 38px;
  --m-sub-shift: 6px;
  --m-sub-align: center;
}}
/* до 479 (телефоны) */
@media (max-width:479px){ :root{
  --m-font: 15px;
  --m-sub-font: 14px;
  --m-info-font: 16px;
  --m-btn-font: 14px;
  --m-logo-w: 150px;
  --m-bar-h: 70px;
  --m-pad-x: 0px;
  --m-pad-y: 0px;
  --m-gap: 8px;
  --m-item-pad: 8px 0;
  --m-item-h: 36px;
  --m-dir: column;
  --m-align: center;
  --m-line-offset: 0px;
  --m-btn-h: 40px;
  --m-btn-w: 130px;
  --m-btn-pad: 6px 10px;
  --m-sub-top: 6px;
  --m-sub-w: 200px;
  --m-sub-minh: 0px;
  --m-sub-boxpad: 6px;
  --m-sub-gap: 2px;
  --m-sub-pad: 8px 10px;
  --m-sub-item-h: 36px;
  --m-sub-shift: 6px;
  --m-sub-align: center;
}}

/* ====================== ПРАВИЛА (обычно не меняются) ====================== */

/* плашка: высота и боковые отступы */
html body .dm-row{
  box-sizing: border-box !important;
  min-height: var(--m-bar-h) !important;
  padding: var(--m-pad-y) var(--m-pad-x) !important;
}
/* логотип */
html body img.dm-logo{
  width: var(--m-logo-w) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
}
/* список пунктов */
html body ul.dm-list{
  display: flex !important;
  flex-direction: var(--m-dir) !important;
  flex-wrap: wrap;
  justify-content: var(--m-align) !important;
  align-items: center;
  column-gap: var(--m-gap);
  row-gap: var(--m-gap);
  width: 100%;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html body ul.dm-list[style*="display: none"], html body ul.dm-list[hidden]{ display: none !important; }
html body ul.dm-list > li{ display: block !important; margin: 0 !important; padding: 0 !important; }

html body a.t-menu__link-item{
  display: inline-flex !important;
  align-items: center;
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box;
  min-height: var(--m-item-h);
  padding: var(--m-item-pad) !important;
  font-size: var(--m-font) !important;
  line-height: 1.2 !important;
  color: var(--dm-text) !important;
  opacity: 1 !important;
}
html body li:hover > a.t-menu__link-item,
html body a.t-menu__link-item:focus-visible,
html body a.t-menu__link-item.t-active{ color: var(--dm-accent) !important; }

/* убираем штатные подчёркивания Тильды */
html body a.t-menu__link-item.t-menu__link-item{
  border: 0 !important; box-shadow: none !important; text-decoration: none !important; background-image: none !important;
}
html body a.t-menu__link-item.t-menu__link-item::after,
html body a.t-menu__link-item.t-menu__link-item *::after{ display: none !important; }

/* дополнительная информация (телефон) */
html body .dm-info, html body .dm-info *{ font-size: var(--m-info-font) !important; line-height: 1.3 !important; }

/* серая линия и акцентная полоска (там, где меню в строку) */
@media (min-width:981px){
  html body ul.dm-list::before{
    content: ""; position: absolute; left: 0; right: 0; height: 1px; pointer-events: none;
    top: calc(var(--dm-base-shift) - var(--m-line-offset));
    background: var(--dm-base-line);
  }
  html body ul.dm-list{ position: relative; }
  html body a.t-menu__link-item.t-menu__link-item::before{
    content: "" !important; display: block !important; position: absolute !important;
    top: calc(-1 * var(--m-line-offset)) !important; bottom: auto !important; left: 0 !important;
    width: 100% !important; height: var(--dm-line-size) !important; margin: 0 !important; border: 0 !important;
    background: var(--dm-line-color) !important; opacity: 1 !important; pointer-events: none;
    transform: scaleX(0) !important; transform-origin: left center !important;
    transition: transform var(--dm-line-speed) ease !important; animation: none !important;
  }
  html body li:hover > a.t-menu__link-item.t-menu__link-item::before,
  html body a.t-menu__link-item.t-menu__link-item:focus-visible::before,
  html body a.t-menu__link-item.t-menu__link-item.t-active::before{ transform: scaleX(1) !important; }
}

/* ---------- Подменю ---------- */
html body .t-menusub__menu{
  box-sizing: border-box;
  margin-top: var(--m-sub-top) !important;
  min-width: var(--m-sub-w) !important;
  max-width: calc(100vw - 20px) !important;
  min-height: var(--m-sub-minh);
  text-align: var(--m-sub-align) !important;
}
/* невидимый «мостик», чтобы подменю не закрывалось в зазоре */
html body .t-menusub__menu::before{
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--m-sub-top);
}
html body .t-menusub__content{ padding: var(--m-sub-boxpad) !important; }
html body .t-menusub__list{ display: flex; flex-direction: column; row-gap: var(--m-sub-gap); margin: 0; padding: 0; }
html body .t-menusub__list-item,
html body .t-menusub__innermenu-item{ margin: 0 !important; padding: 0 !important; }
html body .t-menusub__list-item a.t-menusub__link-item{
  display: flex !important;
  align-items: center;
  justify-content: var(--m-sub-align);
  box-sizing: border-box;
  width: 100%;
  min-height: var(--m-sub-item-h);
  padding: var(--m-sub-pad) !important;
  border: 0 !important;
  border-radius: var(--dm-sub-radius);
  font-size: var(--m-sub-font) !important;
  line-height: 1.25 !important;
  text-align: var(--m-sub-align) !important;
  text-decoration: none !important;
  color: var(--dm-text) !important;
  opacity: 1 !important;
  transition: text-indent .2s ease, color .2s ease;
}
html body .t-menusub__list-item a.t-menusub__link-item:hover,
html body .t-menusub__list-item a.t-menusub__link-item:focus-visible,
html body .t-menusub__list-item a.t-menusub__link-item.t-active{
  background-image: linear-gradient(90deg, var(--dm-grad-from), var(--dm-grad-to)) !important;
  color: #fff !important;
}
/* сдвиг текста при наведении, фон остаётся на месте */
html body .t-menusub__list-item a.t-menusub__link-item:hover,
html body .t-menusub__list-item a.t-menusub__link-item:focus-visible{ text-indent: var(--m-sub-shift); }

/* ===== КНОПКА БЛОКА МЕНЮ (текст и ссылка меняются в самом блоке) ===== */
html body .t-menu-base__button .t-btnflex.t-btnflex:not(#_):not(#__){
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  height: var(--m-btn-h) !important;
  min-width: var(--m-btn-w) !important;
  padding: var(--m-btn-pad) !important;
  border-radius: var(--m-btn-radius) !important;
  background: var(--m-btn-bg) !important;
  color: var(--m-btn-color) !important;
  font-family: 'TildaSans',var(--t-text-font,Arial),sans-serif !important;
  font-size: var(--m-btn-font) !important;
  font-weight: 300 !important;
}
html body .t-menu-base__button .t-btnflex.t-btnflex:not(#_):not(#__):is(:hover,:focus-visible){ background: var(--m-btn-bg-hover) !important; color: var(--m-btn-color) !important; }
html body .t-menu-base__button .t-btnflex.t-btnflex:not(#_):not(#__)::after{ display: none !important; }

/* свечение — на обёртке: тень самой кнопки Тильда фиксирует через !important */
html body .t-menu-base__button:has(.t-btnflex){
  display: inline-flex !important;
  border-radius: var(--m-btn-radius);
  animation: neon-halo var(--neon-time) linear infinite;
}

/* бегущая неоновая рамка вместо штатной */
html body .t-menu-base__button .t-btnflex.t-btnflex:not(#_):not(#__) .t-btnflex__border::before{
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  padding: var(--neon-width) !important;
  background: conic-gradient(from var(--neon-angle),
    var(--neon-color-1), var(--neon-color-2) 22%, var(--neon-spot) 34%, var(--neon-spot) 46%,
    var(--neon-color-2) 58%, var(--neon-color-1) 80%, var(--neon-color-1)) !important;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  mask-composite: exclude !important;
  animation: neon-run var(--neon-time) linear infinite !important;
}
html body .t-menu-base__button .t-btnflex.t-btnflex:not(#_):not(#__) .t-btnflex__border::after{ display: none !important; }
@media (prefers-reduced-motion:reduce){
  html body .t-menu-base__button:has(.t-btnflex){ animation: none; box-shadow: 0 0 var(--neon-glow) var(--neon-color-2); }
  html body .t-menu-base__button .t-btnflex.t-btnflex:not(#_):not(#__) .t-btnflex__border::before{ animation: none !important; }
}

/* активный, нажатый и наведённый подпункт: одинаковый вид на всех экранах */
html body a.t-menusub__link-item.t-menusub__link-item:not(#_):not(#__):is(:hover,:focus,:active,.t-active,.dm-active,[aria-current]),
html body .t-active > a.t-menusub__link-item.t-menusub__link-item:not(#_):not(#__){
  display: flex !important;
  align-items: center !important;
  justify-content: var(--m-sub-align) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: var(--m-sub-item-h) !important;
  margin: 0 !important;
  padding: var(--m-sub-pad) !important;
  border: 0 !important;
  border-radius: var(--dm-sub-radius) !important;
  background-image: linear-gradient(90deg, var(--dm-grad-from), var(--dm-grad-to)) !important;
  color: #fff !important;
  opacity: 1 !important;
}
html body a.t-menusub__link-item.t-menusub__link-item:not(#_):not(#__):is(:hover,:focus,:active,.t-active,.dm-active,[aria-current]) *{ color: #fff !important; }
/* фон не должен дублироваться на строке вокруг ссылки */
html body li.t-menusub__list-item.t-menusub__list-item:not(#_):not(#__){ background: none !important; }

/* Слайдер: стили. */

/* ===== СТРЕЛКИ, ТОЧКИ, ПАУЗА: меняйте только значения ===== */
.ds{
  --arrow-bg:#ffffff33;          /* фон кружка стрелки */
  --arrow-bg-hover:#ffffff73;    /* фон стрелки при наведении */
  --arrow-icon:#fafafa;          /* цвет самой стрелки */
  --arrow-opacity:1;             /* прозрачность стрелки: 0..1 */
  --nav-bg:#143c6459;            /* фон плашки с точками */
  --nav-opacity:1;               /* прозрачность всей плашки: 0..1 */
  --dot-border:#fafafa3d;          /* обводка неактивной точки */
  --dot-bg:transparent;          /* фон неактивной точки */
  --dot-active-border:linear-gradient(0.25turn,rgba(102,163,217,0.85) 28%,rgba(136,209,192,0.85) 100%);   /* обводка активной точки */
  --dot-active-bg:linear-gradient(0.25turn,rgba(102,163,217,0.85) 15%,rgba(136,209,192,0.85) 100%);       /* фон активной точки */
  --play-border:#fafafa3d;         /* обводка кнопки паузы */
  --play-bg:transparent;         /* фон кнопки паузы */
  --play-icon:#fafafa;           /* символ паузы / запуска */
}

/* Прозрачность отдельного цвета: две последние цифры, #ffffff80 = 50% */
.ds{--h:500px;--grad-from:#4a8fd4;--grad-to:#6fc7bd;--font:'TildaSans',var(--t-text-font,Arial),sans-serif;
  position:relative;width:100%;height:var(--h);overflow:hidden;background:#4a8fd4;color:#fafafa;font-family:var(--font);outline:none;touch-action:pan-y}
.ds *{box-sizing:border-box}
.ds-slide{position:absolute;inset:0;visibility:hidden;z-index:0;overflow:hidden}
.ds-slide.is-prev{visibility:visible;z-index:1}
.ds-slide.is-active{visibility:visible;z-index:2}
.ds-bg{position:absolute;inset:0;background-color:var(--grad-from);background-size:cover;background-position:center}
.ds-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,var(--grad-from),var(--grad-to));opacity:var(--shade,0)}
.ds-in{position:relative;max-width:1200px;height:100%;margin:0 auto}
.ds-text{position:absolute;left:20px;top:71px;width:540px;z-index:2;font-family:var(--font)}
.ds-text>*{display:flow-root}
.ds .ds-sub{font-size:32px;font-weight:300;line-height:1;margin:10px 0}
.ds .ds-title{margin:0;padding:0;font-family:var(--font);font-size:52px;font-weight:600;line-height:1;color:#fafafa}
.ds .ds-title span{display:table;background:rgba(250,250,250,.24);padding:10px 20px;margin:5px 0}
.ds .ds-desc{font-size:24px;font-weight:300;line-height:1;margin:20px 0}
.ds .ds-btns{display:flex;gap:20px;padding-bottom:4px}
.ds a.ds-btn{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:center;min-width:140px;height:55px;padding:8px 10px;font-family:var(--font);line-height:1;text-align:center;text-decoration:none;transition:background-color .2s,box-shadow .2s,color .2s}
.ds a.ds-btn::before{content:"";position:absolute;inset:0;padding:2px;border-radius:inherit;pointer-events:none;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude}

/* волна-блик на левой кнопке, как в вашем Zero-блоке */
.ds a.ds-btn-1::after{content:"";position:absolute;top:0;left:-100%;width:200%;height:350%;border-radius:100%;background:rgba(255,255,255,.8);transform:scale(0);animation:ds-ripple 6s linear infinite;pointer-events:none}
@keyframes ds-ripple{0%{opacity:1;transform:scale(0)}20%,100%{opacity:0;transform:scale(2.5)}}
.ds a.ds-btn-1{background:var(--uc-button-bgcolor-WuHZIF,linear-gradient(.25turn,rgba(102,163,217,.85) 15%,rgba(136,209,192,.85) 100%));color:var(--uc-button-color-WuHZIF,#fafafa);border-radius:var(--uc-button-radius-WuHZIF,8px);box-shadow:var(--uc-button-shadow-WuHZIF,0 15px 30px -10px rgba(0,11,48,.2));font-size:var(--uc-button-fontsize-WuHZIF,16px);font-weight:var(--uc-button-fontweight-WuHZIF,300);text-transform:var(--uc-button-uppercase-WuHZIF,uppercase)}
.ds a.ds-btn-1::before{background:var(--uc-button-bordercolor-WuHZIF,rgba(250,250,250,.24))}
.ds a.ds-btn-1:hover{background:var(--uc-button-bgcolorhover-WuHZIF,#37d6c0);color:var(--uc-button-colorhover-WuHZIF,#fafafa);box-shadow:var(--uc-button-shadowhover-WuHZIF,0 10px 40px -2px rgba(0,11,48,.3))}
.ds a.ds-btn-1:hover::before{background:var(--uc-button-bordercolorhover-WuHZIF,linear-gradient(.25turn,rgba(102,163,217,.85) 28%,rgba(136,209,192,.85) 100%))}
.ds a.ds-btn-2{background:var(--uc-button-bgcolor-pOuBLvA2k,#5b9fd6);color:var(--uc-button-color-pOuBLvA2k,#fafafa);border-radius:var(--uc-button-radius-pOuBLvA2k,8px);box-shadow:var(--uc-button-shadow-pOuBLvA2k,0 15px 30px -10px rgba(0,11,48,.2));font-size:var(--uc-button-fontsize-pOuBLvA2k,16px);font-weight:var(--uc-button-fontweight-pOuBLvA2k,300);text-transform:var(--uc-button-uppercase-pOuBLvA2k,uppercase)}
.ds a.ds-btn-2::before{background:var(--uc-button-bordercolor-pOuBLvA2k,rgba(250,250,250,.24))}
.ds a.ds-btn-2:hover{background:var(--uc-button-bgcolorhover-pOuBLvA2k,#37d6c0);color:var(--uc-button-colorhover-pOuBLvA2k,#fafafa);box-shadow:var(--uc-button-shadowhover-pOuBLvA2k,0 10px 40px -2px rgba(0,11,48,.3))}
.ds a.ds-btn-2:hover::before{background:var(--uc-button-bordercolorhover-pOuBLvA2k,linear-gradient(.25turn,rgba(102,163,217,.85) 28%,rgba(136,209,192,.85) 100%))}
.ds-pic{position:absolute;left:560px;bottom:0;width:740px;height:100%}
.ds-pic img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center}

/* появление контента */
.ds-text>*{opacity:0}
.ds-slide.is-active .ds-text>*{animation:ds-up .7s ease forwards}
.ds-slide.is-active .ds-text>:nth-child(1){animation-delay:.45s}
.ds-slide.is-active .ds-text>:nth-child(2){animation-delay:.6s}
.ds-slide.is-active .ds-text>:nth-child(3){animation-delay:.75s}
.ds-slide.is-active .ds-text>:nth-child(4){animation-delay:.9s}
.ds-slide.is-prev .ds-text>*{animation:ds-out .3s ease both}
@keyframes ds-out{from{opacity:1}to{opacity:0}}
.ds-pic img{opacity:0}
.ds-slide.is-active .ds-pic img{animation:ds-pic 1.4s cubic-bezier(.2,.7,.2,1) .5s forwards}
.ds-slide.is-prev .ds-pic img{opacity:1}
@keyframes ds-up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes ds-pic{from{opacity:0;transform:translateX(-90px)}to{opacity:1;transform:none}}

/* холст переходов и медленный «наезд» после смены */
.ds-fx{position:absolute;left:0;top:0;width:100%;height:100%;display:block;z-index:1}
.ds-in{z-index:2}
.ds-slide.is-wait .ds-bg{visibility:hidden}
.ds-slide.is-zoom .ds-bg{animation:ds-ken 7s ease-out both}
@keyframes ds-ken{from{transform:scale(1)}to{transform:scale(1.07)}}

/* управление */
.ds-nav{position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;padding:4px 10px;border-radius:30px;background:rgba(20,60,100,.35);bottom:14px;z-index:5;display:flex;justify-content:center;align-items:center;gap:6px}
.ds button{appearance:none;border:0;padding:0;margin:0;cursor:pointer;color:#fff;background:none;font:inherit}
.ds-dot{width:24px;height:24px;display:grid;place-items:center}
.ds-dot::before{content:"";width:11px;height:11px;border-radius:50%;border:2px solid #fff;transition:background .2s}
.ds-dot[aria-current="true"]::before{background:#fff}
.ds-play{width:30px;height:30px;margin-left:10px!important;border:2px solid #fff!important;border-radius:50%;display:grid;place-items:center}
.ds-play svg{width:12px;height:12px;fill:#fff}
.ds button.ds-arrow{position:absolute;top:50%;z-index:5;width:46px;height:46px;margin-top:-23px;border-radius:50%;background:rgba(255,255,255,.22);display:grid;place-items:center;opacity:0;pointer-events:none;transition:opacity .25s,background .2s}
.ds button.ds-arrow:hover{background:rgba(255,255,255,.45)}
.ds-arrow svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2.5}
.ds-arrow.prev{left:12px}.ds-arrow.next{right:12px}
.ds:hover .ds-arrow,.ds:focus .ds-arrow,.ds:focus-within .ds-arrow{opacity:1;pointer-events:auto}
.ds button:focus-visible,.ds a:focus-visible{outline:3px solid #ffe27a;outline-offset:2px}

@media (max-width:1279px){ .ds button.ds-arrow{top:auto;bottom:14px} }
@media (max-width:1199px){
  .ds-in{max-width:960px}
  .ds-text{left:10px;top:83px;width:500px}
  .ds-pic{left:500px}
  .ds .ds-sub{font-size:30px}.ds .ds-title{font-size:48px}.ds .ds-desc{font-size:22px}
}
@media (max-width:959px){
  .ds{--h:710px}
  .ds-in{max-width:640px}
  .ds-text{left:10px;right:10px;width:auto;top:20px;text-align:center}
  .ds .ds-title span{margin-left:auto;margin-right:auto}
  .ds .ds-btns{justify-content:center}
  .ds-pic{left:0;width:100%;height:320px}
  .ds .ds-sub{font-size:26px}.ds .ds-title{font-size:42px}
  .ds button.ds-arrow{top:auto;bottom:80px}
}
@media (max-width:639px){
  .ds{--h:650px}
  .ds-pic{height:300px}
  .ds .ds-sub{font-size:24px}.ds .ds-title{font-size:36px}.ds .ds-desc{font-size:18px}
}
@media (max-width:479px){
  .ds{--h:545px}
  .ds-text{top:15px}
  .ds-pic{height:220px}
  .ds .ds-sub{font-size:22px}.ds .ds-title{font-size:30px}.ds .ds-title span{padding:6px 12px;margin-top:3px;margin-bottom:3px}
  .ds .ds-desc{font-size:16px;margin:12px 0}
  .ds button.ds-arrow{width:36px;height:36px;bottom:60px}
}
@media (prefers-reduced-motion:reduce){.ds *{animation-duration:.01s!important;animation-delay:0s!important}}

/* настройки элементов управления */
.ds button.ds-arrow{background:var(--arrow-bg)}
.ds button.ds-arrow:hover{background:var(--arrow-bg-hover)}
.ds .ds-arrow svg{stroke:var(--arrow-icon);fill:none}
.ds:hover .ds-arrow,.ds:focus .ds-arrow,.ds:focus-within .ds-arrow{opacity:var(--arrow-opacity)}
.ds .ds-nav{background:var(--nav-bg);opacity:var(--nav-opacity)}
.ds .ds-dot::before{border-color:var(--dot-border);background:var(--dot-bg)}
.ds .ds-dot[aria-current="true"]::before{border-color:var(--dot-active-border);background:var(--dot-active-bg)}
.ds button.ds-play{border-color:var(--play-border)!important;background:var(--play-bg)}
.ds .ds-play svg{fill:var(--play-icon)}

/* клик по половинам слайда; текст остаётся выделяемым */
.ds{cursor:pointer}
.ds .ds-sub,.ds .ds-desc,.ds .ds-title span{width:fit-content;max-width:100%;cursor:text;-webkit-user-select:text;user-select:text}
.ds .ds-nav{cursor:default}
@media (max-width:959px){.ds .ds-sub,.ds .ds-desc{margin-left:auto;margin-right:auto}}

/* ===== СЛАЙДЕР: высота и расстояния по экранам. =====
   --h        высота слайдера (такую же задайте в Zero Block)
   --text-top отступ текста от верха
   --pic-h    высота блока с картинкой (прижат к низу)                         */

.ds{ --h:500px; --text-top:71px; --pic-h:100%; }                  /* 1200 и шире */
@media (max-width:1199px){ .ds{ --h:500px; --text-top:83px; --pic-h:100%; } }  /* 960–1199 */
@media (max-width:959px) { .ds{ --h:680px; --text-top:20px; --pic-h:320px; } } /* 640–959 */
@media (max-width:639px) { .ds{ --h:640px; --text-top:20px; --pic-h:300px; } } /* 480–639 */
@media (max-width:479px) { .ds{ --h:500px; --text-top:15px; --pic-h:220px; } } /* телефоны */

.ds .ds-text{ top:var(--text-top); }
.ds .ds-pic{ height:var(--pic-h); }



/* Зуб → улыбка: стили и настройки. */

/* ===== НАСТРОЙКИ: меняйте только значения. Цвета неона и улыбки только в формате #rrggbb ===== */
.lk-tooth{
  --tooth-height: 520;         /* высота блока, px */
  --tooth-background: #444f5d; /* цвет фона ('transparent' = прозрачный) */
  --tooth-color-1: var(--neon-color-1);    /* неон: основной цвет */
  --tooth-color-2: var(--neon-color-2);    /* неон: второй цвет */
  --tooth-smile-color: var(--neon-spot); /* цвет улыбки, глаз и блика */
  --tooth-mode: hover;         /* 'hover' = улыбка при фокусе, 'auto' = по кругу, 'smile' = всегда улыбка, 'wave' = зуб с искажением при фокусе */
  --tooth-size: 0.66;          /* размер зуба от меньшей стороны блока (0.3–0.8) */
  --tooth-thickness: 1.5;      /* утолщение контура зуба (0 = как в SVG) */
  --tooth-glow: 1.0;           /* яркость свечения (0–2) */
  --tooth-speed: 50;           /* бег свечения, градусов в секунду */
  --tooth-duration: 0.9;       /* длительность превращения, сек */
  --tooth-pause: 3;            /* для 'auto': сколько секунд держать каждую форму */
  --tooth-distortion: 5;       /* сила волны (0 = без волны) */
  --tooth-shine: 1;            /* блик на эмали (1 = да, 0 = нет) */
  --tooth-waves: 6;            /* количество волн */
  --tooth-distortion-angle: 0; /* сдвиг волны, градусы */
  --tooth-idle-wave: 1;        /* «дыхание» улыбки (0 = неподвижна) */
  --tooth-wink: 1;             /* подмигивание левым глазом (бывший штрих эмали) (1 = да, 0 = нет) */
  --tooth-wink-every: 3;       /* пауза между подмигиваниями, сек */
  --tooth-wink-hold: 0.35;     /* сколько секунд глаз остаётся закрытым */
}
/* пример для телефонов */
@media (max-width:639px){ .lk-tooth{ --tooth-height: 380; } }

.lk-tooth{position:relative;width:100%;overflow:hidden;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.lk-tooth canvas{position:absolute;left:0;top:0;width:100%;height:100%;display:block}
.lk-tooth:focus-visible{box-shadow:inset 0 0 0 2px #07a7e3}


/* ===== НЕОНОВАЯ КРОМКА: бегущее свечение, как у зуба. ===== */
:root{
  --neon-color-1: #07a7e3;   /* основной цвет */
  --neon-color-2: #37d6c0;   /* второй цвет */
  --neon-spot: #ebebeb;      /* бегущий блик */
  --neon-spot-glow: #37d6c0; /* цвет движущегося ореола */
  --neon-width: 2px;         /* толщина кромки */
  --neon-glow: 14px;         /* размер свечения; 0px = без свечения */
  --neon-time: 7.2s;         /* один круг: меньше = быстрее */
}

@property --neon-angle{ syntax:'\3C angle\3E '; inherits:false; initial-value:0deg; }
@keyframes neon-run{ to{ --neon-angle:360deg; } }

/* класс neon — для любых других элементов */
:where(.neon){ position:relative; }

/* где включить: уберите ненужные строки в обоих списках */
.neon::before,
.ds a.ds-btn::before,
.ds button.ds-arrow::before,
.ds .ds-nav::before{
  content:"" !important;
  position:absolute;
  inset:0;
  padding:var(--neon-width) !important;
  border-radius:inherit;
  display:block !important;
  pointer-events:none;
  background:conic-gradient(from var(--neon-angle),
    var(--neon-color-1), var(--neon-color-2) 22%, var(--neon-spot) 34%, var(--neon-spot) 46%,
    var(--neon-color-2) 58%, var(--neon-color-1) 80%, var(--neon-color-1)) !important;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite:exclude;
  animation:neon-run var(--neon-time) linear infinite;
}
/* свечение горит всегда и движется по границе вместе с бликом */
@keyframes neon-halo{
  0%{ box-shadow:0 0 calc(var(--neon-glow) * .6) var(--neon-color-1), calc(var(--neon-glow) * 0.35) calc(var(--neon-glow) * 0.49) var(--neon-glow) var(--neon-spot-glow); }
  12.5%{ box-shadow:0 0 calc(var(--neon-glow) * .6) var(--neon-color-1), calc(var(--neon-glow) * -0.09) calc(var(--neon-glow) * 0.59) var(--neon-glow) var(--neon-spot-glow); }
  25%{ box-shadow:0 0 calc(var(--neon-glow) * .6) var(--neon-color-1), calc(var(--neon-glow) * -0.49) calc(var(--neon-glow) * 0.35) var(--neon-glow) var(--neon-spot-glow); }
  37.5%{ box-shadow:0 0 calc(var(--neon-glow) * .6) var(--neon-color-1), calc(var(--neon-glow) * -0.59) calc(var(--neon-glow) * -0.09) var(--neon-glow) var(--neon-spot-glow); }
  50%{ box-shadow:0 0 calc(var(--neon-glow) * .6) var(--neon-color-1), calc(var(--neon-glow) * -0.35) calc(var(--neon-glow) * -0.49) var(--neon-glow) var(--neon-spot-glow); }
  62.5%{ box-shadow:0 0 calc(var(--neon-glow) * .6) var(--neon-color-1), calc(var(--neon-glow) * 0.09) calc(var(--neon-glow) * -0.59) var(--neon-glow) var(--neon-spot-glow); }
  75%{ box-shadow:0 0 calc(var(--neon-glow) * .6) var(--neon-color-1), calc(var(--neon-glow) * 0.49) calc(var(--neon-glow) * -0.35) var(--neon-glow) var(--neon-spot-glow); }
  87.5%{ box-shadow:0 0 calc(var(--neon-glow) * .6) var(--neon-color-1), calc(var(--neon-glow) * 0.59) calc(var(--neon-glow) * 0.09) var(--neon-glow) var(--neon-spot-glow); }
  100%{ box-shadow:0 0 calc(var(--neon-glow) * .6) var(--neon-color-1), calc(var(--neon-glow) * 0.35) calc(var(--neon-glow) * 0.49) var(--neon-glow) var(--neon-spot-glow); }
}
.neon,
.ds a.ds-btn,
.ds button.ds-arrow,
.ds .ds-nav{
  animation:neon-halo var(--neon-time) linear infinite;
}
/* кнопки появляются вместе с текстом, свечение на них то же */
/* отключаем прежнюю вспышку на левой кнопке (раз в 6 секунд) */
.ds a.ds-btn-1::after{ display:none !important; animation:none !important; }
@media (prefers-reduced-motion:reduce){
  .neon::before,.ds a.ds-btn::before,.ds button.ds-arrow::before,.ds .ds-nav::before,
  .neon,.ds a.ds-btn,.ds button.ds-arrow,.ds .ds-nav{ animation:none; }
  .neon,.ds a.ds-btn,.ds button.ds-arrow,.ds .ds-nav{ box-shadow:0 0 var(--neon-glow) var(--neon-color-2); }
}