/* ═══════════════════════════════════
   ABOUT — секция с кольцами
═══════════════════════════════════ */
.rings-section {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--r6) 0%, var(--r5) 60%, #e8dcc8 100%);
  position: relative;
  overflow: hidden;
  padding: 3rem 6vw 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rings-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(92deg, transparent 0, transparent 18px, rgba(160, 104, 56, .025) 18px, rgba(160, 104, 56, .025) 20px),
    repeating-linear-gradient(178deg, transparent 0, transparent 40px, rgba(160, 104, 56, .015) 40px, rgba(160, 104, 56, .015) 42px);
}

.rings-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3vw 5vw;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
  flex-shrink: 0;
}
/* Десктоп: текст слева вверху, кольцо справа (2 строки), карточки слева внизу */
.about-text       { grid-column: 1; grid-row: 1; }
.ring-diagram-wrap { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.wood-facts       { grid-column: 1; grid-row: 2; }

/* Текстовая часть */
.about-text .sec-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: .7rem;
}
.about-text .sec-tag::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--bark-mid);
  border-radius: 2px;
}

.about-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: .8rem;
}
.about-h em {
  font-style: italic;
  color: var(--bark);
}

.about-p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: .9rem;
  font-size: .97rem;
}

/* Карточки-факты */
.wood-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-top: 0;
}
.wf {
  background: rgba(255, 255, 255, .65);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(160, 104, 56, .15);
  transition: transform .2s, box-shadow .2s;
}
.wf:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(122, 78, 40, .12);
}
.wf-icon {
  font-size: 1.4rem;
  margin-bottom: .4rem;
}
.wf-title {
  font-weight: 600;
  font-size: .85rem;
  color: var(--text);
  margin-bottom: .2rem;
}
.wf-text {
  font-size: .78rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Фото класса */
.about-classroom {
  max-width: 600px;
  width: 100%;
  margin: 2.5rem auto 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(160,104,56,.15);
  box-shadow: 0 8px 32px rgba(122,78,40,.13);
}
.classroom-carousel {
  position: relative;
  width: 100%;
}
.carousel-slide {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity .8s ease;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  position: relative;
  max-height: 320px;
  object-fit: cover;
  pointer-events: auto;
  transition: transform .3s ease;
}
.about-classroom:hover .carousel-slide.active {
  transform: scale(1.04);
}
.about-classroom-cap {
  font-size: .78rem;
  color: var(--text-soft);
  text-align: center;
  padding: .6rem;
  background: rgba(255,255,255,.75);
}

/* Диаграмма колец */
.ring-diagram-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* На десктопе tooltip позиционируется мышью (JS), скрываем статичный */
.ring-diagram-wrap > .ring-info {
  display: none;
}
/* Позиционный tooltip внутри ring-diagram — только для десктопа */
.ring-diagram .ring-info {
  display: block;
}
.ring-diagram {
  position: relative;
  width: min(600px, 52vw);
  height: min(600px, 52vw);
}
#bigRingSvg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ring-info {
  position: absolute;
  background: white;
  border-radius: 18px;
  padding: 1rem 1.2rem;
  border: 1.5px solid rgba(160, 104, 56, .2);
  box-shadow: 0 8px 28px rgba(122, 78, 40, .15);
  font-size: .83rem;
  max-width: 180px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  z-index: 10;
  text-align: center;
}
.ring-info.show {
  opacity: 1;
}
.ri-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: .3rem;
}
.ri-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .15rem;
}
.ri-desc {
  font-size: .75rem;
  color: var(--text-soft);
  line-height: 1.45;
}
.ri-hint-mobile { display: none; }
.hint-mobile { display: none; }

/* Подсказка через CSS когда desc пустой */
#riDesc:empty::after {
  content: attr(data-hint-desktop);
  color: var(--text-soft);
  font-style: italic;
}
