@font-face {
  font-family: 'BravoRG';
  src: url('fonts/BravoRG.eot');
  src:
    url('fonts/BravoRG.eot?#iefix') format('embedded-opentype'),
    url('fonts/BravoRG.woff') format('woff'),
    url('fonts/BravoRG.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg: #ffffff;
  --bg-soft: rgba(255, 255, 255, 0.85);
  --text: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --line: #e2e8f0; /* slate-200 */
  --ring: #6366f1; /* indigo-500 */
  --accent1: #6366f1;
  --accent2: #a855f7;
  --shadow: 0 20px 50px rgba(2, 6, 23, 0.18);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --anchor-offset: calc(60px + 24px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
} /* страховка для старых браузеров */

html {
  /* фон */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50000 30000' preserveAspectRatio='none'><path fill='%23D8EEF9' d='M-2 1l50000 0 0 20864c-2175,1582 -3739,566 -7961,1386 -3230,627 -3627,1973 -7362,2108 -3747,135 -5140,-726 -8430,-497 -3832,266 -5874,1701 -8949,2217 -3825,643 -7369,-594 -11294,1533 -3656,1982 -2284,1958 -6004,2389l0 -30000z'/></svg>");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 600px; /* ширина = 100%, высота = 600px (без сохранения пропорций) */
  background-color: #fff;
  scroll-padding-top: var(--anchor-offset);
}

html.no-scroll {
  overflow: hidden;
}

/* фолбэк для старых браузеров */
@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  } /* всегда показывать вертикальный скролл */
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: transparent;

  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 600px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50000 30000' preserveAspectRatio='none'><path fill='%23D8EEF9' d='M-2 1l50000 0 0 20864c-2175,1582 -3739,566 -7961,1386 -3230,627 -3627,1973 -7362,2108 -3747,135 -5140,-726 -8430,-497 -3832,266 -5874,1701 -8949,2217 -3825,643 -7369,-594 -11294,1533 -3656,1982 -2284,1958 -6004,2389l0 -30000z'/></svg>");
  font:
    18px/1.45 'PT Sans Narrow',
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    Noto Sans,
    Helvetica Neue,
    Arial,
    'Apple Color Emoji',
    'Segoe UI Emoji';
  /* страница — колонка */
  overflow-y: auto;
  scrollbar-gutter: stable;
}

[id] {
  scroll-margin-top: var(--anchor-offset);
}

body::before {
  content: '';
  display: block;
  height: 24px; /* хочешь 24px — поставь 24 */
}

main {
  flex: 1 0 auto;
} /* основной контент растягивается */
.site-footer {
  margin-top: auto;
} /* футер прижимается вниз */

.list-res {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.header {
  z-index: 40;
  top: 0;
  background-color: #f8fafc;
  height: 60px;
  width: 100%;
  position: sticky;
  border-bottom: 2px solid transparent;
  transition:
    border-bottom-color 1s ease,
    box-shadow 1s ease;
}

/* когда прилипла */
.header.is-stuck {
  border-bottom: 2px solid #75addb; /* цвет под бренд */
  /* опционально лёгкая тень, чтобы отделить от контента */
  box-shadow: 0 1px 0 rgba(57, 116, 170, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1238px;
  height: 60px;
  margin: auto;
  position: relative;
}

.header-container > * {
  min-width: 0;
}

.logo-all-cont {
  display: flex;
  height: 60px;
}

.logo {
  position: absolute; /* не занимает место, поверх соседей */
  top: 6px;
  left: 0px;
  width: 139px;
  z-index: 10;
  user-select: none;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.burger {
  flex: 0 0 56px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 20px 12px;
}

.burger:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 8px;
}

.b-line {
  width: 27px;
  height: 2px;
  background-color: #174c79;
}

.logo_sm {
  display: none;
  background: url('images/redesign2/logo_clear_3.png') no-repeat;
  background-size: 50px auto;
  flex: 0 0 56px;
  height: 60px;
  margin-top: 5px;
}

.logo-text-cont {
  flex: 0 0 264px;
  position: relative;
  height: 60px;
  cursor: pointer;
}

.logo-text-left {
  position: absolute;
  background: url('images/redesign2/logo3_pre.svg') no-repeat;
  background-size: 56px auto;
  left: 47px;
  top: 16px;
  width: 56px;
  height: 25px;
}

.logo-text-center {
  position: absolute;
  background: url('images/redesign2/logo3_main.svg') no-repeat;
  background-size: 106px auto;
  left: 108px;
  top: 8px;
  width: 106px;
  height: 35px;
}

.logo-text-bottom {
  position: absolute;
  background: url('images/redesign2/logo3_under.svg') no-repeat;
  background-size: 148px auto;
  left: 88px;
  top: 36px;
  width: 148px;
  height: 30px;
}

.contacts-bar {
  display: flex;
  justify-content: center; /* выравнивание окна внутри бара: center */
  align-items: center;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

/* Окно, которое задаёт видимую ширину */
.contacts-clip {
  width: 100%;
  max-width: 683px; /* на широких экранах виден весь блок */
  height: 60px;
  overflow: hidden; /* обрезаем лишнее */
}
.contacts-clip2 {
  display: none;
  width: 98px;
  height: 60px;
  background: url('images/redesign2/allctg3_sm3.svg') no-repeat;
  background-size: 98px auto;
}

/* По умолчанию SVG тянется вместе с окном (нормальная резина) */
.contacts-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 683 / 60;
}

.contacts-svg .hotspots rect {
  cursor: pointer;
  fill: #000;
  fill-opacity: 0.001;
  transition: fill-opacity 0.12s ease;
  outline: none;
}
@media (hover: hover) {
  .contacts-svg .hotspots rect:hover {
    fill-opacity: 0.03;
  }
}
.contacts-svg .hotspots rect:focus {
  stroke: #d8eef9;
  stroke-width: 4px;
}

.tel1_spot,
.tel2_spot,
.e_spot {
  transform-box: fill-box; /* трансформируем в системе собственных границ */
  transform-origin: left center; /* «левый край» — точка опоры */
}

.disclosure {
  display: none;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  height: 60px;
  align-items: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  color: #174c79;
}

/* Стрелка-треугольник вниз (использует currentColor) */
.disclosure::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid currentColor; /* треугольник направлен ВНИЗ */
  transition: transform 0.2s ease;
}

/* Когда секция открыта — поворачиваем стрелку вверх */
.disclosure[aria-expanded='true']::after {
  transform: rotate(180deg);
}

/* Доступность: рамка по фокусу с клавиатуры */
.disclosure:focus-visible {
  outline: 2px solid #6366f1; /* подставь свой var(--ring), если есть */
  outline-offset: 2px;
  border-radius: 8px;
}

.product-menu-head-cont {
  flex: 0 0 235px;
  display: flex;
  height: 60px;
  background-color: #cbdef0;
  border-bottom: 2px solid transparent; /* ← заложили толщину */
  transition: border-bottom-color 1s var(--ease); /* ← плавное проявление */
}

.header.is-stuck .product-menu-head-cont {
  border-bottom-color: #75addb;
}

/* Фокус-рамка для клавиатуры на триггере */
.product-menu-head-cont:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 10px;
}

.product-menu-head2 {
  display: none;
  width: 100%;
  text-align: left;
  text-indent: 20px;
  font-family: 'BravoRG';
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #174c79;
  padding-top: 2px;
  user-select: none;
  letter-spacing: 4px;
}

.prod_icon {
  height: 40px;
  width: 100px;
  background: url('images/redesign2/printer2.svg') no-repeat;
  background-size: 26px 26px;
  background-position: right center;
  margin: auto;
}

.product-menu-head {
  padding-top: 1px;
  width: 100%;
  text-align: left;
  text-indent: 20px;
  font-family: 'BravoRG';
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #174c79;
  line-height: 60px;
  user-select: none;
}

.product-menu {
  position: absolute;
  left: 1003px;
  top: 64px;
  display: grid;
  grid: repeat(9, 45px) / 235px;
  gap: 4px;
  width: 235px;
  line-height: 45px;
  text-align: center;
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  cursor: pointer;
}

.product_item {
  background: #cbdef0;
  color: #000;
  user-select: none;
  transition:
    background 0.25s ease,
    transform 0.1s ease;
}

.product_item_static {
  background: #cbdef0;
  color: #000;
  user-select: none;
  background: rgb(173, 210, 240);
  font-weight: 600;
  color: #174c79;
  font-size: 18px;
  text-transform: uppercase;
}

/* hover — только на устройствах, где он реально есть (мышь) */
@media (hover: hover) and (pointer: fine) {
  .product_item:hover {
    background: rgb(173, 210, 240);
    font-weight: 600;
    color: #174c79;
    font-size: 18px;
    text-transform: uppercase;
  }
}

/* клавиатура/доступность */
.product_item:focus-visible {
  outline: 2px solid #174c79;
  font-weight: 600;
  color: #174c79;
  font-size: 18px;
  outline-offset: 2px;
  text-transform: uppercase;
}

/* active — работает и на тач: при нажатии/тапе */
.product_item:active {
  font-weight: 600;
  color: #174c79;
  font-size: 18px;
  transform: translateY(1px);
  filter: brightness(0.97);
  text-transform: uppercase;
}

.hero-cont {
  width: min(100%, 1238px);
  margin-inline: auto; /* центрирование */
  padding-inline: 20px; /* поля слева/справа по 20px */
}

.hero-inside {
  margin-left: 220px;
  max-width: 700px;
}

.nav-product {
  margin-top: 18px;
  display: flex;
  justify-content: end;
  align-items: end;
  position: relative;
  font-family: 'PT Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  user-select: none;
}

.nav-desc {
  /* цвет текста отдельно */
  color: #000000;

  width: 194px;
  height: 46px;

  /* SVG с фиксированным fill и растяжением без пропорций */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 888 203' preserveAspectRatio='none'%3E%3Cpolygon points='-1 0 779 10 887 203 -1 131' fill='%23E2F1C3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 167px 36px; /* непропорционально: ширина x высота */

  text-indent: 10px;
  padding-top: 9px;
  cursor: pointer;

  transition:
    text-indent 0.1s ease,
    padding-top 0.1s ease,
    font-size 0.1s ease,
    background-size 0.1s ease,
    background-position 0.1s ease;
}

.desc_icon {
  position: absolute;
  background: url('images/icon_info.svg') no-repeat;
  background-size: 40px auto;
  width: 40px;
  height: 40px;
  top: 4px;
  left: 127px;
  transition: position 0.1s ease;
}

.nav-calc {
  /* цвет текста отдельно */
  color: #000000;

  width: 228px;
  height: 46px;

  /* SVG встроен как фон; preserveAspectRatio=none для произвольного скейла */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1072 195' preserveAspectRatio='none'%3E%3Cpolygon points='-1 1 968 9 1072 196 -1 126' fill='%23FFBEB9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 189px 37px; /* ширина × высота — непропорционально */

  text-indent: 21px;
  padding-top: 9px;
  cursor: pointer;

  transition:
    text-indent 0.1s ease,
    padding-top 0.1s ease,
    font-size 0.1s ease,
    background-size 0.1s ease,
    background-position 0.1s ease;
}

.calc_icon {
  position: absolute;
  background: url('images/icon_calc.svg') no-repeat;
  background-size: 42px auto;
  width: 42px;
  height: 42px;
  top: 3px;
  left: 161px;
  transition: position 0.1s ease;
}

.nav-date {
  /* цвет текста отдельно от фона */
  color: #000000;
  position: relative;
  min-width: 294px;
  height: 46px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1504 190' preserveAspectRatio='none'%3E%3Cpolygon points='-1 0 1402 8 1504 191 -1 122' fill='%23FFDDB3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 265px 38px; /* ширина × высота — тянется непропорционально */

  text-indent: 18px;
  padding-top: 10px;
  user-select: none;

  transition:
    text-indent 0.1s ease,
    padding-top 0.1s ease,
    font-size 0.1s ease,
    background-size 0.1s ease,
    background-position 0.1s ease;
}
.time_icon {
  position: absolute;
  background: url('images/icon_time.svg') no-repeat;
  background-size: 34px auto;
  width: 34px;
  height: 34px;
  transition: position 0.1s ease;
  position: absolute;
  top: 5px;
  right: 27px;
  pointer-events: none;
}

/* плавное «приближение» карточек */
.nav-desc,
.nav-calc {
  transform: translateZ(0) scale(1);
  transform-origin: right bottom; /* не “наезжаем” на соседей справа */
  transition:
    transform 0.18s ease,
    text-indent 0.1s ease,
    padding-top 0.1s ease,
    font-size 0.1s ease,
    background-size 0.1s ease,
    background-position 0.1s ease;
}

.nav-desc:hover,
.nav-desc:focus-visible,
.nav-calc:hover,
.nav-calc:focus-visible {
  transform: scale(1.04); /* лёгкое приближение */
  z-index: 1; /* на всякий случай поверх соседей */
}

/* иконкам — чуть больший “поп” */
.desc_icon,
.calc_icon {
  transition: transform 0.18s ease; /* “position” не анимируется — убираем */
  transform: translateZ(0) scale(1);
  transform-origin: center;
}

.nav-desc:hover .desc_icon,
.nav-desc:focus-visible .desc_icon,
.nav-calc:hover .calc_icon,
.nav-calc:focus-visible .calc_icon {
  transform: scale(1.1);
}

/* уважение к предпочтению “меньше анимации” */
@media (prefers-reduced-motion: reduce) {
  .nav-desc,
  .nav-calc,
  .desc_icon,
  .calc_icon {
    transition: none;
  }
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
}

/* Demo content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px;
  color: var(--muted);
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-open .overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer panel */
.drawer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  height: 100dvh;
  width: min(86vw, 300px);
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
  border-right: 1px solid rgba(2, 6, 23, 0.06);
  box-shadow: none;
}
/* Правый drawer */
.drawer--right {
  right: 0;
  left: auto;
  transform: translateX(100%);
  width: min(86vw, 300px);
}
.products-open .drawer--right {
  transform: none;
}

.menu-open #menuPanel {
  transform: none;
  box-shadow: var(--shadow);
}
.products-open #productsPanel {
  box-shadow: var(--shadow); /* у тебя уже задано */
}

.drawer__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(241, 249, 253, 1), rgba(241, 249, 253, 1));
  backdrop-filter: blur(10px);
}
.drawer__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.drawer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: 'PT Sans', sans-serif;
}

.nav {
  position: relative;
  padding: 10px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.link,
.group-toggle {
  width: 100%;
  display: block;
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  transition:
    background 0.2s,
    transform 0.2s;
  font-size: 16px;
  font-family: 'PT Sans', sans-serif;
}
.link:hover,
.group-toggle:hover {
  background: #cbdef0;
  font-weight: 600;
}
.link:focus-visible,
.group-toggle:focus-visible,
.close:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 14px;
}

/* Stagger animation */
.link,
.group {
  opacity: 0;
  transform: translateX(-8px);
}
.menu-open .link,
.menu-open .group {
  animation: item-in 0.35s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 50ms);
}
@keyframes item-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* активная страница: выглядит как наведение */
.link[aria-current='page'],
.link.is-active {
  background: #cbdef0;
  font-weight: 600;
  cursor: default;
}

/* чтобы наведение не меняло цвет */
.link[aria-current='page']:hover,
.link.is-active:hover {
  background: #cbdef0;
}

.group {
  border-radius: 14px;
}
.group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}
.group-toggle .row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
  font-size: 11px;
}
.chev {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.submenu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.submenu > div {
  overflow: hidden;
}
.submenu a {
  display: block;
  margin-left: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
}
.submenu a:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text);
}

.group-toggle[aria-expanded='true'] + .submenu {
  grid-template-rows: 1fr;
}
.group-toggle[aria-expanded='true'] .chev {
  transform: rotate(90deg);
}

.drawer__foot {
  margin-top: auto;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(248, 250, 252, 0.85));
}
.cta {
  display: block;
  text-align: center;
  width: 100%;
  border-radius: 18px;
  padding: 12px 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}
.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.contacts a {
  display: block;
  text-align: center;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  color: #334155;
  background: #fff;
}
.contacts a:hover {
  background: #f8fafc;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .overlay,
  .drawer {
    transition: none;
  }
  .link,
  .group {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

[inert] {
  pointer-events: none;
  user-select: none;
}

.footer-banner {
  /* подставьте путь к вашей картинке без текста */
  --img: url('/images/footer2.gif');
  position: relative;
  background: #fff var(--img) center bottom / cover no-repeat;
  aspect-ratio: 342 / 107; /* сохраняем пропорции */
  height: 102px;
  width: 300px;
  margin: 0 auto; /* <<< центр по ширине страницы */
  overflow: hidden;
}

.footer-copyright {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  margin: 0;
  font:
    600 14px/1 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Arial,
    sans-serif;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow:
    1px 1px 1px rgba(48, 43, 40, 0.7),
    1px 1px 5px rgba(48, 43, 40, 0.5),
    1px 1px 8px rgba(48, 43, 40, 0.3),
    1px -1px 1px rgba(48, 43, 40, 0.7),
    1px -1px 5px rgba(48, 43, 40, 0.5),
    1px -1px 8px rgba(48, 43, 40, 0.3),
    -1px -1px 1px rgba(48, 43, 40, 0.7),
    -1px -1px 5px rgba(48, 43, 40, 0.5),
    -1px -1px 8px rgba(48, 43, 40, 0.3),
    -1px 1px 1px rgba(48, 43, 40, 0.7),
    -1px 1px 5px rgba(48, 43, 40, 0.5),
    -1px 1px 8px rgba(48, 43, 40, 0.3);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.menu-open .overlay,
.products-open .overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Голубой фон для правого меню */
.drawer--blue .drawer__bg {
  background: linear-gradient(180deg, #eaf5fd, #eaf5fd);
}

/* Те же «въездные» анимации, но для правого меню */
.products-open #productsPanel .link,
.products-open #productsPanel .group {
  animation: item-in 0.35s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 50ms);
}
