/* ===== Палитра и базовые переменные ===== */
:root{
  --hero-maxw: 1600px;
  --hero-radius: 28px;

  --txt-main: #ffffff;
  --txt-dim:  rgba(255,255,255,.92);

  --accent:     #7c92a0;
  --accent-ink: #0B1221;


  .hero-badge{
    padding: 8px 14px;
    border-radius: 999px;
    font: 600 14px/1.2 Inter, sans-serif;
    background: var(--badge-bg);
    backdrop-filter: blur(3px);
  }
  --shadow: 0 28px 60px rgba(0,0,0,.45);
  --badge-bg: rgba(0,0,0,.38);

  /* Контентная часть */
  --bg-muted: #F5FAFE;
  --ink: #0B1221;
  --card-bg: #ffffff;
  --card-br: 14px;
  --card-bd: 1px solid rgba(11,18,33,.08);
}

/* Контейнер */
.container{
  width: min(1200px, 92vw);

  /* Центровка карточки на всех экранах */
  display: grid;
  place-items: center;
}

.hero-card{
  position: relative;
  width: min(100%, var(--hero-maxw));
  aspect-ratio: 1600 / 640;
  border-radius: var(--hero-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  isolation: isolate;      /* чтобы ::before не вмешивался в z-index контента */
  background: transparent; /* по умолчанию без картинки */
  margin-inline: auto;     /* центр по оси X */
  justify-self: center;    /* подстраховка для grid-родителя */
}

/* Фон-картинка СТРОГО внутри контейнера */
.hero-card--reco-bg{
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.25)), /* мягкая вуаль */
    url("/static/reco-hero.webp");                             /* твой фон */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Доп. градиент для читабельности текста снизу */
.hero-card::before{
  content:"";
  position:absolute; inset:0; z-index:0;
  background: linear-gradient(to top,
              rgba(0,0,0,.55) 0%,
              rgba(0,0,0,.25) 40%,
              rgba(0,0,0,0) 65%);
}

/* Компактная версия окна */
.hero-card--compact{
  aspect-ratio: auto;                  /* гибкая высота */
  max-width: 1100px;
  padding: clamp(16px, 3.2vw, 28px);   /* внутренний отступ вокруг текста */
  border-radius: 16px;
  background-color: transparent;       /* подложка не нужна — фон уже есть */
  backdrop-filter: none;
}

@media (max-width: 992px){
  .hero-card{
    aspect-ratio: auto;
    min-height: clamp(360px, 56vh, 640px);
  }
  padding: 8px 14px;
  border-radius: 999px;
  font: 600 14px/1.2 Inter, sans-serif;
  background: var(--badge-bg);
  backdrop-filter: blur(3px);
}

.hero-title{
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5.2vw, 54px);
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.hero-text{
  margin: 0;
  font: 400 clamp(16px, 2vw, 18px)/1.65 Inter, sans-serif;
  color: var(--txt-dim);
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

.hero-actions{
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: clamp(6px, 1.6vw, 10px);
}

.hero-phone,
.btn-hero{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  font: 700 16px/1 Inter, sans-serif;
  transition: transform .15s ease, filter .2s ease;
  white-space: nowrap;
}

.hero-phone{
  color: #fff;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(3px);
}

.hero-phone-ico{
  width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.1.37 2.28.57 3.5.57a1 1 0 011 1V21a1 1 0 01-1 1C10.07 22 2 13.93 2 3a1 1 0 011-1h3.5a1 1 0 011 1c0 1.22.2 2.4.57 3.5a1 1 0 01-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.1.37 2.28.57 3.5.57a1 1 0 011 1V21a1 1 0 01-1 1C10.07 22 2 13.93 2 3a1 1 0 011-1h3.5a1  1 0 011 1c0 1.22.2 2.4.57 3.5a1 1 0 01-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.btn-hero{
  background: linear-gradient(90deg, var(--accent), var(--accent));
  color: var(--accent-ink);
}

.hero-phone:hover,
.btn-hero:hover{ filter: brightness(.96); transform: translateY(-1px); }
.hero-phone:active,
.btn-hero:active{ transform: translateY(0); }

/* Мобильная адаптация/центровка */
@media (max-width: 768px){
  .hero{
    padding-left: 12px;
    padding-right: 12px;
  }
  .rec-card{
    grid-column: span 6;
    background: var(--card-bg);
    border: var(--card-bd);
    border-radius: var(--card-br);
    padding: clamp(14px, 2.2vw, 18px);
    display: grid;
    gap: 10px;
    align-content: start;
  }
  .rec-card--category{
    position: relative;
    color: inherit;
  }
    padding-right: 10px;
  }
  .hero-card,
  .hero-card--compact{
    width: 100%;
    max-width: 520px;           /* комфортная ширина для телефонов */
    border-radius: 14px;
  }
  .hero-content{
    padding: 16px;
  }
  .hero-title{ font-size: clamp(24px, 7vw, 30px); }
  .hero-text{  font-size: clamp(14px, 4vw, 16px); }
}

/* ================= Контент рекомендаций ================= */
.rec-main{
  padding: clamp(18px, 3.2vw, 36px) 0 64px;
  background: var(--bg-muted);
  color: var(--ink);
}

.rec-title{
  margin: 0 0 14px;
  font-family: "Unbounded", system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3.8vw, 34px);
  color: #ffffff;
}

.rec-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2vw, 20px);
}

.rec-card{
  grid-column: span 6;
  background: var(--card-bg);
  border: var(--card-bd);
  border-radius: var(--card-br);
  padding: clamp(14px, 2.2vw, 18px);
  display: grid;
  gap: 10px;
  align-content: start;
}

.rec-card--category{
  position: relative;
  color: inherit;
}

.rec-card__title-link{
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.rec-card__title-link:hover{
  text-decoration: underline;
}

.rec-card--with-list{
  grid-column: span 12;
}

@media (max-width: 920px){
  .rec-card{ grid-column: span 12; }
}

.rec-card__title{
  margin: 0;
  font: 800 clamp(18px, 2.8vw, 22px)/1.2 "Unbounded", sans-serif;
}

.rec-card__text{
  margin: 0;
  font: 400 15px/1.65 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgb(11 18 33 / .8);
  position: relative;
  z-index: 2;
}

.rec-card__link{
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font: 700 14px/1 Inter, sans-serif;
  background: linear-gradient(90deg, var(--accent), var(--accent));
  color: var(--accent-ink);
  transition: filter .2s ease, transform .15s ease;
  position: relative;
  z-index: 2;
}
.rec-card__link:hover{ filter: brightness(.96); transform: translateY(-1px); }

.rec-sublist{
  list-style: none;
  padding: 0;
  margin: 6px 0 4px;
  display: grid;
  gap: 6px;
}
.rec-sublist a{
  color: #0F2D52;
  text-decoration: none;
  font-weight: 600;
}
.rec-sublist a:hover{ text-decoration: underline; }

.rec-card__subitems{
  margin: clamp(8px, 1.6vw, 12px) 0 0;
  position: relative;
  z-index: 2;
}

/* ===== Защита от сторонних фонов (на всякий случай) ===== */
.hero,
.hero::before,
.hero-card:not(.hero-card--reco-bg),
.hero-card:not(.hero-card--reco-bg)::before{
  background-image: none !important;
}

/* ================= Категория: Стопа ================= */
body.reco-page{
  background: var(--bg-muted);
}

body.reco-page main,
body.reco-page footer{
  background: var(--bg-muted);
}

body.reco-page .breadcrumbs{
  margin: 0;
  padding: clamp(14px, 3vw, 22px) 0 0;
  background: transparent;
}

body.reco-page .breadcrumbs__trail{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font: 500 14px/1.4 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(11, 18, 33, .6);
}

body.reco-page .breadcrumbs a{
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

body.reco-page .breadcrumbs a:hover{
  color: var(--accent-ink);
  text-decoration: underline;
}

body.reco-page .breadcrumbs__current{
  font-weight: 700;
  color: var(--ink);
}

.rec-main--category{
  padding-top: clamp(18px, 3.2vw, 42px);
}

.rec-category-shell{
  display: grid;
  gap: clamp(28px, 5vw, 48px);
}

.rec-category-hero{
  position: relative;
  overflow: hidden;
  border-radius: clamp(18px, 3vw, 26px);
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(11, 18, 33, .08);
  background:
    linear-gradient(140deg, rgba(124, 146, 160, .16), rgba(124, 146, 160, .04) 48%, rgba(146, 208, 255, .16) 100%),
    #ffffff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 5vw, 40px);
}

.rec-category-hero__content{
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(14px, 3vw, 22px);
  align-content: start;
}

.rec-category-hero__badge{
  justify-self: start;
  background: rgba(13, 110, 253, .08);
  color: #0d6efd;
}

.rec-category-hero__title{
  margin: 0;
  font-family: "Unbounded", system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.15;
  color: var(--ink);
}

.rec-category-hero__lead{
  margin: 0;
  font: 400 clamp(16px, 2.2vw, 18px)/1.7 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(11, 18, 33, .75);
}

.rec-category-hero__list{
  margin: clamp(4px, 1.2vw, 10px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.rec-category-hero__list li{
  position: relative;
  padding-left: 26px;
  font: 500 15px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(11, 18, 33, .82);
}

.rec-category-hero__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), rgba(154, 192, 255, 1));
  box-shadow: 0 10px 24px rgba(92, 124, 212, .35);
}

.rec-category-hero__cta{
  display: grid;
  gap: 10px;
  align-content: start;
}

.rec-category-hero__btn{
  justify-self: start;
  padding-inline: clamp(18px, 3vw, 26px);
}

.rec-category-hero__note{
  margin: 0;
  font: 400 13px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(11, 18, 33, .6);
}

.rec-category-hero__visual{
  position: relative;
  border-radius: clamp(16px, 2.8vw, 24px);
  background:
    radial-gradient(120% 140% at 20% 20%, rgba(13, 110, 253, .18), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(203, 223, 255, .42));
  min-height: clamp(220px, 32vw, 340px);
  overflow: hidden;
}

.rec-category-hero__shape{
  position: absolute;
  border-radius: 999px;
  opacity: .6;
  backdrop-filter: blur(6px);
}

.rec-category-hero__shape--primary{
  width: clamp(140px, 24vw, 220px);
  height: clamp(140px, 24vw, 220px);
  background: linear-gradient(135deg, rgba(13, 110, 253, .35), rgba(107, 173, 255, .55));
  top: 12%;
  left: 14%;
}

.rec-category-hero__shape--ring{
  width: clamp(150px, 26vw, 240px);
  height: clamp(150px, 26vw, 240px);
  border: 2px solid rgba(255, 255, 255, .65);
  background: transparent;
  bottom: 12%;
  right: 10%;
}

.rec-category-hero__shape--dot{
  width: clamp(40px, 8vw, 70px);
  height: clamp(40px, 8vw, 70px);
  background: rgba(255, 255, 255, .8);
  bottom: 20%;
  left: 8%;
  opacity: .8;
}

.rec-category-section{
  display: grid;
  gap: clamp(20px, 3.4vw, 28px);
}

.rec-category-section__header{
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.rec-category-section__title{
  margin: 0;
  font-family: "Unbounded", system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.2;
  color: var(--ink);
}

.rec-category-section__subtitle{
  margin: 0;
  font: 400 clamp(15px, 2.2vw, 17px)/1.65 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(11, 18, 33, .7);
}

.rec-grid--single{
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rec-card__meta{
  margin: 0;
  font: 600 15px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(11, 18, 33, .78);
}

.rec-card__list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font: 500 14px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(11, 18, 33, .75);
}

.rec-card__note{
  margin: 0;
  font: 500 14px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(11, 18, 33, .6);
}

.rec-card__linkwrap{
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.rec-card--accent{
  border: 1px solid rgba(11, 18, 33, .06);
  box-shadow: 0 22px 60px -28px rgba(15, 30, 58, .35);
  background:
    linear-gradient(145deg, rgba(124, 146, 160, .12), rgba(124, 146, 160, .04) 60%, rgba(146, 208, 255, .18)),
    #ffffff;
}

.rec-card--placeholder{
  border: 1px dashed rgba(11, 18, 33, .18);
  background: linear-gradient(135deg, rgba(11, 18, 33, .02), rgba(11, 18, 33, .06));
  color: rgba(11, 18, 33, .72);
}

.rec-category-section--cta{
  margin-top: clamp(12px, 4vw, 38px);
}

.rec-category-section__cta{
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.8vw, 24px);
  padding: clamp(22px, 4vw, 36px);
  border-radius: clamp(16px, 2.8vw, 24px);
  border: 1px solid rgba(11, 18, 33, .08);
  background:
    linear-gradient(150deg, rgba(124, 146, 160, .08), rgba(231, 241, 255, .6)),
    #ffffff;
  box-shadow: 0 18px 44px -28px rgba(15, 30, 58, .3);
}

.rec-category-section__cta h2{
  margin: 0;
  font-family: "Unbounded", system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 3.2vw, 28px);
  line-height: 1.2;
  color: var(--ink);
}

.rec-category-section__cta p{
  margin: 0;
  font: 400 clamp(15px, 2.2vw, 17px)/1.65 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(11, 18, 33, .68);
}

.rec-category-section__cta-btn{
  align-self: flex-start;
  padding-inline: clamp(20px, 3vw, 28px);
}

@media (min-width: 680px){
  .rec-category-section__cta{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .rec-category-section__cta > div{
    max-width: 520px;
  }
}

@media (max-width: 720px){
  .rec-category-hero{
    padding: clamp(20px, 5vw, 32px);
  }

  .rec-category-hero__visual{
    min-height: clamp(180px, 40vw, 260px);
  }
}

@media (max-width: 540px){
  .rec-category-hero__btn,
  .rec-category-section__cta-btn{
    width: 100%;
    justify-content: center;
  }
}
