/* ============================================================
   ПРОБА 585 — единая сетка, фокус и анимации интерфейса. 12.09.2026
   Сдержанно: короткие длительности, мягкие кривые, никакого «прыгающего» UI.
   ============================================================ */

/* ---------- 1. Одна сетка для всего сайта ----------
   Шапка, hero и секции жили на разных контейнерах (32 / 60 / 88 px от края). */
html body .container{
  max-width: 1312px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
@media (max-width: 767px){
  html body .container{ padding-left: 16px !important; padding-right: 16px !important; }
}

/* ---------- 2. Порядок элементов шапки — как был: лого, иконки, рейтинг, кнопка ---------- */
html body .site-header .hdr-rating{ order: 0 !important; }

/* ---------- 3. Фокус — фирменный, а не синий системный ----------
   Синие рамки появлялись на иконках после клика по «Каталогу». */
html body a:focus,
html body button:focus,
html body input:focus,
html body select:focus,
html body textarea:focus,
html body .hdr-icon:focus,
html body summary:focus{ outline: none !important; }

html body a:focus-visible,
html body button:focus-visible,
html body input:focus-visible,
html body select:focus-visible,
html body textarea:focus-visible,
html body summary:focus-visible{
  outline: 2px solid var(--p-green-2) !important;
  outline-offset: 2px !important;
  border-radius: 10px;
}
html body .hdr-icon:focus svg,
html body .hdr-icon:active svg{ color: var(--p-green) !important; stroke: var(--p-green) !important; }

/* ---------- 4. Иконки в плашках шагов схлопывались во flex ---------- */
.steps3__tag svg{ flex: 0 0 15px !important; width: 15px !important; height: 15px !important; }
.trust-line svg, .office-perks svg, .docs-list svg{ flex: 0 0 auto !important; }

/* ============================================================
   АНИМАЦИИ
   ============================================================ */
:root{ --p-ease: cubic-bezier(.22,.61,.36,1); }

/* Кнопки: мягкий подъём, живое нажатие, блик по наведению */
html body .btn,
html body .market-band__cta,
html body .mobile-bar__item,
html body .seg__btn,
html body .chip{
  transition: transform .22s var(--p-ease), box-shadow .22s var(--p-ease),
              background-color .2s var(--p-ease), color .2s var(--p-ease), border-color .2s var(--p-ease) !important;
  will-change: transform;
}
html body .btn{ position: relative; overflow: hidden; }
html body .btn::after{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .55s var(--p-ease);
  pointer-events: none;
}
html body .btn:hover::after{ transform: translateX(120%); }
html body .btn:hover{ transform: translateY(-2px); box-shadow: var(--p-sh-mid); }
html body .btn:active{ transform: translateY(0) scale(.985); }

/* Красный CTA — чуть заметнее остальных */
html body .btn.btn-cta-red:hover,
html body .btn.hero-price__cta:hover{ box-shadow: 0 10px 26px rgba(239,49,36,.32); }

/* Иконки шапки: подложка появляется мягко, иконка слегка оживает */
html body .site-header .hdr-icon{
  position: relative;
  border-radius: 12px;
  transition: background-color .2s var(--p-ease), transform .2s var(--p-ease) !important;
}
html body .site-header .hdr-icon:hover{ background: var(--p-green-sf) !important; transform: translateY(-1px); }
html body .site-header .hdr-icon svg{ transition: transform .25s var(--p-ease); }
html body .site-header .hdr-icon:hover svg{ transform: scale(1.08); }

/* Быстрые якоря: подчёркивание вырастает слева направо */
html body .hero .hero-quick a{ position: relative; }
html body .hero .hero-quick a::after{
  content: ''; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px;
  background: var(--p-green-2); border-radius: 2px;
  transition: right .28s var(--p-ease);
}
html body .hero .hero-quick a:hover::after{ right: 0; }

/* Карточки: лёгкий подъём и подсветка рамки */
html body .cat-card,
html body .rev-card,
html body .art-card,
html body .steps3__card,
html body .calc2__card{
  transition: transform .24s var(--p-ease), box-shadow .24s var(--p-ease), border-color .24s var(--p-ease) !important;
}
html body .cat-card:hover,
html body .art-card:hover{ transform: translateY(-4px); }
html body .rev-card:hover{ transform: translateY(-2px); box-shadow: var(--p-sh-mid); }

/* Иконка внутри карточки категории — небольшой «отклик» */
html body .cat-card__ic{ transition: transform .28s var(--p-ease), background-color .2s var(--p-ease); }
html body .cat-card:hover .cat-card__ic{ transform: translateY(-2px) rotate(-4deg); }

/* Чипы проб и переключатель металла */
html body .chip:hover{ transform: translateY(-1px); }
html body .chip.is-active{ box-shadow: 0 4px 14px rgba(11,80,51,.26); }
html body .seg__btn.is-active{ box-shadow: 0 4px 14px rgba(11,80,51,.22); }

/* FAQ: плавное раскрытие */
html body .faq2__item{ transition: box-shadow .22s var(--p-ease), border-color .22s var(--p-ease) !important; }
html body .faq2__ans{ animation: p585Fade .32s var(--p-ease); }
@keyframes p585Fade{ from{ opacity:0; transform: translateY(-4px);} to{ opacity:1; transform:none;} }

/* Нижняя панель на телефоне */
html body .mobile-bar__item:active{ transform: scale(.94); }

/* Плашка цены: мягкое появление новой суммы (сам счётчик уже анимирован) */
html body .hero-price{ transition: box-shadow .3s var(--p-ease) !important; }
html body .hero-price:hover{ box-shadow: 0 22px 50px rgba(19,22,20,.22) !important; }

/* Уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce){
  html body *,
  html body *::after,
  html body *::before{
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}


/* ============================================================
   ui-part-2
   ============================================================ */

/* --- Кнопки под контактами: та же сетка, что и у плашек выше --- */
html body .hero .hero-left .actions{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}
html body .hero .hero-left .actions .btn{
  width: 100% !important;
  justify-content: center !important;
  padding: 15px 18px !important;
  font-size: 15px !important;
  border-radius: 14px !important;
}
html body .hero .hero-left .actions .btn.btn-max{ grid-column: 1 / -1 !important; }

/* --- Навигация слайдера: стеклянные круги вместо жёлтой стрелки --- */
html body .hero .slider-arrow,
html body .hero-media__frame .slider-arrow,
html body .hero [class*="slider-arrow"]{
  width: 46px !important; height: 46px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  box-shadow: 0 6px 20px rgba(19,22,20,.18) !important;
  color: var(--p-ink) !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  transition: transform .22s var(--p-ease), background-color .22s var(--p-ease) !important;
}
html body .hero [class*="slider-arrow"] svg{ width: 20px !important; height: 20px !important; stroke: var(--p-ink) !important; }
html body .hero [class*="slider-arrow"]:hover{ background: #fff !important; transform: scale(1.06) !important; }

/* точки поверх фото — деликатные */
html body .hero .slider-dots{
  display: flex !important; gap: 6px !important;
  padding: 7px 10px !important; border-radius: 999px !important;
  background: rgba(19,22,20,.28) !important; backdrop-filter: blur(6px) !important;
}
html body .hero .slider-dots button{
  width: 7px !important; height: 7px !important; border-radius: 50% !important;
  background: rgba(255,255,255,.55) !important; border: 0 !important; padding: 0 !important;
  transition: width .25s var(--p-ease), background-color .25s var(--p-ease) !important;
}
html body .hero .slider-dots button.is-active{ width: 20px !important; border-radius: 999px !important; background: #fff !important; }

/* --- Переключатель предложений в зелёном блоке: видимые табы --- */
.hero-price__dots{
  display: flex !important; gap: 8px !important; flex-wrap: wrap;
  margin: 16px 0 6px !important;
}
.hero-price__dots button{
  width: auto !important; height: auto !important;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color: rgba(255,255,255,.86) !important;
  font: inherit; font-size: 13.5px !important; font-weight: 700 !important;
  cursor: pointer;
  transition: background-color .22s var(--p-ease), color .22s var(--p-ease), transform .22s var(--p-ease) !important;
}
.hero-price__dots button i{
  font-style: normal; font-size: 10.5px; letter-spacing: .04em;
  opacity: .75; text-transform: uppercase;
}
.hero-price__dots button:hover{ background: rgba(255,255,255,.2) !important; transform: translateY(-1px); }
.hero-price__dots button.is-active{
  background: var(--p-gold) !important;
  border-color: var(--p-gold) !important;
  color: #131614 !important;
}
.hero-price__dots button.is-active i{ opacity: .6; }

/* --- Trust strip под ценой: читаемый размер --- */
html body .hero .hero-grid > .trust-strip .trust-strip__item{
  padding: 20px 22px !important;
  gap: 8px !important;
  border-radius: var(--p-r) !important;
}
html body .hero .trust-strip__item b{ font-size: 17px !important; line-height: 1.25 !important; }
html body .hero .trust-strip__item em{ font-size: 14px !important; line-height: 1.45 !important; font-style: normal !important; }
html body .hero .trust-strip__ic{ width: 40px !important; height: 40px !important; border-radius: 12px !important; }
html body .hero .trust-strip__ic svg{ width: 21px !important; height: 21px !important; }

@media (max-width: 767px){
  html body .hero .hero-left .actions{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  html body .hero .hero-left .actions .btn{ padding: 13px 10px !important; font-size: 13.5px !important; }
  html body .hero .trust-strip__item b{ font-size: 16px !important; }
  html body .hero .trust-strip__item em{ font-size: 13.5px !important; }
  .hero-price__dots button{ padding: 7px 12px !important; font-size: 13px !important; }
}


/* grid-final: у части секций padding контейнера перебивался — добиваем весом,
   чтобы шапка, hero и все секции начинались от одной линии. */
html body .container,
html body .section > .container,
html body section > .container,
html body header > .container,
html body footer > .container{
  padding-left: 24px !important;
  padding-right: 24px !important;
  max-width: 1312px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
@media (max-width: 767px){
  html body .container,
  html body .section > .container,
  html body section > .container,
  html body header > .container,
  html body footer > .container{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}


/* ============================================================
   hdr-part-3
   ============================================================ */

/* Верхняя строка шапки была прижата вправо (justify-content:flex-end) — распределяем по ширине */
html body .site-header .hdr-top{
  justify-content: space-between !important;
  width: 100% !important;
  gap: 18px !important;
}

/* Пустое поле в основной строке закрываем фирменной полосой-разделителем */
html body .site-header .hdr-icons{ flex: 1 1 auto !important; }
html body .site-header .hdr-icons::after{
  content: '';
  flex: 1 1 auto;
  height: 2px;
  min-width: 40px;
  margin: 0 22px;
  border-radius: 2px;
  background:
    linear-gradient(90deg,
      rgba(11,80,51,0) 0%,
      rgba(11,80,51,.18) 18%,
      rgba(245,179,0,.55) 50%,
      rgba(11,80,51,.18) 82%,
      rgba(11,80,51,0) 100%);
  position: relative;
}
/* ромб по центру полосы — небольшой фирменный акцент */
html body .site-header .hdr-icons::before{ content: none; }
html body .site-header .hdr-rating{ position: relative; }
html body .site-header .hdr-rating::before{
  content: '';
  position: absolute;
  left: -16px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px;
  transform: rotate(45deg);
  background: var(--p-gold);
  border-radius: 1px;
  opacity: .9;
}

@media (max-width: 1099px){
  html body .site-header .hdr-icons::after{ display: none !important; }
  html body .site-header .hdr-rating::before{ display: none !important; }
}


/* arrow-clean: у стрелок слайдера был декоративный ::before жёлтого цвета —
   он и выглядел «жёлтой загогулиной» поверх аккуратного круга. */
html body .hero .slider-arrow::before,
html body .hero .slider-arrow::after,
html body .hero [class*="slider-arrow"]::before,
html body .hero [class*="slider-arrow"]::after{
  content: none !important;
  display: none !important;
  background: none !important;
}
html body .hero .slider-arrow svg polyline,
html body .hero .slider-arrow svg path{
  stroke: var(--p-ink) !important;
  fill: none !important;
}


/* arrow-icon-show: штатный svg стрелки в теме был скрыт (display:none),
   а саму стрелку рисовал жёлтый ::before. Псевдоэлемент убрали — возвращаем нормальную иконку. */
html body .hero .slider-arrow svg,
html body .hero [class*="slider-arrow"] svg{
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  opacity: 1 !important;
  visibility: visible !important;
}


/* ============================================================
   ui-part-3
   ============================================================ */

/* Стрелки на фото стояли слипшись по центру — разводим по краям кадра */
html body .hero .hero-media__frame .slider-arrow{
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  z-index: 3 !important;
}
html body .hero .hero-media__frame .slider-arrow--prev{ left: 16px !important; right: auto !important; }
html body .hero .hero-media__frame .slider-arrow--next{ right: 16px !important; left: auto !important; }
html body .hero .hero-media__frame .slider-arrow:hover{ transform: translateY(-50%) scale(1.06) !important; }

/* Точки — по центру внизу фото */
html body .hero .hero-media__frame .slider-dots{
  position: absolute !important;
  left: 50% !important; right: auto !important;
  bottom: 16px !important; top: auto !important;
  transform: translateX(-50%) !important;
  z-index: 3 !important;
  width: auto !important; height: auto !important;
}

/* Три кнопки — в одну строку, общей шириной как две плашки контактов сверху */
html body .hero .hero-left .actions{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
html body .hero .hero-left .actions .btn{
  grid-column: auto !important;
  width: 100% !important;
  padding: 14px 10px !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  gap: 8px !important;
}
html body .hero .hero-left .actions .btn svg,
html body .hero .hero-left .actions .btn .btn-max__badge{ flex: 0 0 auto !important; }
html body .hero .hero-left .actions .btn.btn-max{ grid-column: auto !important; }

/* Переключатель цен: названия металлов целиком */
.hero-price__dots button i{
  font-size: 12px !important;
  opacity: .8 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

@media (max-width: 991px){
  html body .hero .hero-left .actions{ grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
  html body .hero .hero-left .actions .btn{ font-size: 12.5px !important; padding: 12px 6px !important; }
}
@media (max-width: 600px){
  html body .hero .hero-left .actions{ grid-template-columns: 1fr 1fr !important; }
  html body .hero .hero-left .actions .btn.btn-max{ grid-column: 1 / -1 !important; }
}


/* ui-part-4: ряд кнопок должен быть ровно той же ширины, что две плашки контактов сверху */
html body .hero .hero-left .actions{
  width: 100% !important;
  max-width: none !important;
}
.hero-price__dots button i{ margin-right: 2px; }


/* Кнопки МАКС в подвале: переписка и канал */
.max-links{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.max-channel-btn{
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px; border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff !important; text-decoration: none !important;
  font-size: 14px; font-weight: 600;
  transition: background-color .2s var(--p-ease), transform .2s var(--p-ease), border-color .2s var(--p-ease);
}
.max-channel-btn:hover{ background: rgba(255,255,255,.14); border-color: rgba(245,185,21,.5); transform: translateY(-1px); }
.max-channel-btn__ic{ display: inline-flex; }
.max-channel-btn--write{ background: rgba(245,185,21,.16); border-color: rgba(245,185,21,.4); }
@media (max-width: 600px){
  .max-links{ flex-direction: column; }
  .max-channel-btn{ justify-content: center; }
}

/* Подвал перебивал кнопки МАКС правилом для ссылок (display:block, свой padding) -
   из-за этого иконка уезжала за край кнопки. Возвращаем кнопке строчный флекс. */
html body footer .max-channel-btn,
html body .site-footer .max-channel-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 9px !important;
  padding: 11px 16px !important;
  line-height: 1 !important;
  width: auto !important;
  vertical-align: middle;
}
html body footer .max-channel-btn__ic,
html body footer .max-channel-btn svg{ flex: 0 0 auto; display: block; margin: 0 !important; }
