/* CSS · assets/css/eci.css · elcorteingles.es design layer · elcorte
   Токены из tokens.css ECI (green #008539, gray 10–100, font-size 01–08),
   типографика - ECI-TEXT (optimized light/regular) + moonshine2-font для лого. */

@font-face {
  font-family: "ECI-TEXT";
  src: url("../fonts/eci/eci-light.woff2") format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ECI-TEXT";
  src: url("../fonts/eci/eci-regular.woff2") format("woff2");
  font-weight: 401 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ECI-Logo";
  src: url("../fonts/eci/eci-logo.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --ink: #000000;
  --ink-soft: #242424;
  --paper: #ffffff;
  --stone: #f2f2f2;
  --stone-2: #e6e6e6;
  --line: #e6e6e6;
  --line-strong: #d1d1d1;
  --muted: #515151;
  --muted-2: #737373;
  --green: #008539;
  --green-dim: #00652b;
  --green-soft: #eef7f1;
  --red: #cb2e1f;
  --red-soft: #fdf0ed;
  --w: 1440px;
  --pad: clamp(16px, 4.4vw, 64px);
  --h-topbar: 36px;
  --h-header: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --focus: #005eb8;
  --eci-font: "ECI-TEXT", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- базовая типографика ---------- */
body {
  font-family: var(--eci-font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-soft);
  letter-spacing: -0.05px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.hero__title,
.section-head h2 {
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
}

.section-head h2,
h2 {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 300;
}

strong,
b {
  font-weight: 600;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- оверлей-шапка поверх героя (главная) ---------- */
.eci-overline {
  display: none;
}

.page-home .topbar,
.page-home .site-header,
.page-home .dept-nav {
  position: fixed;
  left: 0;
  right: 0;
}

.page-home .topbar {
  top: 0;
  z-index: 60;
  background: #000;
}

.page-home.is-top .site-header {
  background: transparent;
  border-bottom-color: rgba(0, 0, 0, 0.001);
  color: #fff;
}

.page-home .site-header {
  top: var(--h-topbar);
  z-index: 55;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home.is-top .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.page-home .site-header.is-stuck {
  background: #fff;
  color: var(--ink);
  border-bottom-color: var(--line);
  box-shadow: none;
}

.page-home .site-header::before {
  opacity: 0;
}

.page-home .dept-nav {
  top: calc(var(--h-topbar) + var(--h-header));
  z-index: 54;
  background: transparent;
  border-bottom: 0;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home .dept-nav:not(.is-shown) {
  background: #fff;
  color: var(--ink);
  border-bottom: 0;
  opacity: 0;
  visibility: hidden;
}

.page-home .dept-nav.is-shown {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  opacity: 1;
  visibility: visible;
}

.page-home.is-top .site-header .search {
  border-color: #fff;
}

.page-home.is-top .site-header .search {
  background: transparent;
}

.page-home.is-top .site-header .search input {
  color: #fff;
}

.page-home.is-top .site-header .search input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.page-home .site-header.is-stuck .search,
.page-home .is-menu .site-header .search {
  border-color: var(--ink);
  background: #fff;
}

.page-home .site-header.is-stuck .search input,
.page-home .is-menu .site-header .search input {
  color: var(--ink);
}

.page-home .site-header.is-stuck .search input::placeholder,
.page-home .is-menu .site-header .search input::placeholder {
  color: #737373;
}

.page-home.is-top .icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.page-home .site-header.is-stuck .icon-btn:hover,
.page-home .is-menu .site-header .icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.eci-hero-nav {
  position: absolute;
  top: calc(var(--h-topbar) + var(--h-header));
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding: 18px var(--pad) 0;
  color: #fff;
  pointer-events: none;
}

.eci-hero-nav > * {
  pointer-events: auto;
}

.eci-hero-nav__burger {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: -10px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.eci-hero-nav__list {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.eci-hero-nav__list a {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #fff;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.2s var(--ease);
}

.eci-hero-nav__list a:hover {
  border-bottom-color: #fff;
}

.eci-hero-nav__list a.is-sale {
  border-bottom-color: var(--red);
}

.eci-hero-nav__actions {
  display: flex;
  gap: 2px;
}

.eci-hero-nav__actions a,
.eci-hero-nav__actions button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.eci-hero-nav__actions .icon,
.eci-hero-nav__burger .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.page-home .is-menu .topbar,
.page-home .is-menu .site-header,
.page-home .is-menu .dept-nav {
  background: #fff;
  color: var(--ink);
}

.page-home .is-menu .topbar {
  background: #000;
  color: #fff;
}

/* ---------- полоса приложения ---------- */
.topbar {
  height: var(--h-topbar);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0;
}

.topbar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 300;
}

/* ---------- шапка ---------- */
.site-header {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  grid-template-columns: 44px minmax(0, auto) minmax(0, 1fr) auto;
  gap: clamp(10px, 2.4vw, 40px);
  height: var(--h-header);
}

.icon-btn .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.header-actions {
  gap: 2px;
}

/* лого: глиф и подпись EL CORTE INGLÉS сшиты в один ttf
   (ем-бокс 986 сверху / 340 снизу, ширина глифа 4284/1024 em) */
.logo {
  --l: var(--logo-size, 32px);
  display: inline-flex;
  flex: none;
  align-items: center;
  font-family: "ECI-Logo", sans-serif;
  font-size: calc(var(--l) * 1.12);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

.logo:hover {
  opacity: 0.72;
}

.logo__glyph {
  display: block;
  line-height: 0.72;
  letter-spacing: 0;
}

.logo-dot {
  display: none;
}

/* поиск: белая пилюля, зелёная круглая кнопка */
.search {
  max-width: 640px;
  height: 44px;
  padding: 0 5px 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}

.search:focus-within {
  box-shadow: 0 0 0 2px rgba(0, 134, 45, 0.28);
}

.search input {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
}

.search input::placeholder {
  color: #737373;
  opacity: 1;
}

.search__btn {
  width: 34px;
  height: 34px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
}

.search__btn:hover {
  background: var(--green-dim);
}

.search__icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.suggest {
  border-radius: 0;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.badge {
  background: var(--green);
  border-radius: 999px;
  font-weight: 600;
}

/* навигация департаментов */
.dept-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.dept-nav__inner {
  height: 48px;
  gap: clamp(16px, 2.2vw, 32px);
}

.dept-nav__link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.dept-nav__link::after {
  bottom: -1px;
  height: 2px;
  background: transparent;
}

.dept-nav__link:hover::after,
.dept-nav__link.is-active::after {
  background: var(--ink);
}

.dept-nav__link--sale {
  color: var(--ink);
}

.dept-nav__link--sale::after {
  background: var(--red);
}

.dept-nav__panel {
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.dept-nav__panel a {
  font-size: 13px;
  font-weight: 300;
}

/* ---------- кнопки ---------- */
.btn {
  font-family: var(--eci-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 48px;
  border-radius: 0;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover {
  background: #242424;
  border-color: #242424;
}

.btn--light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn--light:hover {
  background: #f2f2f2;
  border-color: #f2f2f2;
}

.link-btn {
  font-size: 14px;
  font-weight: 400;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.link-btn:hover {
  opacity: 1;
  color: var(--green);
}

/* ---------- герой-кампания ---------- */
.hero {
  background: #0a0a0a;
  min-height: min(86vh, 780px);
  padding-top: calc(var(--h-topbar) + var(--h-header) + 74px);
}

.page-home .hero__inner {
  padding-top: 0;
}

.hero__brand {
  display: none;
}

.hero__copy {
  max-width: 620px;
}

.hero__title {
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero__text {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.82);
}

.hero__sticker {
  background: var(--red);
  border-radius: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- промо-полоса и полоса прогресса ---------- */
.promo-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.promo-strip .wrap {
  padding-block: 10px;
}

.promo-note {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  text-align: left;
}

.promo-note::before {
  background: var(--green);
}

/* ---------- категории ---------- */
.section--cats .cat-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow: visible;
}

.section--cats .cat-tile {
  flex: 1 1 0;
  min-width: 0;
}

.section--cats .cat-tile__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .section--cats .cat-rail {
    gap: 12px;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .section--cats .cat-rail::-webkit-scrollbar {
    display: none;
  }

  .section--cats .cat-tile {
    flex: 0 0 130px;
  }
}

.cat-tile__media {
  position: relative;
  display: block;
  background: #f6f6f6;
  border: 0;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
}

.cat-tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s var(--ease);
}

.cat-tile:hover .cat-tile__media img {
  transform: scale(1.03);
}

.cat-tile__name {
  font-size: 15px;
  font-weight: 300;
  padding-top: 12px;
  color: var(--ink);
}

.cat-tile--sale .cat-tile__media--sale {
  background: var(--ink);
  color: #fff;
}

/* ---------- сервисная полоса ---------- */
.services {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.services__list li {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
}

.services__list strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.services .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.4;
  color: var(--ink);
}

/* ---------- карточка товара ---------- */
.p-card__media {
  background: #fff;
  border: 0;
}

.p-card__body {
  padding-top: 10px;
}

.p-card__brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: lowercase;
  text-transform: none;
  color: var(--ink-soft);
}

/* ECI: brand 13/700, title 13/400, price 16/700, crossed 13/400 */
.p-card__name {
  font-size: 13px;
  line-height: 22px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--ink-soft);
  min-height: 44px;
  margin-top: 2px;
}

.p-card__price {
  margin-top: 4px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.3px;
  color: var(--ink-soft);
}

.p-card__price strong {
  font-weight: 700;
}

.p-card__price del {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}

.p-card__color {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
}

.p-card__color .swatch {
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.p-card__ship {
  font-size: 12px;
  font-weight: 400;
  color: var(--green);
}

.p-card__ship--muted {
  color: var(--muted);
}

.chip {
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  background: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chip--new,
.chip--sale {
  background: var(--red);
}

.chip--new {
  background: var(--ink);
}

.fav {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0;
  width: 36px;
  height: 36px;
}

.fav .icon {
  stroke-width: 1.5;
}

.fav[aria-pressed="true"] {
  color: var(--ink);
}

/* ---------- секции ---------- */
.section-head h2 {
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
}

/* ---------- редакционные карточки ---------- */
.edit-card,
.promo {
  border-radius: 0;
}

.edit-card--green {
  background: var(--green);
}

.edit-card--dark {
  background: #111;
}

.trend-card__title {
  font-weight: 300;
  font-size: 15px;
}

.trend-card__label {
  font-weight: 600;
}

/* ---------- футер ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--ink);
  color: var(--ink-soft);
}

.logo--footer {
  --logo-size: 26px;
}

.footer-col h2,
.menu-secondary h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-col a,
.footer-note,
.footer-bottom p,
.footer-legal a {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-social a {
  font-weight: 300;
}

.newsletter {
  border-radius: 0;
  background: var(--stone);
}

.newsletter input,
.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 0;
  border-color: var(--line-strong);
  font-weight: 300;
}

.newsletter input:focus,
.form-field input:focus,
.form-field select:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 1px var(--ink);
}

/* ---------- хлебные крошки ---------- */
.breadcrumb {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  padding-top: 18px;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- хедер категории ---------- */
.cat-head h1 {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.cat-intro p {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

.subnav__item {
  border-radius: 0;
  border-color: var(--line-strong);
  font-size: 13px;
  font-weight: 300;
}

.subnav__item.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- фильтры ---------- */
.filter-pill,
.radio-card,
.size-opt,
.filter-check {
  border-radius: 0;
}

.filter-check input,
.color-check input {
  accent-color: var(--ink);
}

.size-opt:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.toolbar__sort select,
.sort-form select {
  border-radius: 0;
  border-color: var(--line-strong);
  font-weight: 300;
}

/* ---------- страница товара ---------- */
.pdp__brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.pdp__title {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.pdp__price strong {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.pdp__price del {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
}

.pdp__save {
  background: var(--red-soft);
  color: var(--red);
  font-weight: 600;
}

.pdp__tax,
.pdp__stock,
.pdp__label {
  font-weight: 300;
}

.pdp__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdp__services li {
  border: 1px solid var(--line);
}

.pdp__services li + li {
  margin-top: 8px;
}

.pdp__services strong {
  font-size: 14px;
  font-weight: 400;
}

.pdp__services small {
  font-weight: 300;
  color: var(--muted);
}

.pdp__services .is-green {
  color: var(--green);
}

.pdp__free {
  background: var(--green-soft);
  border: 0;
}

.pdp__free strong {
  font-size: 15px;
  font-weight: 700;
}

.pdp__details details {
  border-top: 1px solid var(--line);
}

.pdp__details summary {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rating .icon--star {
  fill: var(--ink);
  color: var(--ink);
}

.gallery__thumb.is-active {
  border-color: var(--ink);
}

.pdp-sticky {
  border-top: 1px solid var(--line);
}

/* ---------- корзина и оформление заказа ---------- */
.checkout-section,
.auth-card,
.order-card,
.summary,
.radio-card {
  border-radius: 0;
  border-color: var(--line);
}

.checkout-secure {
  font-weight: 300;
  color: var(--muted);
}

.checkout-line,
.order-line,
.summary-row {
  font-weight: 300;
}

/* ---------- cookie-баннер ---------- */
.cookies {
  border-radius: 0;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink-soft);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.cookies p {
  font-weight: 300;
  font-size: 13px;
}

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .logo {
    --logo-size: 28px;
  }
}

@media (max-width: 760px) {
  :root {
    --h-header: 60px;
    --h-topbar: 32px;
  }

  .logo {
    --logo-size: 22px;
  }

  .search {
    height: 40px;
  }

  .dept-nav__inner {
    height: 44px;
  }

  .hero__title {
    font-size: clamp(30px, 9vw, 44px);
  }

  .cat-tile__name {
    font-size: 13px;
  }

  .p-card__name {
    min-height: 0;
  }
}


/* ---------- шаг банковской карты в оформлении заказа ---------- */
.card-fields {
  margin: 14px 0 4px;
  padding: 18px 18px 4px;
  border: 1px solid var(--line);
  background: #fff;
}

.card-fields.is-off {
  display: none;
}

.card-fields .checkout-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
}

.checkout-hint {
  font-weight: 300;
}

.radio-card {
  font-weight: 300;
}

.radio-card strong {
  font-weight: 600;
}



/* ---------- мобильный оверлей главной ---------- */
@media (max-width: 960px) {
  .page-home .site-header {
    top: var(--h-topbar);
  }

  .page-home .header-inner {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas: "burger logo actions";
    height: var(--h-header);
    padding-top: 0;
    padding-bottom: 0;
    row-gap: 0;
  }

  .page-home .site-header .search {
    display: none;
  }

  .page-home.is-top .site-header {
    color: #fff;
  }

  .page-home.is-top .site-header .icon-btn .icon {
    stroke: #fff;
  }

  .page-home.is-top .site-header .burger .icon {
    stroke: currentColor;
  }

  .page-home.is-top .logo {
    color: #fff;
  }

  .page-home:not(.is-top) .logo {
    color: var(--ink);
  }

  .eci-hero-nav {
    display: none;
  }

  .hero {
    min-height: 74vh;
    padding-top: calc(var(--h-topbar) + var(--h-header) + 44px);
  }

  .hero__sticker {
    top: calc(var(--h-topbar) + var(--h-header) + 8px);
    right: 14px;
    width: 76px;
    height: 76px;
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .header-actions .icon-btn:first-child {
    display: inline-grid;
  }

  .logo {
    --logo-size: 20px;
  }
}

/* ---------- мобильная карточка товара: чёрная полоса покупки ---------- */
@media (max-width: 960px) {
  .pdp-sticky.is-on {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--pad);
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  }

  .pdp-sticky .btn {
    min-height: 44px;
    padding: 0 22px;
  }
}

/* ---------- editorial-карточки: фото не заезжает на текст ---------- */
.edit-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: stretch;
  min-height: 380px;
  padding: 0;
  overflow: hidden;
}

.edit-card__copy {
  padding: clamp(22px, 2.2vw, 34px);
  max-width: none;
  align-self: center;
}

.edit-card p {
  max-width: 26ch;
}

.edit-card img {
  position: static;
  order: 2;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  filter: none;
  transition: transform 0.6s var(--ease);
}

.edit-card--dark img,
.edit-card--green img {
  object-fit: contain;
  padding: clamp(14px, 1.6vw, 26px);
  background: transparent;
}

.edit-card--stone img {
  object-fit: contain;
  padding: 8%;
  background: #fff;
  mix-blend-mode: multiply;
}

.edit-card:hover img {
  transform: scale(1.02);
}

/* карточки-плитки категорий: фото заполняет плашку, без серых полей */


/* карточка товара: белое поле, фото без серых плашек */
.p-card__media {
  background: #fff;
  border: 0;
  padding: 6%;
}

.p-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* фото в корзине и заказе */
.cart-line img,
.checkout-line img,
.order-line img {
  object-fit: contain;
  background: #f7f7f7;
}

@media (max-width: 980px) {
  .edit-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .edit-card__copy {
    order: 1;
    padding: 24px 22px;
  }

  .edit-card img {
    order: 2;
    height: 260px;
  }
}

/* истории: фото всегда внутри плашки, не наезжает на подпись */
.story-card__media {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.story-card__media img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* галерея товара: белый фон как на ECI */
.gallery__main,
.gallery__thumb {
  background: #fff;
  border: 0;
}

.gallery__main img,
.gallery__thumb img {
  mix-blend-mode: multiply;
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* плитки категорий: не обрезаем головы моделей, серый фон фото уходит в белый */
.cat-tile__media {
  background: #fff;
}

.cat-tile__media img {
  object-position: center 18%;
  mix-blend-mode: multiply;
}

/* ---------- промо-баннеры категорий: фото в своей колонке, текст не перекрывается ---------- */
.cat-banner {
  gap: 16px;
}

.promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: stretch;
  min-height: 240px;
  padding: 0;
  overflow: hidden;
}

.promo__copy {
  align-self: center;
  justify-content: center;
  max-width: none;
  padding: clamp(20px, 2.2vw, 32px);
}

.promo img,
.promo--cover img {
  position: static;
  order: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 22%;
  filter: none;
  transition: transform 0.6s var(--ease);
}

.promo.promo--cover img,
.promo.promo--dark img {
  object-fit: contain;
  object-position: center;
  padding: 8%;
  background: #fff;
}

.promo:hover img {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .promo {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .promo__copy {
    order: 1;
    padding: 22px 20px;
  }

  .promo img,
  .promo.promo--cover img,
  .promo.promo--dark img {
    order: 2;
    height: 210px;
    padding: 12px;
    background: #f6f6f6;
    object-fit: contain;
    object-position: center;
  }
}

/* ---------- cat-promo__media: ровная высота без конфликта min/max ---------- */
.cat-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
  overflow: hidden;
  background: #f4f4f4;
}

.cat-promo__copy {
  padding: clamp(24px, 3vw, 42px);
}

.cat-promo__media {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #e9e9e9;
}

.cat-promo__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

@media (min-width: 901px) {
  .cat-promo {
    height: clamp(300px, 26vw, 380px);
  }
}

@media (max-width: 900px) {
  .cat-promo {
    grid-template-columns: 1fr;
    height: auto;
  }

  .cat-promo__media {
    order: -1;
    height: 240px;
  }

  .cat-promo__copy {
    padding: 24px 20px 28px;
  }
}

/* ---------- системные уведомления в стиле ECI ---------- */
.notice {
  border-radius: 0;
  font-weight: 300;
}

.notice--info {
  border-left: 3px solid var(--ink);
  background: #f6f6f6;
  padding: 14px 16px;
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.notice--success {
  border-left: 3px solid var(--green);
  background: #eef7f1;
  padding: 14px 16px;
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.notice--error {
  border-left: 3px solid var(--red);
  background: #fdf0ed;
}

/* ---------- гостевое оформление и предоплата ---------- */
.checkout-guest-note {
  margin: 18px 0 20px;
  font-size: 12.5px;
  line-height: 1.55;
}

.auth-guest-note {
  max-width: 68ch;
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
}
