/* ==========================================================================
   WeLUX — About Page (/about/) Styling
   Mobile-first, pixel-perfect alignment with Figma 280-4910 and 581-2106
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. General Accessibility & Layout Utilities
   -------------------------------------------------------------------------- */
.about-hero,
.about-tagline,
.about-principles,
.about-stats,
.about-cozy,
.about-equip,
.about-cosm,
.about-find,
.about-rules,
.about-feedback {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  .about-hero__slider,
  .about-principles__grid,
  .about-stats__grid,
  .about-equip__track {
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   1. Hero Section (.about-hero)
   -------------------------------------------------------------------------- */
.about-hero__right {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #e8dece;
}

.about-hero__slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 100%;
}

.about-hero__slider::-webkit-scrollbar {
  display: none;
}

.about-hero__slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}

.about-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 5;
}

.about-hero__dots-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.about-hero__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-block;
}

.about-hero__dots i.is-active {
  background: #ffffff;
  width: 22px;
  border-radius: 4px;
}

.about-hero__next {
  background: none;
  border: 0;
  padding: 0 0 0 4px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  line-height: 1;
}

.about-hero__next:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   2. Tagline Section (.about-tagline)
   -------------------------------------------------------------------------- */
.about-tagline {
  padding: 60px 24px 30px;
  text-align: center;
}

.about-tagline__text {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.35;
  color: #1a1a1a;
  max-width: 1100px;
  margin: 0 auto;
}

.about-tagline__text em {
  font-style: normal;
  color: #a9a983;
}

.about-tagline__w-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  vertical-align: middle;
  margin: 0 4px;
}

.about-tagline__w-icon img {
  width: 38px;
  height: 38px;
  display: block;
}

.about-tagline__note {
  display: none !important; /* Выводится в шапке секции принципов по макету */
}

/* --------------------------------------------------------------------------
   3. Principles Section (.about-principles)
   -------------------------------------------------------------------------- */
.about-principles {
  padding: 20px 60px 50px;
  background: #ffffff;
}

.about-principles__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.about-principles__note {
  font-size: 14px;
  color: #333333;
  margin: 0;
  line-height: 1.4;
}

.about-principles__nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 1025px) {
  .about-principles__nav--desktop-hide {
    display: none !important;
  }
}

.about-principles__prev,
.about-principles__next {
  background: none;
  border: 0;
  padding: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7a7859;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.about-principles__prev:hover,
.about-principles__next:hover {
  opacity: 0.65;
}

.about-principles__dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.about-principles__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8d8d8;
  display: inline-block;
  cursor: pointer;
  transition: all 0.25s ease;
}

.about-principles__dots i.is-active {
  background: #3f4a2f;
  width: 22px;
  border-radius: 4px;
}

.about-principles__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .about-principles {
    padding: 20px 20px 40px;
  }
  .about-principles__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .about-principles__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
  }
  .about-principles__grid::-webkit-scrollbar {
    display: none;
  }
  .about-principle {
    flex: 0 0 84%;
    min-width: 84%;
    scroll-snap-align: start;
    padding: 24px 20px;
    min-height: 330px;
  }
  .about-principle__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  .about-principle__icon svg {
    width: 30px;
    height: 30px;
  }
  .about-principle h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  .about-principle p {
    font-size: 12px;
  }
}

.about-principle {
  border-radius: 16px;
  padding: 28px 24px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.about-principle__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 244, 225, 0.7);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  flex-shrink: 0;
  color: #f4f4e1;
}

.about-principle__icon svg {
  width: 36px;
  height: 36px;
  max-width: 38px;
  max-height: 38px;
  display: block;
}

.about-principle h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  line-height: 1.25;
  text-transform: uppercase;
}

.about-principle p {
  font-size: 13px;
  line-height: 1.52;
  margin: 0;
  margin-top: auto;
  opacity: 0.9;
}

.about-principle--beige {
  background: #f4f4e1;
  color: #23221b;
}

.about-principle--beige .about-principle__icon {
  border-color: rgba(86, 85, 65, 0.4);
  color: #565541;
}

.about-principle--beige h3 {
  color: #23221b;
}

.about-principle--beige p {
  color: #4a493e;
  opacity: 1;
}

.about-principle--olive {
  background: #7c7a5c;
  color: #f4f4e1;
}

.about-principle--olive h3,
.about-principle--olive p {
  color: #f4f4e1;
}

.about-principle--dark {
  background: #464b38;
  color: #f4f4e1;
}

.about-principle--dark h3,
.about-principle--dark p {
  color: #f4f4e1;
}

/* --------------------------------------------------------------------------
   4. Stats Section (.about-stats)
   -------------------------------------------------------------------------- */
.about-stats {
  background: #464b38;
  padding: 40px 60px 60px;
}

.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto;
}

.about-stats__card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
  height: 420px;
  background: #2a2d21;
}

.about-stats__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* Glassmorphism panel matching Figma */
.about-stats__panel--glass {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.about-stats__panel--glass .about-stats__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.about-stats__panel--glass .about-stats__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .about-stats {
    padding: 30px 20px 40px;
  }
  .about-stats__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
  }
  .about-stats__grid::-webkit-scrollbar {
    display: none;
  }
  .about-stats__card {
    flex: 0 0 88%;
    min-width: 88%;
    height: 380px;
    min-height: 380px;
    scroll-snap-align: start;
  }
}

/* --------------------------------------------------------------------------
   5. Cozy Quote Section (.about-cozy)
   -------------------------------------------------------------------------- */
.about-cozy {
  background: #f4f4e1;
  padding: 60px 24px;
  text-align: center;
}

.about-cozy__text {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.35;
  color: #222;
  max-width: 1000px;
  margin: 0 auto;
}

.about-cozy__text em {
  font-style: normal;
  color: #a9a983;
}

.about-cozy__tree-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  vertical-align: middle;
  margin: 0 6px;
}

.about-cozy__tree-icon img {
  width: 44px;
  height: 44px;
  display: block;
}

/* --------------------------------------------------------------------------
   6. Equipment Gallery (.about-equip)
   -------------------------------------------------------------------------- */
.about-equip {
  background: #ffffff;
  padding: 40px 60px 70px;
}

.about-equip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}

.about-equip__title-wrap {
  grid-column: 1;
  grid-row: 1;
  padding-top: 6px;
}

.about-equip__title {
  font-size: 32px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 14px;
}

.about-equip__desc {
  font-size: 12px;
  line-height: 1.55;
  color: #666;
  margin: 0;
  max-width: 260px;
}

.about-equip__item {
  border-radius: 16px;
  overflow: hidden;
  background: #e8dece;
}

.about-equip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-equip__item--a {
  grid-column: 2;
  grid-row: 1;
}

.about-equip__item--b {
  grid-column: 3 / span 2;
  grid-row: 1;
}

.about-equip__item--c {
  grid-column: 1 / span 2;
  grid-row: 2;
}

.about-equip__item--d {
  grid-column: 3;
  grid-row: 2;
}

.about-equip__item--e {
  grid-column: 4;
  grid-row: 2;
}

@media (min-width: 769px) {
  .about-equip__track {
    display: contents;
  }
  .about-equip__nav {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .about-equip {
    padding: 30px 20px 45px;
  }
  .about-equip__grid {
    display: block;
  }
  .about-equip__title-wrap {
    margin-bottom: 20px;
  }
  .about-equip__desc {
    max-width: 100%;
  }
  .about-equip__track {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
  }
  .about-equip__track::-webkit-scrollbar {
    display: none;
  }
  .about-equip__item {
    flex: 0 0 85% !important;
    min-width: 85% !important;
    max-width: 85% !important;
    height: 260px !important;
    scroll-snap-align: start;
  }
  .about-equip__nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
  }
  .about-equip__prev,
  .about-equip__next {
    background: none;
    border: 0;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a7859;
    cursor: pointer;
  }
  .about-equip__dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .about-equip__dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d8d8d8;
  }
  .about-equip__dots i.is-active {
    width: 22px;
    border-radius: 4px;
    background: #3f4a2f;
  }
}

/* --------------------------------------------------------------------------
   7. Cosmetics Section (.about-cosm)
   -------------------------------------------------------------------------- */
.about-cosm {
  background: #ffffff;
  padding: 40px 60px 70px;
}

.about-cosm__inner {
  background: #464b38;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 36% 1fr 1fr;
  gap: 16px;
  padding: 16px;
  color: #ffffff;
  align-items: stretch;
}

.about-cosm__left {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.about-cosm__title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}

.about-cosm__text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.about-cosm__btn {
  align-self: flex-start;
  height: 40px;
  padding: 0 22px;
  background: #c9ab7a;
  color: #ffffff;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.about-cosm__btn:hover {
  opacity: 0.9;
}

.about-cosm__mid,
.about-cosm__right {
  background: #f4f4e1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 220px;
}

.about-cosm__mid img,
.about-cosm__right img {
  max-height: 220px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .about-cosm {
    padding: 30px 20px 50px;
  }
  .about-cosm__inner {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }
  .about-cosm__mid,
  .about-cosm__right {
    min-height: 200px;
  }
}

/* --------------------------------------------------------------------------
   8. "How to Find Us" Section (.about-find)
   -------------------------------------------------------------------------- */
.about-find {
  background: #ffffff;
  padding: 40px 60px 80px;
}

.about-find__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 24px;
}

.about-find__tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.about-find__tabs button {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #1a1a1a;
  background: #ffffff;
  font-size: 13px;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.about-find__tabs button.is-active {
  background: #f4f4e1;
  border-color: #f4f4e1;
  font-weight: 500;
}

.about-find__crumbs {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.about-find__crumb-item {
  color: #333333;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.about-find__crumb-item:hover {
  color: #000000;
}

.about-find__crumb-arrow {
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
}

.about-find__grid {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 36px;
  align-items: start;
}

.about-find__video {
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0eb;
  aspect-ratio: 16 / 10;
  position: relative;
}

.about-find__video img,
.about-find__video video,
.about-find__video iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.about-find__text h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.3;
}

.about-find__text p {
  font-size: 13px;
  line-height: 1.55;
  color: #555555;
  margin: 0 0 20px;
}

@media (max-width: 768px) {
  .about-find {
    padding: 30px 20px 50px;
  }
  .about-find__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .about-find__text {
    order: 1;
    width: 100%;
  }
  .about-find__video {
    order: 2;
    width: 100%;
    aspect-ratio: 16 / 11;
  }
}

/* --------------------------------------------------------------------------
   9. Rules Section (.about-rules)
   -------------------------------------------------------------------------- */
.about-rules {
  background: #ffffff;
  padding: 40px 60px 80px;
}

.about-rules__inner {
  display: grid;
  grid-template-columns: 32% 1fr;
  gap: 50px;
  align-items: start;
}

.about-rules__title {
  font-size: 13px;
  font-weight: 500;
  color: #777777;
  margin: 0 0 16px;
}

.about-rules__lead {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px;
}

.about-rules__desc {
  font-size: 12px;
  line-height: 1.55;
  color: #555555;
  margin: 0;
  max-width: 320px;
}

.about-rules__item {
  border-bottom: 1px solid #e4dbc4;
  padding: 20px 0;
}

.about-rules__item:first-child {
  border-top: 1px solid #e4dbc4;
}

.about-rules__num {
  display: block;
  font-size: 12px;
  color: #999999;
  margin-bottom: 8px;
}

.about-rules__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.about-rules__head h3 {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.15;
}

.about-rules__toggle {
  background: none;
  border: 0;
  font-size: 26px;
  font-weight: 300;
  color: #1a1a1a;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.about-rules__box {
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 16px;
  background: #ffffff;
}

.about-rules__body {
  margin-top: 18px;
}

.about-rules__item:not(.is-open) .about-rules__body {
  display: none;
}

@media (max-width: 900px) {
  .about-rules {
    padding: 30px 20px 50px;
  }
  .about-rules__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   10. Feedback Section (.about-feedback)
   -------------------------------------------------------------------------- */
.about-feedback {
  background: #ffffff;
  padding: 40px 60px 80px;
}

.about-feedback__inner {
  background: #464b38;
  border-radius: 16px;
  overflow: hidden;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 36px;
  align-items: center;
  color: #ffffff;
}

.about-feedback__left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-feedback__title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.about-feedback__desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.about-feedback__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.about-feedback__btn {
  background: #c9ab7a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.about-feedback__btn:hover {
  opacity: 0.9;
}

.about-feedback__link {
  color: #f4f4e1;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.about-feedback__link-arrow {
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
}

.about-feedback__right img {
  border-radius: 14px;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .about-feedback {
    padding: 30px 20px 50px;
  }
  .about-feedback__inner {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 24px;
  }
}

/* Мобильный герой и слоган «О клинике» (m/581-2106) */
@media (max-width: 900px) {
  .about-hero__inner {
    padding: 0 16px;
  }

  .about-hero__left {
    width: 100%;
    padding-top: 8px;
  }

  .about-hero__title {
    font-size: 40px;
    line-height: 1.08;
    margin-bottom: 16px;
  }

  .about-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .about-hero__btn {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .about-hero__btn:focus-visible {
    outline: 2px solid #565541;
    outline-offset: 2px;
  }

  .about-tagline {
    padding: 36px 16px 24px;
  }

  .about-tagline .container {
    padding-left: 0;
    padding-right: 0;
  }

  .about-tagline__text {
    font-size: 32px;
    line-height: 1.28;
  }

  .about-tagline__w-icon,
  .about-tagline__w {
    display: block;
    width: 52px;
    height: 52px;
    margin: 12px auto;
  }

  .about-tagline__w-icon img {
    width: 52px;
    height: 52px;
  }
}

/* 901–1279: слово «восстановления» целиком в левой колонке (style.css — 34% / 44px) */
@media (min-width: 901px) and (max-width: 1279px) {
  .about-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 28px;
    padding-inline: 32px;
  }

  .about-hero__left {
    min-width: 0;
    padding-top: 28px;
  }

  .about-hero__title {
    max-width: 100%;
    font-size: clamp(36px, 3.8vw, 42px);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .about-hero__desc {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero__btn,
  .about-feedback__btn {
    transition: none;
  }
}
