/* Страница услуги «Заправка картриджей»: компактный mobile-first каталог. */
.refill-page-v2 {
  overflow-x: hidden;
}

.refill-page-v2 .refill-service--conversion {
  padding: 28px 0 42px;
  background: #f5f8fc;
}

.refill-page-v2 .refill-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 28px;
  padding: 32px;
  border: 1px solid #dfe8f3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(31, 58, 91, .08);
}

.refill-page-v2 .refill-hero__copy {
  min-width: 0;
}

.refill-page-v2 .refill-kicker {
  display: block;
  margin-bottom: 7px;
  color: #2378c9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.refill-page-v2 .refill-hero h1 {
  margin: 0 0 10px;
  color: #1f3047;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.12;
}

.refill-page-v2 .refill-hero__copy p {
  max-width: 780px;
  margin: 0;
  color: #58687d;
  font-size: 17px;
  line-height: 1.55;
}

.refill-page-v2 .refill-hero__cta {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-height: 48px;
  margin: 0;
  padding: 13px 18px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.refill-page-v2 .refill-search {
  grid-column: 1 / -1;
  max-width: 880px;
}

.refill-page-v2 .refill-search > label,
.refill-page-v2 .brand-filter-wrap > span {
  display: block;
  margin-bottom: 8px;
  color: #283c56;
  font-size: 14px;
  font-weight: 800;
}

.refill-page-v2 .refill-search__field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  border: 2px solid #cbd9e8;
  border-radius: 13px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.refill-page-v2 .refill-search__field:focus-within {
  border-color: #2f8edb;
  box-shadow: 0 0 0 4px rgba(47, 142, 219, .13);
}

.refill-page-v2 .refill-search__field > i {
  flex: 0 0 auto;
  margin-left: 18px;
  color: #4e85b6;
  font-size: 18px;
}

.refill-page-v2 .refill-search__field input {
  width: 100%;
  min-width: 0;
  padding: 15px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f3047;
  font: inherit;
  font-size: 17px;
}

.refill-page-v2 .refill-search__field input::placeholder {
  color: #8a97a8;
}

.refill-page-v2 .refill-search__clear {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-right: 7px;
  border: 0;
  border-radius: 50%;
  background: #edf3f9;
  color: #52667e;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.refill-page-v2 .refill-search > small {
  display: block;
  margin-top: 7px;
  color: #748398;
  font-size: 13px;
}

.refill-page-v2 .brand-filter-wrap {
  grid-column: 1 / -1;
  min-width: 0;
}

.refill-page-v2 .brand-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.refill-page-v2 .brand-filter {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #cfdbe8;
  border-radius: 999px;
  background: #fff;
  color: #31475f;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.refill-page-v2 .brand-filter:hover {
  border-color: #318bd4;
  color: #1f70b7;
}

.refill-page-v2 .brand-filter.active,
.refill-page-v2 .brand-filter[aria-pressed="true"] {
  border-color: #2c83cc;
  background: #2c83cc;
  color: #fff;
}

.refill-page-v2 .refill-service-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 0;
  color: #64758a;
  font-size: 13px;
}

.refill-page-v2 .refill-service-note i {
  color: #2f8edb;
}

.refill-page-v2 .refill-results {
  margin-top: 28px;
  padding: 28px 30px 32px;
  border: 1px solid #dfe8f3;
  border-radius: 18px;
  background: #fff;
}

.refill-page-v2 .refill-results__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.refill-page-v2 .refill-results__heading h2 {
  margin: 0;
  color: #24364d;
  font-size: 28px;
}

.refill-page-v2 #searchStatus {
  margin: 0;
  color: #6b7b8f;
  font-size: 14px;
  text-align: right;
}

.refill-page-v2 .refill-table {
  margin: 0;
}

.refill-page-v2 .refill-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  color: #65768b;
}

.refill-page-v2 .brand-section {
  margin: 0 0 26px;
}

.refill-page-v2 .brand-section:last-child {
  margin-bottom: 0;
}

.refill-page-v2 .brand-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 10px;
  padding: 0 0 9px;
  border-bottom: 2px solid #dce8f3;
  color: #263a53;
  font-size: 20px;
}

.refill-page-v2 .brand-title small {
  color: #7d8b9c;
  font-size: 12px;
  font-weight: 600;
}

.refill-page-v2 .cartridges-list {
  display: grid;
  gap: 7px;
}

.refill-page-v2 .cartridge-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 10px 9px 15px;
  border: 1px solid #e5ebf2;
  border-radius: 10px;
  background: #f9fbfd;
  transition: border-color .16s ease, background .16s ease;
}

.refill-page-v2 .cartridge-item:hover {
  border-color: #bfd4e8;
  background: #f3f8fd;
  transform: none;
}

.refill-page-v2 .cartridge-model {
  min-width: 0;
  color: #26394f;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.refill-page-v2 .cartridge-model a {
  color: #245fa8;
  text-decoration: none;
}

.refill-page-v2 .cartridge-model a:hover {
  text-decoration: underline;
}

.refill-page-v2 .cartridge-price {
  color: #147848;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.refill-page-v2 .cartridge-price.is-unknown {
  color: #6c7c8f;
  font-size: 13px;
}

.refill-page-v2 .refill-item-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.refill-page-v2 .refill-detail-link,
.refill-page-v2 .refill-order-btn,
.refill-page-v2 .brand-expand-btn {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.refill-page-v2 .refill-detail-link {
  border: 1px solid #ccd9e7;
  background: #fff;
  color: #315a86;
}

.refill-page-v2 .refill-order-btn {
  border: 1px solid #2b83cc;
  background: #2b83cc;
  color: #fff;
}

.refill-page-v2 .brand-expand-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px dashed #b9cadd;
  background: #f7fafd;
  color: #315f8d;
}

.refill-page-v2 .refill-no-results {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px dashed #b9cce0;
  border-radius: 14px;
  background: #f7fbff;
}

.refill-page-v2 .refill-no-results > i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #e5f2ff;
  color: #2c83cc;
  font-size: 20px;
}

.refill-page-v2 .refill-no-results h3 {
  margin: 0 0 4px;
  color: #26394f;
  font-size: 20px;
}

.refill-page-v2 .refill-no-results p {
  margin: 0;
  color: #627389;
  line-height: 1.5;
}

.refill-page-v2 .refill-no-results__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.refill-page-v2 .refill-no-results__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #cbd9e8;
  border-radius: 9px;
  background: #fff;
  color: #285985;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.refill-page-v2 .catalog-service-seo {
  margin-top: 28px;
}

.refill-page-v2 .article-actions {
  padding: 28px 0;
}

.refill-mobile-contact {
  display: none;
}

/* Popup помощи использует общую contact-choice-modal, ниже только поля формы. */
.refill-help-popup__dialog {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.refill-help-popup__form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.refill-help-popup__form label {
  display: grid;
  gap: 6px;
  color: #283c56;
  font-size: 13px;
  font-weight: 800;
}

.refill-help-popup__form input:not(.feedback-honeypot) {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #1f3047;
  font: inherit;
  font-size: 16px;
}

.refill-help-popup__form input:not(.feedback-honeypot):focus {
  border-color: #2f8edb;
  box-shadow: 0 0 0 3px rgba(47, 142, 219, .13);
}

.refill-help-popup__submit {
  width: 100%;
  min-height: 48px;
  margin: 2px 0 0;
  border: 0;
  cursor: pointer;
}

.refill-help-popup__submit:disabled {
  cursor: wait;
  opacity: .7;
}

.refill-help-popup__status {
  min-height: 0;
  margin: 0;
  color: #607087;
  font-size: 13px;
  line-height: 1.4;
}

.refill-help-popup__status:empty {
  display: none;
}

.refill-help-popup__status.is-success {
  color: #147848;
  font-weight: 800;
}

.refill-help-popup__status.is-error {
  color: #b33a32;
}

.refill-help-popup__contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #e6edf4;
}

.refill-help-popup__contacts a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  padding: 8px 7px;
  border: 1px solid #d8e3ee;
  border-radius: 9px;
  background: #fff;
  color: #245fa8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.refill-help-popup__contacts a:hover {
  border-color: #9ebce1;
  background: #f7faff;
}

.refill-help-popup__contacts i {
  flex: 0 0 auto;
  color: #2378c9;
}

body.modal-open .refill-mobile-contact {
  visibility: hidden;
}

@media (max-width: 900px) {
  .refill-page-v2 .refill-hero {
    grid-template-columns: 1fr;
  }

  .refill-page-v2 .refill-hero__cta {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .refill-page-v2 .refill-no-results {
    grid-template-columns: auto 1fr;
  }

  .refill-page-v2 .refill-no-results__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .refill-page-v2 {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .refill-page-v2 .refill-service--conversion {
    padding: 14px 0 26px;
  }

  .refill-page-v2 .refill-hero {
    gap: 15px;
    padding: 21px 16px 17px;
    border-radius: 14px;
  }

  .refill-page-v2 .refill-hero h1 {
    font-size: 29px;
  }

  .refill-page-v2 .refill-hero__copy p {
    font-size: 15px;
    line-height: 1.48;
  }

  .refill-page-v2 .refill-hero__cta {
    width: 100%;
    min-height: 46px;
  }

  .refill-page-v2 .refill-search__field {
    min-height: 54px;
  }

  .refill-page-v2 .refill-search__field input {
    padding: 13px 9px;
    font-size: 16px;
  }

  .refill-page-v2 .brand-filter-wrap {
    margin-right: -16px;
  }

  .refill-page-v2 .brand-filters {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 16px 6px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .refill-page-v2 .brand-filter {
    flex: 0 0 auto;
    min-height: 44px;
    scroll-snap-align: start;
  }

  .refill-page-v2 .refill-results {
    margin-top: 16px;
    padding: 20px 12px 22px;
    border-radius: 14px;
  }

  .refill-page-v2 .refill-results__heading {
    display: block;
    margin-bottom: 14px;
  }

  .refill-page-v2 .refill-results__heading h2 {
    font-size: 23px;
  }

  .refill-page-v2 #searchStatus {
    margin-top: 5px;
    text-align: left;
  }

  .refill-page-v2 .brand-title {
    font-size: 18px;
  }

  .refill-page-v2 .cartridge-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 10px 9px 10px 12px;
  }

  .refill-page-v2 .cartridge-price {
    font-size: 15px;
  }

  .refill-page-v2 .refill-item-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .refill-page-v2 .refill-item-actions > :only-child {
    grid-column: 1 / -1;
  }

  .refill-page-v2 .refill-detail-link,
  .refill-page-v2 .refill-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
  }

  .refill-page-v2 .refill-no-results {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 15px;
  }

  .refill-page-v2 .refill-no-results > i {
    width: 42px;
    height: 42px;
  }

  .refill-page-v2 .refill-no-results__actions {
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .refill-page-v2 .refill-no-results__actions a {
    min-width: 0;
    padding: 8px 5px;
    font-size: 12px;
  }

  .refill-page-v2 .catalog-service-seo {
    margin-top: 18px;
    padding: 18px 16px;
  }

  .refill-page-v2 .article-actions {
    display: none;
  }

  .refill-mobile-contact {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3200;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 62px;
    padding: 5px max(7px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
    border-top: 1px solid #d6e0eb;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 24px rgba(25, 48, 76, .13);
    backdrop-filter: blur(8px);
  }

  .refill-mobile-contact a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    border-radius: 9px;
    color: #29435f;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
  }

  .refill-mobile-contact a:active {
    background: #edf5fc;
  }

  .refill-mobile-contact i {
    color: #2582ce;
    font-size: 19px;
  }

  .refill-page-v2 .scroll-to-top {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .refill-help-popup__contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .refill-help-popup__contacts a:first-child {
    grid-column: 1 / -1;
  }
}

/* Поведенческий помощник страницы заправки. */
.refill-behavior-helper {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3100;
  width: min(390px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid #d7e3ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(25, 48, 76, .2);
  color: #23384f;
}

.refill-behavior-helper h2 {
  margin: 0 30px 7px 0;
  font-size: 21px;
  line-height: 1.2;
}

.refill-behavior-helper > p {
  margin: 0 0 15px;
  color: #52677d;
  font-size: 14px;
  line-height: 1.45;
}

.refill-behavior-helper__close {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #63758a;
  font-size: 25px;
  cursor: pointer;
}

.refill-behavior-helper__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.refill-behavior-helper__actions > :first-child,
.refill-behavior-helper__actions > :last-child {
  grid-column: 1 / -1;
}

.refill-behavior-helper__actions a,
.refill-behavior-helper__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #cbdbea;
  border-radius: 9px;
  background: #f7fbff;
  color: #245f92;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.refill-behavior-helper__actions .catalog-primary-btn {
  border-color: #2582ce;
  background: #2582ce;
  color: #fff;
}

.refill-behavior-helper__form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e1e9f1;
}

.refill-behavior-helper__form[hidden] {
  display: none;
}

.refill-behavior-helper__form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.refill-behavior-helper__form input:not(.feedback-honeypot) {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bdccda;
  border-radius: 9px;
  font: inherit;
}

.refill-behavior-helper__form input:focus {
  border-color: #2582ce;
  outline: 3px solid rgba(37, 130, 206, .14);
}

.refill-behavior-helper__form button {
  min-height: 44px;
}

.refill-behavior-helper__status {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.refill-behavior-helper__status:empty {
  display: none;
}

.refill-behavior-helper__status.is-success {
  color: #18733b;
}

.refill-behavior-helper__status.is-error {
  color: #b42318;
}

@media (max-width: 768px) {
  .refill-behavior-helper {
    right: 10px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
    max-height: calc(100vh - 100px - env(safe-area-inset-bottom));
    padding: 16px;
    overflow-y: auto;
  }

  .refill-behavior-helper h2 {
    font-size: 19px;
  }

  .refill-behavior-helper__actions a,
  .refill-behavior-helper__actions button {
    min-height: 44px;
  }
}

@media (max-width: 390px) {
  .refill-page-v2 .refill-hero h1 {
    font-size: 27px;
  }

  .refill-page-v2 .refill-search__field > i {
    margin-left: 13px;
  }

  .refill-page-v2 .cartridge-item {
    grid-template-columns: 1fr;
  }

  .refill-page-v2 .cartridge-price,
  .refill-page-v2 .refill-item-actions {
    grid-column: 1;
  }
}
