/* ==========================================================================
   Блок: Попап «Как подобрать размер?» (.b-size-guide)
   Scoped-стили: все селекторы под .b-size-guide
   ========================================================================== */

.b-size-guide {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  transition: visibility 0s .3s;
}

.b-size-guide.is-open {
  visibility: visible;
  transition-delay: 0s;
}

.b-size-guide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 36, 40, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s ease;
}

.b-size-guide.is-open .b-size-guide__overlay {
  opacity: 1;
}

.b-size-guide__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 40px 40px 36px;
  border-radius: 18px;
  background: var(--surface, #FDFBF7);
  box-shadow: 0 30px 80px rgba(20, 14, 18, .28);
  transform: translateY(16px) scale(.98);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}

.b-size-guide.is-open .b-size-guide__dialog {
  transform: none;
  opacity: 1;
}

.b-size-guide__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--bg, #F7F3EC);
  color: var(--muted, #8A7F7A);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.b-size-guide__close:hover {
  color: var(--accent, #6E5A7E);
  background: var(--lavender-soft, #E9E1EF);
  transform: rotate(90deg);
}

.b-size-guide__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted, #8A7F7A);
}

.b-size-guide__title {
  margin: 0 0 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text, #3B3437);
}

.b-size-guide__table-wrap {
  margin-bottom: 20px;
  border: 1px solid var(--line, #E4DCD2);
  border-radius: 12px;
  overflow: hidden;
}

.b-size-guide__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--text, #3B3437);
}

.b-size-guide__table th,
.b-size-guide__table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line, #E4DCD2);
}

.b-size-guide__table tr:last-child td {
  border-bottom: none;
}

.b-size-guide__table thead th {
  background: var(--lavender-soft, #E9E1EF);
  color: var(--accent, #6E5A7E);
  font-weight: 600;
}

.b-size-guide__table tbody th,
.b-size-guide__table td:first-child {
  color: var(--muted, #8A7F7A);
  font-weight: 500;
}

.b-size-guide__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted, #8A7F7A);
}

@media (max-width: 480px) {
  .b-size-guide__dialog {
    padding: 28px 20px 24px;
    border-radius: 14px;
  }
  .b-size-guide__title {
    font-size: 26px;
  }
  .b-size-guide__table th,
  .b-size-guide__table td {
    padding: 9px 10px;
    font-size: 13px;
  }
}
