:root{
  /* Основная палитра (обновлённая) */
  --c-900:#0B1B3A;   /* ОСНОВНОЙ ТЕКСТ */
  --c-800:#1B3A8A;   /* primary */
  --c-600:#0E7490;   /* secondary */
  --c-400:#06B6D4;   /* accent */
  --c-100:#F7FBFF;   /* ОСНОВНОЙ ФОН */

  /* RGB для теней и rgba */
  --ink-rgb: 11,27,58;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(var(--ink-rgb),.16);
  --shadow-soft: 0 8px 20px rgba(var(--ink-rgb),.11);
}

/* ===== Global smoothness tokens ===== */
:root{
  --ease-ui: cubic-bezier(.2,.8,.2,1);
  --dur-fast: .10s;
  --dur-ui: .16s;
  --dur-slow: .28s;
}

/* Плавный скролл по якорям */
html{ scroll-behavior: smooth; }

/* Глобальная плавность для всего интерактива */
a,
button,
summary,
input,
textarea,
select,
.btn,
.card,
.panel,
.faq-item,
.nav-dd-menu a{
  transition-timing-function: var(--ease-ui);
  transition-duration: var(--dur-ui);
  transition-property: color, background-color, border-color, box-shadow, transform, opacity, filter;
}

/* Чуть быстрее для мелких hover-эффектов */
a, .nav-dd-menu a, summary{
  transition-duration: var(--dur-fast);
}

/* Плавные фокусы (приятнее табом) */
:where(a, button, input, textarea, select, summary):focus-visible{
  outline: 2px solid rgba(6,182,212,.35);
  outline-offset: 2px;
  transition: outline-color var(--dur-fast) var(--ease-ui);
}

/* Иконки/chevron (в меню и FAQ) — чтобы повороты не были резкими */
i[data-lucide]{
  transition: transform var(--dur-ui) var(--ease-ui), opacity var(--dur-ui) var(--ease-ui);
}

/* Глобально отключаем анимации, если пользователь просит меньше движения */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }

  *,
  *::before,
  *::after{
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* База */
html, body { height: 100%; }
body{
  background:#fff;
  color: var(--c-900);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ===== Мягкий переливающийся фон сайта ===== */

html{
  background: #f4f8fb;
}

body.has-ambient-background{
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
  background: transparent !important;
}

/*
  Основной неподвижный слой.
  Он находится за всем содержимым сайта и не перехватывает нажатия.
*/
.ambient-background{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(6, 182, 212, 0.10) 0%,
      rgba(6, 182, 212, 0) 38%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(27, 58, 138, 0.09) 0%,
      rgba(27, 58, 138, 0) 42%
    ),
    radial-gradient(
      circle at 65% 85%,
      rgba(14, 116, 144, 0.09) 0%,
      rgba(14, 116, 144, 0) 44%
    ),
    linear-gradient(
      135deg,
      #f8fbfd 0%,
      #f1f7fa 35%,
      #f5f8fc 65%,
      #f8fbfd 100%
    );
}

/*
  Первый размытый переливающийся цветовой слой.
*/
.ambient-background::before{
  content: "";
  position: absolute;
  width: 75vw;
  height: 75vw;
  min-width: 700px;
  min-height: 700px;
  top: -35vw;
  left: -25vw;

  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(6, 182, 212, 0.13) 0%,
      rgba(14, 116, 144, 0.08) 35%,
      rgba(27, 58, 138, 0) 70%
    );

  filter: blur(55px);
  opacity: 0.75;
  transform: translate3d(0, 0, 0);
  will-change: transform;

  animation: ambient-orb-left 28s ease-in-out infinite alternate;
}

/*
  Второй размытый переливающийся цветовой слой.
*/
.ambient-background::after{
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  min-width: 650px;
  min-height: 650px;
  right: -28vw;
  bottom: -32vw;

  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(27, 58, 138, 0.11) 0%,
      rgba(14, 116, 144, 0.08) 38%,
      rgba(6, 182, 212, 0) 72%
    );

  filter: blur(65px);
  opacity: 0.68;
  transform: translate3d(0, 0, 0);
  will-change: transform;

  animation: ambient-orb-right 34s ease-in-out infinite alternate;
}

@keyframes ambient-orb-left{
  0%{
    transform: translate3d(-3%, -2%, 0) scale(1);
  }

  50%{
    transform: translate3d(16%, 12%, 0) scale(1.08);
  }

  100%{
    transform: translate3d(7%, 23%, 0) scale(0.96);
  }
}

@keyframes ambient-orb-right{
  0%{
    transform: translate3d(3%, 4%, 0) scale(1);
  }

  50%{
    transform: translate3d(-17%, -12%, 0) scale(1.06);
  }

  100%{
    transform: translate3d(-8%, -22%, 0) scale(0.98);
  }
}

/*
  Всё содержимое сайта располагается выше фонового слоя.
*/
body.has-ambient-background header{
  position: relative;
  z-index: 10000;
}

body.has-ambient-background .onsite-notice,
body.has-ambient-background main,
body.has-ambient-background footer{
  position: relative;
  z-index: 1;
}

/*
  На телефонах пятна немного уменьшаются,
  чтобы браузеру было легче отрисовывать фон.
*/
@media (max-width: 768px){
  .ambient-background::before{
    width: 125vw;
    height: 125vw;
    min-width: 0;
    min-height: 0;
    top: -35vw;
    left: -55vw;
    filter: blur(45px);
    opacity: 0.65;
  }

  .ambient-background::after{
    width: 130vw;
    height: 130vw;
    min-width: 0;
    min-height: 0;
    right: -60vw;
    bottom: -35vw;
    filter: blur(50px);
    opacity: 0.58;
  }
}

/*
  Если в системе отключены анимации,
  фон остаётся статичным.
*/
@media (prefers-reduced-motion: reduce){
  .ambient-background::before,
  .ambient-background::after{
    animation: none !important;
  }
}



/* Контейнер и секции (чтобы “не было всё рядом”) */
.container{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.section{
  padding: clamp(40px, 6vw, 64px) 0;
}
.section-sm{
  padding: clamp(24px, 4vw, 34px) 0;
}

/* Карточки */
.card{
  background:#fff;
  border: 1px solid rgba(var(--ink-rgb),.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card-pad{
  padding: clamp(18px, 3vw, 26px);
}
.card-pad-lg{
  padding: clamp(22px, 4vw, 34px);
}

/* Кнопки */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 18px;
  min-height: 46px;
  border-radius: 14px;
  font-weight: 700;
  border:1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  user-select:none;
  text-align: center;
  white-space: normal;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--c-600);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover{
  background: var(--c-800);
  box-shadow: var(--shadow);
}

.btn-ghost{
  background: transparent;
  border-color: rgba(var(--ink-rgb),.18);
  color: var(--c-900);
}
.btn-ghost:hover{
  background: rgba(9,117,174,.14);
}

/* Текстовые стили */
.kicker{
  color: var(--c-600);
  font-weight: 800;
  letter-spacing:.02em;
  text-transform: uppercase;
  font-size: 12px;
}
.h1{
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.08;
  font-weight: 900;
}
.h2{
  font-size: clamp(24px, 3.8vw, 29px);
  line-height: 1.15;
  font-weight: 900;
}
.p-lead{
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.7;
  color: rgba(var(--ink-rgb),.78);
}

/* Блоки с мягким фоном */
.panel{
  background: rgba(9,117,174,.18);
  border: 1px solid rgba(var(--ink-rgb),.14);
  border-radius: var(--radius);
}

/* АНИМАЦИИ (современные и лёгкие) */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease-ui), transform .55s var(--ease-ui);
}
.reveal.show{
  opacity: 1;
  transform: translateY(0);
}
.hover-lift{
  transition: transform .2s ease, box-shadow .2s ease;
}
.hover-lift:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ===== About page accent blocks ===== */
.about-highlight{
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(var(--ink-rgb), .14);
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(var(--ink-rgb), .10);
  padding: clamp(24px, 4vw, 40px);
}

.about-highlight::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-highlight__inner{
  position: relative;
  z-index: 1;
}

.about-highlight__top{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.about-highlight__icon{
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-800), var(--c-400));
  color: #fff;
  box-shadow: 0 12px 24px rgba(6,182,212,.18);
}

.about-highlight__title{
  margin: 0;
}

.about-highlight__text{
  position: relative;
  margin: 0;
  padding-left: 20px;
  max-width: 980px;
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.75;
  color: rgba(var(--ink-rgb), .86);
  font-weight: 600;
}

.about-highlight__text::before{
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--c-800), var(--c-400));
}

.about-highlight__text strong{
  color: var(--c-800);
  font-weight: 900;
}

.about-highlight--team{
  background: #ffffff;
}

.about-highlight--team .about-highlight__text{
  max-width: none;
}

@media (max-width: 640px){

  .dvinta-scroll--animated .dvinta-scroll__paper{
  min-height: 88px;
}

.dvinta-scroll--animated .dvinta-scroll__roller--top{
  transform: translateY(24px);
}

.dvinta-scroll--animated .dvinta-scroll__roller--bottom{
  transform: translateY(-24px);
}

.dvinta-scroll--animated.is-opened .dvinta-scroll__sheet{
  margin: 16px 0;
  padding: 30px 0;
}

  .about-highlight{
    border-radius: 22px;
    padding: 22px 18px;
  }

  .about-highlight__icon{
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 14px;
  }

  .about-highlight__text{
    padding-left: 18px;
    line-height: 1.8;
  }

  .about-highlight__text::before{
    width: 5px;
  }
}

/* FAQ (чтобы не выглядело скомкано) */
.faq-item{
  border: 1px solid rgba(var(--ink-rgb),.12);
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
}
.faq-btn{
  width:100%;
  text-align:left;
  padding: 18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#fff;
}
.faq-btn:hover{ background: rgba(9,117,174,.12); }
.faq-body{
  padding: 0 20px 18px;
  color: rgba(var(--ink-rgb),.72);
  line-height:1.65;
}


/* Header dropdown hover (desktop) */
.nav-dd { position: relative; }
.nav-dd-menu{
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: 340px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(var(--ink-rgb),.12);
  box-shadow: var(--shadow);

  opacity: 0;
  transform: translateY(6px) scale(.99);
  will-change: opacity, transform;
  pointer-events: none;
  visibility: hidden;

  /* ВАЖНО: закрытие с задержкой */
  transition:
    opacity .10s cubic-bezier(.2,.8,.2,1) 0s,
    transform .10s cubic-bezier(.2,.8,.2,1) 0s,
    visibility 0s linear .5s;
}

/* ===== Dropdown: стабилизация hover (мостик) ===== */
/* ===== Header dropdown (desktop): smoother + no overlap ===== */
.nav-dd{
  position: relative;
}

/* "Мостик" между названием и меню (чтобы курсор успевал доехать) */
.nav-dd::after{
  content:"";
  position:absolute;
  left:0;
  top:100%;
  /*
    "Мостик" должен перекрывать всю ширину выпадающего меню,
    иначе при движении курсора по диагонали подменю может закрываться.
  */
  width: max(100%, 340px);
  height: 28px;
  background: transparent;
}

/* Dropdown меню: читаемый фон + высокий z-index */
.nav-dd-menu{
  position: absolute;
  left: 0;
  top: calc(100% + 14px);
  width: 340px;
  padding: 10px;
  border-radius: 16px;

  /* менее прозрачный фон + blur для читабельности */
  background: rgba(255,255,255,.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(var(--ink-rgb),.12);
  box-shadow: var(--shadow);
  z-index: 20000;

  opacity: 0;
  transform: translateY(10px) scale(.985);
  pointer-events: none;
  visibility: hidden;

  /*
    Небольшая задержка на закрытие помогает "поймать" подменю курсором,
    если пользователь двигается не идеально по прямой.
    В состоянии :hover задержка убирается (см. ниже).
  */
  transition:
    opacity .14s ease .12s,
    transform .14s ease .12s,
    visibility 0s linear .26s;
}

/* Открытие: сразу */
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;

  transition:
    opacity .12s cubic-bezier(.2,.8,.2,1) 0s,
    transform .12s cubic-bezier(.2,.8,.2,1) 0s,
    visibility 0s linear 0s;
}

/* Подзаголовок в пункте меню (чтобы читалось лучше) */
.nav-dd-sub{
  display:block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(var(--ink-rgb),.75);
  font-weight: 600;
}


/* Пункты внутри dropdown — чтобы точно не накладывались */
.nav-dd-menu a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.25;
  text-decoration: none;
}

.nav-dd-menu a + a{
  margin-top: 6px;
}

.nav-dd-menu a:hover{
  background: rgba(9,117,174,.14);
}

/* На всякий случай — если у пользователя включено "уменьшение анимаций" */
@media (prefers-reduced-motion: reduce){
  .nav-dd-menu{
    transition: none;
    transform: none;
  }
}


/* FAQ polish */
.faq-wrap{
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item{
  box-shadow: var(--shadow-soft);
}

.faq-btn{
  font-size: 16px;
  font-weight: 900;
}

.faq-body{
  padding: 14px 20px 18px;            /* добавили верхний отступ */
  color: rgba(var(--ink-rgb),.72);
  line-height: 1.65;

  background: rgba(9,117,174,.08);  /* мягкий фон в палитре сайта */
  border-top: 1px solid rgba(var(--ink-rgb),.08);
}


/* ===== Equipment cards ===== */
.equip-card .equip-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(9,117,174,.12);
}
.equip-card .equip-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1);
  transition: transform .35s ease;
}
.equip-card:hover .equip-img img{
  transform: scale(1.04);
}

.equip-card .equip-body{
  padding: 20px;
  display: grid;
  gap: 12px;
}

.equip-card .equip-title{
  font-weight: 900;
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
}

.equip-card .equip-price{
  font-weight: 900;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(9,117,174,.10);
  border: 1px solid rgba(var(--ink-rgb),.10);
  white-space: nowrap;
}

.equip-card .equip-meta{
  display: grid;
  gap: 8px;
}

.equip-card .equip-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(9,117,174,.08);
  border: 1px solid rgba(var(--ink-rgb),.08);
}
.equip-card .equip-row b{
  font-weight: 900;
}
.equip-card .equip-row span{
  color: rgba(var(--ink-rgb),.72);
  font-weight: 800;
}

.equip-card .equip-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.equip-card .equip-actions .btn{
  justify-content:center;
  white-space: nowrap;     /* ключевое — больше не ломается “Заявка” */
  padding: 10px 12px;      /* компактнее и аккуратнее */
  font-size: 13px;
}

@media (max-width: 420px){
  .equip-card .equip-actions{
    grid-template-columns: 1fr; /* на очень узких экранах кнопки в столбик */
  }
}

.equip-card .equip-note{
  font-size: 12px;
  line-height: 1.55;
  color: rgba(var(--ink-rgb),.55);
}

/* =====================================================
   Verification: redesigned "Какие СИ поверяем"
===================================================== */

.verify-types{
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,251,255,.96) 100%);
  border: 1px solid rgba(var(--ink-rgb), .10);
  box-shadow: 0 18px 40px rgba(0,0,0,.05);
}

.verify-types::before{
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(23,50,76,.08) 0%, rgba(23,50,76,0) 68%);
  pointer-events: none;
}

.verify-types__head{
  position: relative;
  z-index: 1;
}

.verify-types__lead{
  color: rgba(var(--ink-rgb), .72);
}

.verify-types__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}

.verify-types__col{
  display: grid;
  gap: 14px;
  align-content: start;
}

.verify-type-item{
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;

  padding: 12px 14px;
  min-height: 68px;

  text-decoration: none;
  color: inherit;
  cursor: pointer;

  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(var(--ink-rgb), .10);
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.verify-type-item:nth-child(odd){
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(var(--ink-rgb), .10);
}

.verify-type-item:nth-child(even){
  background: var(--c-600);
  border: none;
}

.verify-type-item:nth-child(odd) .verify-type-item__text{
  color: rgba(var(--ink-rgb), .90);
}

.verify-type-item:nth-child(odd) .verify-type-item__icon{
  background: rgba(23,50,76,.07);
  border: 1px solid rgba(23,50,76,.10);
  color: #17324C;
}

.verify-type-item:nth-child(even) .verify-type-item__icon{
  background: rgba(255,255,255,.18);
  border: none;
  color: #ffffff;
}

.verify-type-item:nth-child(even) .verify-type-item__text{
  color: #ffffff;
}

.verify-type-item:hover{
  transform: translateY(-2px);
  border-color: rgba(23,50,76,.18);
  box-shadow: 0 16px 30px rgba(0,0,0,.06);
}

.verify-type-item__icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(23,50,76,.07);
  border: 1px solid rgba(23,50,76,.10);
  color: #17324C;
}

.verify-type-item__icon i,
.verify-type-item__icon svg{
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.verify-type-item__text{
  align-self: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(var(--ink-rgb), .90);
}

.verify-type-item__more{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;

  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;

  color: rgba(var(--ink-rgb), .62);
}

.verify-type-item__more svg{
  width: 15px;
  height: 15px;
  transition: transform .18s ease;
}

.verify-type-item:hover .verify-type-item__more svg{
  transform: translateX(3px);
}

.verify-type-item:nth-child(even) .verify-type-item__more{
  color: rgba(255,255,255,.86);
}

.verify-type-item:nth-child(odd) .verify-type-item__more{
  color: rgba(var(--ink-rgb), .62);
}

.verify-type-item:focus-visible{
  outline: 3px solid rgba(23,50,76,.28);
  outline-offset: 3px;
}

@media (max-width: 900px){
  .verify-types__grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .verify-type-item{
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 11px 12px;
    min-height: auto;
    border-radius: 16px;
  }

  .verify-type-item__icon{
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .verify-type-item__icon i,
  .verify-type-item__icon svg{
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
  }

  .verify-type-item__text{
    font-size: 16px;
  }

  .verify-type-item__more{
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
    font-size: 12px;
  }
}



/* TIMELINES (white premium cards with right-side pill) */
.tline{
  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 18px;

  padding: 22px;
  border-radius: 26px;

  background: #fff;
  border: 1px solid rgba(var(--ink-rgb), .12);
  box-shadow: 0 16px 40px rgba(0,0,0,.06);
}

.tline-main{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  position: relative;
  z-index: 1;
}

.tline-ico{
  width: 46px;
  height: 46px;
  border-radius: 16px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#fff;
  border: 2px solid #17324C;
  color: #17324C;
  flex: 0 0 auto;
}

.tline-title{
  font-weight: 950;
  font-size: 18px;
  line-height: 1.25;
  color: rgba(var(--ink-rgb), .92);
}

.tline-sub{
  margin-top: 6px;
  font-weight: 750;
  line-height: 1.5;
  color: rgba(var(--ink-rgb), .62);
  max-width: 62ch;
}

.tline-tags{
  margin-top: 12px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

.tline-tag{
  padding: 8px 12px;
  border-radius: 999px;

  background:#fff;
  border: 1px solid rgba(var(--ink-rgb), .14);
  color: rgba(var(--ink-rgb), .78);

  font-weight: 900;
  font-size: 13px;
}

.tline-tag-soft{
  border-color: rgba(23,50,76,.22);
  background: rgba(23,50,76,.06);
  color: #17324C;
}

/* right side pill */
.tline-side{
  position: relative;
  z-index: 1;

  border-radius: 22px;
  padding: 14px 12px;

  background: transparent;      /* без плашки/рамки */
  border: 0;                    /* убрали рамку */
  box-shadow: none;             /* на всякий */
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.tline-side-strong{
  border-color: #17324C;
}

.tline-side-top{
  font-weight: 950;
  font-size: 14px;       /* больше */
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), .55);
}

.tline-side-num{
  margin-top: 10px;
  font-weight: 980;
  font-size: 44px;       /* больше */
  line-height: 1;
  letter-spacing: -0.02em;
  color: #17324C;
}

.tline-side-unit{
  margin-top: 8px;
  font-weight: 900;
  font-size: 15px;       /* больше */
  color: rgba(var(--ink-rgb), .58);
}

/* subtle dot pattern */
.tline-pattern{
  position:absolute;
  right: -40px;
  top: -30px;
  width: 220px;
  height: 220px;
  opacity: .28;
  background-image:
    radial-gradient(rgba(23,50,76,.22) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  transform: rotate(10deg);
  pointer-events:none;
}

/* responsive */
@media (max-width: 720px){
  .tline{
    grid-template-columns: 1fr;
  }
  .tline-side{
    align-items:flex-start;
    text-align:left;
    flex-direction:row;
    gap: 12px;
    justify-content:flex-start;
  }
  .tline-side-num{
    margin-top: 0;
  }
  .tline-side-top{
    display:none;
  }
}

/* =====================================================
   Intro splash (ONLY home page)
===================================================== */

body.no-scroll{ overflow: hidden; }

.intro-splash{
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 1;
}

.intro-splash__content{
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
}

.intro-splash__bar{
  position: absolute;
  top: 0;
  left: 100%;
  width: 38vw;
  min-width: 220px;
  height: 100%;
  background: #B0B6BD;
  opacity: .95;
  z-index: 1;
  animation: intro-bar 1.8s var(--ease-ui) forwards;
  animation-delay: .45s;
}

@keyframes intro-bar{
  from{ transform: translateX(0); }
  to{ transform: translateX(-165vw); }
}

.intro-splash__title{
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-900);
  font-size: 48px;
  opacity: 0;
  transform: translateX(22px);
  animation: intro-title .7s var(--ease-ui) forwards;
  animation-delay: 1.35s;
}

@keyframes intro-title{
  from{ opacity: 0; transform: translateX(22px); }
  to{ opacity: 1; transform: translateX(0); }
}

.intro-splash__underline{
  height: 4px;
  width: 0;
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--c-900);
  opacity: 0;
  animation: intro-underline .7s var(--ease-ui) forwards;
  animation-delay: 1.75s;
}

@keyframes intro-underline{
  from{ width: 0; opacity: 0; }
  to{ width: min(260px, 70vw); opacity: 1; }
}

.intro-splash__subtitle{
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(13,19,33,.72);
  opacity: 0;
  transform: translateY(10px);
  animation: intro-subtitle .7s var(--ease-ui) forwards;
  animation-delay: 2.05s;
}

@keyframes intro-subtitle{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* fade-out controlled by JS */
.intro-splash.is-done{
  opacity: 0;
  pointer-events: none;
  transition: opacity .38s var(--ease-ui);
}

@media (prefers-reduced-motion: reduce){
  .dvinta-scroll--animated .dvinta-scroll__sheet,
  .dvinta-scroll--animated .dvinta-scroll__content,
  .dvinta-scroll--animated .dvinta-scroll__title-pill{
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    clip-path: none !important;
    filter: none !important;
  }
}

/* =====================================================
   Footer
===================================================== */

.site-footer{
  background:
    linear-gradient(180deg, rgba(247,251,255,1) 0%, rgba(240,248,252,1) 100%);
  border-top: 1px solid rgba(var(--ink-rgb), .10);
}

.site-footer__card{
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.site-footer__grid{
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.15fr 1.15fr;
  gap: 24px;
  padding: 10px 0 0;
}

.site-footer__logo{
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 64px;
}

.site-footer__title{
  font-size: 21px;
  font-weight: 900;
  color: var(--c-900);
  line-height: 1.1;
}

.site-footer__subtitle{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(var(--ink-rgb), .60);
  line-height: 1.35;
}

.site-footer__text{
  margin-top: 14px;
  color: rgba(var(--ink-rgb), .72);
  line-height: 1.65;
  font-size: 14px;
  max-width: 320px;
}

.site-footer__actions{
  margin-top: 16px;
}

.site-footer__heading{
  font-size: 15px;
  font-weight: 900;
  color: var(--c-900);
  margin-bottom: 12px;
}

.site-footer__links{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__link{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(var(--ink-rgb), .74);
  text-decoration: none;
  position: relative;
}

.site-footer__link:hover{
  color: var(--c-600);
  transform: translateX(2px);
}

.site-footer__contacts{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__contact{
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  color: rgba(var(--ink-rgb), .74);
  text-decoration: none;
  line-height: 1.5;
  font-size: 14px;
}

.site-footer__contact:hover{
  color: var(--c-600);
}

.site-footer__contact i,
.site-footer__contact svg{
  flex: 0 0 16px;
  margin-top: 2px;
}

.site-footer__contact--static:hover{
  color: rgba(var(--ink-rgb), .74);
}

.site-footer__bottom{
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--ink-rgb), .10);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(var(--ink-rgb), .56);
  font-size: 12px;
}

@media (max-width: 1100px){
  .site-footer__grid{
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (max-width: 900px){
  .site-footer__grid{
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
    padding-top: 6px;
  }

  .site-footer__text{
    max-width: none;
  }
}

@media (max-width: 640px){
  .site-footer__grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer__card{
    padding: 18px 16px 14px;
    border-radius: 18px;
  }

  .site-footer__title{
    font-size: 16px;
  }

    .site-footer__logo{
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
  }

  .site-footer__logo-row{
    gap: 14px;
  }

  .site-footer__subtitle{
    font-size: 11px;
  }

  .site-footer__heading{
    margin-bottom: 10px;
  }

  .site-footer__bottom{
    margin-top: 18px;
    padding-top: 14px;
    font-size: 11px;
  }
}

/* ===== ABOUT: DVINTA CHARTER ===== */
.dvinta-charter{
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(var(--ink-rgb), .14);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.dvinta-charter::before{
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(14,116,144,.10);
  border-radius: 18px;
  pointer-events: none;
}

.dvinta-charter__top{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  align-items: center;
  padding: 28px 30px;
  background: linear-gradient(135deg, var(--c-600), var(--c-600));
  color: #fff;
}

.dvinta-charter__badge{
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.dvinta-charter__badge-img{
  width: 58px;
  height: auto;
  opacity: .96;
  filter: brightness(0) invert(1);
}

.dvinta-charter__title{
  margin-top: 8px;
  color: #fff;
}

.dvinta-charter__subtitle{
  margin-top: 12px;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,.86);
}

.dvinta-charter__body{
  padding: 30px;
}

.dvinta-charter__lead{
  max-width: 920px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(var(--ink-rgb), .82);
}

.dvinta-charter__lead span{
  font-weight: 800;
  color: var(--c-600);
}

.dvinta-charter__quote{
  margin-top: 22px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(9,117,174,.08);
  border: 1px solid rgba(var(--ink-rgb), .10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.dvinta-charter__quote-mark{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(27,58,138,.10);
  color: var(--c-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.dvinta-charter__quote p{
  color: rgba(var(--ink-rgb), .82);
  line-height: 1.8;
}

.dvinta-charter__quote p + p{
  margin-top: 12px;
}

.dvinta-charter__list{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.dvinta-charter__list li{
  position: relative;
  padding-left: 22px;
  color: rgba(var(--ink-rgb), .82);
  line-height: 1.7;
}

.dvinta-charter__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--c-600);
  box-shadow: 0 0 0 4px rgba(14,116,144,.12);
}

.dvinta-charter__date{
  margin-top: 18px;
  font-weight: 800;
  color: var(--c-600);
}

@media (max-width: 900px){
  .dvinta-charter__top{
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 24px 20px;
  }

  .dvinta-charter__body{
    padding: 20px;
  }

  .dvinta-charter__quote{
    padding: 18px;
    border-radius: 18px;
  }

  .dvinta-charter__lead,
  .dvinta-charter__quote p,
  .dvinta-charter__list li{
    font-size: 15px;
  }
}

/* ===== Universal responsive helpers ===== */

.panel-hero{
  padding: clamp(22px, 5vw, 46px);
  border-radius: 26px;
}

.panel-cta{
  padding: clamp(22px, 5vw, 48px);
  border-radius: 26px;
  text-align: center;
}

.actions-row{
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.actions-row.center{
  justify-content: center;
}

.grid-auto-260{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 18px;
}

.grid-auto-220{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
}

.grid-3-responsive{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px){
  .grid-3-responsive{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .grid-3-responsive{
    grid-template-columns: 1fr;
  }

  .actions-row{
    flex-direction: column;
    align-items: stretch;
  }

  .actions-row .btn{
    width: 100%;
  }

  .nav-dd-menu{
    width: min(340px, calc(100vw - 32px));
  }
}

/* чтобы изображения и таблицы не вылезали */
img,
svg,
video,
canvas{
  max-width: 100%;
  height: auto;
}

table{
  display: block;
  width: 100%;
  overflow-x: auto;
}

/* защита от горизонтального скролла */
html, body{
  overflow-x: clip;
}

/* ===== Dvinta charter scroll ===== */
.dvinta-scroll{
  position: relative;
  max-width: 920px;
  margin: 100px auto 0;
  padding: 12px 34px;
}

.dvinta-scroll__seal{
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%) rotate(-12deg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;

  background: transparent;
  border: 0;
  box-shadow: none;

  opacity: 1;
  transition:
    opacity 1.35s cubic-bezier(.22,.61,.36,1),
    transform 1.35s cubic-bezier(.22,.61,.36,1),
    filter 1.35s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform, filter;
}

.dvinta-scroll__seal-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(74, 17, 22, .22));
  user-select: none;
  pointer-events: none;
}


.dvinta-scroll--animated.is-opened .dvinta-scroll__seal{
  opacity: 0;
  transform: translate(-50%, -50%) scale(.92) rotate(-14deg);
  filter: blur(1px);
}

.dvinta-scroll__paper{
  position: relative;
  min-height: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(255,255,255,.24), transparent 24%),
    radial-gradient(circle at 82% 86%, rgba(120,72,29,.10), transparent 28%),
    linear-gradient(180deg, #f1ddb3 0%, #e8cc96 48%, #ddb97f 100%);
  border: 1px solid rgba(109, 69, 31, .22);
  border-radius: 18px;
  box-shadow:
    0 20px 42px rgba(58, 33, 14, .18),
    inset 0 0 0 1px rgba(255,255,255,.18),
    inset 0 0 70px rgba(123, 82, 43, .10);
  overflow: visible;
}

.dvinta-scroll--animated{
  cursor: pointer;
}


.dvinta-scroll__paper::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.10), transparent 18%),
    radial-gradient(circle at 82% 22%, rgba(128,78,38,.06), transparent 20%),
    radial-gradient(circle at 24% 78%, rgba(120,72,29,.05), transparent 16%),
    radial-gradient(circle at 76% 72%, rgba(255,255,255,.06), transparent 18%);
  pointer-events: none;
  opacity: 1;
}

.dvinta-scroll__paper::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow:
    inset 0 18px 28px rgba(255,255,255,.12),
    inset 0 -18px 24px rgba(111, 67, 31, .08);
  pointer-events: none;
}

.dvinta-scroll__content{
  position: relative;
  z-index: 3;
  padding: 28px 54px 36px;
  overflow: hidden;
}

.dvinta-scroll__stamp{
  position: absolute;
  right: 34px;
  bottom: 18px;
  width: 170px;
  max-width: 32%;
  height: auto;
  transform: rotate(16deg);
  transform-origin: center;
  opacity: .92;
  z-index: 4;
  pointer-events: none;
  filter:
    drop-shadow(0 10px 18px rgba(70, 36, 16, .18));
}

/* верхний и нижний рулоны */
.dvinta-scroll__roller{
  position: absolute;
  left: 0;
  right: 0;
  height: 26px;
  border-radius: 999px;
  z-index: 2;
  background:
    linear-gradient(180deg, #f7e7c5 0%, #d9ad6f 18%, #b67c47 52%, #8b572d 100%);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.30),
    inset 0 -4px 6px rgba(79,45,20,.20),
    0 10px 18px rgba(61,34,15,.16);
}

.dvinta-scroll__roller--top{
  top: -8px;
}

.dvinta-scroll__roller--bottom{
  bottom: -8px;
}

.dvinta-scroll__roller::before,
.dvinta-scroll__roller::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 35% 35%, #f8e8c8 0%, #d5a56a 38%, #9d6437 72%, #72421f 100%);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.22),
    0 3px 8px rgba(60, 32, 13, .18);
}

.dvinta-scroll__roller::before{
  left: -10px;
}

.dvinta-scroll__roller::after{
  right: -10px;
}

/* бумага между рулонами */
.dvinta-scroll__sheet{
  position: relative;
  z-index: 1;
  margin: 20px 0;
  padding: 42px 0;
}

.dvinta-scroll--animated .dvinta-scroll__sheet{
  margin: 0;
  padding: 0;
}

.dvinta-scroll--animated.is-opened .dvinta-scroll__sheet{
  margin: 20px 0;
  padding: 18px 0 42px;
  transition:
    margin 1.45s cubic-bezier(.22,.9,.2,1),
    padding 1.45s cubic-bezier(.22,.9,.2,1),
    transform 1.45s cubic-bezier(.22,.9,.2,1),
    opacity .95s ease,
    clip-path 1.45s cubic-bezier(.22,.9,.2,1);
}

/* рваные боковые края */
.dvinta-scroll__sheet::before,
.dvinta-scroll__sheet::after{
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: 22px;
  background: linear-gradient(180deg, #f0ddb4 0%, #e2bf88 100%);
  z-index: 2;
  pointer-events: none;
  opacity: .95;
}

.dvinta-scroll__sheet::before{
  left: -12px;
  clip-path: polygon(
    100% 0%,
    58% 3%,
    78% 8%,
    44% 13%,
    70% 19%,
    36% 27%,
    68% 35%,
    42% 43%,
    74% 51%,
    34% 61%,
    66% 70%,
    40% 80%,
    72% 90%,
    54% 96%,
    100% 100%
  );
}

.dvinta-scroll__sheet::after{
  right: -12px;
  clip-path: polygon(
    0% 0%,
    42% 4%,
    20% 10%,
    56% 16%,
    28% 23%,
    64% 31%,
    30% 40%,
    60% 48%,
    24% 58%,
    66% 68%,
    32% 78%,
    58% 87%,
    26% 95%,
    0% 100%
  );
}



.dvinta-scroll__title-wrap{
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 3;
}

.dvinta-scroll__title-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  min-height: 52px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,248,234,.92) 0%, rgba(236,214,174,.95) 100%);
  border: 1px solid rgba(108, 67, 30, .24);
  box-shadow:
    0 10px 22px rgba(80, 47, 20, .10),
    inset 0 1px 0 rgba(255,255,255,.45);
  color: #5b3517;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  letter-spacing: .01em;
}

.dvinta-scroll__charter{
  margin-top: 14px;
  padding-bottom: 120px;
  color: #503118;
  font-size: 18px;
  line-height: 1.6;
  text-align: justify;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: normal;
  position: relative;
  z-index: 3;
}

.dvinta-scroll__charter strong{
  font-weight: 700;
}

@media (max-width: 900px){
  .dvinta-scroll{
    padding: 34px 18px;
  }

  .dvinta-scroll__content{
    padding: 28px 34px 30px;
  }

  .dvinta-scroll__roller{
    left: 0;
    right: 0;
    height: 22px;
  }

  .dvinta-scroll__roller--top{
    top: -6px;
  }

  .dvinta-scroll__roller--bottom{
    bottom: -6px;
  }
}

@media (max-width: 640px){
  .dvinta-scroll{
    padding: 22px 0;
  }

  .dvinta-scroll__seal{
  width: 70px;
  height: 70px;
  }

  .dvinta-scroll__content{
    padding: 22px 20px 24px;
  }

  .dvinta-scroll__sheet{
    padding: 30px 0;
    margin: 16px 0;
  }

  .dvinta-scroll__roller{
    left: 0;
    right: 0;
    height: 18px;
  }

  .dvinta-scroll__roller::before,
  .dvinta-scroll__roller::after{
    width: 16px;
    height: 16px;
  }

  .dvinta-scroll__roller::before{
    left: -7px;
  }

  .dvinta-scroll__roller::after{
    right: -7px;
  }

  .dvinta-scroll__sheet::before,
  .dvinta-scroll__sheet::after{
    width: 12px;
    top: 12px;
    bottom: 12px;
  }


  .dvinta-scroll__sheet::before{
    left: -5px;
  }

  .dvinta-scroll__sheet::after{
    right: -5px;
  }


  .dvinta-scroll__title-wrap{
    margin-bottom: 14px;
  }

  .dvinta-scroll__title-pill{
    padding: 10px 18px;
    min-height: 44px;
    font-size: 20px;
  }

  .dvinta-scroll__charter{
    font-size: 16px;
    line-height: 1.55;
  }

    .dvinta-scroll__stamp{
    right: 14px;
    bottom: 10px;
    width: 96px;
    max-width: 38%;
    transform: rotate(14deg);
  }

  .dvinta-scroll__charter{
    padding-bottom: 82px;
  }
}

/* ===== Dvinta scroll opening animation ===== */
.dvinta-scroll--animated{
  cursor: pointer;
}

.dvinta-scroll--animated .dvinta-scroll__sheet{
  transform-origin: center center;
  transform: scaleY(.0001);
  opacity: 0;
  clip-path: inset(50% 0 50% 0 round 18px);
  transition:
    transform 2.2s cubic-bezier(.22,.9,.2,1),
    opacity 1s ease,
    clip-path 2.2s cubic-bezier(.22,.9,.2,1);
  will-change: transform, opacity, clip-path;
}

.dvinta-scroll--animated .dvinta-scroll__content{
  opacity: 0;
  transform: translateY(18px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  transition:
    opacity .75s ease 1.45s,
    transform .9s ease 1.45s,
    max-height 0s linear 1.2s,
    padding-top 1.2s cubic-bezier(.22,.9,.2,1),
    padding-bottom 1.2s cubic-bezier(.22,.9,.2,1);
}

.dvinta-scroll--animated .dvinta-scroll__roller--top{
  transform: translateY(10px);
  transition: transform 2.2s cubic-bezier(.22,.9,.2,1);
}

.dvinta-scroll--animated .dvinta-scroll__roller--bottom{
  transform: translateY(-10px);
  transition: transform 2.2s cubic-bezier(.22,.9,.2,1);
}

.dvinta-scroll--animated.is-opened .dvinta-scroll__paper{
  min-height: 100%;
}

.dvinta-scroll--animated.is-opened .dvinta-scroll__sheet{
  transform: scaleY(1);
  opacity: 1;
  clip-path: inset(0 0 0 0 round 18px);
}

.dvinta-scroll--animated.is-opened .dvinta-scroll__content{
  opacity: 1;
  transform: translateY(0);
  max-height: 2000px;
  padding-top: 40px;
  padding-bottom: 36px;
}

.dvinta-scroll--animated.is-opened .dvinta-scroll__roller--top{
  transform: translateY(0);
}

.dvinta-scroll--animated.is-opened .dvinta-scroll__roller--bottom{
  transform: translateY(0);
}

/* ===== Scroll title ===== */
.dvinta-scroll__title-pill{
  position: relative;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dvinta-scroll__title-main{
  display: inline-block;
}

/* ===== Top floating banner on metrology pages ===== */
.top-floating-banner{
  margin-top: -100px;
  border-radius: 26px;
  padding: 22px;
  text-align: center;
}

.top-floating-banner__inner{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  transform: translateX(-18px);
}

@media (max-width: 768px){
  .top-floating-banner{
    margin-top: 18px;
  }

  .top-floating-banner__inner{
    transform: none;
  }
}

@media (max-width: 640px){
  .top-floating-banner{
    padding: 18px;
  }

  .top-floating-banner__inner{
    flex-direction: column;
    align-items: stretch;
  }

  .top-floating-banner__inner .btn{
    width: 100%;
    justify-content: center;
  }
}

/* ===== Mobile fullscreen menu ===== */
.mobile-menu-toggle,
.mobile-menu-close{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(var(--ink-rgb), .12);
  background: #fff;
  color: var(--c-900);
  box-shadow: var(--shadow-soft);
}

.mobile-menu-overlay{
  position: fixed;
  inset: 0;
  z-index: 30000;
  background:
    linear-gradient(180deg, rgba(247,251,255,.98) 0%, rgba(255,255,255,.985) 100%);
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  animation: mobileMenuFadeIn .28s ease;
}

.mobile-menu-overlay__panel{
  min-height: 100vh;
  padding: 20px 18px 28px;
  animation: mobileMenuSlideDown .34s cubic-bezier(.22, 1, .36, 1);
  transform-origin: top center;
}

.mobile-menu-overlay__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.mobile-menu-overlay__brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mobile-menu-overlay__nav{
  display: grid;
  gap: 12px;
}

.mobile-menu-group,
.mobile-menu-link{
  background: #fff;
  border: 1px solid rgba(var(--ink-rgb), .12);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.mobile-menu-summary{
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px;
  cursor: pointer;
  font-weight: 800;
  color: var(--c-900);
}

.mobile-menu-summary::-webkit-details-marker{
  display: none;
}

.mobile-menu-group[open] .mobile-menu-summary i{
  transform: rotate(180deg);
}

.mobile-menu-sublist{
  padding: 0 18px 18px;
  display: grid;
  gap: 10px;
}

.mobile-menu-sublist a{
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(9,117,174,.08);
  color: var(--c-900);
  line-height: 1.35;
  text-decoration: none;
}

.mobile-menu-link{
  display: block;
  padding: 18px 18px;
  font-weight: 800;
  color: var(--c-900);
  text-decoration: none;
}

body.mobile-menu-open{
  overflow: hidden;
}

@media (min-width: 1024px){
  .mobile-menu-overlay,
  .mobile-menu-toggle{
    display: none !important;
  }
}

.mobile-menu-overlay__top{
  animation: mobileMenuItemIn .34s ease both;
  animation-delay: .06s;
}

.mobile-menu-group,
.mobile-menu-link{
  opacity: 0;
  transform: translateY(18px);
  animation: mobileMenuItemIn .42s cubic-bezier(.22, 1, .36, 1) forwards;
}

.mobile-menu-overlay__nav > *:nth-child(1){ animation-delay: .10s; }
.mobile-menu-overlay__nav > *:nth-child(2){ animation-delay: .16s; }
.mobile-menu-overlay__nav > *:nth-child(3){ animation-delay: .22s; }
.mobile-menu-overlay__nav > *:nth-child(4){ animation-delay: .28s; }
.mobile-menu-overlay__nav > *:nth-child(5){ animation-delay: .34s; }
.mobile-menu-overlay__nav > *:nth-child(6){ animation-delay: .40s; }

.mobile-menu-summary i{
  transition: transform .25s ease;
}

.mobile-menu-group[open] .mobile-menu-summary i{
  transform: rotate(180deg);
}

.mobile-menu-sublist{
  padding: 0 18px 18px;
  display: grid;
  gap: 10px;
}

.mobile-menu-sublist a{
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(9,117,174,.08);
  color: var(--c-900);
  line-height: 1.35;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  animation: mobileMenuSubItemIn .28s ease forwards;
}

.mobile-menu-sublist a:nth-child(1){ animation-delay: .02s; }
.mobile-menu-sublist a:nth-child(2){ animation-delay: .06s; }
.mobile-menu-sublist a:nth-child(3){ animation-delay: .10s; }
.mobile-menu-sublist a:nth-child(4){ animation-delay: .14s; }
.mobile-menu-sublist a:nth-child(5){ animation-delay: .18s; }

.mobile-menu-toggle,
.mobile-menu-close,
.mobile-menu-summary,
.mobile-menu-link,
.mobile-menu-sublist a{
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background-color .22s ease,
    border-color .22s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-close:hover{
  transform: translateY(-1px);
}

.mobile-menu-toggle:active,
.mobile-menu-close:active{
  transform: scale(.96);
}

.mobile-menu-link:hover,
.mobile-menu-summary:hover{
  transform: translateY(-1px);
}

.mobile-menu-sublist a:hover{
  transform: translateY(-1px);
}

@keyframes mobileMenuFadeIn{
  from{
    opacity: 0;
  }
  to{
    opacity: 1;
  }
}

@keyframes mobileMenuSlideDown{
  from{
    opacity: 0;
    transform: translateY(-22px) scale(.985);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mobileMenuItemIn{
  from{
    opacity: 0;
    transform: translateY(18px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileMenuSubItemIn{
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce){
  .mobile-menu-overlay,
  .mobile-menu-overlay__panel,
  .mobile-menu-overlay__top,
  .mobile-menu-group,
  .mobile-menu-link,
  .mobile-menu-sublist a{
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Mobile: type approval change cards ===== */
.type-approval-change-card__head{
  display: flex;
  align-items: center;
  gap: 10px;
}

.type-approval-change-card__title{
  font-weight: 900;
}

.type-approval-change-card__text{
  color: rgba(13,19,33,.70);
  margin-top: 10px;
  line-height: 1.65;
}

.type-approval-change-card__icon{
  flex: 0 0 auto;
}

@media (max-width: 640px){
  .type-approval-change-grid{
    grid-template-columns: 1fr !important;
  }

  .type-approval-change-card{
    min-width: 0;
    overflow: hidden;
    padding: 18px;
  }

  .type-approval-change-card__head{
    align-items: flex-start;
  }

  .type-approval-change-card__icon{
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }

  .type-approval-change-card__title{
    font-size: 15px;
    line-height: 1.35;
  }

  .type-approval-change-card__text{
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ===== Mobile: about advantages cards ===== */
.about-advantages-card__head{
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-advantages-card__title{
  font-weight: 900;
}

.about-advantages-card__text{
  color: rgba(13,19,33,.70);
  margin-top: 10px;
  line-height: 1.65;
}

.about-advantages-card__icon{
  flex: 0 0 auto;
}

@media (max-width: 640px){
  .about-advantages-grid{
    grid-template-columns: 1fr !important;
  }

  .about-advantages-card{
    min-width: 0;
    overflow: hidden;
    padding: 18px;
  }

  .about-advantages-card__head{
    align-items: flex-start;
  }

  .about-advantages-card__icon{
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }

  .about-advantages-card__title{
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .about-advantages-card__text{
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ===== Mobile: contacts form fix ===== */
@media (max-width: 640px){
  .contacts-top-grid{
    grid-template-columns: 1fr !important;
  }

  .contacts-form-card{
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }

  .contacts-form-panel{
    overflow: hidden;
  }

  .contacts-form-grid{
    grid-template-columns: 1fr !important;
  }

  .contacts-form-grid > div{
    min-width: 0;
  }

  .contacts-form-grid input,
  .contacts-form-grid textarea{
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contacts-form-actions{
    flex-direction: column;
    align-items: stretch !important;
  }

  .contacts-form-actions .btn{
    width: 100%;
    justify-content: center;
  }
}

/* ===== Mobile: contacts requisites fix ===== */
@media (max-width: 640px){
  .contacts-requisites-card{
    overflow: hidden;
  }

  .contacts-requisites-table{
    width: 100%;
    table-layout: fixed;
  }

  .contacts-requisites-table,
  .contacts-requisites-table tbody,
  .contacts-requisites-table tr,
  .contacts-requisites-table td{
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .contacts-requisites-table tr{
    padding: 14px 0;
    border-bottom: 1px solid rgba(var(--ink-rgb), .12);
  }

  .contacts-requisites-table tr:last-child{
    border-bottom: 0;
  }

  .contacts-requisites-table td{
    padding: 0 !important;
    min-width: 0;
  }

  .contacts-requisites-table td:first-child{
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .contacts-requisites-table td:last-child{
    font-size: 14px;
    line-height: 1.55;
    color: rgba(var(--ink-rgb), .88);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contacts-bank-grid{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 10px !important;
  }

  .contacts-bank-grid > div{
    min-width: 0;
  }

  .contacts-bank-grid > div > div:last-child{
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ===== Mobile: verification page centering ===== */
.verification-mobile-center-banner__actions{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.verification-mobile-request-card__layout{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.verification-mobile-request-card__title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.verification-mobile-request-card__actions{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 640px){
  .verification-mobile-center-banner{
    text-align: center !important;
  }

  .verification-mobile-center-banner__actions{
    transform: none !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
  }

  .verification-mobile-center-banner__actions .btn{
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .verification-mobile-request-card{
    text-align: center;
  }

  .verification-mobile-request-card__layout{
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .verification-mobile-request-card__layout .badge{
    margin: 0 auto;
  }

  .verification-mobile-request-card__layout > div:last-child{
    width: 100%;
  }

  .verification-mobile-request-card__title{
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  .verification-mobile-request-card__actions{
    justify-content: center;
    align-items: stretch;
  }

  .verification-mobile-request-card__actions .btn{
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ===== Mobile: calibration page centering ===== */
.calibration-mobile-center-banner__actions{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.calibration-request-card__layout{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.calibration-request-card__title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.calibration-request-card__actions{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 640px){
  .calibration-mobile-center-banner{
    text-align: center !important;
  }

  .calibration-mobile-center-banner__actions{
    transform: none !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    flex-direction: column;
  }

  .calibration-mobile-center-banner__actions .btn{
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .calibration-request-card{
    text-align: center;
  }

  .calibration-request-card__layout{
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .calibration-request-card__layout .badge{
    margin: 0 auto;
  }

  .calibration-request-card__layout > div:last-child{
    width: 100%;
  }

  .calibration-request-card__title{
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  .calibration-request-card__actions{
    justify-content: center;
    align-items: stretch;
  }

  .calibration-request-card__actions .btn{
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ===== Floating request button ===== */
.floating-request{
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.floating-request__button{
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--c-600);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 18px 36px rgba(26, 44, 52, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-decoration: none;
  pointer-events: auto;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.floating-request__button:hover{
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 22px 44px rgba(26, 44, 52, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.floating-request__button svg{
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
}

.floating-request__bubble{
  position: relative;
  max-width: 190px;
  padding: 13px 38px 13px 16px;
  margin-bottom: 5px;
  border-radius: 18px;
  color: #263f4a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(52, 91, 104, 0.16);
  box-shadow: 0 18px 40px rgba(27, 49, 57, 0.16);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0;
  transform: translateX(12px) translateY(6px) scale(0.96);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease;
}

.floating-request__bubble::after{
  content: "";
  position: absolute;
  right: -7px;
  bottom: 19px;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid rgba(52, 91, 104, 0.14);
  border-bottom: 1px solid rgba(52, 91, 104, 0.14);
  transform: rotate(-45deg);
}

.floating-request__bubble.is-visible{
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

.floating-request__close{
  position: absolute;
  top: 7px;
  right: 9px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(38, 63, 74, 0.72);
  background: rgba(38, 63, 74, 0.08);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.floating-request__close:hover{
  color: #263f4a;
  background: rgba(38, 63, 74, 0.14);
  transform: rotate(90deg);
}

@media (max-width: 640px){
  .floating-request{
    right: 14px;
    bottom: 16px;
    gap: 8px;
  }

  .floating-request__button{
    width: 50px;
    height: 50px;
  }

  .floating-request__button svg{
    width: 23px;
    height: 23px;
  }

  .floating-request__bubble{
    max-width: 160px;
    padding: 11px 34px 11px 14px;
    font-size: 13px;
    border-radius: 16px;
  }
}

/* Поднимаем весь текст внутри Двинской грамоты ближе к верхнему овалу */
.dvinta-scroll .dvinta-scroll__sheet{
  padding-top: 20px;
}

.dvinta-scroll .dvinta-scroll__content{
  padding-top: 0;
}

.dvinta-scroll--animated.is-opened .dvinta-scroll__sheet{
  padding-top: 4px;
}

.dvinta-scroll--animated.is-opened .dvinta-scroll__content{
  padding-top: 0;
}

/* ===== Кликабельные виды СИ на странице "Поверка" ===== */

.verify-type-item{
  grid-template-columns: 40px 1fr auto;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.verify-type-item__more{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;

  color: rgba(var(--ink-rgb), .60);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.verify-type-item__more i,
.verify-type-item__more svg{
  width: 15px;
  height: 15px;
  transition: transform .18s ease;
}

.verify-type-item:hover .verify-type-item__more i,
.verify-type-item:hover .verify-type-item__more svg{
  transform: translateX(3px);
}

.verify-type-item:nth-child(even) .verify-type-item__more{
  color: rgba(255,255,255,.84);
}

.verify-type-item:nth-child(odd) .verify-type-item__more{
  color: rgba(var(--ink-rgb), .60);
}

.verify-type-item:focus-visible{
  outline: 3px solid rgba(23,50,76,.28);
  outline-offset: 3px;
}

@media (max-width: 640px){
  .verify-type-item{
    grid-template-columns: 36px 1fr;
  }

  .verify-type-item__more{
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 2px;
    font-size: 12px;
  }
}

/* =========================================================
   HOME — PARTNERS CAROUSEL
   ========================================================= */

.partners-section{
  position: relative;
  overflow: hidden;
}


/* ---------- Заголовок ---------- */

.partners-heading{
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.partners-heading__text{
  max-width: 660px;
  margin: 14px auto 0;

  color: rgba(var(--ink-rgb), .68);
  font-size: 15px;
  line-height: 1.7;
}


/* ---------- Карусель ---------- */

.partners-carousel{
  position: relative;

  width: 100%;
  max-width: 1040px;
  height: 300px;

  margin: 32px auto 0;

  outline: none;

  padding-left: 70px;
  padding-right: 70px;

  box-sizing: border-box;
}

.partners-carousel__viewport{
  position: relative;

  width: 100%;
  height: 100%;

  overflow: visible;

  border-radius: 34px;
}

.partners-carousel__track{
  position: relative;

  width: 100%;
  height: 100%;

  perspective: 1200px;
}


/* ---------- Карточка ---------- */

.partner-card{
  position: absolute;

  top: 50%;
  left: 50%;

  width: min(540px, calc(100% - 180px));
  min-height: 190px;

  padding: 30px;

  display: flex;
  align-items: center;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.98),
      rgba(247,251,255,.96)
    );

  border: 1px solid rgba(var(--ink-rgb), .13);

  border-radius: 26px;

  box-shadow:
    0 24px 60px rgba(var(--ink-rgb), .13),
    0 8px 22px rgba(var(--ink-rgb), .08);

  opacity: 0;

  transform:
    translate(-50%, -50%)
    scale(.7);

  filter: blur(5px);

  pointer-events: none;

  transition:
    transform .55s cubic-bezier(.2,.8,.2,1),
    opacity .45s ease,
    filter .45s ease,
    box-shadow .45s ease;

  will-change:
    transform,
    opacity,
    filter;
}


/*
  Небольшое цветное свечение внутри карточек.
*/
.partner-card::before{
  content: "";

  position: absolute;

  width: 190px;
  height: 190px;

  right: -75px;
  top: -90px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(6,182,212,.15) 0%,
      rgba(14,116,144,.07) 45%,
      rgba(14,116,144,0) 72%
    );

  pointer-events: none;
}


/* ---------- Центральная активная карточка ---------- */

.partner-card.is-active{
  z-index: 5;

  opacity: 1;

  transform:
    translate(-50%, -50%)
    scale(1);

  filter: blur(0);

  pointer-events: auto;

  box-shadow:
    0 30px 70px rgba(var(--ink-rgb), .17),
    0 10px 28px rgba(var(--ink-rgb), .10);
}


/* ---------- Левая карточка ---------- */

.partner-card.is-prev{
  z-index: 2;

  opacity: .38;

  transform:
    translate(-92%, -50%)
    scale(.82);

  filter: blur(3px);
}


/* ---------- Правая карточка ---------- */

.partner-card.is-next{
  z-index: 2;

  opacity: .38;

  transform:
    translate(-8%, -50%)
    scale(.82);

  filter: blur(3px);
}


/* ---------- Остальные карточки ---------- */

.partner-card.is-hidden{
  z-index: 0;

  opacity: 0;

  transform:
    translate(-50%, -50%)
    scale(.68);

  filter: blur(7px);
}


/* ---------- Содержимое карточки ---------- */

.partner-card__content{
  position: relative;
  z-index: 2;

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 30px;
}


/* ---------- Логотип ---------- */

.partner-card__logo{
  width: 155px;
  height: 110px;

  flex: 0 0 155px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px;

  background: #fff;

  border: 1px solid rgba(var(--ink-rgb), .09);

  border-radius: 20px;

  box-shadow:
    0 10px 24px rgba(var(--ink-rgb), .08);
}

.partner-card__logo img{
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}


/* ---------- Название ---------- */

.partner-card__info{
  min-width: 0;
}

.partner-card__label{
  margin-bottom: 7px;

  color: var(--c-600);

  font-size: 11px;
  line-height: 1.3;

  font-weight: 800;

  letter-spacing: .08em;

  text-transform: uppercase;
}

.partner-card__name{
  color: var(--c-900);

  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.3;

  font-weight: 900;

  letter-spacing: -.025em;
}


/* =========================================================
   СТРЕЛКИ
   ========================================================= */

.partners-carousel__arrow{
  position: absolute;

  top: 50%;

  z-index: 20;

  width: 52px;
  height: 52px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(var(--ink-rgb), .14);

  border-radius: 16px;

  background: rgba(255,255,255,.92);

  color: var(--c-900);

  box-shadow:
    0 12px 28px rgba(var(--ink-rgb), .12);

  cursor: pointer;

  transform: translateY(-50%);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    transform .2s var(--ease-ui),
    background-color .2s var(--ease-ui),
    color .2s var(--ease-ui),
    box-shadow .2s var(--ease-ui);
}

.partners-carousel__arrow svg{
  width: 23px;
  height: 23px;

  stroke-width: 2.2;
}

.partners-carousel__arrow:hover{
  background: var(--c-600);
  color: #fff;

  transform:
    translateY(-50%)
    scale(1.06);

  box-shadow:
    0 16px 34px rgba(14,116,144,.24);
}

.partners-carousel__arrow:active{
  transform:
    translateY(-50%)
    scale(.96);
}

.partners-carousel__arrow--prev{
  left: 6px;
}

.partners-carousel__arrow--next{
  right: 6px;
}


/* =========================================================
   ТОЧКИ ПОД КАРУСЕЛЬЮ
   ========================================================= */

.partners-carousel__dots{
  position: absolute;

  left: 50%;
  bottom: 0;

  z-index: 20;

  display: flex;
  align-items: center;

  gap: 7px;

  transform: translateX(-50%);
}

.partners-carousel__dot{
  width: 7px;
  height: 7px;

  padding: 0;

  border: 0;
  border-radius: 999px;

  background: rgba(var(--ink-rgb), .18);

  transition:
    width .3s var(--ease-ui),
    background-color .3s var(--ease-ui),
    transform .3s var(--ease-ui);
}

.partners-carousel__dot.is-active{
  width: 24px;

  background: var(--c-600);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px){

  .partners-carousel{
    height: 270px;
    margin-top: 26px;
  }

  .partner-card{
    width: calc(100% - 105px);

    min-height: 175px;

    padding: 24px;
  }

  .partner-card.is-prev{
    transform:
      translate(-103%, -50%)
      scale(.80);
  }

  .partner-card.is-next{
    transform:
      translate(3%, -50%)
      scale(.80);
  }

  .partner-card__content{
    gap: 20px;
  }

  .partner-card__logo{
    width: 125px;
    height: 95px;

    flex-basis: 125px;

    padding: 12px;

    border-radius: 17px;
  }

  .partners-carousel__arrow{
    width: 46px;
    height: 46px;

    border-radius: 14px;
  }

  .partners-carousel__arrow--prev{
    left: 0;
  }

  .partners-carousel__arrow--next{
    right: 0;
  }

}


/* =========================================================
   PARTNERS — MOBILE
   ========================================================= */

@media (max-width: 560px){

  /* Сам блок */
  .partners-section{
    overflow: hidden;

    padding-top: 56px;
    padding-bottom: 56px;
  }


  /* Заголовок */
  .partners-heading{
    padding-left: 18px;
    padding-right: 18px;
  }

  .partners-heading .kicker{
    font-size: 11px;
  }

  .partners-heading .h2{
    margin-top: 7px !important;

    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.08;

    letter-spacing: -.035em;
  }

  .partners-heading__text{
    max-width: 340px;

    margin-top: 12px;

    font-size: 14px;
    line-height: 1.55;
  }


  /* =====================================================
     КАРУСЕЛЬ
     ===================================================== */

  .partners-carousel{
    position: relative;

    width: 100%;
    max-width: 100%;

    height: 330px;

    margin-top: 24px;

    padding-left: 12px;
    padding-right: 12px;

    box-sizing: border-box;

    overflow: visible;
  }


  .partners-carousel__viewport{
    position: relative;

    width: 100%;
    height: 270px;

    overflow: visible;

    border-radius: 0;
  }


  .partners-carousel__track{
    position: relative;

    width: 100%;
    height: 100%;
  }


  /* =====================================================
     КАРТОЧКИ
     ===================================================== */

  .partner-card{
    top: 50%;
    left: 50%;

    width: calc(100% - 66px);
    max-width: 360px;

    min-height: 218px;

    padding: 22px 18px;

    border-radius: 24px;

    background:
      linear-gradient(
        145deg,
        rgba(255,255,255,.99),
        rgba(247,251,255,.98)
      );

    border:
      1px solid rgba(var(--ink-rgb), .11);

    box-shadow:
      0 18px 45px rgba(var(--ink-rgb), .12),
      0 5px 16px rgba(var(--ink-rgb), .07);

    transform:
      translate(-50%, -50%)
      scale(.8);

    filter: blur(4px);

    opacity: 0;
  }


  /* Центральная карточка */
  .partner-card.is-active{
    z-index: 10;

    opacity: 1;

    transform:
      translate(-50%, -50%)
      scale(1);

    filter: blur(0);

    box-shadow:
      0 22px 52px rgba(var(--ink-rgb), .15),
      0 7px 20px rgba(var(--ink-rgb), .08);
  }


  /*
     Левая соседняя карточка.
     Она только слегка выглядывает из-за основной.
  */
  .partner-card.is-prev{
    z-index: 2;

    opacity: .22;

    transform:
      translate(-86%, -50%)
      scale(.86);

    filter: blur(4px);
  }


  /*
     Правая соседняя карточка.
  */
  .partner-card.is-next{
    z-index: 2;

    opacity: .22;

    transform:
      translate(-14%, -50%)
      scale(.86);

    filter: blur(4px);
  }


  .partner-card.is-hidden{
    z-index: 0;

    opacity: 0;

    transform:
      translate(-50%, -50%)
      scale(.75);

    filter: blur(6px);
  }


  /* Декоративное свечение */
  .partner-card::before{
    width: 150px;
    height: 150px;

    right: -65px;
    top: -65px;

    opacity: .75;
  }


  /* =====================================================
     СОДЕРЖИМОЕ КАРТОЧКИ
     ===================================================== */

  .partner-card__content{
    width: 100%;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 15px;

    text-align: center;
  }


  /* Логотип */
  .partner-card__logo{
    width: 150px;
    height: 92px;

    flex: 0 0 92px;

    padding: 13px;

    border-radius: 18px;

    background: rgba(255,255,255,.98);

    box-shadow:
      0 8px 20px rgba(var(--ink-rgb), .07);
  }


  .partner-card__logo img{
    width: 100%;
    height: 100%;

    object-fit: contain;
  }


  /* Текст */
  .partner-card__info{
    width: 100%;
  }


  .partner-card__label{
    margin-bottom: 5px;

    font-size: 10px;

    letter-spacing: .1em;
  }


  .partner-card__name{
    max-width: 270px;

    margin: 0 auto;

    font-size: 19px;
    line-height: 1.25;

    letter-spacing: -.025em;
  }


  /* =====================================================
     СТРЕЛКИ
     ===================================================== */

  .partners-carousel__arrow{
    top: 135px;

    z-index: 30;

    width: 44px;
    height: 44px;

    border-radius: 14px;

    background: rgba(255,255,255,.96);

    border:
      1px solid rgba(var(--ink-rgb), .12);

    box-shadow:
      0 10px 24px rgba(var(--ink-rgb), .13);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }


  .partners-carousel__arrow svg{
    width: 21px;
    height: 21px;
  }


  .partners-carousel__arrow--prev{
    left: 3px;
  }


  .partners-carousel__arrow--next{
    right: 3px;
  }


  /*
     На телефонах hover не нужен.
     Убираем возможное "залипание".
  */
  .partners-carousel__arrow:hover{
    background: rgba(255,255,255,.96);

    color: var(--c-900);

    transform:
      translateY(-50%)
      scale(1);

    box-shadow:
      0 10px 24px rgba(var(--ink-rgb), .13);
  }


  .partners-carousel__arrow:active{
    background: var(--c-600);

    color: #fff;

    transform:
      translateY(-50%)
      scale(.93);
  }


  /* =====================================================
     ТОЧКИ
     ===================================================== */

  .partners-carousel__dots{
    left: 50%;
    bottom: 4px;

    gap: 7px;

    transform: translateX(-50%);
  }


  .partners-carousel__dot{
    width: 7px;
    height: 7px;

    background: rgba(var(--ink-rgb), .18);
  }


  .partners-carousel__dot.is-active{
    width: 23px;

    background: var(--c-600);
  }

}


/* =========================================================
   PARTNERS — SMALL MOBILE
   ========================================================= */

@media (max-width: 390px){

  .partners-section{
    padding-top: 48px;
    padding-bottom: 48px;
  }


  .partners-heading .h2{
    font-size: 27px;
  }


  .partners-heading__text{
    max-width: 300px;

    font-size: 13px;
  }


  .partners-carousel{
    height: 315px;

    margin-top: 20px;

    padding-left: 8px;
    padding-right: 8px;
  }


  .partners-carousel__viewport{
    height: 260px;
  }


  .partner-card{
    width: calc(100% - 56px);
    min-height: 210px;

    padding: 20px 15px;

    border-radius: 21px;
  }


  .partner-card__logo{
    width: 135px;
    height: 82px;

    flex-basis: 82px;
  }


  .partner-card__name{
    max-width: 230px;

    font-size: 17px;
  }


  .partners-carousel__arrow{
    top: 130px;

    width: 40px;
    height: 40px;

    border-radius: 12px;
  }


  .partners-carousel__arrow svg{
    width: 19px;
    height: 19px;
  }


  .partners-carousel__arrow--prev{
    left: 0;
  }


  .partners-carousel__arrow--next{
    right: 0;
  }


  .partner-card.is-prev{
    opacity: .16;

    transform:
      translate(-84%, -50%)
      scale(.83);
  }


  .partner-card.is-next{
    opacity: .16;

    transform:
      translate(-16%, -50%)
      scale(.83);
  }

}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce){

  .partner-card,
  .partners-carousel__arrow,
  .partners-carousel__dot{
    transition: none !important;
  }

}