:root {
  --brand-green: #20bf55;
  --brand-green-light: #d7f4db;
  --text-color: #1f2937;
  --muted-text: #4a5568;
  --background: #f7f8f9;
  --shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
  --arc-color: rgba(32, 191, 85, 0.2);
  --glow-color: rgba(32, 191, 85, 0.4);
  --description-bg: linear-gradient(135deg, #e6f4e9 0%, #d7f4db 100%);
}

.values-tab {
  background: var(--background);
  color: var(--text-color);
  position: relative;
  overflow: visible;
  padding-top: 60px;
  padding-bottom: 60px;
  padding-left: 30px;
  padding-right: 30px;
}

.values-title {
  color: #000;
  text-align: center;
  font-family: Montserrat;
  font-size: 36px;
  font-style: normal;
  font-weight: 500;
  max-width: 600px;
  margin: auto;
  margin-bottom: 170px;
}

.highlight-values {
  background: linear-gradient(90deg, #6EC7AE 0%, #152823 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: Montserrat;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  display: inline-block;
  background-size: 100% 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
}

.values-circle {
  position: relative;
    width: 900px;
  height: 900px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
  border-radius: 900px;
  border: 10px solid #EAEBEB;
  background: radial-gradient(62.24% 54.83% at 50% 50%, #C6E6DF 0%, #F7F8F9 70.19%);
  margin: clamp(20px, 4vw, 40px) auto;
  margin-top: clamp(36px, 5vw, 64px);
  box-sizing: content-box;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.values-center {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.values-logo {
  width: 350px;
  height: auto;
  display: block;
}

.values-items {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: auto;
  --chip-size: 250px;
  --radius: calc(50% - var(--chip-size) / 2 - 455px);
  transition: all 0.2s ease;
}

.value-item {
  position: absolute;
  width: 270px;
  height: 270px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: #EAEBEB;
  border: 10px solid #F7F8FA;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  cursor: default;
  transition: transform 0.2s ease;
  user-select: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle)));
  gap: 7px;
}

.value-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  fill: var(--brand-green);
}

.value-item span {
  color: #000;
  text-align: center;
  font-family: Montserrat;
  font-size: 21px;
  font-style: normal;
  font-weight: 600;
}

/* Radial positions for 6 items using angle */
.value-item[data-position="top"] { --angle: -90deg; }
.value-item[data-position="top-right"] { --angle: -30deg; }
.value-item[data-position="bottom-right"] { --angle: 30deg; }
.value-item[data-position="bottom"] { --angle: 90deg; }
.value-item[data-position="bottom-left"] { --angle: 150deg; }
.value-item[data-position="top-left"] { --angle: -150deg; }

/* Description panel */

.values-description {
  max-width: 1100px;
  min-height: fit-content;
  flex-shrink: 0;
  border-radius: 60px;
  background: linear-gradient(180deg, #EAEBEA 0%, #C6E6DF 100%);
  margin: auto;
  margin-top: 190px;
  align-items: center;
  padding: 60px;
}

.values-description p {
  color: #2c2c30;
  text-align: center;
  font-family: 'Geologica';
  font-size: 20px;
  font-weight: 300;
  line-height: normal;
}

@media (max-width: 1024px) {
  .values-title{
    font-size: 30px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .highlight-values{
    font-size: 30px;
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 600px) {
  .values-title{
    font-size: 28px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .highlight-values{
    font-size: 28px;
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 1280px) {
  .values-circle {
    display: contents;          /* remove the wrapper box from layout */
    width: auto;
    height: auto;
    aspect-ratio: auto;
    border: 0;
    background: none;
    margin: 0;
  }

  .values-items {
  opacity: 0;
  animation: fadeSlideIn 0.5s ease-out forwards;
}
  .values-center {
    display: none; /* скриваме логото в центъра */
  }

  .values-items {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1100px;
    margin: auto;
  }

  .value-item {
    position: static;
    transform: none;
    flex: 1 1 calc(50% - 20px);
    max-width: 270px;
    width: 100%;
    height: auto;
  }

  /* Subtle float animation for value items at <=1280px */
  @keyframes values-floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
  }

  .value-item {
    /* keep sizing from above; add animation only */
    animation: values-floatY 5.8s ease-in-out infinite;
    will-change: transform;
  }

  /* Small natural stagger so they don't move in sync */
  .value-item:nth-child(2) { animation-delay: .15s; animation-duration: 6.2s; }
  .value-item:nth-child(3) { animation-delay: .30s; animation-duration: 6.0s; }
  .value-item:nth-child(4) { animation-delay: .45s; animation-duration: 6.4s; }
  .value-item:nth-child(5) { animation-delay: .60s; animation-duration: 5.6s; }
  .value-item:nth-child(6) { animation-delay: .75s; animation-duration: 6.1s; }

  .values-title{
    margin-bottom: 60px;
  }

  .values-description{
    margin-top: 60px;
  }
  .value-item{
    border: none;
    background: linear-gradient(180deg, #EAEBEA 0%, #C6E6DF 100%);
  }
  .values-description{
    background: #eaebea;
  }
}

@media (max-width: 640px) {
  .values-items{
    max-width: 300px;
  }
  .values-description{
    padding: 20px;
    border-radius: 30px;
  }
  .values-description p{
    text-align: left;
  }
  .values-tab{
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
  }
}

@media (max-width: 500px) {
  .values-tab{
    padding-left: 20px;
    padding-right: 20px;
  }
}

.values-title,
.values-circle,
.values-description {
  opacity: 0;
  animation: fadeSlideIn 0.5s ease-out forwards;
}

.values-title {
  animation-delay: 0s;
}

.values-circle,
.values-items {
  animation-delay: 0.2s;
}

.values-description {
  animation-delay: 0.4s;
}